Bullet Physics Library / COLLADA physics viewer

Member
Posts: 27
Joined: 2006.07
Post: #1
The open source physics library Bullet is also available for MacOS X.
It includes a COLLADA Physics Viewer, that can import files generated with Maya (ColladaMaya), Max, XSI and Blender 2.42.

Download here: http://bullet.sourceforge.net

Thanks,
Erwin Coumans
(I just switched to Mac, and the Macbook Pro is great!)
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
Info about building a Universal Binary on the command-line: http://tips.onesadcookie.net/tips/publis...Xcode+SDKs

SConstruct to build a Universal Binary application with a proper application bundle: http://onesadcookie.com/svn/repos/Astro/SConstruct (obviously, the same ideas will work fine in a Makefile or whatever your build tool of choice is)
Quote this message in a reply
Moderator
Posts: 522
Joined: 2002.04
Post: #3
How's it compare to ODE and Newton? (PhysX and Havok too, if anyone can make a valid comparison...)

Cheers,
-Jon
Quote this message in a reply
Member
Posts: 27
Joined: 2006.07
Post: #4
Quote:How's it compare to ODE and Newton? (PhysX and Havok too, if anyone can make a valid comparison...)

The biggest benefit is that it is open source, and it has better collision detection then OPCODE/ODE. It has continuous collision detection, and proper convex hull and cylinder support, so it should be an improvement. Also, it has COLLADA physics import, which enables tools like Maya, Max, XSI and Blender. Bullet's collision detection will be soon part of ODE, so both libraries will interoperate.

It's an open source library, so best not to compare against closed source or commercial solutions. I'm ex-Havok engineer, and worked on PhysX too (Playstation 3 port), and I can tell they are better optimized and have better support.

Erwin

PS: thanks for the Universal Binary links, I'll check them out.
Quote this message in a reply
Member
Posts: 27
Joined: 2006.07
Post: #5
Bullet physics library has CMake support, which autogenerates Xcode projectfiles. This makes universal binary generation easier. See http://cmake.org , download cmake and run cmake -G Xcode .

Can someone verify this universal binary demo runs under PowerPC?

Download

Thanks,
Erwin
Quote this message in a reply
Member
Posts: 446
Joined: 2002.09
Post: #6
Works on my (aging) Dual 800Mhz G4. Looks good, but the simulation's a bit much for my comp to handle!
Quote this message in a reply
Member
Posts: 27
Joined: 2006.07
Post: #7
Thanks for testing. Can you test this binary, which loads a quake bsp file, and let's you shoot boxes. It should work on little and big endian machines (it will print it in the console).

http://www.continuousphysics.com/ftp/pub...versal.tgz

Thanks,
Erwin
Quote this message in a reply
Oldtimer
Posts: 834
Joined: 2002.09
Post: #8
Crashes on startup, since it tries to allocate 3.4 gigabytes of RAM... Smile I'm intrigued by this, however, so I'd love it if you could produce a less hungry version. Wink
Quote this message in a reply
Member
Posts: 27
Joined: 2006.07
Post: #9
We should be able to make it work together.
Do you have the console output? Can you copy/past it in a reply?

By the way, don't expect fancy rendering. It just loads the bsp, converts the static geometry into convex brushes, and then you can shoot boxes.

Thanks,
Erwin
Quote this message in a reply
Member
Posts: 257
Joined: 2004.06
Post: #10
This is the output that I get on my G5:

argc=1
argv[0]=/Users/vtagle/Downloads/Release/BSP_PHYSICS_DEMO
new name=/Users/vtagle/Downloads/Release/BSP_PHYSICS_DEMO.bsp
Machine is Little Endian
BSP_PHYSICS_DEMO(10061) malloc: *** vm_allocate(size=3623886848) failed (error code=3)
BSP_PHYSICS_DEMO(10061) malloc: *** error: can't allocate region
BSP_PHYSICS_DEMO(10061) malloc: *** set a breakpoint in szone_error to debug
terminate called after throwing an instance of 'std::bad_alloc'
what(): St9bad_alloc
Abort trap
logout

The brains and fingers behind Malarkey Software (plus caretaker of the world's two brattiest felines).
Quote this message in a reply
Member
Posts: 27
Joined: 2006.07
Post: #11
>>Machine is Little Endian

Perhaps a bug in the endianess check. Is your G5 little or big endian? Is it a PPC?
Thanks,
Erwin
Quote this message in a reply
Member
Posts: 446
Joined: 2002.09
Post: #12
Same "Machine is Little Endian" problem here - definitely a endian bug.

G5's (and G4's and G3's) are big endian PPC.
Quote this message in a reply
Member
Posts: 27
Joined: 2006.07
Post: #13
I fixed some issues related to endian-check.

Can you verify this new Universal Binary?
http://www.continuousphysics.com/ftp/pub...OSX0.2.tgz


The compiler didn't complain about an undefined enum, which hopefully caused the problem.
Alternatively, please buy 3.4 gigabytes of RAM and let me know if that helps ;-)

Thanks,
Erwin
Quote this message in a reply
Moderator
Posts: 130
Joined: 2002.04
Post: #14
erwincoumans Wrote:I fixed some issues related to endian-check.

Can you verify this new Universal Binary?
http://www.continuousphysics.com/ftp/pub...OSX0.2.tgz


The compiler didn't complain about an undefined enum, which hopefully caused the problem.
Alternatively, please buy 3.4 gigabytes of RAM and let me know if that helps ;-)

Thanks,
Erwin

Works for me (never tried the first version), but then again, I'm on a Intel Mac, so Little Endian for me...

"Gameplay Uber Alles. And if you can make it psychedelic too, great!" - Jeff Minter
Quote this message in a reply
Oldtimer
Posts: 834
Joined: 2002.09
Post: #15
Works fine now! Smile Nifty stuff indeed.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  On visibility culling and 2d physics engines TomorrowPlusX 1 5,413 Mar 16, 2011 07:47 AM
Last Post: Skorche
  Physics engine benchmark ideas. Skorche 6 7,639 Feb 28, 2011 06:36 AM
Last Post: Skorche
  Physics in a Game World mikey 5 4,451 Sep 20, 2009 08:58 AM
Last Post: mikey
  2D Physics Engine Philosophy Shunter 11 7,911 Jun 11, 2009 09:33 PM
Last Post: Shunter
  Help me with some high-school physics, please! TomorrowPlusX 6 3,693 May 10, 2009 10:09 AM
Last Post: Nevada