Big Serialization question

Edgard
Posts: 11
Joined: Wed Mar 30, 2011 2:12 pm

Big Serialization question

Post by Edgard »

Hi,

I have a big question about the serialization. Why the split between saving (serializer) & loading (bulletWorldImporter)?

If I'm not mistaken, only a very small part that is being serialized is being used by the bulletWorldImporter.
Settings like friction, restitution, kinematic (collisionflags), velocities, damping, ... are not being used?

For rigidbodies only mass/shape/name/startTransform/name is used :?

In other words, if I save my bullet scene and reload it with the worldimporter, it's not the same state anymore and no bodies are kinematic anymore.

Is this normal? Or am I doing something terribly wrong here?
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Big Serialization question

Post by Erwin Coumans »

This is correct, the btBulletWorldImporter doesn't convert all data yet, although all data is in memory (btBulletFile).
The btBulletWorldImporter can deal with backward and forward compatibility, so it can import older and newer .bullet files.
It is best if you customize it to your needs.

If you improve it, please consider contributing this back.
Thanks,
Erwin
Edgard
Posts: 11
Joined: Wed Mar 30, 2011 2:12 pm

Re: Big Serialization question

Post by Edgard »

Allright thanks :)

I'll see what I can do :wink: