Reflections: Increase a camera's quality/resolution?

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
Dtestwr051
Posts: 14
Joined: Tue Dec 16, 2008 3:27 am

Reflections: Increase a camera's quality/resolution?

Post by Dtestwr051 »

I have been working on making reflections using a camera directly under the user pointing upward (toward the user). I use a very large FOV to make a large reflection under the user. There is a problem with this however, the camera makes the reflection very pixelated and just look bad. Is there a way to fix the resolution or, preferably, is there a better way to do reflections (not orthogonal)?

Current method
. I
-----
\ . /
. o
key: o = reflection camera, I = Eye (active camera), - = Surface, \/ = FOV . = ignore these
poulpi33
Posts: 31
Joined: Tue Jan 06, 2009 8:01 pm
Location: Bordeaux, France

Post by poulpi33 »

Your reflection camera should not have a wider fov than your main camera ! It have to be the exact same camera, with position and rotation reflected. (you need to flip the projection matrix too, or flip the reflection texture, vertically).
Then if your render target for your reflection camera have the same size as your main render target, the result will be perfect.
Post Reply