Build PagedGeometry with Ogre v1.7, error !

compvis

18-12-2009 02:40:26

hi,

I try to build PagedGeometry v1.05 with Ogre v1.7, i face an error like (in BatchedGeometry.cpp, line 626):


bestTechnqiue = material->getBestTechnique(material->getLodIndexSquaredDepth(parent->minDistanceSquared));


In the ChangeLog of OGRE 1.7.0 "Cthugha", i see the line (at LOD changes):
Mesh::getLodIndexSquaredDepth and Material::getLodIndexSquaredDepth no longer exist

then, maybe change getLodIndexSquaredDepth to getLodIndex. I'm not sure :D

thanks

grigi

18-12-2009 11:17:08

Have you tried building it from the SVN version?
I have found it to be much more mature than 1.05

Fish

18-12-2009 13:06:45

I posted a patch for this long ago: viewtopic.php?f=14&t=8906&p=51708&hilit=getLodIndexSquaredDepth#p51708

You just need to square the parent->minDistanceSquared parameter before calling getLodIndex().

-Fish

cty41

16-03-2010 05:26:21

Got it ,now we get it from SVN, thanks men.

tdev

27-03-2010 16:32:06

i will release a new PG version to prevent such problems in the future :)