[Ogre] Having a camera ratiox, ratioy

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
djes
Addict
Addict
Posts: 1806
Joined: Sat Feb 19, 2005 2:46 pm
Location: Pas-de-Calais, France

[Ogre] Having a camera ratiox, ratioy

Post 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