Getting started with stage3d in Flash CS5, and which framework to choose?

匆匆过客 提交于 2020-01-01 19:31:10

问题


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.


回答1:


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";


来源:https://stackoverflow.com/questions/8249203/getting-started-with-stage3d-in-flash-cs5-and-which-framework-to-choose

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!