Hi

I believe it's easier to do with postrender camera - disable clear color, 
attach input texture as color attachment, set view and projection matrices, add 
your cones with shaders and you are done. You can also draw result into another 
texture with prerender camera and mix together inside osgppu, if postrender 
camera is not good for some reason.

Cheers.

04.03.2013, 19:19, "Daniel Schmid" <daniel.sch...@swiss-simtec.ch>:
> Hi all
>
> I have some light cones that simulate the glowing of a light. All the light 
> cones are in one group in the scene graph, and they have their apropriate 
> shader in the group stateset to get the desired effect.
>
> Now my goal is to render the cones in a osgppu postpro step. I want to have 
> them rendered over the normal scene. So my intention is to write a UnitInOut 
> class that can take a osg::Group node and render it over the existing input 
> texture.
>
> This is actually very close to the UnitText class, instead of a osg::Text I 
> have a small sub scene graph. One issue is the correct view and projection 
> matrixes, which must no longer be related to the screen quad, but instead 
> must be the same like the main scene.
>
> I hope you get the idea... I started to write the class, but I'm stuck with 
> applying the correct stateset and matrixes at the correct time.
>
> Can anybody help me?
>
> Thank you!
>
> Cheers,
> Daniel
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=52949#52949
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to