I watched a video about the M Buehler Favela project, and I want to know how he make a group of polygons follow the terrain surface, he use it to trees and vegetation, I know about the align shape to terrain, but it seems like he use a big polygon and then he divide it into a grid that he adapts to the terrain
I think Matthias Buehler does something like this:
subdsettings = SubdivideShapesSettings() subdsettings.setLotSubdivisionMethod("RECURSIVE") subdsettings.setLotAreaMin(100.0) subdsettings.setLotAreaMax(100.0) subdsettings.setIrregularity(0) terrainShapes = ce.subdivideShapes(ce.selection(), subdsettings) terrain = ce.getObjectsFrom(ce.scene, ce.isMapLayer) settings = AlignShapesSettings() settings.setHeightmap(ce.getName(terrain)) settings.setAlignFunction("PROJECT_ALL") ce.alignShapes(terrainShapes, settings)
hi guys ..
what I did is I just drew a big rectangular shape over the whole terrain, then wrote a rule that splits x*z* into squares. I then converted the squares model to a shapes, divided it up into separate shapes for each square and projected those square shapes down onto the terrain. I had to repeat this a couple of times until I was happy with the square size.