18 Jan 2008

Away3D Extrudes (1)

by Fabrice Closier Away3D Extrudes (1)

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.

extrude_trigo<br />

And here a little random generator.

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


18 Jan 2008 10:09 AM

Lorenz said:

Oh my god this is amazing!!!
a question, how did you put the animation on the Minos??? O_O

18 Jan 2008 01:40 PM

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...

19 Jan 2008 07:33 AM

Edin said:

number 1!

20 Jan 2008 02:46 PM

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.

22 Jan 2008 03:52 AM

Pedro said:

Awesome awsome work, made me want to go for a test drive, and i will smile

24 Jan 2008 05:37 PM

Cedric said:

Hey Fabrice... you're just a killer !!!

01 Apr 2008 08:55 PM

kyai ganteng said:

i've heard papervision before, but this is awesome, ...

02 May 2008 06:31 AM

gaurav said:

wow wow wow.. this is amazing..

09 Jun 2008 05:32 AM

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!?

10 Jun 2008 06:14 AM

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.

Only registered members can comment. Click here to login or here to register