Jump to content

STACKER

Member
  • Content Count

    36
  • Joined

  • Last visited

  • Medals

  • Medals

Posts posted by STACKER


  1. 8 hours ago, digitalcenturion said:

    BTW could you explain the usage logic of your tool - regarding density and such? Was there a pdf manual somewhere, could've swore I saw one but cant find it anymore

     

    Sorry, forgot add to archive.

    Here link on manual:
    https://1drv.ms/b/s!Ao0Oj5mjcuAijN8J0WTIfALl2CDpmg

     

    Btw, cool screens. :)

     

    To control density you need to play with "obj. count" parameter.
    and with "MinDistance" param. for objects placed in selected layer.
    For big trees I recommend use ~1 or 2 m.
    For smaller bushes 0.5 or 0.1.

     

    As overall workflow i recommend to start in TB by setting up objects templates.
    Setup min/max random size for each object. group objects by type in different templates.
    Then import TB templates to sflora and there adjust MinDistance values.

     


  2. Hi,

    After some tests and corrections I decided to put it on the open test.

    If anyone needs this program, I will repair the remaining errors and also change or add new features if needed.


    Program to generate a vegetation by mask.

    It can:
    1) Import object list from Terrain Builder.
    2) Random place objects on area selected by color from sat. mask texture.
    3) Generate object by defined random values of size, direction, pitch.
    3) Export result as .txt back to TB.
     
    Small manual:

    1) Create new project. 

    2) Import mask image. 

    3) In upper menu select "objects database", and fill it with your objects. 
    You can import them from TB project. Press import button and select .tml file from \TemplateLibs folder. 

    4) Create new color mapping (press button "New color mapping" and name it).  
    Select created color mapping item, then double click on map cell (2d mode)), right click on tile and select color. 

    5) Add layers to created color mapping. 
    Right click on mapped color item and add layers (like Forest), 
    select % object fill on this layer. 

    6) Setup layer objects. 
    On layer press on "0" button and select out objects for this layer. 

    7) Press "Generate placement".  
    For all map object placement in map view or in 3d view for single tile generation (for quick TB import, testing). 

    8) Result for TB import will be generated as .txt in selected output folder. 

     

     

    Notes:

    "number of tiles" = basically copy this value from TB project. 

    color mapping =  color from mask, on with objects will be placed.

    go back to the full map view = press 'M' or Backspace

     

    Tips:

    1) You may need to setup drive path with more free space for ImageMagick cache files: Menu>AppSettings

    2) For better performance us bigger number for "Tiles in row count" in project setup. Try to have < 512px tile resolution. 

    Example:  You have 36864px source image resolution and tiles in row count 96,  36864 / 96  = 384px.

     

    .Net Framework 4.7 requeued. 

     
    Discord channel:
     
    Link:
    ver. 0.9.12
     
    Manual:
     
     
    l2R83gW.jpg
     
     
     

     
     
    • Like 11
×