Pocus
08-04-2005, 08:31 PM
Hi,
I'm doing render-to-texture and it works well, except that lines are reversed in the texture.
I've tried two methods :
1) render in a PBuffer, and copy in the texture with glCopyTexSubImage2D
2) using FBO and directly render in the texture
These two methods have the same result : lines in the texture are reversed (the image in reversed along Y axis).
When I compare with my directX version, which is exactly the same code but for DirectX, the lines are correctly ordered.
Is there a way to change the order of lines with a function like glPixelStore ?
Thanks for your help,
Pacôme.
I'm doing render-to-texture and it works well, except that lines are reversed in the texture.
I've tried two methods :
1) render in a PBuffer, and copy in the texture with glCopyTexSubImage2D
2) using FBO and directly render in the texture
These two methods have the same result : lines in the texture are reversed (the image in reversed along Y axis).
When I compare with my directX version, which is exactly the same code but for DirectX, the lines are correctly ordered.
Is there a way to change the order of lines with a function like glPixelStore ?
Thanks for your help,
Pacôme.