[Bf-committers] restore Game Engine project

Kester Maddock bf-committers@blender.org
Sat, 16 Aug 2003 19:53:47 +1200


Hi Gregor,

I know OPCODE is now included in ODE, I have written mesh collision support 
for Blender's polyhedra bounding box.  However, ODE is only using OPCODE to 
detect collisions, and then ODE figures out where the collision point occured 
so you can create a contact point.  ODE currently does primitive <-> 
primitive collisions and { box, ray, sphere} <-> mesh collisions.  There are 
some bugs in the box <-> mesh collisions - they don't seem to work.  My 3d 
maths is still too simple to be of any help for this.

OPCODE doesn't store any mesh data (one of it's design goals is minimum memory 
usage) and has an interface similar to GL vertex arrays.  It's similar 
enought that a design goal would be to use the same arrays for GL as for 
collision detection.  Currently I'm building the arrays myself.

Currently, I have Box, Sphere, Cylinder & Polyhedra colliding, with the above 
caveats.

So, SOLID would bring cone primitive and mesh <-> mesh collision (which is 
non-trivial to implement) to Blender.

I will try to generate a patch for you all to try tomorrow.  I am currently 
using ODE from ODE cvs (about a week old), you can update that yourself. :)

Kester


On Sat, 16 Aug 2003 4:40, Gregor Mückl wrote:
> Am Freitag, 15. August 2003 15:12 schrieb LarstiQ:
> > On Fri, Aug 15, 2003 at 02:50:58PM +0200, Gregor Mückl wrote:
> > > Am Freitag, 15. August 2003 11:35 schrieb Kester Maddock:
> > > > Hi Ton,
> > > >
> > > > I've just been looking at the physics (ODE) side of things.
> > > >
> > > > Currently, I have to say bring back solid! ODE is mostly a physics
> > > > library while solid is a collision detection library - ODE doesn't
> > > > care about collision detection; if you can find out where a collision
> > > > occurs ODE can work out how the physics should react.  Solid also has
> > > > cones - good for culling/radar sensor.
> > >
> > > Seems like you're relying on outdated information. At least recent CVS
> > > versions of ODE have OPCODE, a dedicated collision detection library,
> > > fully integrated. I cannot recall now wether the latest releast 0.39
> > > also includes this. OPCODE comes with the ODE source code and therefore
> > > is no extra dependency.
> >
> > Then, should we replace the current ode version in extern by a new
> > upstream release/cvs checkout?
> >
> > LarstiQ
>
> I can't really answer this question. But if you want to update, I'd
> recommend ODE 0.39, as it already includes OPCODE and should be a stable
> release (just checked this).
>
> Regards,
> Gregor
>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers@blender.org
> http://www.blender.org/mailman/listinfo/bf-committers