I want to create a 3D cylinder, sphere, cone using Actionscript for Flash Player 10. Is there any available class?
I also want to know how to paint gradient, wrap text and texture around them. It would be nice if these class have these functions. I can’t use non DisplayObject in this project so PV3D is not an option
I want to create a 3D cylinder, sphere, cone using Actionscript for Flash Player
Share
As Cameron says, you should probably use a framework like PV3D or Away3D. That said, all those frameworks are written in AS so you could roll your own.
Here are a few examples I created using only the fp10 3d engine:
http://actionsnippet.com/?p=1726
http://actionsnippet.com/?p=2092
http://actionsnippet.com/?p=2097
http://actionsnippet.com/?p=2158
You can create primative shapes using parametric equations:
sphere :
For a cylinder you can just use the equation for a circle and extrude it:
I can post some additional information about this topic if your interested.