android and away3d

Software: Away3D 4.x

Avatar
maddog, Sr. Member
Posted: 26 November 2011 04:32 AM   Total Posts: 118

It took me half a day but i was able to set up cs5 with AIR3.0 and Andriod
I was able to get AIR3.0 export to work and files run great. You just have to make sure to set app.xml to gpu rendering. However when i tested andriod export it installs in adriod device fine but I get the standard no view message in AwayStats dialoge and 3d scene does not show but poly count is there indecating model load. Anyone have ideas on this? I though I heard somewhere that the 3dstage has not been implemented for android devices yet.

A heads up would be great on this. thanks for any info.

   

sweetkiller, Newbie
Posted: 26 November 2011 06:46 AM   Total Posts: 10   [ # 1 ]

It is possible

http://www.tricedesigns.com/2011/08/03/molehill-stage3d-on-mobile/

   

Richard Olsson, Administrator
Posted: 26 November 2011 12:10 PM   Total Posts: 1192   [ # 2 ]

There is no (public) release of AIR3 for mobile with Stage3D support. You cannot run Away3D (or any Flash 3D engine that uses Stage3D) on an Android device at this point. The demo linked above must be assumed to have been created using a closed pre-release version of Flash/AIR for Android with Stage3D support.

   

Avatar
maddog, Sr. Member
Posted: 26 November 2011 04:38 PM   Total Posts: 118   [ # 3 ]

That’s what I thought. Hopefully soon they will release it.

   

tomihr, Jr. Member
Posted: 29 November 2011 02:45 PM   Total Posts: 31   [ # 4 ]

Hello, I am trying tu debug AIR 3.1 Destop application but I got error : ReferenceError: Error #1065: Variable flash.display::Stage3D is not defined.

When I publish for Flash Player 11 everithing is ok, does it means that Stage3D is not working yet in AIR.

   

Avatar
maddog, Sr. Member
Posted: 29 November 2011 03:54 PM   Total Posts: 118   [ # 5 ]

You have to go to folder where Air project saved and edit .
YourAppName-app.xml

In there you have to set rendermode to gpu.
<renderMode>gpu</renderMode>
Then it should work.

   

tomihr, Jr. Member
Posted: 30 November 2011 11:12 AM   Total Posts: 31   [ # 6 ]

I have changed rendermode but it still get error :
ReferenceError: Error #1065: Variable flash.display::Stage3D is not defined.

   

Avatar
maddog, Sr. Member
Posted: 30 November 2011 04:04 PM   Total Posts: 118   [ # 7 ]

try publishing project to air file then install your app on your computer.
Open folder it created. open META-INF/air/application.xml
Open this file and see if rendermode has actually been set to gpu or not.

   

tomihr, Jr. Member
Posted: 30 November 2011 04:18 PM   Total Posts: 31   [ # 8 ]

Yes render mode is set to gpu, but it doesn’t work.

   

Avatar
maddog, Sr. Member
Posted: 30 November 2011 04:23 PM   Total Posts: 118   [ # 9 ]

hmmmmmm. it works for me are you sure your rendering to right airglobal.swc
this is the tutorial i used to set it up. It is for air2.7 but it works for air3 as well.
http://blog.prevail.co.nz/2011/06/21/overlaying-air2-7-in-flash-cs5/

   

tomihr, Jr. Member
Posted: 01 December 2011 11:07 AM   Total Posts: 31   [ # 10 ]

When I test my AIR app with NativeApplication.nativeApplication.runtimeVersion a get 3.1 as result but Stage3D dont work.

   

Avatar
maddog, Sr. Member
Posted: 01 December 2011 02:44 PM   Total Posts: 118   [ # 11 ]

I guess the only other thing I can think of is your graphics card may not be supported. I followed the tutorial above and changed render settings and it worked for me. I just got it working last week and am also newbie at AIR. I have always used swfstudio in the past to create exe’s from flash so my knowledge of this is limited.

does your AdobeAIR3_0.xml look like this? Also what are you compiling from Flash cs?, Flash Develop, etc…....?

<?xml version="1.0" encoding="UTF-8"?>
<players>
  <
player id="AdobeAIR3_0" version="13" asversion="3" minasversion="3">
    <
name>Adobe AIR 3</name>
    <
publishobject2 id="Air2_5" version="2.6" intversion="2.6"></publishobject2>
    <
path platform="WIN">Air2_5.dll</path>
    <
path platform="MAC">Air2_5.bundle</path>
    <
playerDefinitionPath as2="$(UserConfig)/Classes/FP9;$(UserConfig)/Classes/FP8;$(UserConfig)/Classes/FP7" as3="$(AppConfig)/ActionScript 3.0/AIR3.0/airglobal.swc" />
    <!-- 
This item is used to indicate that some UI integrated within Flash should be enabled for this player.
-->
    <
feature name="multiScreenPublish" supported="false" />    
    <
feature name="mobileDebug" supported="true" />
    <
feature name="apolloPublish" supported="true" />
    <
feature name="apolloTestMovie" supported="force"/>
    <
feature name="apolloDebugMovie" supported="true"/>
    <
feature name="apolloPackaging" supported="true"/>
    <
feature name="publish_localPlaybackSecurity" supported="false" />
    <
feature name="publish_hardwareAcceleration"  supported="true" />
    <
feature name="useDefineFont4ForDeviceText"          supported="true" />
    <
feature name="useDefineFont4ForEmbeddedFonts"       supported="true" />
    <
feature name="textLayoutFramework"       supported="true" />
    <
encodingPresets>
     <
preset uuid="0c95a8ba-8b71-44d5-b269-8fd1cf89a6ed"  name="F4V - Same As Source (Flash 9.2 and Higher)" ext="f4v" default="true"/>
 </
encodingPresets>
  </
player>
</
players
   

tomihr, Jr. Member
Posted: 02 December 2011 02:26 PM   Total Posts: 31   [ # 12 ]

My grapic card is supported, becuse it works in the browser and I can debug swf files.
The AdobeAIR3_0.xml looks the same as yours.

   

Avatar
maddog, Sr. Member
Posted: 02 December 2011 04:38 PM   Total Posts: 118   [ # 13 ]

Well I am stumped about your problem as well then. I guess I would try setting it back up from scratch and see if you missed anything.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X