[ODE] ODE on MSVC8

Anders Olofsson anders.olofsson at biologigrand.ac
Thu Dec 29 07:39:51 MST 2005


It was my fault (surprise), my trimesh loader failed.

But I have some other trimesh problems now:

* The spheres seems to collide before they touch the triangles. (Not all 
the times though)
* Jumpy/jerky motion when the spheres are rolling on the triangles. (a 
sphere can suddenly make a jump up in the air for example)

The first thing I thought about was the contact surface parameters, I've 
tried various settings but without much improvement. I have fairly huge 
triangles and small spheres, can that cause problems somehow?. I have 
various sizes on the triangles, on the less bigger ones the spheres motion 
is less jerky, but I could imagine things too. I could make a movie about 
it so you can see for yourself.

Oh, I have a ground plane below the trimesh and on the plane the spheres 
are rolling smoothly, no jumpy/jerkyness there and its the same contact 
surface parameters used (same nearcallback function for everything). So I'm 
a bit stumped.

Thanks for your input!.

--Anders

At 00:15 2005-12-29, Graham Fyffe wrote:
>ODE builds nicely in MSVC8.  I did need to make the following change
>to get it to stop whining:
>
>
>--- Z:\INSTALL\SWAYdriverDEV\ode-0.5\ode\src bk
>original\collision_quadtreespace.cpp    Fri Nov 14 22:09:26 2003 UTC
>+++ 
>Z:\INSTALL\SWAYdriverDEV\ode-0.5\ode\src\collision_quadtreespace.cpp        Wed
>Dec 28 19:17:55 2005 UTC
>@@ -351,7 +351,7 @@
>
>         int BlockCount = 0;
>         for (int i = 0; i <= Depth; i++){
>-               BlockCount += (int)pow(SPLITS, i);
>+               BlockCount += (int)pow((dReal)SPLITS, i);
>         }
>
>         Blocks = (Block*)dAlloc(BlockCount * sizeof(Block));
>@@ -384,7 +384,7 @@
>
>         int BlockCount = 0;
>         for (int i = 0; i < Depth; i++){
>-               BlockCount += (int)pow(SPLITS, i);
>+               BlockCount += (int)pow((dReal)SPLITS, i);
>         }
>
>         dFree(Blocks, BlockCount * sizeof(Block));
>
>So you could download the source, and rebuild it.
>
>- Graham
>
>
>
>On 12/24/05, Anders Olofsson <anders.olofsson at biologigrand.ac> wrote:
> > I downloaded the prebuilt library
> > (ode-bin-0.5-msvc-SINGLE-release-trimesh.zip) and having problems with
> > trimeshes on MSVC8. No trimesh<->sphere collisions are detected!,
> > plane<->sphere and sphere<->sphere works fine though. My project worked
> > fine on MSVC7 (using the same prebuilt ODE). Autodisable seems strange too,
> > after a sphere has come to rest and I put it up in "midair", gravity
> > doesn't pull it down (still disabled).
> >
> > I'm probably doing something wrong, not sure what though. Going to try
> > msvc7 again later.
> >
> > Merry christmas and that stuff everyone!
> >
> > _______________________________________________
> > ODE mailing list
> > ODE at q12.org
> > http://q12.org/mailman/listinfo/ode
> >
>
>_______________________________________________
>ODE mailing list
>ODE at q12.org
>http://q12.org/mailman/listinfo/ode



More information about the ODE mailing list