PDA

View Full Version : Yet another topic about glFrustum.



Flotonic
05-25-2013, 11:38 AM
The glFrustum(); function is putting up a fight. I need to zoom in on the map and using glOrtho was causing it to disappear by the time any real distance was made, so someone suggested I use glFrustum. The result of that is hideous, though. Please see for yourself. Here is my code:
Source Code (http://www.maco64.com/Frustum_Problem.c)
Frustum_Map.h (http://www.maco64.com/Frustum_Map.h)

Thank you for your time!

thokra
05-25-2013, 11:51 AM
Care to share what the hideous result actually is? Also, could you please share what "the map" is?

Flotonic
05-25-2013, 12:02 PM
I suppose not everyone is interested in compiling the source code for themselves. The left one is with glFrustum. The right one is with glOrtho. They are the same scene.

1034

The map is the first room of the Deku Tree from the game, Legend of Zelda: Ocarina of Time.