Changeset 347 for trunk/VUT/work
- Timestamp:
- 10/24/05 16:37:50 (19 years ago)
- Location:
- trunk/VUT/work
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/work/TestCullingTerrain/TestCullingTerrainApplication.cpp
r346 r347 309 309 generateScene(200, 2); 310 310 } 311 312 // no limitations on height => it is possible for the user to put single313 // objects on peaks of the terrain (only few, not relevant for occlusion)314 mTerrainContentGenerator->SetMaxPos(mTerrainMaxPos);315 311 } 316 312 //----------------------------------------------------------------------- … … 319 315 float val = TerrainFrameListener::msObjectScales[objectType]; 320 316 Vector3 scale(val, val, val); 321 const float maxHeight = 100;317 const float maxHeight = 75; 322 318 // to provide much occlusion, 323 // height is restricted to 50=> no objects are created on peaks319 // height is restricted to maxHeight => no objects are created on peaks 324 320 mTerrainContentGenerator->SetMinPos(Vector3(mTerrainMinPos)); 325 321 mTerrainContentGenerator->SetMaxPos(Vector3(mTerrainMaxPos.x, maxHeight, mTerrainMaxPos.z)); … … 342 338 } 343 339 344 // no limitations anymore=> it is possible for the user to put single345 // objects on peaks of the terrain ( only few, not relevant for occlusion)340 // release limitations on height => it is possible for the user to put single 341 // objects on peaks of the terrain (will be only few, not relevant for occlusion) 346 342 mTerrainContentGenerator->SetMaxPos(mTerrainMaxPos); 347 343 } -
trunk/VUT/work/ogre_changes/Plugins/OctreeSceneManager/include/OgreOctree.h
r316 r347 188 188 */ 189 189 void setLastRendered(int frameid); 190 /** Returns current depth of octree 191 @return current depth 192 */ 193 int getDepth(); 194 /** Returns real extent of the octree, i.e., the merged extent of the bounding boxes. */ 190 191 /** Returns real extent of the octree, i.e., the merged extent of the bounding boxes. 192 */ 195 193 AxisAlignedBox _getWorldAABB(void) const; 196 194 197 /** Updates bounds of real aabb of octree. */ 195 /** Updates bounds of real aabb of octree. 196 */ 198 197 void _updateBounds(); 199 198 … … 206 205 int mLastVisited; 207 206 bool mVisible; 208 int mDepth;209 207 210 208 #endif // GTP_VISIBILITY_MODIFIED_OGRE -
trunk/VUT/work/ogre_changes/Plugins/OctreeSceneManager/src/OgreOctree.cpp
r316 r347 104 104 mParent = parent; 105 105 #ifdef GTP_VISIBILITY_MODIFIED_OGRE 106 if (mParent)107 mDepth = parent->getDepth() + 1;108 else109 mDepth = 0;110 106 // update bounds because we want tight octree 111 _updateBounds();107 if (1) _updateBounds(); 112 108 113 109 #endif //GTP_VISIBILITY_MODIFIED_OGRE … … 219 215 { 220 216 return mParent; 221 }222 //-----------------------------------------------------------------------223 int Octree::getDepth()224 {225 return mDepth;226 217 } 227 218 //----------------------------------------------------------------------- -
trunk/VUT/work/ogre_changes/RenderSystems/GL/src/OgreGLRenderSystem.cpp
r343 r347 2344 2344 glDisableVertexAttribArrayARB_ptr(1); // disable weights 2345 2345 } 2346 2346 glColor4f(1,1,1,1); 2347 2347 glSecondaryColor3fEXT_ptr(0.0f, 0.0f, 0.0f); 2348 2348
Note: See TracChangeset
for help on using the changeset viewer.