Kuroyume0161
07-25-2010, 11:05 PM
I'm working on a greebling plugin which puts extruded geometry and objects onto a polygonized surface. To do this, the polygons of the surface are each transformed so as to have their normal along the +Y axis and be on the X-Z plane, then the extruded geometry/objects are transformed into the polygon's space. This means that all of the extruded geometry and objects are aligned with their respective polygon's normal.
What I'd like to have, optionally, is the ability to align the extruded geometry/objects globally along a vector. As an example, a hilly or mountainous terrain with all of the trees pointing up despite the change in grade of the terrain's surface. But the direction will not always be 'up' and the surface will not always be nearly flat (could be a cube, sphere, or any other form).
I'm figuring that this will involve some sort of rotational transform but it will need to be done before the transform that puts them into the polygon space. In other words, a difference with respect to the polygon's normal which causes the global alignment.
Thanks for ideas,
Robert
What I'd like to have, optionally, is the ability to align the extruded geometry/objects globally along a vector. As an example, a hilly or mountainous terrain with all of the trees pointing up despite the change in grade of the terrain's surface. But the direction will not always be 'up' and the surface will not always be nearly flat (could be a cube, sphere, or any other form).
I'm figuring that this will involve some sort of rotational transform but it will need to be done before the transform that puts them into the polygon space. In other words, a difference with respect to the polygon's normal which causes the global alignment.
Thanks for ideas,
Robert
