Heightmap to brick converter?

RE: Heightmap to brick converter?
(2018-06-18, 21:10)Jaco van der Molen Wrote: Ah! Ok, I see. That is exactly what I meant!
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.
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?

edit, like so:

replcace the '4' in the addNewRef lines with
genTools.IF(yy<seaLevel, 2, 1)

and add e.g.
local seaLevel=-24
above the main w/h loop.

ps: as you'll probably notice soon the script needs
local genTools=require('genTools')
at the top of the .lua file.
« Next Oldest | Next Newest »

Messages In This Thread
RE: Heightmap to brick converter? - by Roland Melkert - 2018-06-18, 21:35

Forum Jump:

Users browsing this thread: 1 Guest(s)