hello, this is project on which im trying to learn maxscript.
Now its only generating terrain made of two types of blocks: grass and dirt (yes, its inspired by Minecraft.)
First are placed Grass blocks, theirs position is based on grayscale bitmap(x,y position of pixel and z value is calculated from value of shade)
and "gaps" between grass blocks are filled with specified number of Dirt blocks
my goal is to generate more block types such as stones, trees, flowers, water etc...but terrain of size 100x100 thats about 16K blocks(depends on terrain diversity) runs my laptop on max performance. My knowledges of maxsripts are small so im stuck here. i tried to slice terrain to smaller Chunks which i convert to proxies, but function VrayMeshExport was too cpu intense - terrain generation 20x20blocks took 5sec and exporting mesh 7minutes on full RAM :(
Is there any way how fix that or i have to work with only small sizes?
source code: MC gen