RE: Heightmap to brick converter?
2018-06-18, 21:35 (This post was last modified: 2018-06-18, 21:49 by Roland Melkert.)
2018-06-18, 21:35 (This post was last modified: 2018-06-18, 21:49 by Roland Melkert.)
(2018-06-18, 21:10)Jaco van der Molen Wrote: Ah! Ok, I see. That is exactly what I meant!You could choose between green and blue (instead of the constant red) depending on the height of 'yy' to mimic above/below sea level. Or do you want the whole column to vary in color depending on an excel variable?
My excel source can make the depth map, I understand how it works.
For a 16 by 16 baseplate you have 16 arrays with each 16 values.
Now if you can incorporate the color of the column too, I am there.
edit, like so:
replcace the '4' in the addNewRef lines with
Code:
genTools.IF(yy<seaLevel, 2, 1)
and add e.g.
Code:
local seaLevel=-24
ps: as you'll probably notice soon the script needs
Code:
local genTools=require('genTools')