Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4095 in orxonox.OLD for orxonox/branches/heightMap/src


Ignore:
Timestamp:
May 6, 2005, 8:52:06 PM (19 years ago)
Author:
nico
Message:

branches/heightmap: i want modular debug

Location:
orxonox/branches/heightMap/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/heightMap/src/defs/debug.h

    r3875 r4095  
    5656// DEFINE MODULES
    5757#define DEBUG_MODULE_ORXONOX            0
    58 #define DEBUG_MODULE_WORLD              1
    59 #define DEBUG_MODULE_PNODE              1
     58#define DEBUG_MODULE_WORLD              0
     59#define DEBUG_MODULE_PNODE              0
    6060#define DEBUG_MODULE_WORLD_ENTITY       0
    6161#define DEBUG_MODULE_COMMAND_NODE       0
     
    6363#define DEBUG_MODULE_LOAD               0
    6464
    65 #define DEBUG_MODULE_IMPORTER           1
     65#define DEBUG_MODULE_IMPORTER           0
    6666#define DEBUG_MODULE_TRACK_MANAGER      0
    6767#define DEBUG_MODULE_GARBAGE_COLLECTOR  0
    6868#define DEBUG_MODULE_LIGHT              0
    69 #define DEBUG_MODULE_PLAYER             1
    70 #define DEBUG_MODULE_WEAPON             3
     69#define DEBUG_MODULE_PLAYER             0
     70#define DEBUG_MODULE_WEAPON             0
    7171#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
    7475
    7576#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
    14
    25
     
    5457                        else                                                                            height = pixPerDLSide;
    5558                       
     59                       
     60                       
    5661                        this->readIntoGroup(j*pixPerDLSide,i*pixPerDLSide,width,height,vertexResolution);
    5762                }
     
    6267
    6368void Heightmap::readIntoGroup(int left, int top,int width, int height, int vertexResolution)
    64 {
    65         //this->newGroup();
    66        
     69{       
     70        // add all vertices first
    6771        for (int z=top; z < top+height; z++)
    6872        {
     
    7276                }
    7377        }
     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
    74100}
    75101
Note: See TracChangeset for help on using the changeset viewer.