Ogitor is now using latest Paged Geometry

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)

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

Fish

07-05-2010 12:38:08

Thanks Stealth!

Speaking of imposters, were you able to get imposters to work correctly with the PCZSM? (reference)

- Fish

stealth977

07-05-2010 15:42:25

Ogitor is not using PCZSM (YET), so i have no idea :(