stealth977
06-05-2010 20:20:41
Just wanted to inform you that i integrated latest PG into Ogitor and seems like its working much better, so far i didnt have any problems...
I just made 2 modifications:
ImpostorPage.cpp (prevents unneeded exception)
Also, I added setVisibilityFlags(flags) and VisibilityFlags to GrassLoader and after creating the entity and before calling addEntity, i do entity->setVisibilityFlags(mVisibilityFlags)
We needed that in ogitor for LAYERS to work, someone else may also need for something no harm to have it supported...
Best Regards,
Ismail TARIM
I just made 2 modifications:
ImpostorPage.cpp (prevents unneeded exception)
needsRegen = force;
if (!needsRegen){ << MODIFICATION STARTS AFTER THIS LINE
Ogre::ResourcePtr ptrRes = TextureManager::getSingleton().getByName(fileNameDDS, "BinFolder");
if(ptrRes.isNull())
{
ptrRes = TextureManager::getSingleton().getByName(fileNamePNG, "BinFolder");
if(ptrRes.isNull())
{
needsRegen = true;
}
else
{
ptrRes.setNull();
texture = TextureManager::getSingleton().load(fileNamePNG, "BinFolder", TEX_TYPE_2D, MIP_UNLIMITED);
}
}
else
{
ptrRes.setNull();
texture = TextureManager::getSingleton().load(fileNameDDS, "BinFolder", TEX_TYPE_2D, MIP_UNLIMITED);
}
}
#endif << MODIFICATION ENDS BEFORE THIS LINE
Also, I added setVisibilityFlags(flags) and VisibilityFlags to GrassLoader and after creating the entity and before calling addEntity, i do entity->setVisibilityFlags(mVisibilityFlags)
We needed that in ogitor for LAYERS to work, someone else may also need for something no harm to have it supported...
Best Regards,
Ismail TARIM