OgreBullet Physic Wrapper [Source + Binary Release.]

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
User avatar
bhammond
Gnoblar
Posts: 4
Joined: Mon Apr 09, 2007 5:10 pm

Post by bhammond »

tuan kuranes wrote:Sorry missed the post.
after some minor code fixes, got it built on AMD64 running Ubuntu Linux.
Would be interested by a patch against latest cvs.
OK I will do... but it won't be for a while. I'm very busy working on a grad school project. I can do this in about a month.
So, granted I'm a [Ogre]Bullet newbie but I don't see any obvious place where one can be notified of a collision
It seems I just missed implementing that one, as I use it as a physic engine, not collision engine, even if I paid much attention making it seperated.
Feel free to add that and more (a collision only demo)... or if you don't feel implementing it, I can add it to my todo-list (which is huge, but if I find it simple and fast to implement, I'll do it.).
Out of curiosity, what are you using for CD?

I did notice that the library built by OgreBullet didn't include any of your OgreBulletCollision wrapper code :-) I added that.

I created a notification class already but haven't tested it much... I'll update this thread with any future updates.
Arcanor
Halfling
Posts: 63
Joined: Wed Jan 24, 2007 4:21 pm

Post by Arcanor »

I need gravity, user-controlled kinetic movement of a "player object", and custom collisions for my RPG-style game. Am I correct in assuming that at this time it's safer to implement what I need from bullet by directly implementing the library into my code? Or is ogrebullet in useable form yet for the things I'll need?

I've got it all (mostly) working using OgreNewt, but I'd like to see how it could be done under bullet as an alternative. I'm particularly interested in how bullet seems to "add in" the kinetic movement on top of the dynamic forces. This has proven to be a bit of a struggle for me under newton, as calling setVelocity() on an object essentially ignores any forces/acceleration.
Arcanoria - a SMORPG project
http://www.arcanoria.com
User avatar
gugus
Halfling
Posts: 96
Joined: Mon Feb 05, 2007 6:35 pm
Location: France Mulhouse

Post by gugus »

Hello.
I am having "strange" errors while compiling.
..\..\src\Shapes\OgreBulletCollisionsTrimeshShape.cpp:66: error: no matching function for call to `btBvhTriangleMeshShape::btBvhTriangleMeshShape(btTriangleMesh*&)'
C:/OgreSDK/bullet/Nouveau dossier/bullet/src/BulletCollision/CollisionShapes/btBvhTriangleMeshShape.h:25: note: candidates are: btBvhTriangleMeshShape::btBvhTriangleMeshShape(const btBvhTriangleMeshShape&)
C:/OgreSDK/bullet/Nouveau dossier/bullet/src/BulletCollision/CollisionShapes/btBvhTriangleMeshShape.h:31: note: btBvhTriangleMeshShape::btBvhTriangleMeshShape(btStridingMeshInterface*, bool)
..\..\src\Shapes\OgreBulletCollisionsTrimeshShape.cpp: In member function `bool OgreBulletCollisions::TriangleMeshCollisionShape::drawWireFrame(OgreBulletCollisions::DebugLines*) const':
..\..\src\Shapes\OgreBulletCollisionsTrimeshShape.cpp:80: error: `btMyTriangle' was not declared in this scope
..\..\src\Shapes\OgreBulletCollisionsTrimeshShape.cpp:80: error: expected `;' before "myTri"
..\..\src\Shapes\OgreBulletCollisionsTrimeshShape.cpp:82: error: `myTri' was not declared in this scope

what must i do?It looks like as if some function were wrong...
User avatar
gugus
Halfling
Posts: 96
Joined: Mon Feb 05, 2007 6:35 pm
Location: France Mulhouse

Post by gugus »

i correct the bug(it was my fault).But now,when i try to compile demos,i have a lincker error:
..\..\..\..\bullet\lib\Debug/libbulletdynamics_d.a(btDiscreteDynamicsWorld.o):btDiscreteDynamicsWorld.cpp:(.text+0x30c): undefined reference to `btSimulationIslandManager::btSimulationIslandManager()'
..\..\..\..\bullet\lib\Debug/libbulletdynamics_d.a(btDiscreteDynamicsWorld.o):btDiscreteDynamicsWorld.cpp:(.text+0x656): undefined reference to `btSimulationIslandManager::btSimulationIslandManager()'
..\..\..\..\bullet\lib\Debug/libbulletdynamics_d.a(btDiscreteDynamicsWorld.o):btDiscreteDynamicsWorld.cpp:(.text+0x2363): undefined reference to `btSimulationIslandManager::buildAndProcessIslands(btDispatcher*, std::vector<btCollisionObject*, std::allocator<btCollisionObject*> >&, btSimulationIslandManager::IslandCallback*)'

Please,help me!

PS:why is there no addon forum?
Funcracker
Halfling
Posts: 43
Joined: Tue Mar 20, 2007 4:41 pm

Post by Funcracker »

gugus wrote:PS:why is there no addon forum?
This wrapper is still pretty new. I'm sure an addon forum will come when Tuan has some spare time left to create one.
User avatar
tuan kuranes
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 2653
Joined: Wed Sep 24, 2003 8:07 am
Location: Haute Garonne, France
x 4

Post by tuan kuranes »

Now that someone asked for, I added a dedicated forum, thus locking this thread:

http://www.ogre3d.org/phpBB2addons/viewforum.php?f=12

(please repost any request overthere.)