Render To Texture bigger than window size in OpenGL

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
jcarew
Posts: 34
Joined: Wed Jul 04, 2007 3:54 pm

Render To Texture bigger than window size in OpenGL

Post by jcarew »

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?
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Post by Nadro »

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
Post Reply