Hi Robert & Delport,

I have the setup with 4 cameras:

1st camera - the slave camera that inherit the master camera's relative frame 
and render the scene to 2 textures with color attachments. One of the texture 
remains as it is and other texture is left for further operation.

2. 2nd camera - the camera is hung under the 1st switch which does some 
operation over the one of texture specified above.   The result of the 
operation is rendered to another texture using the camera.

3. 3rd camera - the camera is hung under the 2nd switch that does some further 
operation over the last result done in step 2. The result is rendered to  the 
texture which was the input texture in step 2.

4. 4th Camera - is the HUD camera to visualize the output of the either of the 
above operation in step 2 / step 3.


Since step 2 and 3 are Switches i make them only one enable at a time. The 
concepts are pretty simple as you can imagine. They have been picked from 
osgdistortion, osgprerender,osgstereomatch and osggameoflife.

During the first pass , i make the first switch enabled with the keypress event 
and can visualize the scene.

With the next key press event, i flip the texture for further pass over the 
result of  the last operation, But the screen freezes without showing the 
result of the operation in the HUD camera. 
 
I need some hint on what might have gone wrong. If need more elaboration please 
ask.

Thank you!

Regards
Sajjadul

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





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to