Page 2 of 2

Re: Community Play 3D

Posted: Wed Jun 18, 2014 12:22 pm
by Soganatsu-Julien
Hello Christian,

No plans for the moment, I have too much work to do even if I'm full-time on it ^^
But I think about November or December. The collaborative feature is a big part of development + all the tools to create animations, gameplay etc.
Also, that's sure : the rendering engine will be open source. Just the GUI will not be, because of the collaborative feature that is my added-value.

Re: Community Play 3D

Posted: Mon Jun 23, 2014 11:28 pm
by Soganatsu-Julien
Update : CP3D now provides a HDR rendering pipeline !
Still WIP on OpenGL drivers but will be available soon

Image

Re: Community Play 3D

Posted: Tue Jun 24, 2014 8:08 pm
by devsh
whats the filter you use for the depth of field (its nice and grainy)

Re: Community Play 3D

Posted: Wed Jun 25, 2014 6:40 pm
by Soganatsu-Julien
If you speak about the last screenshot, it's using the image-based method.
Simply combine a blurred sampler, color sampler and depth sampler

The GLSL code (my rendering engine will be open source so I can give you this code ^^)

Code: Select all

uniform sampler2D ColorSampler;
uniform sampler2D BlurredSampler;
uniform sampler2D DepthSampler;
 
float getDepth(vec2 coords) {
    vec4 texDepth = texture2D(DepthSampler, coords);
    return texDepth.r;
}
 
void main(void) {
    vec4 sharp = texture2D(ColorSampler, gl_TexCoord[0].xy);
    vec4 blur = texture2D(BlurredSampler, gl_TexCoord[0].xy);
 
    float depth = clamp(getDepth(gl_TexCoord[0].xy)*10.0, 0.0, 1.0);
 
    float fmix = 0.0;
    if (depth < 0.05)
        fmix = 1.0;
    else if(depth < 0.1)
        fmix = 20.0 *(0.1 - depth);
    else if(depth < 0.5)
        fmix=0.0;
    else
        fmix = 2.0 *(depth - 0.5);
 
    fmix = clamp(depth, 0.0, 0.90);
 
    gl_FragColor = mix(sharp, blur, fmix);
}
 

Re: Community Play 3D

Posted: Thu Jun 26, 2014 11:15 am
by devsh
No I mean how do you make the BlurredSampler

Re: Community Play 3D

Posted: Tue Jul 01, 2014 11:49 am
by Soganatsu-Julien
The blur shader is shared between the image-based and object-based method so it's complicated to give you only the shader
Then, I'll try to clean it give you the shader's code son

Re: Community Play 3D

Posted: Thu Jul 24, 2014 10:08 am
by Soganatsu-Julien

Re: Community Play 3D

Posted: Wed Oct 08, 2014 9:23 pm
by Soganatsu-Julien
Screenshot for fun !
Image

Re: Community Play 3D

Posted: Wed Jun 08, 2022 1:49 am
by netpipe
did you get further with this ?