Render To Texture bigger than window size in OpenGL
Render To Texture bigger than window size in OpenGL
Hi. I have window 1024x768, RTT 1024x1024 and I use OpenGL mode. if I render scene to my texture 1024x1024 only 1024x512 part of scene is on texture. Where is other 1024x256 part from my scene? Scene proportions are good, so RTT 1024x1024 looks 1024x768:/ How can I repair it? Irrlicht for RTT in OpenGL default use FBO?
If You Graphic Card has got support for FBO Irrlicht default use it. This is problem with Irrlicht. In setRenderTarget Irrlicht set ViewPort with texture size. You have to change this value for the smaller of texture size X or Y and window size X or Y.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes