AC3D TO BOX2D LIB

Previous topic - Next topic

djtoon

hi
im creating a glb function to read vertex points from vrml1 that i export from ac3d

for some reson i cant get the thing to work
here is the lib
test it and maybe fix and share :)
10x


[attachment deleted by admin]

Kitty Hello

Oh no.
The Box2D version crashes internally. And I can't reproduce it with visual studio.
In Common/BlockAllocator.cpp repleace these 2 functions.

Code (glbasic) Select

void* b2BlockAllocator::Allocate(int32 size)
{
return (void*) new char[size];
}

void b2BlockAllocator::Free(void* p, int32 size)
{
if (size == 0)
{
return;
}
delete [] p;
return;
}


It does not crash then. Maybe a new version of Box2D has fixed this issue?

djtoon

that fix't it :)
10x kitty

djtoon

heres the working version


[attachment deleted by admin]

djtoon

the polys seem to be transparent ( object dont collide with them) any idea why?

Kitty Hello

Maybe you did (not) include the last point the same as the first?
No idea :(

djtoon

its ok its just the covent vs concave polys in box2d :)
it works ok
10x