TransDEM Forum

TransDEM News, Support, Hints and Resources
It is currently 10 Nov 2024 20:21

All times are UTC + 1 hour




Post new topic Reply to topic  [ 13 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: 11 Mar 2024 10:38 
Offline

Joined: 05 Jan 2011 16:45
Posts: 1489
The TransDEM Trainz manual, from page 14, describes using/installing the TransDEM ground textures, including the optional set for ortho-imagery.

Some background can be found in my blog posts on 3D UTM tiles: viewtopic.php?f=2&t=275


Top
 Profile  
 
PostPosted: 12 Mar 2024 10:37 
Offline

Joined: 16 Aug 2023 13:05
Posts: 36
Even after reading the description, I am absolutely clueless as to how to even contemplate having terrain textures used as some kind of overlay. Is there any more detailed documentation available that describes it step by step?


Top
 Profile  
 
PostPosted: 12 Mar 2024 19:19 
Offline

Joined: 05 Jan 2011 16:45
Posts: 1489
In the "Export to Trainz: Basic files, DEM and ground textures" dialog, enable "custom colour textures" and set the path to "TransDEM128_mapping.txt" (to be found at C:\Program Files\Ziegler-Tools\TransDEM-Ground-Textures for a default installation).

Let me explain the fundamental principle of TransDEM handling Trainz ground textures again:
  • The number of Trainz ground textures is limited to 256 for a classic 10 or 5m baseboard. Ground textures are assigned per ground vertex.
  • Each ground texture is a Trainz asset and defined by KUID.
  • TransDEM comes with two sets of ground textures, the default one with 20 textures, optimized for cartographic maps, and a second one with 128 textures for ortho-imagery. (Different versions of these sets exist for different versions of Trainz.)
  • The default texture set has grid lines (10m), the ortho-image set does not.
  • To get from raster images loaded in TransDEM to Trainz textures, a mapping is required.
  • The mapping is based on RGB colours where one particular colour maps to one particular texture KUID.
  • The colour to texture mapping is defined in the *mapping.txt file.
  • When exporting, TransDEM first resamples the raster image loaded to the baseboard resolution of 720x720pixel or 1440x1440 pixel (10m/5m grid). This is done per baseboard.
  • Then TransDEM reduces the number of colours of the resampled image to the number and values of colours in the *mapping.txt file.
  • This colour reduction is called Colour Quantization and the algorithm used by TransDEM is called Octree.
  • So, after quantization, the raster images processed for export will have exactly the colours defined in the *mapping.txt file.
  • TransDEM then builds the texture lookup table for each baseboard, registers the texture KUIDs in there and assigns a texture index to each ground vertex, based on the quantized colour value of that point.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour


Who is online

Users browsing this forum: SemrushBot [Bot] and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

Imprint & Privacy

Powered by phpBB® Forum Software © phpBB Group