Extending the .bullet format

blademaster
Posts: 3
Joined: Tue Nov 24, 2015 6:12 pm

Extending the .bullet format

Post by blademaster »

greetings, I've got a question about Extending the .bullet format.

Enable the 'INTERNAL_UPDATE_SERIALIZATION_STRUCTURES' - DONE
Add it to the "char *includefiles[]" array. - DONE
Get new Bullet/src/LinearMath/btSerializer.cpp file. - DONE

Well, I know about btDefaultSerializer and I known how to save simple .bullet to file. But how can I save my own data structure to .bullet file and how can I load it from .bullet file?
blademaster
Posts: 3
Joined: Tue Nov 24, 2015 6:12 pm

Re: Extending the .bullet format

Post by blademaster »

any ideas?
jszirani
Posts: 4
Joined: Tue Dec 15, 2015 3:54 pm

Re: Extending the .bullet format

Post by jszirani »

My guess is that you would have to make a new BT_MAKE_ID and invoke serializer->finalizeChunk with that ID

Later, you can catch the buffer in btBulletFile::parseData and then do whatever you want with it

I might be totally wrong tho, there's surely zillion details about it

Erwin Coumans surely knows best
blademaster
Posts: 3
Joined: Tue Nov 24, 2015 6:12 pm

Re: Extending the .bullet format

Post by blademaster »

thanks for the reply
jszirani wrote: there's surely zillion details about it
Where ? I can find only one article about it