View Full Version : Bullet Physics Library / COLLADA physics viewer
erwincoumans
2006.07.27, 02:07 AM
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!)
OneSadCookie
2006.07.27, 08:24 AM
Info about building a Universal Binary on the command-line: http://tips.onesadcookie.net/tips/published/Building+Autotooled+Projects+with+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)
aarku
2006.07.27, 07:59 PM
How's it compare to ODE and Newton? (PhysX and Havok too, if anyone can make a valid comparison...)
Cheers,
-Jon
erwincoumans
2006.07.27, 09:10 PM
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.
erwincoumans
2006.08.11, 04:21 AM
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 (http://www.continuousphysics.com/ftp/pub/test/index.php?dir=physics/&file=CCD_PHYSICS_DEMO-MacOSX-universal.tgz)
Thanks,
Erwin
Frank C.
2006.08.11, 06:33 AM
Works on my (aging) Dual 800Mhz G4. Looks good, but the simulation's a bit much for my comp to handle!
erwincoumans
2006.08.11, 07:59 PM
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/test/index.php?dir=physics/demos/&file=BspPhysicsDemoMacOSX_Universal.tgz
Thanks,
Erwin
Fenris
2006.08.11, 08:15 PM
Crashes on startup, since it tries to allocate 3.4 gigabytes of RAM... :) I'm intrigued by this, however, so I'd love it if you could produce a less hungry version. ;)
erwincoumans
2006.08.11, 08:20 PM
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
Malarkey
2006.08.11, 08:31 PM
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
erwincoumans
2006.08.11, 08:35 PM
>>Machine is Little Endian
Perhaps a bug in the endianess check. Is your G5 little or big endian? Is it a PPC?
Thanks,
Erwin
Frank C.
2006.08.11, 08:44 PM
Same "Machine is Little Endian" problem here - definitely a endian bug.
G5's (and G4's and G3's) are big endian PPC.
erwincoumans
2006.08.11, 08:46 PM
I fixed some issues related to endian-check.
Can you verify this new Universal Binary?
http://www.continuousphysics.com/ftp/pub/test/index.php?dir=physics/demos/&file=BspBulletPhysicsDemoMacOSX0.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
ERaZer
2006.08.11, 10:16 PM
I fixed some issues related to endian-check.
Can you verify this new Universal Binary?
http://www.continuousphysics.com/ftp/pub/test/index.php?dir=physics/demos/&file=BspBulletPhysicsDemoMacOSX0.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...
Fenris
2006.08.12, 04:59 AM
Works fine now! :) Nifty stuff indeed.
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.