[osg-users] blending with shader

Gianni Ambrosio g.ambrosio+osg at gmail.com
Fri Sep 30 07:21:50 PDT 2016


Hi All,
I have a projector attached to a PC where a 3rd party application runs. The 3rd party application uses OSG 3.0.1 and allows to add custom code re-implementing some virtual methods of their base Plugin class.

I need to apply a blending operation to the visualized scene so that the projector displays the blended image on the (curved) screen (please see attached image). I guess the source image (=image of the scene just like an osg viewer does) must be warped also but that's story I will investigate on later.

Even if I have just a rough idea of shaders, as far as I have understood that's the way to implement the required blending.

I found several examples in which a shader manipulates the 3D scene but in my case I think I have to modify the resulting image of the scene.
Now, it is not clear to me how pass the required informations to the shader code and if I can handle the whole rendered image of the scene from the shader and how.

Regards,
Gianni

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68832#68832



-------------- next part --------------
A non-text attachment was scrubbed...
Name: blending.png
Type: image/png
Size: 27533 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160930/59079680/attachment-0002.png>


More information about the osg-users mailing list