Mutliple stage3d instances multiple AIR windows

Software: Away3D 4.x

highrise, Newbie
Posted: 05 April 2012 01:14 PM   Total Posts: 9

Hi,

Another question.

I’m creating multiple AIR windows and running the fullscreen, which works. I’m then targeting a view3D to each.

It seems they are both trying to use the same stage3D instance, they certainly both have the same Stage3D Proxy index. The second view is the only one that shows.

Is there a way to specifically target a stage3d instance/index with a view?

Lots of questions but hopefully this is an issue that will be useful to other people.

Thanks

Ben

   

highrise, Newbie
Posted: 05 April 2012 01:36 PM   Total Posts: 9   [ # 1 ]

I’ve found a way around this.

I’m not entirely sure how Stage3DManager is working. But there seem to be two instances of Stage3DManager running, I presume one for each View3D or each AIR window.

By modifying the getFreeStage3DProxy function and creating a static var that I increment I can manually set the stage3d index’s to 0 and 1.

public function getFreeStage3DProxy() : Stage3DProxy
  {
   
   
var sP Stage3DProxy = new Stage3DProxy(App.inc_stage.stage3Ds[App.inc]this); 
   
App.inc++;
return  
sP;

If anyone can explain this a little more that would be great.

Thanks

Ben

 

   

Avatar
Fabrice Closier, Administrator
Posted: 01 June 2012 03:18 PM   Total Posts: 1265   [ # 2 ]

Got same issue for Prefab, and just found the problem and fixed it. I’ll commit asap.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X