Rest of the cars

Published August 18, 2005
Advertisement
I got the rest of the new cars into the game, and I'm very happy with the way it's starting to look. I'm having 10 more made bringing the final number close to 30.



There was one crash bug in the game that was pretty nasty...I tracked it to the 3rd party physics library I'm using (Newton, www.physicsengine.com )...there's nothing I can really do about it, I've contacted the maker of Newton and I hope to work with him to fix
it once I get done with the IGF deadline.



The fix seems to be disabling the physics for the street side objects in the city. Because I have 10,000s of objects/vehicles/actors in the city I have two options:

- Create all objects at startup, and enable/disable them using the internal Newton function calls. which is pretty slow and has some considerable memory overhead.

or

- Create the objects in realtime as the enter/leave a certain radius of the camera, this is the approach I use. It allows me to have an unlimited number of physical objects in the game, there aren't any speed problems since I'll need to remove/add 2-5 objects each frame, it's pretty fast. I keep a copy of the last known physics matrix as the object leaves the camera's radius.

My theory is that I'm deleting an object and Newton is still referencing it...I sent an e-mail to the creater of Newton and he says this isn't likely, but so far I havn't experienced the crash since I disabled creating of street side city objects, I really hope it stays stable. And I hope we can work out this bug.

I'm making progress on every other aspect of the game as well.

- Dan



0 likes 3 comments

Comments

NoMonkey
Looks awesome man. Good luck at the contest!

Keep up the good work!
August 18, 2005 12:41 AM
superpig
Shiny. Have you thought about doing realtime environment mapping on those cars?
August 18, 2005 03:02 AM
dgreen02
Yea environment mapping on the vehicles and some buildings is something I really want to add into the game once I get some free time.

Once the game gets into beta I'll have time to add all the little touches, and add a lot more variety to the city as well, it should start to look like a reaaaal game :-D

I want to add 4-lane roads, beaches, bridges, parks, plazas, and all kinds of other stuff back into the game. I keep changing the specs on the city so I have to keep redoing parts of the city to handle the new requirements. I havn't got around to doing re-doing anything but the basics.

I think I could get away with just doing a static envinroment map on the vehicles/buildings. I have some ideas about that, we'll see...good suggestion though.

- Dan
August 18, 2005 03:25 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement