SWC added for interface slows away3d

Software: Away3D 4.x

drbii, Member
Posted: 02 April 2014 02:43 PM   Total Posts: 72

Hello all,
I have another newbie question.  I have a set of check box’s created in Flash Pro and exported as a swc.  I’ve added them to my project in Flash Builder and the check box’s have slowed the frame rate of the project down.  Is this normal?  Am I adding them the wrong way?  Here is the code:

public function MyModel()
  {
  _view = new View3D();
  _view.backgroundColor = 0x666666;
  _view.antiAlias = 4;
 
  this.addChild(_view);
  this.addEventListener(Event.ENTER_FRAME , onEnterFrame);
 
  Parsers.enableAllBundled();
 
  _loader = new Loader3D();
  _loader.addEventListener(LoaderEvent.RESOURCE_COMPLETE, onResourceComplete);
  _loader.addEventListener(LoaderEvent.LOAD_ERROR, onLoadError);
  _loader.load( new URLRequest(‘vert3.awd’) );
 
  var symbol:my_contrl = new my_contrl() ;
  symbol.x = 15 ;
  symbol.y = 15;
 
  addChild(symbol);
  }

Are there better ways to do graphical interfaces that overlay the Away3D stage?

Thanks in advance for any input!  You’ve all been a great help so far!

   

dlx, Newbie
Posted: 08 April 2014 02:23 PM   Total Posts: 12   [ # 1 ]

You should definitely use Starling (or any other stage3d enabled 2D library) to render your UI, as combining direct mode and displayList will significantly drop the performances down.
There are good tutorials around to get you started with it!

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X