Version 4 (modified by landauf, 17 years ago) (diff) |
---|
HeightMap
This is an archived page! This page is very old and the content is not up to date. Not everything (if any) which is written here will be in the final game! |
Author
Claudio
Goal
Orxonox should be able to load models stored in heightmaps.
A .oxw-file could look as follows :
. . . <Terrain> <name>HardCore</name> <model>worlds/environ.jpg</model> <abs-coor>0,0,100</abs-coor> </Terrain> . . .
Design
UML-Diagram
Terrain::Terrain (const TiXmlElement* root) { //Change PATH HeightMap * hm = new HeightMap("~/svn/data/pictures/heightmapHello.bmp");
Current State
Thu, Dec 8 - HeightMap seems to work correctly with 8-Bit bmps
Wed, Dec 7 - HeightMap is now able to read 8-Bit Bitmaps from files and to create a Model based on them.Howewer, there are some awful bugs to fix!
Tue, Dec 6 - class HeightMap draws a cube for testing. (I use revision 110 of Data)
Tue, Dec 6 - branch height_map added to svn-repository
Resources
- source:/branches/height_map/src/lib/graphics/importer/model.cc - an example for the model application (line 1048)
- source:/branches/height_map/src/world_entities/terrain.cc - an example for the model application (line 286)
Attachments (4)
- screenshot0.jpg (50.8 KB) - added by landauf 17 years ago.
- screenshot1.jpg (35.2 KB) - added by landauf 17 years ago.
- screenshot2.jpg (59.1 KB) - added by landauf 17 years ago.
- HightMap.jpeg (14.1 KB) - added by landauf 17 years ago.
Download all attachments as: .zip