Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Wed Apr 04, 2012 6:47 pm 
Offline

Joined: Mon Sep 12, 2011 6:42 pm
Posts: 9
Hi,
I'm using the technique to export a Bullet file (the scene has static objects, dynamic rigid body objects, and ragdolls) from within the Blender Game Engine via a keyboard controller hooked up to my export script. This process seems to work pretty well, with one issue.

I am seeing slightly different results when using Blender-64 or Blender-32. I suspect the issue is in the Bullet serialization. When my 32 bit application loads the Bullet file exported from Blender 32 bit on a 32 bit PC, I see no problems. If I use the same Bullet file (still from 32 bit Blender) on a 64 bit PC with my 32 bit application, I see bad floating point values (e.g. -1.#IND) for at least one of the ragdoll objects (btCollisionObject has a bad m_basis in its m_worldTransform).

All these tests are in Windows.

I am in the process of testing an export with 64 bit Blender for my 64 bit PC (with 32 bit application). I will post back with these results later today.
Where might this difference be coming from? Is it Bullet serialization or deserialization or both? Has anyone else experienced this?


I found that I need to use a 32-bit build of Blender to export a file. I performed this on my 64-bit PC, but I'm not sure if the platform is important.

Thanks for any tips!


Last edited by cyrfer on Fri Aug 24, 2012 9:05 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Thu Apr 05, 2012 3:41 pm 
Offline
Site Admin
User avatar

Joined: Sun Jun 26, 2005 6:43 pm
Posts: 3744
Location: California, USA
This should not happen, Bullet serialization was designed to solve 32bit/64bit, endianness and versioning issues.

Can you file an issue in the Bullet tracker (http://code.google.com/p/bullet/issues/list) with
1) Blender full version info
2) attach the .blend file
3) attach the .bullet file that causes problems?
Thanks a lot,
Erwin


Top
 Profile  
 
PostPosted: Thu Apr 05, 2012 5:30 pm 
Offline

Joined: Mon Sep 12, 2011 6:42 pm
Posts: 9
Thanks for looking into this issue, reported as Issue 618.
John


Top
 Profile  
 
PostPosted: Tue Jul 31, 2012 11:55 pm 
Offline

Joined: Mon Sep 12, 2011 6:42 pm
Posts: 9
Thank you for the fix! The diff looks like a great improvement. I hope to test it soon with Sergej's help.
http://code.google.com/p/bullet/issues/ ... id=618#c15

Here is the bug report for Blender.
http://projects.blender.org/tracker/?fu ... group_id=9

One thing that may hold back Blender from using this fix is that Bullet does not have a new release. Will there be a new release soon? I know they are trying to release around SIGGRAPH time, but that may be sliding...

PS. Will you be attending? I'll be there!


Last edited by cyrfer on Wed Aug 01, 2012 8:57 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Wed Aug 01, 2012 6:55 pm 
Offline

Joined: Mon Sep 12, 2011 6:42 pm
Posts: 9
Actually, if I now understand the diff from the patch, the fixes were only in READING the .bullet file. Hopefully, I can test this fix in my code without a new Blender build. Will get back to you on this...


Top
 Profile  
 
PostPosted: Fri Aug 24, 2012 9:04 pm 
Offline

Joined: Mon Sep 12, 2011 6:42 pm
Posts: 9
I am told the changes to Bullet in r2542 have helped our issues when reading .bullet files. Thanks again!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: Exabot [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group