Jump to content
  • entries
    338
  • comments
    2045
  • views
    1168729

Rest of the cars

Sign in to follow this  
dgreen02

210 views

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



Sign in to follow this  


3 Comments


Recommended Comments

Shiny. Have you thought about doing realtime environment mapping on those cars?

Share this comment


Link to comment
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

Share this comment


Link to comment

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
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!