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

triangle culling question


triangle culling question

Postby ThursdayNext » Nov 30, 2007 @ 10:14pm

I am writing a game in which the player will travel over a 3D terrain; this will involve clipping the terrain at the near and far clipping planes as the user moves over the terrain. The terrain mesh itself is being loaded from a 3ds file. What would be the best way to cull the triangles in the 3ds mesh such that only the triangles between the near and far clipping planes are rendered?

thank you
ThursdayNext
pm Member
 
Posts: 9
Joined: Oct 26, 2007 @ 6:25pm


Postby edge » Dec 3, 2007 @ 11:26am

Hi,

In the EDGELIB internal renderer this is not possible yet. When using OpenGL you can take a look at glDepthRange. With it you can set the near and end clipping planes. More information is available here: http://www.khronos.org/opengles/documen ... Range.html
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