Hi Amos,

 

The OverlayNode can be used just like you mentioned in your message (and as evident in the osganimate, osgsimulation, and osgspheresegment (if you change a #if 0 to a #if 1)) to project geometry onto a scene.

 

I was using OverlayNode to project a texture onto geometry as well, but after an email from Robert I realized that using TexGenNode is a much better approach for positioning an image over geometry.  Look at the osgdepthshadow example as well as the underlying code for OverlayNode for examples on how to use TexGenNode.

 

Good luck!

 

Jason

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Amos Smith
Sent: Wednesday, August 09, 2006 3:26 P
To: [email protected]
Subject: [osg-users] OverlayNode, offscreen rendering, texture projection

 

I'm curious if OverlayNode can be used to project offscreen rendering results onto geometry?  For example, if in osgsimulation example the cessna itself were rendered offscreen (did not appear in scene), while maintaining the 'shadow' projection onto the globe.

I'm also curious if OverlayNode is the correct mechanism to consider for projection of an image file onto terrain at specific coordinates?  It seems that a  subset of OverlayNode would provide the projection of a texture onto geometry, but I'm not sure what extent of the OverlayNode could be 'bypassed' in the case where I'm starting with texture rather than rendering a model into texture first.

Suggestions & references to relevant examples would be most appreciated.

Thanks in advance,

Amos

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to