Gravity and Rigid Body Simulation

Oh and Before you send in the inevitable “It doesn’t work” posts make sure of four things

  1. Your using Windows
  2. Your using Blender 2.28a
  3. You have python 2.2 installed not 2.3
  4. You put ode.dll into your blender.exe folder or another folder on your python path

that should fix alot of problems

MacBlender

Going to bed right now, but I’ll try it out at work tomorrow. Thanks!

Excellent work! Adding flashy stuff like ODE physics and Fiber 2 is what is going to get people to start noticing Blender! Keep it up!

TorQ

I didn’t notice this thread before, but WOW! very cool! I have been waiting for something like this to come along.

well as seen in the avi’s the rotation isn’t perfect but it is being worked on, as is adding more bounds for other shapes.

also if you’re makign your own files with the ODE in them remember that the floor is automatically set at 0 so make sure all affected bounds are above zero or else you’ll have problems

Glad to help the community :smiley:

MacBlender

P.S. The ports are on their way

MacBlender, could you please just quickly tell us how to use the script. I downloaded the demo file but can’t quite figure it out.

Cheers

I am in the process of learning blender now, and I am wondering if ODE will work with blender 2.25 and its game module?

well you stick the DLL into the blender folder, load up the blend file and hit alt+P int he text window.

now because of a problem with Object.Link(ipo) you have to manually add the ipo to each object. so IpoSphere would be attached to the sphere and IpoCube would be attached to the cube.

hope that helps.

MacBlender

it should… although you will have to write the gamelogic script for it since i don’t do game engine stuff.

The ODE will work for any version of Windows Blender because its a seperate library. all one would have to do is modify the Blender module script for the different versions as the 2.28a api is different.

Macblender

oooo please post an alpha OSX file. Anytthing that you can, I love testing super bugy stuff… ^v^

or at least a blend file that already has the ipo created

Ok… Ok… You asked for it. ODE on other systems!

since i don’t know a universal compression utility and .zip seems pretty windows oriented. i offer it to you in this simple format, non zipped.

MacOS:
www.angelfire.com/anime4/nuvares/Blender/ode.pyd

Linux:
www.angelfire.com/anime4/nuvares/Blender/ode.so

i offer no guarantees that these will work, and you must stick them in you blender folder.

the script is here:
www.angelfire.com/anime4/nuvares/Blender/ode.py

there ya go, stop bugging me… my wife doesn’t even complain this much… and i’m probably goign to get hurt for saying that… make that i will get hurt… she’s coming this way… NOOOOOOOOOOOOOOOOOO!
claws at door frame as he’s dragged away

c-yall l8r. :stuck_out_tongue:

MacBlender

by the way, the MacOS version should work for all other OS’s

MacBlender

errrrrrrrr when will everybody learn Macs CAN see .zip files now.

wwweeeeeeeeeeeee testing now ^v^

Probably the same day you learn what “work in progress” means :stuck_out_tongue:

Martin

Probably the same day you learn what “work in progress” means :stuck_out_tongue:

Martin[/quote]

means what ! :stuck_out_tongue: Oh it was supost to crash my system, silly meee ^v^

Ok don’t keeeellll me … OSX works like Unix ( as it is unix ) and I cp’d the ode.py to my /usr/lib/python2.2

AND I copyed the folder inside of blender.app to the blender dir area folder…

plus the other file…

and I get this

Using a clean Global Dictionary.
Run Python script “ode.py” …
Traceback (most recent call last):
File “/usr/lib/python2.2/ode.py”, line 22, in ?
import ode

File “/usr/lib/python2.2/ode.py”, line 121, in ?
world = ode.World()

AttributeError: ‘module’ object has no attribute ‘World’

well considerign that the MacOS version works on things like sun and freebsd and whatnot i don’t know if they read zips. if they don’t then i’d have alienated them

odd… i’ll look into that

try switchign ode with Ode or World with world

MacBlender

ode.py is the file you put in blender. It is the actual script that you run. The file you need to copy in your PythonPath is the DLL/PYD/SO.

I guess using a different name for the actual script might be a good idea.

Martin
PS: I was suppose to work on cleaning the rotation bug this week end, but well, I had some rigging to do, bf meeting, source coding… :frowning:

no good