如何创建使用ActionScript

如何创建使用ActionScript

本文介绍了如何创建使用ActionScript 3(闪存10)3D圆柱体,球体和圆锥体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个3D圆柱体,球体,圆锥体使用Flash Player 10中是否有任何可用的课吗?我也想知道怎么画渐变,将其布置文字和质感。这将是很好,如果这些类具有这些功能。我不能使用非的DisplayObject这个项目,所以PV3D是不是一种选择

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

推荐答案

由于卡梅伦说,你应该使用像PV3D或Away3D中的框架。这就是说,所有的这些框架都写在AS所以你可以滚你自己。

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.

下面是我创建仅使用FP10 3D引擎的一些例子:

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:

球体:

x = r sin(u) cos(v)
y = r cos(u) cos(v)
z = r sin(v)

有关气缸,你可以只用方程一个圆,挤压它:

For a cylinder you can just use the equation for a circle and extrude it:

x = r cos(t)
y = r sin(t)
z = increase at some interval to the height of the cylinder

我可以发布关于这个话题,如果你感兴趣,一些额外的信息。

I can post some additional information about this topic if your interested.

这篇关于如何创建使用ActionScript 3(闪存10)3D圆柱体,球体和圆锥体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 17:15