I have spend a couple hours trying what you said, but I'm still not
seeing anything on stage after compiling.

I have made a targetCamera looking at the object directly and also
confirmed via trace that the object is at 0,0,0. The code bellow works
with an AS3 class export with just one single mesh. When I compile, I
can see the mesh targeted by the camera and when I set the camera's z
to a lower value it zooms out. Works fine just like that.

But with the digital camera AWD export having multiple meshes, I still
get nothing even if I set "bothsides" on all meshes before export and
zoom in and out with the camera +/- 1000s.

package
{
 import away3d.containers.View3D;
 import away3d.primitives.Cube;
 import away3d.containers.Scene3D;
 import flash.display.Sprite;
 import flash.events.Event;
 import com.senocular.utils.KeyObject;
 import flash.ui.Keyboard;
 import flash.display.Stage;
 import away3d.containers.ObjectContainer3D;
 import away3d.core.math.Number3D;
 import away3d.cameras.TargetCamera3D;

 [SWF(width="950", height="400", frameRate="60",
backgroundColor="#000000")]
 public class Lesson1 extends Sprite
 {
private var camera:TargetCamera3D;
private var myScene:Scene3D;
private var view:View3D;
private var group:ObjectContainer3D;
private var holder1:CameraTest3 = new CameraTest3();
private var holder2:Box2 = new Box2();

public function Lesson1()
 {
camera = new TargetCamera3D();
camera.z = -5000;

view = new View3D({camera:camera,x:475, y:200});
addChild(view);

view.scene.addChild(holder2);

camera.target = holder2;

trace(holder2.x);
trace(holder2.y);
trace(holder2.z);

addEventListener(Event.ENTER_FRAME, loop);

 }
  private function loop(event:Event):void
 {
          view.render();
 }
}
}


Reply via email to