tips Mesh to shape

Please don't post Bullet support questions here, use the above forums instead.
miccinov
Posts: 8
Joined: Fri Apr 15, 2011 9:18 am

tips Mesh to shape

Post by miccinov »

Hi, i want to create a chess. So for example i have a tower, now for the shape i do:

BtOgre::StaticMeshToShapeConverter convProva(entityTower);
btCollisionShape* shTower=convProva.createConvex();
shTower->setLocalScaling(BtOgre::Convert::toBullet(nodeTower->getScale()));

well, it's work...but slow my scene o.O....my chess have too vertix...another idea?
miccinov
Posts: 8
Joined: Fri Apr 15, 2011 9:18 am

Re: tips Mesh to shape

Post by miccinov »

So...i found a topic about http://codesuppository.blogspot.com/201 ... onvex.html!
But this library can work with ogre+bullet?

I have this mesh:
Image



and this is the result with

BtOgre::StaticMeshToShapeConverter convProva(entity);
btCollisionShape* shProva=convProva.createConvex();
shProva->setLocalScaling(BtOgre::Convert::toBullet(nProva->getScale()));
btRigidBody* rbProva=this->createRigidBody(0.1,nProva,tr,shProva);

where entity is my mesh....

Image



bad result....too collision line...low fps...someone helps?

sorry for my english! :roll: