Heightmap to brick converter?


RE: Heightmap to brick converter?
#10
OK, got it to work smoothly. Very powerful.
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
Reply
« Next Oldest | Next Newest »



Messages In This Thread
RE: Heightmap to brick converter? - by Jaco van der Molen - 2018-06-19, 10:00

Forum Jump:


Users browsing this thread: 2 Guest(s)