OgreBullet + Ogre 1.7 + Bullet 2.76 beta

zeko

21-02-2010 08:31:15

Yey, finally I got it working on WIN7 64 VS2008.
Got ogre 1.7 from SVN.
Got bullet 2.76 from SVN.
Used cmake on both to make VSBuilds.
Downloaded latest OgreBullet from SVN.
Updated all paths, enviromental variables as needed.
Applied 2.74 patch (as manual code change).
Compiled, all worked fine.
Demos gave me a bit of headache.
Two ResourceGroups are referenced but never created.
OgreBulletCollisions
OgreBullet
both used in OgreBulletCollisionsDebugDrawer.
After tweaking OgreBulletApplication::setupResources like this:
void OgreBulletApplication::setupResources(void)
{
ExampleApplication::setupResources();
ResourceGroupManager *rsm = ResourceGroupManager::getSingletonPtr();
StringVector groups = rsm->getResourceGroups();
/* Had to loose this
FileInfoListPtr finfo = ResourceGroupManager::getSingleton().findResourceFileInfo (
"Bootstrap", "axes.mesh");
const bool isSDK = (!finfo->empty()) &&
StringUtil::startsWith (finfo->begin()->archive->getName(), "../../media/packs/ogrecore.zip", true);*/

rsm->createResourceGroup("OgreBulletCollisions");
const String resName ("OgreBullet");
{
if (std::find(groups.begin(), groups.end(), resName) == groups.end())
{
rsm->createResourceGroup(resName);
String baseName ="d:/ogrebulletsvn/";
/*
if (isSDK)
{
baseName = "../../../ogrebullet/";
}
else
{
baseName = "../../../../../ogreaddons/ogrebullet/";
}*/

rsm->addResourceLocation (baseName + "demos/Media","FileSystem", resName);
rsm->addResourceLocation (baseName + "demos/Media/textures", "FileSystem", resName);
rsm->addResourceLocation (baseName + "demos/Media/overlays", "FileSystem", resName);
rsm->addResourceLocation (baseName + "demos/Media/materials", "FileSystem", resName);
rsm->addResourceLocation (baseName + "demos/Media/models", "FileSystem", resName);

rsm->addResourceLocation (baseName + "demos/Media/gui", "FileSystem", resName);
}
}
}
It all worked.
Cheers... :D

Fish

21-02-2010 14:00:26

Can you please submit a patch to the tracker especially for the demos?

Thanks,

-Fish