Load3D Object OfxBullet

Hi all,
I can’t load a 3D Object with OfxBullet.

I change resources from example codes CustomShapesExample in this way:

---- ofApp.cpp
.
// his model is huge! scale it down 
	ofVec3f scale(1, 1, 1);
	// 3D logo
	assimpModel.loadModel("Aston.3ds", true); //Link: https://free3d.com/3d-model/aston-martin-vantage-12213.html
	assimpModel.setScale(scale.x, scale.y, scale.z);
	assimpModel.setPosition(0, 0, 0);
.

But when compile there’s a violation like this:

image

Anyone can help me?

I need to load 3D object with Bullet Physics.

Thank you men!

Hi @MikAngelus,

Meshes for 3D physics should be lower in poly count. The model you linked to has 400k polygons so is probably causing the crash. You could start with a simple bullet box and use that to move around the high res mesh. Or you could load a low res version of the car as a collider mesh into bullet.

Best,
Nick

2 Likes

Hi @NickHardeman ,
this is my new problem:

Can you help me?

Thank you so much.