= !HeightMap = [[ArchivePage]] '''Author''' [[BR]] Claudio [[BR]] '''Goal''' [[BR]] Orxonox should be able to load models stored in heightmaps. [[BR]] A .oxw-file could look as follows : {{{ . . . HardCore worlds/environ.jpg 0,0,100 . . . }}} [[BR]] '''Design''' [[BR]] UML-Diagram [[BR]] [[Image(HightMap.jpeg)]] [[BR]] {{{ Terrain::Terrain (const TiXmlElement* root) { //Change PATH HeightMap * hm = new HeightMap("~/svn/data/pictures/heightmapHello.bmp"); }}} '''Current State''' [[BR]] Thu, Dec 8 - !HeightMap seems to work correctly with 8-Bit bmps :-) [[BR]] 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]] Tue, Dec 6 - class !HeightMap draws a cube for testing. (I use revision 110 of Data) [[BR]] Tue, Dec 6 - branch height_map added to svn-repository [[BR]] '''Resources''' [[BR]] * source:orxonox.OLD/trunk/src/lib/graphics/importer/model.cc - an example for the model application (line 1048) * source:orxonox.OLD/trunk/src/world_entities/environments/terrain.cc - an example for the model application (line 286)