2.68, Multithreaded on PC and large convex shapes

GilsonLaurent
Posts: 8
Joined: Wed Oct 31, 2007 2:59 pm

2.68, Multithreaded on PC and large convex shapes

Post by GilsonLaurent »

Hi,

I have hit a assert in SpuCollisionShapes, line 395. One of my convex shapes has more then 128 points (i know it is bad to have large convex hulls and it should be less).

I guess it is a limit to protect the Cell-SPUs. Does this limit also apply to the PC-Version (linux, pthread)?

Thanks
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: 2.68, Multithreaded on PC and large convex shapes

Post by Erwin Coumans »

How many points does your convex shape have? Do you really need more then 128 points?

You can automatically reduce the number of points, by using the btShapeHull utility:

Code: Select all

	btShapeHull* triHull = new btShapeHull (hullShape);
	triHull->buildHull (0.0);
Otherwise, feel free to change the source code, MAX_NUM_SPU_CONVEX_POINTS in SpuCollisionShapes.h
Thanks,
Erwin
GilsonLaurent
Posts: 8
Joined: Wed Oct 31, 2007 2:59 pm

Re: 2.68, Multithreaded on PC and large convex shapes

Post by GilsonLaurent »

Thanks for the quick answer

Yes, it is more then 128 points. Right now i cannot change them or reduce the data automaticlly.

Thanks, it works now.