Crashes with Compound Collisions.

Report any bugs here and we'll post fixes

Moderators: Sascha Willems, Thomas

Crashes with Compound Collisions.

Postby Carli » Fri May 28, 2010 9:27 am

Hi,

i'm working on a convex decomposition class for generating exact newton collisions from models.
But there are some crashes in the Engine:

- NewtonCreateConvexHull crashes when I pass less than 4 points
- NewtonConvexCollisionCalculateInertialMatrix and NewtonCollisionCalculateAABB crash under certain conditions (f.e. when all points are in a plane.)

Maybe, newton could tolerate these "wrong" parameters or interpret them as null collisions or interpret them as thin planes etc., but I don't want them to crash in a SEGFAULT please.
Carli
 
Posts: 245
Joined: Fri Oct 02, 2009 5:28 am

Re: Crashes with Compound Collisions.

Postby Carli » Fri May 28, 2010 11:53 am

ah, the creation routine returned nil.

But why can't a convex hull of a flat surface be created?
Carli
 
Posts: 245
Joined: Fri Oct 02, 2009 5:28 am

Re: Crashes with Compound Collisions.

Postby Julio Jerez » Fri May 28, 2010 12:06 pm

Because a Flat surface does not has volume.

how are you making the convex decomposition that is generating flat convex?
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Crashes with Compound Collisions.

Postby Carli » Fri May 28, 2010 12:21 pm

I have a container and I push vertices (+normals) into the container.
The container contains a container of points: a compound of convec hulls.

Each point, if it fits into some hull, can punch some other points out of the hull into an other hull.
Unfortunately, there is something wrong with the algo.
Carli
 
Posts: 245
Joined: Fri Oct 02, 2009 5:28 am


Return to Bugs and Fixes

Who is online

Users browsing this forum: No registered users and 7 guests

cron