[osg-users] [forum] Problem of rendering to texture with two camera

Jie Xu jie.xu at image-metrics.com
Thu Jan 21 09:25:59 PST 2016


Hi,

I have a problem when using two cameras and both of them attach to the same osg::Image as target. My purpose is to blend the results of two cameras(they have different projection and view matrix). But I just get the second camera rendered result. If I don't attach two osg::Image, then the result displayed correctly on screen. For the second camera, I don't clear color, just clear depth.  But the background seems always cleared as (0, 0, 0, 0).
... 


Thank you!

Cheers,
Jie

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







More information about the osg-users mailing list