在Flash CS5中使用stage3d入门,以及选择哪个框架? [英] Getting started with stage3d in Flash CS5, and which framework to choose?

查看:204
本文介绍了在Flash CS5中使用stage3d入门,以及选择哪个框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今年我已经离开了舞台3d的大潮和闪光编程,但我想赶上的东西,我需要一些提示。



这是我知道:FP11具有代号为Molehill的低级GPU stage3d API。有几个框架可以帮助您更轻松地访问所有的stage3d功能。 (我知道Flare3D和Alternativa3D)。

最好从哪个框架开始? (不仅仅是提到的2)Flare3D和Alternativa3D相当少的教程说你需要Flex SKD / Flash Builder,但是我必须使用Flash CS5。可以吗?



这使我想到下一个问题。你能指点我到哪里可以看到一些例子/教程的地方吗?由于FP11刚刚在今年秋天发布,似乎很难找到太多的帮助。

我想尝试制作一个相当简单的2D画布,就像GPU加速Photoshop画布的选项(可以平滑地旋转和平移)。
有一个很好的跨平台GPU加速画廊/画布的位图和内容是我一直想在Flash中,但无法与CPU。

干杯!
$ b



如果您在为Flash Pro CS5或CS5.5手动制作FP11配置文件时遇到问题,请阅读这篇文章,并安装相应的MXP。

解决2D / 3D框架

Starling框架利用FP11处理2D GPU加速内容:



http://www.starling-framework.org/

对于3D而言,Away3D 4扫帚是一个不错的选择:

http://away3d.com/



在Flash Professional中安装Flash Player 11 CS5.5



对于个人电脑,请将文件系统导航到Flash Pro的常用配置。



C:\程序文件(x86 )\Adobe\\Adobe Flash CS5.5\\Common\Configuration\ActionScript 3.0



在这个(ActionScript 3.0)目录中,创建一个名为FP11 并从Adobe下载playerglobal.swc - http://www.adobe.com/support/ flashplayer / downloads.html



确认已下载的SWC已更名为playerglobal.swc

创建播放器配置文件,以便您可以通过将文件系统导航到Flash Pro的常用播放器来在Flash Pro中定位Flash Player 11:
$ b

C:\ Program Files(x86 )\Adobe\Adobe Flash CS5.5\Common\Configuration\Players



复制预先存在的XML,例如FlashPlayer10_2.xml作为模板并命名为FlashPlayer11.xml



更改:

 < player asversion =3id =FlashPlayer11version =13>< / player> 

 <$ $(UserConfig)/ Classes / FP10; $(UserConfig)/ Classes / FP9; $(UserConfig)/ Classes / FP8; $(UserConfig)/ Classes / FP10as3 =$ (AppConfig)/ ActionScript 3.0 / FP11 / playerglobal.swc>< / playerdefinitionpath>在Flash Pro中,选择Flash Player 11作为发布设置,并将硬件设置设置为级别1 - 直接打开硬件加速。  

HTML包装参数需要参数:

  params.wmode = 直接; 


I have been off the stage 3d bandwagon and flash programming altogether this year, but I want to catch up on things and I need some tips.

Here's what I know: FP11 features the low level GPU stage3d API, codenamed Molehill. There are a few frameworks out there which help you access all the stage3d features more easily. (I know of Flare3D and Alternativa3D).

Which framework is best to start out with? (not just out of the mentioned 2) The rather few tutorials from Flare3D and Alternativa3D say that you require the Flex SKD / Flash Builder, but I have to use Flash CS5. -Can I?

This brings me to my next question. Can you please point me out to a place where I can see some examples/tutorials? Since FP11 was just released this fall, it seems hard to find too much help.

I'd like to try to make a rather simple 2d canvas, like the GPU accelerated option for the Photoshop canvas (which can be rotated and panned smoothly). Having a nice cross platform gpu accelerated gallery/canvas of bitmaps and content is something I've always wanted in Flash but couldn't do with the CPU.

Cheers!

[EDIT]

If you're having trouble manually making a FP11 profile for your Flash Pro CS5 or CS5.5, read this article and install the corresponding MXP.

解决方案

2D / 3D frameworks

Starling Framework leverages FP11 for 2D GPU accelerated content:

http://www.starling-framework.org/

For 3D, Away3D 4 "Broomstick" is a good option:

http://away3d.com/

To install Flash Player 11 in Flash Professional CS5.5

For PC, navigate the file system to Flash Pro's common configuration.

C:\Program Files (x86)\Adobe\Adobe Flash CS5.5\Common\Configuration\ActionScript 3.0

In that (ActionScript 3.0) directory, create a folder named "FP11" and download playerglobal.swc from Adobe - http://www.adobe.com/support/flashplayer/downloads.html

Assure the downloaded SWC is renamed to "playerglobal.swc"

Create a player profile so you may target Flash Player 11 in Flash Pro by navigating the file system to Flash Pro's common players at:

C:\Program Files (x86)\Adobe\Adobe Flash CS5.5\Common\Configuration\Players

Duplicate a pre-existing XML, such as FlashPlayer10_2.xml as a template and name it FlashPlayer11.xml

Alter:

<player asversion="3" id="FlashPlayer11" version="13"></player>

and

<playerdefinitionpath as2="$(UserConfig)/Classes/FP10;$(UserConfig)/Classes/FP9;$(UserConfig)/Classes/FP8;$(UserConfig)/Classes/FP7" as3="$(AppConfig)/ActionScript 3.0/FP11/playerglobal.swc"></playerdefinitionpath>

In Flash Pro, chose Flash Player 11 for your publish settings, and set hardware settings to "Level 1 - Direct" to turn on hardware acceleration.

HTML wrapper params need the parameter:

params.wmode = "direct";

这篇关于在Flash CS5中使用stage3d入门,以及选择哪个框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆