Sign in to follow this  
bartiss

How to create list of faces of D3DXMESH

Recommended Posts

bartiss    136
Hi I'm trying to develop a 3D racing game. Terrain is modelled in 3D MAX and exported to .x file. What I want is to get a list of all faces in this mesh along with normals and middle points. I need it to calculate collisions etc. Can anybody tell me how to do it? Not in theory, but using apropriate functions. I have no idea where to start. Thanks in advance!

Share this post


Link to post
Share on other sites
rjackets    270
If you want to just use it to calculate collisions, etc there is a handly tool called MeshIntersect (or MeshIntersectSubset) -- which you could combine with sphere/cylinder/box detection and get pretty accurate results. Its a subset of the Mesh type.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this