actionscript 3 - Away3D with Starling -


i have away3d 4.0 application ui made in old flash display api, can partly hardware accelerated.

on pc works fine, frame rate of ui on mobile devices low, hence porting starling.

so tried using both away3d , starling, don't work (it compiles there run-time errors). have change? or maybe 2d library such nd2d. there libraries support out of box?

edit: first add away3d content , there no errors. when initialising starling, error in starling.as (a library class) on line 249. tried this suggested, didn't make difference (also information 3 months old , libraries being updated).

edit 2: error caused having different enabledepthandstencil value in away3d, hardcoded in sparling false, because doesn't need it. well, after "fixing" there no runtime errors: away 3d content displays, add starling , canvas becomes black. guess have dive away3d source.

you can view source of starling library on github repository. here link starling.as file> https://github.com/primaryfeather/starling-framework/blob/master/starling/src/starling/core/starling.as

the starling method throwing error this:

        private function updateviewport():void         {             if (mcontext)                 mcontext.configurebackbuffer(mviewport.width, mviewport.height, mantialiasing, false);              mstage3d.x = mviewport.x;             mstage3d.y = mviewport.y;         } 

from of should able remove code mobile, since use not able resize viewport. this, download library github repository, instead of using swc onthe starling site. https://github.com/primaryfeather/starling-framework can customize starling build compatibility away3d.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -