Hi,

On 16/09/10 13:53, benedikt naessens wrote:
Robert,

Basically, I want to render my scene data onto an image which is not an OSG 
image, but has the same structure, i.e.

* 8 bits red
* 8 bits green
* 8 bits blue

The image (memory block) contains already something (see it as a background) 
and thus I only want my 3D scene objects on top of it.

one approach using RTT would be:
* Attach your input image as a texture applied to a quad that an RTT camera is looking at. (see how HUDs work if you want the texture to not be affected by camera projection)
* Attach an osg::Image to the camera as output (see osgprerender example)
* Draw whatever you want with the camera
* Use the output osg::Image

BTW, you can create an osg::Image that points to your own data.


Can you explain which parts of my original post are unclear, such that I can 
rectify this ?

Problem is that there are many ways to do what you want.

cheers
jp



Thank you!

Cheers,
benedikt

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





_______________________________________________
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