PDA

View Full Version : poly at www.protocol7.com (number 17)


byron
03-25-2001, 12:04 AM
I have been trying for ages to draw dynamic polygons in Flash (my math is not too good).

Anybody know how it is done?

protocol7 have a good example.

Cheers,

Byron.

Jesse
03-25-2001, 03:10 AM
Checkout this tutorial:
http://www.actionscripts.org/tutorials/intermediate/Draw_a_line/index.shtml

We also have some open source (by FlashGuru I think) in the movies sectionw hcih uses this draggable 'node' format..

Cheers

Jesse

byron
03-25-2001, 09:23 AM
Thanks,

I have written a 3D engine which was published in Computer Arts (you can check it out at http://www.xiotex.free-online.co.uk) but I have been trying to do filled polys dynamically in flash for ages. I had some success using a method similar to scanline conversion but obviously too slow.

I am guessing that by scaling and rotating a mixture of triangles you can achieve a convex polygon but my math is not brilliant so it is taking me ages.

Protocol7 seems to have done it and it looks fast!

Cheers,

Byron.