I see very strange result when using render-to-texture and the GUI. This problem repeats only on OpenGL driver. Probably this is a bug.
Test case:
Open main.cpp of 13.RenderToTexture_vc9 project:
- just before "int lastFPS = -1;" we add:
- Code: Select all
env->addImage(driver->getTexture("../../media/irrlichtlogo2.png"),
core::position2d<s32>(10,10));
- just before "driver->setRenderTarget(0, true, true, 0);" we add:
- Code: Select all
env->drawAll();
So we simply added one GUIImage (Irrlicht logo) and instruction to render GUI to target texture.
I'm getting next result:
http://www.youtube.com/watch?v=csLMGu4GN7I
(Notice flipping of Irrlicht logo when i rotate camera)
Indeed when i use more GUI, for example buttons, we get more strange results (i believe thats because font is a texture, and the problem in texture usage, the flipping). For example i getting next result after some camera movement:
(Notice broken text/font on the button)


