Re: [osg-users] Problem with output - OSG/Shader

2018-08-07 Thread Johny Canes
Hi, That makes zero sense to me. Can you show the glsl? Thank you! Cheers, Johny -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=74477#74477 ___ osg-users mailing list osg-users@lists.openscenegraph

Re: [osg-users] Problem with output - OSG/Shader

2018-08-05 Thread Rômulo Cerqueira
Hi Johny, I would like to draw what I want... the red was just an example. My main goal is to simulate the reverberation phenomena using rasterization (for the first reflection) + ray tracing (for the second reflection). I would like to output the surface of reflected scenes, which are always n

Re: [osg-users] Problem with output - OSG/Shader

2018-08-05 Thread Johny Canes
Hi, It could be that maybe the black portion of the texture you are doing postproc on has the wrong alpha value... just a stab in the dark lol. And why exactly would you want an all red scene? Cheers, Johny -- Read this topic online here: http://forum.openscenegraph.org/viewtop

[osg-users] Problem with output - OSG/Shader

2018-08-04 Thread Rômulo Cerqueira
Hi, I would like to write the output/buffer of fragment shader to texture (RTT) as I wish (e.g. all red), however this result is depending of the model's shapes visible in the scene. How can I proceed with this correctly? Follow below my minimal source code and the results. Thanks in advance!