From: <au...@us...> - 2011-04-09 19:18:47
|
Revision: 8268 http://supertuxkart.svn.sourceforge.net/supertuxkart/?rev=8268&view=rev Author: auria Date: 2011-04-09 19:18:41 +0000 (Sat, 09 Apr 2011) Log Message: ----------- At samuncle's request, don't randomize the last LOD level Modified Paths: -------------- main/trunk/src/graphics/lod_node.cpp Modified: main/trunk/src/graphics/lod_node.cpp =================================================================== --- main/trunk/src/graphics/lod_node.cpp 2011-04-08 23:15:46 UTC (rev 8267) +++ main/trunk/src/graphics/lod_node.cpp 2011-04-09 19:18:41 UTC (rev 8268) @@ -80,7 +80,12 @@ { // samuncle suggested to put a slight randomisation in LOD // I'm not convinced (Auria) but he's the artist pro, so I listen ;P - level += (int)(((rand()%1000)-500)/500.0f*(level*0.1f)); + // The last level should not be randomized because after that the object disappears, + // and the location is disapparition needs to be deterministic + if (m_detail.size() > 0) + { + m_detail[m_detail.size() - 1] += (int)(((rand()%1000)-500)/500.0f*(m_detail[m_detail.size() - 1]*0.2f)); + } assert(node != NULL); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |