Page 1 of 1

OpenglEs Frustrum..

PostPosted: Nov 19, 2009 @ 4:17am
by RapchikProgrammer

PostPosted: Nov 19, 2009 @ 9:03am
by edge
Hi,

EDGELIB doesn't change the perspective matrix unless you're calling ClassEDisplay::Perspective2D or ClassEDisplay::Perspective3D. Perhaps you're setting a 2D perspective to show text or HUD elements?

PostPosted: Nov 19, 2009 @ 9:17am
by RapchikProgrammer
Yes i am using perspective 3d and perspective 2d calls as i need to render hud, gui and stuff.. so how to handle the frustrum culling?? and why wont the display->frustrum call work perfectly??

another question what does exactly the perspective 3d function do?? perspective 2d is just changing the mode to glOrtho2d i think, but i dont understand exactly what perspective 3d is doing..

PostPosted: Nov 23, 2009 @ 10:26am
by edge
Hi,

Perspective2D and perspective3D are wrappers for glOrtho and glFrustum respectively. Perhaps you need to enable frustum culling through a glEnable call?