Tuesday, December 07, 2010
Adobe molehill 3D APIs - real 3D!
How it works today in Flash Player 10.1
Flash Player 10.1 renders thousands of non z-buffered triangles at approximately 30 Hz. For true 3D, z-buffering is required. This refers to the management of image depth coordinates in three-dimensional (3-D) graphics models. It is very difficult to accomplish in real time due to the immense processing power required. Unlike X and Y coordinates where there is a physical boundary, Z coordinates can extend infinitely, although the range of human eye perception is somewhat limited.
You can spoof 3D effects today using the Flex attributes "rotationX, rotationY and rotationZ". Here is a project I made using a simple photo that moves it in 3 axis based on user input. This is not true 3D however.
The Adobe website on Molehill states: "With the new 3D APIs, developers can expect hundreds of thousands of z-buffered triangles to be rendered at HD resolution in full screen at around 60 Hz. Using the new 3D APIs in Flash Player and AIR will make it possible to deliver sophisticated 3D experiences across almost every computer and device connected to the Internet.
The 3D capabilities enabled by the new APIs will also be available to the broader developer community through popular ActionScript® 3D frameworks, such as Alternativa3D, Away3d, Flare3D, Sophie3D or Yogurt3D."
Probably the single best description is from Thibault's video embedded below. I cannot wait to get my hands on the technology!
http://tv.adobe.com/watch/adc-presents/molehill-3d-apis
Labels: adobe, Adobe AIR, flash, Flex, molehill 3d, simple 3d effects
Monday, December 06, 2010
Generating a PKCS12 certificate for Android Market
"Market requires that the certificate used to sign the apk be valid until at least October 22, 2033. Create a new certificate."
This is a requirement which I had overlooked. By default, creating a certificate via Flash Builder (File > Export > Release Build) will not work as it is not valid for the length required by the Android Marketplace.
I set out to make a proper certificate however there was not a lot of very current information available. After a lot of searching, I found the answer right in front of me. Using the AIR 2.5 SDK, you can create a self signed certificate using the line command tool. If you have the same issue, follow these instructions:
- If not done already, download and save the Adobe AIR 2.5 SDK from http://www.adobe.com/products/air/sdk/
- With a line command tool, navigate to the
/bin directory.
- Copy and paste the following command, replacing the values in braces
with your own values.
./adt -certificate -cn (duaneallannickull) -ou (adobesystems) -o (sharkwithfrigginglaserbeamsinc) -c (CA) -validityPeriod 25 2048-RSA (./androidsigner.p12) (password)
The country code must be in upper case characters and correspond to an ISO country code. For example, this is what I entered to create mine:
./adt -certificate -cn duaneallannickull -ou adobesystems -o sharkwithfrigginglaserbeamsinc -c CA -validityPeriod 25 2048-RSA ./androidsigner.p12 password
- Now enter the command "dir" (Windows) or "ls" (Linux || Unix) and you should see your certificate. A screenshot is below.
Thursday, December 02, 2010
Video Article - Comparing AIR for Android Development Processes
Flash Builder 4.5 download
Labels: Adobe AIR, Adobe AIR for Android tutorials, Flash Builder, free source code. mobile open source, video
Wednesday, December 01, 2010
Mobile Development with Flash Builder (Tutorial and Source Code)
Installed application size = 1.02 MB (without graphics, icons, splash images etc)
Installed application size = 768 kb (with graphics, icons, splash images etc)
Note that the installed sizes of the applications vary. The first one is larger even though I never used any graphics for icons, splash screens or other bits. The Flash Builder 4.5 Burrito application has a larger installer, however on the Google Nexus 1 disk, the installed application is only 768 kb, of which roughly 398 kb is images alone coupled with 230 kb of icons! The Hero framework rocks! Here is a screenshot.
Last thoughts? I am now addicted to mobile development! Adobe Flash Builder 4.5 rocks (even though it is a preview and somewhat "beta"). The most beautiful thing is that I can use 95% of my code for a desktop application too.
Try it for yourself. Download the Flash Builder 4.5 preview from http://labs.adobe.com
I will post a video of this whole process very shortly on this blog.
Peace, love and may your code compile on the first try!
Labels: air 2.5 mobile, android, Flash Builder 4 tutorials, flash builder 4.5, free source code. mobile open source, mobile development












