History: MOGRE Editable Terrain Manager
Source of version: 10
Copy to clipboard
{img src="img/wiki_up/MOGRE_Editable_Terrain_Manager_big.jpg" alt="thumb|Click to enlarge" imalign="right" width="316"}
!!About
__Author__: [http://www.ogre3d.org/phpBB2addons/profile.php?mode=viewprofile&u=8791|lilljohan]
__Project__: MOGRE Editable Terrain Manager (MET)
__License__: [http://en.wikipedia.org/wiki/Zlib_License|zlib license]
__Wrapped project__: ((ETM|Editable Terrain Manager))
__Wrapped project license__: GPLv2 with runtime exception.
__Type__: C++/CLI -Wrapper
__Dependencies__: Ogre/Mogre 1.4.8/1.6.4
__Status__: ''Finished''
__Binaries and sources__: [http://www.tinyrocket.se/MET.zip|TinyRocket site](Broken, New link: [https://web.archive.org/web/20100818132506if_/http://www.tinyrocket.se/MET.zip|Internet Archive link] or [https://github.com/cookgreen/MET|github repository]
Binaries for Mogre 1.6.4: [https://web.archive.org/web/20100818132506if_/http://www.tinyrocket.se/MET.zip|here]
Binaries for Mogre 1.7.1: [https://github.com/cookgreen/MET/releases/download/met-20221110/MET-Binaries-Mogre-1.7.1.7z|here (Github Release)]
__Current version__: ''MET-2008/10/10''
__Start Date__: Jan-09-2008
__Support__: [https://www.ogre3d.org/addonforums/8/t-6165.html?f=8&t=6165&start=1|Forum topic]
---
MOGRE Editable Terrain Manager (MET) is a [http://en.wikipedia.org/wiki/C%2B%2B/CLI|C++/CLI] ((wrapper)) for the ((ETM|Editable Terrain Manager (ETM))) and can be used with ((MOGRE|Mogre)). ETM itself is an addon library which simply manages terrain and makes it possible to deform and texture this terrain in real-time in response to user input. You can use it with any other scene manager in theory, though in practice the author recommends the Octree scene manager.
Currently the [https://web.archive.org/web/20100818132506if_/http://www.tinyrocket.se/MET.zip|MET.zip] file includes the source code for the wrapper written in C++/CLI and a test application with source code written in C#.
!!Features
* __Terrain deforming__ - Just like the PLSM you can deform terrain as well as retrieve and set height values at arbitrary positions. You can save your work at any time, the ETM provides convenience functions to save and load terrain in raw file format as well as any image format provided by Ogre using 1 to 4 bytes per pixel. But you can just as well write your own load/save code, it's not much of a challenge Smile
* __Terrain texturing__ - The terrain material is completely your responsibility, so you can do whatever you want. The ETM provides a SplattingManager class which you can use to do editable texture splatting, but it's really up to you.
* __More flexible terrain sizes__ - ETM does not provide paging, but its restraints on valid terrain sizes are a lot less restrictive than those of the TSM. Rectangular terrain is just fine. The tile size must still be 2^n+1, but the terrain size can be anything that fits A * (tilesize-1) + 1 x B * (tilesize-1) + 1.
* __Lightmap calculation__ - You can tell the ETM to calculate a lightmap including terrain shadows. The lightmaps may not be the prettiest ever to have been generated, but the algorithm is pretty fast. In my map editor which uses terrain sizes of up to 256x256 I do a recalculation of the lightmap after every completed editing step with no noticable time cost. The size of the lightmap is completely up to you, although the larger the lightmap, the longer the calculation will need.
* __Base texture generation__ - You can "bake" your splatting layout into a single texture. This texture could be used as an alternative to dynamic splatting on older hardware or as a base texture at distance, so that splatting only takes place close to the camera.
* __Minimaps__ - A simple helper function can combine a lightmap and a base texture to a new image which can be used as a minimap of the terrain.
!!Usage example
Maybe [https://www.ogre3d.org/addonforums/8/t-6165.html?f=8&t=6165&start=60|this code] can be used as an example.
''How to setup a project''
''... Please include an example''
!!Information for maintainers
''Please write some information about how to modify the wrapper''
!!See also
* ((ETM|Editable Terrain Manager))
* ((Myrddin Landscape Plugin)) - a scene manager with editor (for Mogre)