distribute windows on walls
hey guys
im working on a long Independent project
that is taking place in city
because the look is stylized i cant use any of the available
building generators , so i started to work on a simple script to help me work faster
one of the problems i ran into was how can i distribute windows on the walls of the generated buildings...
the buildings shape varies because they are extruded from an unevenly topologised surface , i found out how to position and align elements to the polygons i want them to be on , but the size is still a problem , is there a way to position align and scale an object to fit inside a polygon ? lets say that the bounding box should fit the polygon .
am i approaching it correctly ??
Comments
lets see now.. you could get
lets see now..
you could get the surfaceArea of the polygon (you'll find a function for that in the mxs help), and also the average of the window's polys that point in ~ the same direction (acos(dot face1Normal face2Normal)) +/- a few degrees and then calculate a scaling factor from that..
Raphael Steves
hi splinter, I am having a
hi splinter,
I am having a similar task, distributing window-planes on buildings and I have been using the array tool and instanced planes so far for it. would you be willing to share your script or parts of the code where you position and align stuff onto polygons? would be great!
Cheers
Never get low & slow & out of ideas
Hi, i´ve just arrived here,
Hi, i´ve just arrived here, and i´m interested to change knowledge about 3D.
Thanks!