| 1 | == HeightMap == |
| 2 | '''Author''' [[BR]] |
| 3 | Claudio [[BR]] |
| 4 | |
| 5 | |
| 6 | '''Goal''' [[BR]] |
| 7 | Orxonox should be able to load models stored in heightmaps. [[BR]] |
| 8 | |
| 9 | A .oxw-file could look as follows : |
| 10 | {{{ |
| 11 | . |
| 12 | . |
| 13 | . |
| 14 | <Terrain> |
| 15 | <name>HardCore</name> |
| 16 | <model>worlds/environ.jpg</model> |
| 17 | <abs-coor>0,0,100</abs-coor> |
| 18 | </Terrain> |
| 19 | . |
| 20 | . |
| 21 | . |
| 22 | }}} |
| 23 | |
| 24 | [[BR]] |
| 25 | |
| 26 | '''Design''' [[BR]] |
| 27 | |
| 28 | UML-Diagram [[BR]] |
| 29 | |
| 30 | http://people.ee.ethz.ch/~bottac/res/HightMap.jpg |
| 31 | |
| 32 | [[BR]] |
| 33 | |
| 34 | {{{ |
| 35 | Terrain::Terrain (const TiXmlElement* root) |
| 36 | { |
| 37 | //Change PATH |
| 38 | HeightMap * hm = new HeightMap("~/svn/data/pictures/heightmapHello.bmp"); |
| 39 | }}} |
| 40 | |
| 41 | |
| 42 | '''Current State''' [[BR]] |
| 43 | Thu, Dec 8 - HeightMap seems to work correctly with 8-Bit bmps :-) [[BR]] |
| 44 | 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! [[BR]] |
| 45 | Tue, Dec 6 - class HeightMap draws a cube for testing. (I use revision 110 of Data) [[BR]] |
| 46 | Tue, Dec 6 - branch height_map added to svn-repository [[BR]] |
| 47 | |
| 48 | |
| 49 | '''Resources''' [[BR]] |
| 50 | * source:/branches/height_map/src/lib/graphics/importer/model.cc - an example for the model application (line 1048) |
| 51 | * source:/branches/height_map/src/world_entities/terrain.cc - an example for the model application (line 286) |