Skip to main content
gamedev.net
🔒 Locked

Only triangles?

Started by Gammastrahler 2 replies 350+ views
Original Post
Gammastrahler
Gammastrahler
hi, is it besser to only deal with triangles to build all comples objects? i have read many articles about col detection and all those articles deal with triangles for colliding planes. greets&thanks gammastrahler
TerranFury
TerranFury
As a general rule, triangle meshes should have corresponding geometric approximations. In games, a player is drawn as a collection of triangles, but represented for physics purposes as a simple box. Similarly, though levels are rendered as triangles, they are often stored in the form of convex polyhedra. In short, you need to be able to quickly extract at runtime two representations from whatever data you load at loadtime: triangles for rendering, and some simpler geometric form for physics calculations.



Edited by - TerranFury on January 10, 2002 5:57:58 PM
MirekCz
MirekCz
yup, like AP said, trimesh collision detection is the way to go, most ppl use a simplified version of their trimesh (or for example the lowest LOD model if they use few models) to get the physics engine working quite accurate and fast at the same time.
Good luck!

With best regards,
Mirek Czerwiñski
http://kris.top.pl/~kherin/
With best regards, Mirek Czerwiñski

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.