Jump to content
  • Advertisement
Sign in to follow this  
fd9_

Physical properties of a 3D model (going from modeling package to game engine)

This topic is 3868 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Let's say I have a 3D model of a car that I want to load into my game engine. I don't just want to export the vertices, texture coordinates, etc but I also want to get across information about the wheel constraints so that they can turn and rotate once I load the model into the game. For the sake of having another example, let's also say that I want the glass windows to break when someone shoots them. Other properties like mass, friction, etc would also have to be set. Assuming I can set all of these physical attributes in the 3D modeling package (I think Blender can?), how do I get all of this information to the game engine? I've heard about the COLLADA format but I wasn't sure if that's what I wanted. Where do I start?

Share this post


Link to post
Share on other sites
Advertisement
Sounds like you'll need to design a custom model format for that, which involves writing an exporter or conversion tool and some model loader code. Or you could keep the additional information in a seperate file. Either way, you're going to have to do some work to get this to work.

Do you have an engine in mind already? And how are you planning to actually handle this data in-game, that is, the wheel constraints and window destructability?

Share this post


Link to post
Share on other sites
Quote:
Original post by Captain P
Sounds like you'll need to design a custom model format for that, which involves writing an exporter or conversion tool and some model loader code. Or you could keep the additional information in a seperate file. Either way, you're going to have to do some work to get this to work.


I could write a tool that converts a standard model format into something that can be read in from the game engine, but I want to avoid writing a custom exporter/plugin for a specific modeling package. So I need to work with common standard format of some kind.

Quote:
Original post by Captain P
Do you have an engine in mind already? And how are you planning to actually handle this data in-game, that is, the wheel constraints and window destructability?


I plan on using Bullet for the physics engine, and Ogre3D for the graphics engine. Since I haven't worked with these two libraries before, I don't know exactly how everything will work once I'm able to load the data in. But my main concern right now is understanding how to do that. Also, I don't really plan on having window destructibility, that was just an example for people to think about. Maybe I should of mentioned door opening instead. Sometimes when I'm facing a design problem like this I tend to think about as many scenarios as I can in order to come up with the most flexible solution.

[Edited by - fd9_ on March 14, 2008 6:19:22 PM]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!