Heightmap to brick converter?


RE: Heightmap to brick converter?
#18
(2018-06-22, 7:14)Jaco van der Molen Wrote: Do you mind sharing this script? Can I run some tests too on smaller scale?

Attached zip contains two .lua files, put landscape.lua in the global folder and heightmap.lua in the modules folder of %appdata%/LDCad/scripts/default

Also change the
maxExecTime
value to 2000 in main.cfg for the maximum time allowed in 1.6b (instead of the default 250ms)

Using a freshly started new file might be slightly faster as deleted type 1 lines are still kept in memory and thus processed during addNewRef stuff.

On my system it runs at max 64x64 (most of the time) within the 2s limit. It's an older system though, so you might go higher if you have a more recent one.

Look for hMap.create to change the dimensions, (should be powers of 2).


Attached Files
.zip   landscape.zip (Size: 3.99 KB / Downloads: 8)
Reply
« Next Oldest | Next Newest »



Messages In This Thread
RE: Heightmap to brick converter? - by Roland Melkert - 2018-06-22, 17:39

Forum Jump:


Users browsing this thread: 1 Guest(s)