Home » Community » Forums » DirectX and XNA » How to build a 3D race game
  Intel sponsors gamedev.net search:   
[Control Panel] [Register] [Bookmarks] [Who's Online] [Active Topics] [Stats] [FAQ] [Search]

Add Forum to Favorites |  Send Topic To a Friend | View Forum FAQ | Track this topic


 Last Thread Next Thread 
 How to build a 3D race game
Post New Topic  Post Reply 
Hi,
I am trying to build a race game similar to Need for Speed, I understand the track is modeled as a huge 3D model

I have a few questions...
1. What is a good way to strip out irrelevant parts of the track? I mean, it is pointless to keep all the vertices of the track that have already passed. How could I strip them out?

2. Is there a way to force a certain order of faces in the .x file? It would be great if I can force the faces to be stored in the order they appear in the race

Hmmm... that is all for now... Is there any book that covers such a topic? I'd be very interested in that.

Thank you very much for all the help, sincerely appreciated..

 User Rating: 1011   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

You might try using a node tree to clip the vertices that are not in the view frustum. google "directx node tree" term.

 User Rating: 1422   |  Rate This User  Send Private MessageView ProfileView JournalView GD Showcase Entries Report this Post to a Moderator | Link

Recommend you read up on "spatial partitioning systems." BSP or quadtrees in particular would most likely benefit you in this situation. An alternative would be to store each section of track separately, and only display those that are currently visible.

edit: Beaten :p

 User Rating: 1160   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Hi!
Quote:
I am trying to build a race game similar to Need for Speed, I understand the track is modeled as a huge 3D model

Your track model can be a single 3D model, but you should convert it to a spatial structure (e.g. BSP tree, oct-tree, quad-tree) in order to be able to determine what faces are relevant for current frame (visibility determination and collisions). In case of race games it might be a good idea to split faces into list of neighborous sectors.

Race like games (well, like almost any other game) have their specialized 3d editors, where you can define 'the right' way the car should follow.

You, for sure don't want to make your own editor if you begin with games, but you definitely need some space partitioning for optimization reasons.

GL! :)

 User Rating: 1044   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

All times are ET (US)

Post Reply
 Last Thread Next Thread 
Forum Rules:
You may not post new threads
You may post replies
You may not edit your posts
You may not use HTML in your posts
Jump To:
Administrative Options: