second view on ipad showing up blank

Software: Away3D 4.x

thatflashdude, Newbie
Posted: 09 October 2012 05:15 PM   Total Posts: 19

so ive got this app that implements two skycubes. i am not using the skyboxes in away3d..rather i create them as two giant boxes made of 6 planes. i then place the camera inside the cube.

the idea is to have a split view screen..view takes up half the screen and has the camera inside skycube1..view 2 takes up the second half and has the camera inside skycube2.

everything works great on the desktop. however when i publish to ipad, only the first one shows up. the second is blank.

here is my code

  private function initView():void {
  scene = new Scene3D();
  view = new View3D();
  //view.shareContext = true;
  view.scene = scene;
  _stage.addChild(view);
  lens = new PerspectiveLens (lastFov);
  lastFov = lens.fieldOfView;
  view.camera.lens = lens;
  view.camera.y = 0;
  view.camera.z = -512;
  setViewSize (view,1024,382,0,0);
  }
 
  private function initView2():void {

  view2 = new View3D(scene);
  //view2.scene = scene;
  //view2.stage3DProxy = view.stage3DProxy;
  _stage.addChild(view2);
  lens = new PerspectiveLens (lastFov);
  lastFov = lens.fieldOfView;
  view2.camera.lens = lens;
  view2.camera.y = -2024;
  view2.camera.z = -512;
  setViewSize (view2,1024,382,0,386);
  }

as you can see i have some commented code where i thought the problem was stage3d instances. this approach did not work.

anyone else successfully had 2 views of one scene render on the ipad at once?

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X