No love for OgreBullet?
-
- Greenskin
- Posts: 115
- Joined: Wed Dec 07, 2011 9:05 pm
- x 4
No love for OgreBullet?
Hello all.
When I started my project, I thought that integrating CEGUI will be the hardest part, but I was wrong: getting a physics engine to work correctly is the hardest thing to do. I wanted to use Newton, but no matter what, I can't get OgreNewt to work. Then, I found BtOgre and I was happy that there's a simple wrapper for a popular physics engine. Then, I've discovered it has a serious memory leak, which, depending on the scene, could cause hundreds of megabytes to get wasted.
Then, I thought I'll give OgreBullet a try. Everyone complained that it's a nightmare to get it to compile and work, but even if I'm just a beginner, I get it to compile (including the demos) in about 20 minutes. And it works. And has no memory leaks, at least not with my current test application.
So my question is: is there a specific reason why everybody avoids using it?
When I started my project, I thought that integrating CEGUI will be the hardest part, but I was wrong: getting a physics engine to work correctly is the hardest thing to do. I wanted to use Newton, but no matter what, I can't get OgreNewt to work. Then, I found BtOgre and I was happy that there's a simple wrapper for a popular physics engine. Then, I've discovered it has a serious memory leak, which, depending on the scene, could cause hundreds of megabytes to get wasted.
Then, I thought I'll give OgreBullet a try. Everyone complained that it's a nightmare to get it to compile and work, but even if I'm just a beginner, I get it to compile (including the demos) in about 20 minutes. And it works. And has no memory leaks, at least not with my current test application.
So my question is: is there a specific reason why everybody avoids using it?
- jacmoe
- OGRE Retired Moderator
- Posts: 20570
- Joined: Thu Jan 22, 2004 10:13 am
- Location: Denmark
- x 179
- Contact:
Re: No love for OgreBullet?
No reason, except that it isn't maintained by anyone (IIRC).
My advice would be: pick one, adopt it, stick with it, make it your own.
Would have been great if those projects was at Bitbucket or Github so that people could fork and contribute, but AFAIK they're not.
My advice would be: pick one, adopt it, stick with it, make it your own.
Would have been great if those projects was at Bitbucket or Github so that people could fork and contribute, but AFAIK they're not.
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
-
- Gremlin
- Posts: 178
- Joined: Fri Dec 24, 2010 7:55 pm
- x 10
Re: No love for OgreBullet?
Is the author currently aware of this? (i.e., is it a known issue?)N_K wrote:I found BtOgre ... Then, I've discovered it has a serious memory leak, which, depending on the scene, could cause hundreds of megabytes to get wasted.
If not, it's worth reporting as the author (nikki) is still doing commits:
http://www.ogre3d.org/forums/viewtopic. ... &start=200
- Mind Calamity
- Ogre Magi
- Posts: 1255
- Joined: Sat Dec 25, 2010 2:55 pm
- Location: Macedonia
- x 81
Re: No love for OgreBullet?
Where exactly did you find that memory leak ? I haven't noticed anything myself.
BitBucket username changed to iboshkov (from MindCalamity)
Do you need help? What have you tried?
- xavier
---------------------
HkOgre - a Havok Integration for OGRE | Simple SSAO | My Blog | My YouTube | My DeviantArt
Do you need help? What have you tried?
- xavier
---------------------
HkOgre - a Havok Integration for OGRE | Simple SSAO | My Blog | My YouTube | My DeviantArt
- jacmoe
- OGRE Retired Moderator
- Posts: 20570
- Joined: Thu Jan 22, 2004 10:13 am
- Location: Denmark
- x 179
- Contact:
Re: No love for OgreBullet?
Take a closer look at the history for the btOgre project and you'll notice that there hasn't been any development going on since it was initially committed to the Git repository.
You can fork the project, though. I recommend that you do that.
OgreBullet should also be on Bitbucket or Github, so that people can contribute to it.
You can fork the project, though. I recommend that you do that.
OgreBullet should also be on Bitbucket or Github, so that people can contribute to it.
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
-
- Gremlin
- Posts: 194
- Joined: Sat Sep 02, 2006 12:27 am
- x 2
Re: No love for OgreBullet?
In my experience, integrating any of the Bullet wrappers into my code took the same or more effort than using Bullet directly. I did cherry pick a debug renderer but everything else is just straight Bullet.
-
- OGRE Expert User
- Posts: 1920
- Joined: Sun Feb 19, 2012 9:24 pm
- Location: Russia
- x 201
Re: No love for OgreBullet?
Exactly. And the simplest debug renderer is just a line list operation.
-
- Greenskin
- Posts: 115
- Joined: Wed Dec 07, 2011 9:05 pm
- x 4
Re: No love for OgreBullet?
I see then, the main problem is that it's not maintained anymore.
As a beginner, I have no choice but to experiment and try to find a wrapper which works out of the box (and leaves no mess behind). My coding skills are limited at the moment. I have enought skills to utilize a wrapper which works, but I can't write my own, or fix a serious flaw in an existing one.jacmoe wrote:My advice would be: pick one, adopt it, stick with it, make it your own.
It seems the leak is somewhere around BtOgre::VertexIndexToShape. Trimeshes/collision shapes are not destroyed correctly after the conversion, and neither they are after deleting the shapes manually. It's actually a known problem, just not in this forum. There are some posts on the Bullet forum about this, and you can find reports about this in a few projects which have bug trackers and uses BtOgre.Mind Calamity wrote:Where exactly did you find that memory leak ? I haven't noticed anything myself.
I wanted to avoid it and use Newton exactly for this reason. Bullet is a great physics engine, but it's definitely not for the inexperienced.ppClarity wrote:In my experience, integrating any of the Bullet wrappers into my code took the same or more effort than using Bullet directly.
- mkultra333
- Gold Sponsor
- Posts: 1894
- Joined: Sun Mar 08, 2009 5:25 am
- x 114
Re: No love for OgreBullet?
I just use Bullet directly. As has been said, it's doesn't seem any more complex than using a wrapper. And you eliminate a extra level of convolution and possible bugs.
"In theory there is no difference between practice and theory. In practice, there is." - Psychology Textbook.
- nikki
- Old One
- Posts: 2730
- Joined: Sat Sep 17, 2005 10:08 am
- Location: San Francisco
- x 13
- Contact:
Re: No love for OgreBullet?
I must confess I haven't paid much attention to BtOgre since the time I made it as a quick little utility for a game I was working on. Last year I've been in college and pretty busy with courses, and this summer I have a job. Have you looked into the memory leak much? Does it seem like it would too hard to fix?
-
- Greenskin
- Posts: 115
- Joined: Wed Dec 07, 2011 9:05 pm
- x 4
Re: No love for OgreBullet?
For a beginner like me, yes, it would be too hard to fix the problem in BtOgre itself, but on the other hand, it can be fixed easily by doing a simple modification to the Bullet collision library (although this fix is kind of hacky, and it shouldn't be done this way).
Anyway, please don't take this whole memory leak thing as an insult, I'm thankful for your work on BtOgre, and I respect that you don't have time to maintain it anymore. I just wanted to tell the experts about this problem, hoping that someone will eventually find the leak and fix it, making this neat little interface even better.
Anyway, please don't take this whole memory leak thing as an insult, I'm thankful for your work on BtOgre, and I respect that you don't have time to maintain it anymore. I just wanted to tell the experts about this problem, hoping that someone will eventually find the leak and fix it, making this neat little interface even better.
- nikki
- Old One
- Posts: 2730
- Joined: Sat Sep 17, 2005 10:08 am
- Location: San Francisco
- x 13
- Contact: