[osg-users] Buffer problem

2010-04-26 Thread Anthony Face
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

Re: [osg-users] Buffer problem

2010-04-26 Thread J.P. Delport
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

Re: [osg-users] Buffer problem

2010-04-26 Thread Anthony Face
Thanks you JP. D. J.P. Delport wrote: to just swap to top/bottom texture coordinates when you apply the texture. This will work and will be easy. Tanks a lot... -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=27281#27281