[Gambas-user] gb3: OpenGL Rotate and Translate logic

Kevin Fishburne kevinfishburne at ...1887...
Sun May 27 09:12:46 CEST 2012


On 05/27/2012 02:40 AM, tommyline at ...2340... wrote:
> Ok,
>
> first - you've got perspective range as
>
> Glu.Perspective(45, sWidth / sHeight, -1, 1)<- should be positve and bigger ie. Glu.Perspective(45, sWidth / sHeight, 0.1, 500) or even more if the world is big.
>
> second - you're too low over the ground, thus  the world is kind of "flipped", increase eyez in glu.LookAt().
>
> See it it works, then we can sort out the rest.
>
> Tomek

Yeah, I am a bit confused about the "near" and "far" clipping range 
values. My maximum world dimensions are 65536x65536 feet with the 
elevation in inches represented by a short, or -2730 to 2730 feet 
(32768/12). I'm guessing the near value should be around 2730 and the 
far value should be around -2730 then? Things are starting to get pretty 
exciting, as all my data was already "3D", just my rendering looked like 
an old JRPG.

-- 
Kevin Fishburne
Eight Virtues
www: http://sales.eightvirtues.com
e-mail: sales at ...1887...
phone: (770) 853-6271





More information about the User mailing list