Page 1 of 1

[Ogre] Having a camera ratiox, ratioy

Posted: Tue Jul 01, 2008 4:03 pm
by djes
Having to place a camera not in fullscreen, and with proportions not squared - CreateCamera(0, 10, 1, 75, 95) for example -, my rendering is distorted :(

I'd like to have sort of a ratio when creating my camera, e.g.

Code: Select all

CreateCamera(0, 10, 10, 75, 50, 1, 1) ; 1 pixel in x direction = 1 pixel in y direction
CreateCamera(0, 10, 10, 75, 50, 1.5, 1) ; 1.5 pixel in x direction = 1 pixel in y direction