GLBasic forum

Main forum => GLBasic - en => Topic started by: matty47 on 2013-Jan-18

Title: Orthographic camera
Post by: matty47 on 2013-Jan-18
Hopefully not too dumb a question but I need a drawing surface that has 0,0 at the bottom left corner and increases in x and y across and up respectfully. I think I could use a 3d screen with an orthographic camera to implement this however I can't seem to find a command that would make the camera orthographic and not perspective. Is this possible in GLBasic? and (of course) some guidance on how to do it would be greatly appreciated.
Thanks in advance
Matthew
Title: Re: Orthographic camera
Post by: Moru on 2013-Jan-18
Make a function that converts coordinates from upper left to bottom left instead. Or make your own draw routines for every draw function you will be using, converting each Y to the inverse Y.
Title: Re: Orthographic camera
Post by: kanonet on 2013-Jan-18
You can use X_MAKE3D x, y, -1 to get an orthographic view. Dont know if this helps you.
Title: Re: Orthographic camera
Post by: mentalthink on 2013-Jan-18
Thanks Kano... :good: I think I did somtime whit X_Camera x,y,0.1 or a very low value...
Title: Re: Orthographic camera
Post by: matty47 on 2013-Jan-18
Thanks all - I did not know about the -1 at the end of XMake3d
Title: Re: Orthographic camera
Post by: Wampus on 2013-Jan-20
Quote from: kanonet on 2013-Jan-18
You can use X_MAKE3D x, y, -1 to get an orthographic view. Dont know if this helps you.

Wow, that is worth knowing. I see its in the manual but I just never saw that. :D