Away3D Extrudes (1)
by Fabrice Closier
In order to build a complex scenery and keep it low poly, you need to have good 3D skills and a good modeller. For many that's just too much to ask. As a result, I read threads everyday, on lists and forums, on how to load those elephant xml files...
I think it's just bad practice to build whole scenes that way, specially when it comes to Flash.
And here comes the problem:
What else?
Personally I think that's one the biggest challenges, offering tools that helps to reduce loading problems and offer more flexibility to the way we work.
So here's my first contribution in that direction, this demo shows one of the classes I'm working on.
The class allows you to create extrudes from points, like a fence around a house, walls, a city block, charts elevation, some surrounding forest, sky trips or ... a maze! You can define elevation on 3 axis, thickness, add one or more materials per segments, be able to generate one mesh from one or more point definitions, subdivisions per segments so you can control the polygon count, be able to decide if texture(s) covers whole geometry or per segments, you can hide some sides...
Last but not least, this option costed me almost a total rewrite of the class: it respects the thickness no matter the angle of the next segment.
Here is a 2d representation of the algorithm.

And here a little random generator.

Of course one class is not enough... so more are coming!


COMMENTS
Lorenz said:
Oh my god this is amazing!!!
a question, how did you put the animation on the Minos??? O_O
makc said:
Ah, reminds me my pipes, makc.coverthesky.com/FlashFX/ffx.php?id=11.... so I do understand your "2d representation" rather well. but, at some point there is just too much math to code this kind of stuff, you know. I keep thinking of other ways of doing it...
Edin said:
number 1!
Ryan said:
Very cool, I agree on bulky 3d. It is fine for the main 3d assets but the scenery should be extremely low poly. Otherwise building flash 3d in this iteration of the flash platform is just not fast enough even with AS3.
Pedro said:
Awesome awsome work, made me want to go for a test drive, and i will
Cedric said:
Hey Fabrice... you're just a killer !!!
kyai ganteng said:
i've heard papervision before, but this is awesome, ...
gaurav said:
wow wow wow.. this is amazing..
balhau said:
Interesting work. One question,the class is able to export and import data to xml files, or this is a task for another class!?
-----
Fabrice Closier said:
This class just build the geometry from line segments definition you pass to it. So if you want to automate from external data like xml or define by code, the class will build the geometry either ways.