Hi,
I've a problem with render to texture ando openGL.
I'm using irrlicht 1.0 and I wanto to put the scene render in a texture and then render the texture on screen with driver->draw2DImage(...);
The texture is of the same dimension of the screen.
The problem is that when I draw the texture, the texture is deformed, moved on bottom right and rotated by 180° T_T
I've rewrite the code using gl code, so I've created a quad with the dimensions from (-1,1) [top left] to (1,-1) [bottom right] .
I've load identity matrices on modelview and projection matrix.
The restult is the same.
So I've correct the texture u,v with the glTexCoord2f(...) and I've rotated the texture by 180° in the right way... but the translation and deformation are still present...
Why happen this problem???
Thanks to anyone want to help me!
Render to texture problem
Render to texture problem
Everyone for the game and the game for everyone