Hi Julian, I'm not 100% sure what you after, but it kinda sounds like you want to render to texture, and then use this texture in your 3d scene. If this is the case the have a look at the osprerender example. This places an render to texture (RTT) Camera in the scene to capture a texture, the result of which is then applied to another geometry in the main scene graph.
Robert. On 6/14/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hello, I am having the following problem: I want to create a scene where I am sitting virtually inside my home in front of a TV which shows another part of the SceneGraph (maybe the building where I am sitting in from outside). To do so I think I have to place a camera somewhere inside my SceneGraph and this camera needs to project its' field of view onto an other surface (the TV) somewhere else in the SceneGraph. Is there any possibility to do such things or can the "output" of a camera only be displayed rectangular on the screen like in the following code: Producer::RenderSurface *rsWindow = new Producer::RenderSurface; rsWindow->setWindowName(WindowCaption); rsWindow->setWindowRectangle(0,0,640 ,480 ); rsWindow->useCursor(false); Producer::Camera *camera1 = new Producer::Camera; camera1->setRenderSurface(rsWindow); camera1->setShareLens(false); camera1->setLensPerspective(90, 90, 0.01, 1600, 0, 0); I am relatively new to OpenSceneGraph so please excuse my not existing knowledge... and I hope I have made my problem clear... Thanks a lot! Julian Schindler _______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/