RE: Heightmap to brick converter?
2018-06-19, 10:00 (This post was last modified: 2018-06-19, 13:05 by Jaco van der Molen.)
2018-06-19, 10:00 (This post was last modified: 2018-06-19, 13:05 by Jaco van der Molen.)
OK, got it to work smoothly. Very powerful.
Now for the color.
Got it.
I added (example)
and
(right after local v=depthMap[z][x]
changed the hard coded color in this line to variable c:
I tried to implement it, but no succes.
Would that work?
Now for the color.
Got it.
I added (example)
Code:
local colorMap={
{ 1, 2, 3, 4 },
{ 5, 6, 7, 8 },
{ 9, 10, 11, 12 }
}
and
Code:
local c=colorMap[z][x]
(right after local v=depthMap[z][x]
changed the hard coded color in this line to variable c:
Code:
sel:add(sf:addNewRef('3005.dat', c, ldc.matrix(xx, yy, zz)))
I tried to implement it, but no succes.
Would that work?
Jaco van der Molen
lpub.binarybricks.nl
lpub.binarybricks.nl