yes and no, this class is either smart of the most stupid one, its all in the way you do structure/prepare the data that you pass to it. but if you now extrude using rects on one plan, I'd rather use the Elevation class which would allow you to draw (like trails) the interpolation. In fact you would be drawing a rough heightmap. The color would give you the offset height. the class subdivision property combined to your input map, should give you a very good control over your shape.
Fabrice On Apr 15, 2011, at 3:17 PM, Whoa wrote: > Is there a way to control the slope of the hills in a skin extrude? > I am trying to get something similar to a building not a plateau. > When I draw two solid red rectangles on black background you would think that > the elevation would be straight up and down (no angle). > here is the original bitmap > http://jacobschatz.com/examples/away3d/elevation/elevate.png > and here is the elevation away3d created. > http://jacobschatz.com/examples/away3d/elevation/elevation.png > > heres the code > extrude = new SkinExtrude(elevate.generate(source_elevation, "r",20,20,5,5, > 1), {material:material, recenter:true, closepath:false, coverall:false, > bothsides:true, flip:true});
