Best way to create a formula1 track!

ramar

29-09-2007 15:52:02

Hi guys, i am enjoying very much with NxOgre and i am creating a racing car game....but i have a "project" problem. I created a track shape (loaded with TriangleMeshShape) and everything work right. I'll add then static object, like terrain, trees and so on. The problem is I have to "subdivide" the track mesh with asphalt, grass, sand and vehicles should react differently. First i thought i could creat several meshes for any kind of terrain and do a collision detection...is this the way to do it? Is there a better way to do this?
Thank you and sorry for my english :D

sebastiend

29-09-2007 16:22:57

A website has got a lot of informations about game development. In the physics tutorials, no less than eighteen speak about "physics of racing"

Direct link:

[url=http://www.gamedev.net/reference/list.a]http://www.gamedev.net/reference/list.a ... yid=28#139


It could interest you but I don't know where is what you ask for, if it is there.

betajaen

29-09-2007 17:48:32

The problem is I have to "subdivide" the track mesh with asphalt, grass, sand and vehicles should react differently. First i thought i could creat several meshes for any kind of terrain and do a collision detection...is this the way to do it? Is there a better way to do this?

That's the normal way of doing it, except you divide it into sub-meshes and give them separate Ogre materials; sand, grass, asphalt, etc. In the next release of NxOgre you shall be able to use those material names within NxOgre and assign them to proper NxOgre materials using a "material alias". So the all the faces in the grass sub-mesh all use the Grass Material in NxOgre.

ramar

30-09-2007 01:23:32

Oh, thank you for infos.

I will go using several meshes and waiting for next release to test NxOgre submaterials :D