This site is no longer active and is available for archival purposes only. Registration and login is disabled.

OpenglEs Frustrum..


OpenglEs Frustrum..

Postby RapchikProgrammer » Nov 19, 2009 @ 4:17am

RapchikProgrammer
pm Member
 
Posts: 56
Joined: Oct 18, 2008 @ 7:08am


Postby edge » Nov 19, 2009 @ 9:03am

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?
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby RapchikProgrammer » Nov 19, 2009 @ 9:17am

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..
RapchikProgrammer
pm Member
 
Posts: 56
Joined: Oct 18, 2008 @ 7:08am


Postby edge » Nov 23, 2009 @ 10:26am

Hi,

Perspective2D and perspective3D are wrappers for glOrtho and glFrustum respectively. Perhaps you need to enable frustum culling through a glEnable call?
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Return to EDGELIB


Sort


Forum Description

Powerful and affordable C++ middleware solution covering true multi-platform 2D, 3D and network features for Apple iPhone, Windows Mobile, Symbian S60, UIQ, Linux and Windows desktop.

Moderator:

edge

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron