Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6897 in orxonox.OLD


Ignore:
Timestamp:
Jan 31, 2006, 3:45:13 PM (18 years ago)
Author:
patrick
Message:

cdmerge: on the work agian

Location:
branches/cdmerge/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/cdmerge/src/defs/debug.h

    r6868 r6897  
    7878  #define DEBUG_MODULE_OBJECT_MANAGER        2
    7979  #define DEBUG_MODULE_ANIM                  2
    80   #define DEBUG_MODULE_COLLISON_DETECTION    2
     80  #define DEBUG_MODULE_COLLISON_DETECTION    3
    8181  #define DEBUG_MODULE_SPATIAL_SEPARATION    2
    8282  #define DEBUG_MODULE_GUI                   2
  • branches/cdmerge/src/lib/collision_detection/obb_tree.cc

    r6894 r6897  
    6666  if( unlikely(this->rootNode != NULL))
    6767  {
    68     PRINTF(2)("The BVTree has already been spawned, flushing and respawning again...\n");
    69     this->flushTree();
     68    PRINTF(2)("The BVTree has already been spawned, returning\n");
     69    return;
    7070  }
     71
    7172  this->rootNode = new OBBTreeNode(*this, NULL, depth-1);
    72 
    7373  /* triangles indexes created */
    7474  int* triangleIndexes = new int[modelInf.numTriangles];
  • branches/cdmerge/src/lib/collision_detection/obb_tree_node.cc

    r6894 r6897  
    689689{
    690690
     691  printf("draw bv\n");
    691692
    692693  /* this function can be used to draw the triangles and/or the points only  */
  • branches/cdmerge/src/story_entities/game_world.cc

    r6878 r6897  
    427427  if( unlikely( this->showBV))
    428428  {
     429    printf("draw itititi\n");
    429430    CDEngine* engine = CDEngine::getInstance();
    430431    engine->drawBV(State::getObjectManager()->getObjectList(OM_ENVIRON_NOTICK));
  • branches/cdmerge/src/story_entities/game_world.h

    r6845 r6897  
    5353    void togglePNodeVisibility() { this->showPNodes = !this->showPNodes; };
    5454    /** toggles the bounding volume (BV) visibility */
    55     void toggleBVVisibility() { this->showBV = !this->showBV; };
     55    void toggleBVVisibility() { this->showBV = !this->showBV; PRINTF(0)("toggling from story entity: %s\n", this->getName());};
    5656
    5757
  • branches/cdmerge/src/world_entities/world_entity.cc

    r6894 r6897  
    212212  {
    213213    PRINTF(4)("creating obb tree\n");
    214 
    215 
    216214    this->obbTree = new OBBTree(depth, this->models[0]->getModelInfo());
    217215    return true;
     
    219217  else
    220218  {
    221     PRINTF(2)("could not create obb-tree, because no model was loaded yet\n");
     219    PRINTF(1)("could not create obb-tree, because no model was loaded yet\n");
    222220    this->obbTree = NULL;
    223221    return false;
Note: See TracChangeset for help on using the changeset viewer.