Hi,

I am new to OSG and OpenGL.  I am attempting to create a scene where an image 
from a real camera is projected onto a 3d model of the object being 
photographed.  I used the projective texture mapping technique following the 
osgspotlight example, substituting my image for the spotlight image in the 
texture, and using an orthographic projection.  This gave me the desired effect 
I wanted within the projection area, but it made the rest of my scene black.  I 
would like the rest of the scene to have normal lighting.  Basically, I want to 
take the osgspotlight example and give some ambient light to the rest of the 
scene.  I tried adding an additional light node as a child of a root above the 
node containing the texture (which is the root in the osgspotlight example) but 
scene outside the texture projection remained black.

Some of my reading suggested that using the stencil buffer with multipass 
rendering might be the solution, but I was hoping a simpler solution might 
work.  Is there another way to do this?  If not, where could I find a simple 
example of using stencils and multipass rendering?

Thanks,
Mike

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to