CameraOrthoWindow

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

CameraOrthoWindow

Post by eddy »

API => setOrthoWindow(Real w, Real h);
http://www.ogre3d.org/docs/api/1.9/clas ... e0f55862f5

It's usefull for pixel perfect rendering.
It could be implemented like that :

Code: Select all

CameraOrthoWindow(Width,Height) ; Set window resolution of camera in orthographic mode
Or like that:

Code: Select all

CameraProjectionMode(#Camera, Mode, ResolutionWidth=#pb_default, ResolutionHeight=#pb_default)
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
[blendman]
Enthusiast
Enthusiast
Posts: 297
Joined: Thu Apr 07, 2011 1:14 pm
Location: 3 arks
Contact:

Re: CameraOrthoWindow

Post by [blendman] »

+1 ;)
Prod
User
User
Posts: 14
Joined: Thu Mar 31, 2005 3:47 pm
Location: Denmark

Re: CameraOrthoWindow

Post by Prod »

Came here today just to request this. This is massively important. The ortho resolution is fixed at 1600x (or something), so if you have 1920x then every single action in the 3d environment must be adjusted with a zoom factor, including extra scaling for every loaded object. Since monitors nowadays only can have one resolution, and obviously the industry will never agree on one specific, this functionality is essential.
Just started working on my first 3D game, after some 15 years planning but never any 3D tools good enough. Finally there is hope, but I must have ortho, and this gives me a proper headache. :)
(Tho I just found out creating the illusion of a 2D game while running in 3D is actually smoother at lower resolutions, as that removes the slight flicker when all pixels are shifted in subpixel positions while run in pixel perfect resolution.) :)
Last edited by Prod on Fri Nov 06, 2015 10:45 pm, edited 1 time in total.
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: CameraOrthoWindow

Post by IdeasVacuum »

+1
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Post Reply