Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6263 in orxonox.OLD for branches


Ignore:
Timestamp:
Dec 22, 2005, 6:43:49 PM (19 years ago)
Author:
bensch
Message:

heightmap: changes to revert afterwards

Location:
branches/height_map/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/height_map/src/lib/graphics/importer/vertex_array_model.cc

    r6262 r6263  
    224224    for (j = 0; j < sizeX; j++)
    225225    {
    226       this->addIndice(sizeY*i + j);
    227       this->addIndice(sizeY*(i+1) + j);
    228     }
     226      this->addIndice( sizeY*i + j );
     227      this->addIndice( sizeY*(i+1) + j );
     228    }
     229    this->newStripe();
    229230    this->debug();
    230     this->newStripe();
    231231  }
    232232}
  • branches/height_map/src/lib/graphics/importer/vertex_array_model.h

    r6262 r6263  
    1111#include "glincl.h"
    1212
    13 #include "array.h"
    1413#include <vector>
    1514
  • branches/height_map/src/story_entities/world.cc

    r6074 r6263  
    7373#include "playable.h"
    7474
     75#include "vertex_array_model.h"
     76
    7577
    7678SHELL_COMMAND(speed, World, setSpeed);
     
    384386  localCamera->lookAt(playable);
    385387//  this->localPlayer->setParentMode(PNODE_ALL);
    386   if (sky != NULL)
    387   {
    388     this->sky->setParent(this->localCamera);
    389     this->sky->setParentMode(PNODE_MOVEMENT);
    390   }
     388//   if (sky != NULL)
     389//   {
     390//     this->sky->setParent(this->localCamera);
     391//     this->sky->setParentMode(PNODE_MOVEMENT);
     392//   }
     393
     394  VertexArrayModel* mod = new VertexArrayModel;
     395  mod->planeModel();
     396  mod->finalize();
     397  mod->debug();
     398  this->TEST = mod;
     399  this->testMat = new Material;
     400  this->testMat->setDiffuse( 1,1,1);
    391401
    392402  // initialize debug coord system
     
    826836  GraphicsEngine::getInstance()->draw();
    827837  //TextEngine::getInstance()->draw();
     838  this->testMat->select();
     839  this->TEST->draw();
    828840}
    829841
  • branches/height_map/src/story_entities/world.h

    r6048 r6263  
    2525class OggPlayer;
    2626template<class T> class tList;
     27
     28#include "vertex_array_model.h"
     29#include "material.h"
    2730
    2831//! The game world
     
    116119    WorldEntity* sky;                   //!< The Environmental Heaven of orxonox @todo insert this to environment insted
    117120    Terrain* terrain;                   //!< The Terrain of the World.
    118 
     121    Material* testMat;
     122    Model*   TEST;
    119123    GLuint objectList;                  //!< temporary: @todo this will be ereased soon
    120124    tList<WorldEntity>* entities;       //!< A template List of all entities. Every moving thing should be included here, and world automatically updates them.
  • branches/height_map/src/world_entities/terrain.cc

    r6249 r6263  
    4242  this->init();
    4343
    44   this->tmp_mat = new Material(); 
     44  this->tmp_mat = new Material();
    4545  tmp_mat->setTransparency(1.0);
    4646  tmp_mat->setIllum(0.3);
     
    5757  tmp_mat->ambientTexture = NULL;
    5858 // tmp_mat->specularTexture = NULL;
    59  
     59
    6060  // this->loadParams(root);
    6161
    6262 char* heightmapName = ResourceManager::getFullName("pictures/heightmapHello.bmp");
    6363 char* colourmapName = ResourceManager::getFullName("pictures/heightmapHelloCM.bmp");
    64  hm = new HeightMap(heightmapName, colourmapName);
    65  hm->scale(Vector(23.0f,1.7f,23.0f));
    66  hm->load();
    67  this->model=hm;
     64// hm = new HeightMap(heightmapName, colourmapName);
     65// hm->scale(Vector(23.0f,1.7f,23.0f));
     66// hm->load();
     67// this->model=hm;
    6868
    6969 /*     this->model =  new HeightMap();
     
    126126
    127127      this->model->finalize(); */
    128    
     128
    129129 /*if (this->model != NULL)
    130130    this->ssp = new SpatialSeparation((AbstractModel*)this->model, 10.0f);*/
     
    224224  Vector tmpRot = this->getAbsDir().getSpacialAxis();
    225225  glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z );
    226        
     226
    227227   //this->tmp_mat->select();
    228        
    229 
    230   hm->draw();
     228
     229
     230  //hm->draw();
    231231 /* if (this->objectList)
    232232    glCallList(this->objectList);
Note: See TracChangeset for help on using the changeset viewer.