Changeset 4095 in orxonox.OLD for orxonox/branches/heightMap/src
- Timestamp:
- May 6, 2005, 8:52:06 PM (20 years ago)
- Location:
- orxonox/branches/heightMap/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/heightMap/src/defs/debug.h
r3875 r4095 56 56 // DEFINE MODULES 57 57 #define DEBUG_MODULE_ORXONOX 0 58 #define DEBUG_MODULE_WORLD 159 #define DEBUG_MODULE_PNODE 158 #define DEBUG_MODULE_WORLD 0 59 #define DEBUG_MODULE_PNODE 0 60 60 #define DEBUG_MODULE_WORLD_ENTITY 0 61 61 #define DEBUG_MODULE_COMMAND_NODE 0 … … 63 63 #define DEBUG_MODULE_LOAD 0 64 64 65 #define DEBUG_MODULE_IMPORTER 165 #define DEBUG_MODULE_IMPORTER 0 66 66 #define DEBUG_MODULE_TRACK_MANAGER 0 67 67 #define DEBUG_MODULE_GARBAGE_COLLECTOR 0 68 68 #define DEBUG_MODULE_LIGHT 0 69 #define DEBUG_MODULE_PLAYER 170 #define DEBUG_MODULE_WEAPON 369 #define DEBUG_MODULE_PLAYER 0 70 #define DEBUG_MODULE_WEAPON 0 71 71 #define DEBUG_MODULE_MATH 0 72 #define DEBUG_MODULE_FONT 1 73 #define DEBUG_MODULE_ANIM 1 72 #define DEBUG_MODULE_FONT 0 73 #define DEBUG_MODULE_ANIM 0 74 #define DEBUG_MODULE_HEIGHTMAP 4 74 75 75 76 #define DEBUG_MODULE_NULL_PARENT 0 -
orxonox/branches/heightMap/src/lib/graphics/importer/heightmap.cc
r4093 r4095 1 2 3 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_HEIGHTMAP 1 4 2 5 … … 54 57 else height = pixPerDLSide; 55 58 59 60 56 61 this->readIntoGroup(j*pixPerDLSide,i*pixPerDLSide,width,height,vertexResolution); 57 62 } … … 62 67 63 68 void Heightmap::readIntoGroup(int left, int top,int width, int height, int vertexResolution) 64 { 65 //this->newGroup(); 66 69 { 70 // add all vertices first 67 71 for (int z=top; z < top+height; z++) 68 72 { … … 72 76 } 73 77 } 78 79 80 // code readability 81 int thisVertex = 0; 82 int bottomVertex = width; 83 84 // create all faces 85 for (int z=top; z < top+height - 1; z++) 86 { 87 for (int x=left; x < left+width - 1; x++) 88 { 89 thisVertex++; 90 bottomVertex++; 91 92 this->addFace(3, VERTEX_ONLY, thisVertex, bottomVertex, thisVertex+1); 93 this->addFace(3, VERTEX_ONLY, thisVertex+1, bottomVertex, bottomVertex+1); 94 95 } 96 } 97 98 99 74 100 } 75 101
Note: See TracChangeset
for help on using the changeset viewer.