User Tools

Site Tools


arma2:terrain:l3dt

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
arma2:terrain:l3dt [2020-05-14 06:07]
snakeman updated to imagemagick v7.0.10-11
arma2:terrain:l3dt [2022-06-25 16:03] (current)
snakeman info moved to a new homepage.
Line 1: Line 1:
 ====== L3DT ====== ====== L3DT ======
  
-Using [[http://​www.bundysoft.com/​L3DT/​|L3DT]] to create terrain for ArmA 2. This page was written mostly on the v14.xx era.+[[tools:l3dt|L3DT]] 
 + 
 +Using L3DT to create terrain for ArmA 2. This page was written mostly on L3DT v14.xx era. (I recall most of this text was written by Bushlurker).
  
 You can export the final Texture Map directly and use as a Sat_lco... You can export the final Texture Map directly and use as a Sat_lco...
Line 86: Line 88:
 Save attributes map. Paint/paste your roads and airfields etc there. Import back to L3DT and choose proper color and attributes for the ne areas. Now you can export this into texture map too. Save attributes map. Paint/paste your roads and airfields etc there. Import back to L3DT and choose proper color and attributes for the ne areas. Now you can export this into texture map too.
  
-**Resizing Heightfield** +Resizing Heightfield ​moved to [[tools:​l3dt:​heightmap-resize|Heightmap ​Resize]].
- +
-Open your XYZ terrain in L3DT and select Operations ​-> Heightfield -> Resize ​heightfield. Then choose new size. If you wish to change the cell size, select Operations -> Heightfield -> Change horizontal scale. +
- +
-Calculating 4096 heightfield with 10m cell size attributes / texture layer will be very very slow. More than 1 hour of processing.+
  
  
 ====== ImageMagick Mosaic Stitching ====== ====== ImageMagick Mosaic Stitching ======
  
-How to create one satellite image out of L3DT saved mosaic tiles using [[arma2:texturing:​imagemagick|Imagemagick]]+Header moved to [[tools:l3dt:mosaic-stitching-imagemagick|Mosaic Stitching ImageMagick]].
- +
-Save the attributes and texture layers in L3DT using 5 x 5 mosaic'​s. This mosaic size is nice because lets say you make common 20480 x 20480 resolution satellite, it will mosaic into 4096 x 4096 tiles (5 x 5). +
- +
-BTW Creating 20480 resolution attributes and texture with L3DT takes about 2 - 4hours depending on your computer speed. +
- +
-Use (in this example) for mask: Satellite_mask_mosaic and for texture: **Satellite_texture_mosaic** file names. +
- +
-Write the MASK file names into "​mosaic_mask.txt"​ file, which in our example looks like this: +
-<​code>​ +
-Satellite_mask_mosaic_x0y4.png +
-Satellite_mask_mosaic_x1y4.png +
-Satellite_mask_mosaic_x2y4.png +
-Satellite_mask_mosaic_x3y4.png +
-Satellite_mask_mosaic_x4y4.png +
-Satellite_mask_mosaic_x0y3.png +
-Satellite_mask_mosaic_x1y3.png +
-Satellite_mask_mosaic_x2y3.png +
-Satellite_mask_mosaic_x3y3.png +
-Satellite_mask_mosaic_x4y3.png +
-Satellite_mask_mosaic_x0y2.png +
-Satellite_mask_mosaic_x1y2.png +
-Satellite_mask_mosaic_x2y2.png +
-Satellite_mask_mosaic_x3y2.png +
-Satellite_mask_mosaic_x4y2.png +
-Satellite_mask_mosaic_x0y1.png +
-Satellite_mask_mosaic_x1y1.png +
-Satellite_mask_mosaic_x2y1.png +
-Satellite_mask_mosaic_x3y1.png +
-Satellite_mask_mosaic_x4y1.png +
-Satellite_mask_mosaic_x0y0.png +
-Satellite_mask_mosaic_x1y0.png +
-Satellite_mask_mosaic_x2y0.png +
-Satellite_mask_mosaic_x3y0.png +
-Satellite_mask_mosaic_x4y0.png +
-</​code>​ +
- +
-Write the TEXTURE mosaic file names into "​mosaic_texture.txt"​ file, which in our example looks like this: +
-<​code>​ +
-Satellite_texture_mosaic_x0y4.png +
-Satellite_texture_mosaic_x1y4.png +
-Satellite_texture_mosaic_x2y4.png +
-Satellite_texture_mosaic_x3y4.png +
-Satellite_texture_mosaic_x4y4.png +
-Satellite_texture_mosaic_x0y3.png +
-Satellite_texture_mosaic_x1y3.png +
-Satellite_texture_mosaic_x2y3.png +
-Satellite_texture_mosaic_x3y3.png +
-Satellite_texture_mosaic_x4y3.png +
-Satellite_texture_mosaic_x0y2.png +
-Satellite_texture_mosaic_x1y2.png +
-Satellite_texture_mosaic_x2y2.png +
-Satellite_texture_mosaic_x3y2.png +
-Satellite_texture_mosaic_x4y2.png +
-Satellite_texture_mosaic_x0y1.png +
-Satellite_texture_mosaic_x1y1.png +
-Satellite_texture_mosaic_x2y1.png +
-Satellite_texture_mosaic_x3y1.png +
-Satellite_texture_mosaic_x4y1.png +
-Satellite_texture_mosaic_x0y0.png +
-Satellite_texture_mosaic_x1y0.png +
-Satellite_texture_mosaic_x2y0.png +
-Satellite_texture_mosaic_x3y0.png +
-Satellite_texture_mosaic_x4y0.png +
-</​code>​ +
- +
-Notice how the coordinates go from x0, y4 - top left to x4, y0 - bottom right. If you would use different number of mosaics, this file list would have to be changed accordingly. +
- +
-Then create DOS .bat file like this: +
-<code dos> +
-magick montage -mode concatenate -size 20480x20480 @mosaic_mask.txt Satellite_mask_lco.png +
-magick montage -mode concatenate -size 20480x20480 @mosaic_texture.txt Satellite_texture_lco.png +
-pause +
-</​code>​ +
- +
-Now just execute the .bat file and you have the mask and texture PNG's saved nicely. +
- +
-Please note that the Satellite_mask_lco.png is saved in Indexed color mode, if you attempt to import it to Visitor 3, it will crash. You must open it in Photoshop, change to RGB color and save. You should also open and save the Satellite_texture_lco.png image too although it comes out from ImageMagic as RGB color image. +
- +
-Tip; if your montage run fails or gets stuck just running endlessly, reboot your computer to do fresh start, then try again and most likely it will run OK.+
  
  
 ====== L3DT Mosaic Coordinates ====== ====== L3DT Mosaic Coordinates ======
  
-L3DT Mosaic Coordinates ​for the image stitching are following. +Header moved to [[tools:​l3dt:​mosaic-coordinates|Mosaic Coordinates]].
- +
-*_x0y0.png is lower left corner\\ +
-*_x0y1.png is one up left side\\ +
-...\\ +
-*_x0y4.png is top left corner+
  
  
 ====== Satellite Resolution ====== ====== Satellite Resolution ======
  
-When you are trying ​to save large attributes (mask) or texture (texture, doh) it only allows you to increase and decrease the values by multiply... to counter this, type your own number in the spinbox. +Header moved to [[tools:​l3dt:​satellite-resolution|Satellite Resolution]].
- +
-When generating large mask/​texture it will take a long time in L3DT, you should test all settings first in the smallest (or smaller) resolution to save time. 20480 resolution ​texture generation takes hours.+
  
  
 ====== Large PNG Save ====== ====== Large PNG Save ======
  
-You cannot save for example 20480 resolution image out of L3DT, you have to save it in tiled mosaic first. +Header moved to [[tools:​l3dt:​large-image-export|Large Image Export]].
- +
-You can choose to save tiled output ​with each tile as a png, in any size of grid you want. +
- +
-See above how to stitch together the mosaic files.+
  
  
 ====== CPU Usage ====== ====== CPU Usage ======
  
-On default settings L3DT uses all the CPU power it can get. This makes your windows sluggish and almost impossible ​to use. You can tweak L3DT by going Utilities ​-> Throttle ​CPU and put that to about %50 and Settings -> Multi-Thread settings, tick Core count manual override and put it at least one lower than the amount of cores you have. Like 4 core system put in 3. +Header moved to [[tools:​l3dt:​cpu-usage|CPU Usage]].
- +
-Now your L3DT attributes and textures processing does not cause your windows to get sluggish and other programs work fine. L3DT is much **slower on processing** this way, so lets say in our computer 20480 res textures computed in 2hrs with default/​full settings while on the suggested settings here its 4hrs. If you look at the times and say no thanks, consider that with full settings your windows is pretty much unusable for that 2hrs amount... +
  
-====== Attribute / Mask RGB Colors ====== 
  
-How to change the Attribute map / Mask image colors that are used for the land types.+====== Attributes Map / Mask RGB Colors ======
  
-Resources ​-> Climates ​-> Climate Manager+Header moved to [[tools:​l3dt:​attributes-map-rgb-colors|Attributes Map RGB Colors]].
  
-Select Climate Type (I recommend copying one first and changing that) then Edit, then choose land type, edit and there you'll find the RGB's under "​Display col." box. 
arma2/terrain/l3dt.1589436424.txt.gz · Last modified: 2020-05-14 06:07 by snakeman