Changeset 6745 in orxonox.OLD for branches/height_map_merge/src/world_entities
- Timestamp:
- Jan 25, 2006, 11:07:31 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/height_map_merge/src/world_entities/terrain.cc
r6730 r6745 170 170 delete this->heightMapMaterial; 171 171 172 172 delete this->heightMapMaterial; 173 /* 173 174 this->heightMapMaterial = new Material(); 174 175 heightMapMaterial->setTransparency(1.0); … … 190 191 heightMapMaterial->setSpecularMap(textureName); 191 192 192 193 */ 193 194 194 195 } … … 262 263 glBegin(GL_QUADS); // Draw The Cube Using quads 263 264 glColor3f(0.0f,1.0f,0.0f); // Color Blue 264 glVertex3f(camera.x + 13.0f,height+13.0f,camera.z-13.0f); // Top Right Of The Quad (Top)265 glVertex3f(camera.x- 13.0f, height+13.0f,camera.z-13.0f); // Top Left Of The Quad (Top)266 glVertex3f(camera.x- 13.0f, height+13.0f, camera.z+13.0f); // Bottom Left Of The Quad (Top)267 glVertex3f(camera.x+ 13.0f, height+13.0f, camera.z+13.0f); // Bottom Right Of The Quad (Top)265 glVertex3f(camera.x + 63.0f,heightMap->getHeight(camera.x+63.0f, camera.z-10.0f)+13.0f,camera.z-10.0f); // Top Right Of The Quad (Top) 266 glVertex3f(camera.x-63.0f, heightMap->getHeight(camera.x+63.0f, camera.z-10.0f)+13.0f,camera.z-10.0f); // Top Left Of The Quad (Top) 267 glVertex3f(camera.x-63.0f, heightMap->getHeight(camera.x+63.0f, camera.z+10.0f)+13.0f, camera.z+10.0f); // Bottom Left Of The Quad (Top) 268 glVertex3f(camera.x+ 63.0f, heightMap->getHeight(camera.x+63.0f, camera.z+10.0f)+13.0f, camera.z+10.0f); // Bottom Right Of The Quad (Top) 268 269 glEnd(); // End Drawing The Plan 269 270
Note: See TracChangeset
for help on using the changeset viewer.