I havent used bullet but I appreciate how hard Irrlicht is to use and especially how hard it is to integrate a physics and rendering engine together. Impressive work. Well done.
The btCollisionObject class of the Bullet Physics engine has a function "void setUserPointer (void *userPtr)", which allows you to link your Meshes to your Bullet representation of them. When you go through the list of your collision objects, you can just cast the user pointer to your mesh type and apply the collision object's motion state's transformations to it.
I can't remember what it was called in Irrlicht (I've moved to Ogre :) ), but its the class that lets you apply orientation, scale and position of the mesh to. :3
Ok. So why did you move to Ogre? I mean what was not possible to do using Irrlicht but was possible with Ogre? I love to read all those Ogre vs. Irrlicht threads around, so your opinion as someone who has used both would interest me ;)
Actually I tried Ogre before I tried Irrlicht. It was hard to learn the basics of Ogre, so I looked for something easier and Irrlicht is extremely easy to get going with. Irrlicht reached its limits fairly quickly though especially in regard to filetypes (my models looked messed up :) ). So I went back to Ogre and noticed that after learning the Irrlicht basics it was significantly easier to start work with Ogre. I find Ogre to be more sophisticated and it feels more complete in its features.
@tacit2367 I had the same doubts about Irrlicht vs. Ogre, but finally I choose Irrlicht, didn't tried Ogre yet. I guess I'm still on a beginner level.
I havent used bullet but I appreciate how hard Irrlicht is to use and especially how hard it is to integrate a physics and rendering engine together. Impressive work. Well done.
rodentwizard 1 year ago
@rodentwizard Thank you very much indeed! :D
tacit2367 1 year ago
nice one. its a year ago when you uploaded this, but do you remember how you linked the motionstate of the objects to the meshes?
boogie0815 2 years ago
Thank you! :)
The btCollisionObject class of the Bullet Physics engine has a function "void setUserPointer (void *userPtr)", which allows you to link your Meshes to your Bullet representation of them. When you go through the list of your collision objects, you can just cast the user pointer to your mesh type and apply the collision object's motion state's transformations to it.
tacit2367 2 years ago
So in your case the "mesh type" is an scenegraph node of the Irrlicht engine, right?
boogie0815 2 years ago
I can't remember what it was called in Irrlicht (I've moved to Ogre :) ), but its the class that lets you apply orientation, scale and position of the mesh to. :3
tacit2367 2 years ago
Ok. So why did you move to Ogre? I mean what was not possible to do using Irrlicht but was possible with Ogre? I love to read all those Ogre vs. Irrlicht threads around, so your opinion as someone who has used both would interest me ;)
boogie0815 2 years ago
Actually I tried Ogre before I tried Irrlicht. It was hard to learn the basics of Ogre, so I looked for something easier and Irrlicht is extremely easy to get going with. Irrlicht reached its limits fairly quickly though especially in regard to filetypes (my models looked messed up :) ). So I went back to Ogre and noticed that after learning the Irrlicht basics it was significantly easier to start work with Ogre. I find Ogre to be more sophisticated and it feels more complete in its features.
tacit2367 2 years ago
@tacit2367 I had the same doubts about Irrlicht vs. Ogre, but finally I choose Irrlicht, didn't tried Ogre yet. I guess I'm still on a beginner level.
conatcha 1 year ago