So basically what the code does is, it slices a picture you give it, in colums and rows. The default resolution is 16*16, that means, that the code creates a cell out of 16*16 pixel. With the "+" and the "-" key you can change the resolution from 1*1 to "infinity*infinity". By changing the resolution, the refresh rate of the map will go down and the files you can create will get bigger. You can change the strenght of the effect by moving the mouse. By default it is fixed on the dark tones but by pressing "i" you can focus on the lighter tones ( for 3D printing focus on the darker one :) ). Now the code will depending on your inputs and the values of the cells create now a specific height ( z ) per cell. The pixels will replaced with boxes in cellsize with the specific height ( z ). It also color them but they wont be exported into the 3D modell, I may add that later. You will see the result "live" on your screen, as already menioned the refresh rate will go down by getting the resolution hight...

After you choosed the settings you want, you can press "s" or "S" to save/export an .obj and a .jpg file to your sketch file.

By pressing "h" you will get some help.

Always have a look at the console, it shows help and resolution informations.

The code uses the library: nervoussystem.obj

The code: https://github.com/Jan--Henrik/Image-to-3D-map/tr...