Flash Player 10 – 3D Example

I’ve tinkered a bit with Flash Player 10. One thing that seems almost funny about the 3D effects of Flash thus far is that very few examples show off actually 3D objects. Most examples I’ve examined show 2D planes transformed in 3D space. So, I’ve created a sample 3D cube primitive in AS3 as a convenient example for people who want to get started with their own parsers or drawing tools (etc).

My current configuration is Mac OS X 5.2 + TextMate 1.5.7 + Flex SDK 4.0.0.3504. I have two shell scripts in place:

  1. /usr/bin/mxmlc
  2. A TextMate run bundle set to a hotkey, “command + R”
  3. I’ve also have my Flex SDK set to the absolute path of: /Developer/SDKs/Flex/4.0.0.3504

This configuration requires a flex-config.xml in the same directory as the AS3 class file that you’re compiling. When you run the TextMate script (or something similar in your Terminal shell) it will compile the filename you pass in and default to using a config.xml which acts as a local flex-config.xml file. All of these can be customized as needed.

Example Flash 10 3D cube rotation:
[kml_flashembed movie="http://www.calebjohnston.com/storage/fl10_examples/01_cube_rotation/CubeRotationExample.swf" height="260" width="410" bgcolor="#FFFFFF" /]

Obviously, the above swf won’t work without Flash player 10 installed.

Download the source here.

About Caleb Johnston

http://dispatchevent.org/wp-content/avatars/animecaleb.gif
This entry was posted in AS3, Flash, Flex, Lab, Programming and tagged , . Bookmark the permalink.

5 Responses to Flash Player 10 – 3D Example

  1. Pingback: <mx:AnandVardhan/> » Blog Archive » Links I am reading today: 3D in Flash

  2. Mims Wright says:

    cool work Caleb,
    It really makes me wonder what will become of systems like PV3D in the next version of flash. I assume there is still room for that kind of thing…

  3. caleb says:

    Mims,
    There is still room for PV3D, but I bet it will branch to use the powerful speed created by the implementation of FP10. I bet ASCollada will become even more important very quickly as well.

  4. Pingback: » 为数不多的FP 10 3D实例 :: Fluid idea for RIA

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>