Hi,

OpenGL (for identity projection) has 0,0 at bottom left. Your cam prob has 0,0 at top left (first pos in the buffer). Easiest is to just swap to top/bottom texture coordinates when you apply the texture.

jp

On 26/04/10 08:32, Anthony Face wrote:
Hi,

I have a texture problem. I use memcpy() to copy a buffer from a camera to the 
texture. This work but the image is reverse.

How can i change it?

Thx you!

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





_______________________________________________
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