Hi,

On 13/12/10 10:15, Sajjadul Islam wrote:
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.

Why the input texture of 2? Are your cameras pre-render? What order?


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

I assume you switch the texture the HUD is viewing? How do you do it?

Maybe you can save your scene as .osg file and inspect it to see if something is missing.

jp



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 [email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.

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

Reply via email to