[MERGED] PG + Ogre 1.7.0 (patch)

Fish

27-12-2008 19:56:30

Ogre 1.7.0 removed the ogre::Material::getLodIndexSquaredDepth() function. This patch seems to work.

Index: BatchedGeometry.cpp
===================================================================
--- BatchedGeometry.cpp (revision 2586)
+++ BatchedGeometry.cpp (working copy)
@@ -762,7 +762,7 @@
if (built){
//Update material technique based on camera distance
assert(!material.isNull());
- bestTechnique = material->getBestTechnique(material->getLodIndexSquaredDepth(parent->minDistanceSquared));
+ bestTechnique = material->getBestTechnique(material->getLodIndex(parent->minDistanceSquared * parent->minDistanceSquared));

//Add to render queue
queue->addRenderable(this, group);


-Fish

tdev

27-03-2010 16:31:34

as notice, this is merged with SVN

fairytale

14-04-2011 15:26:27

Thank you very much :D