Hey guys,
i’m getting a strange rendering error if i build my scene with air mobile.
The image of the testscene show the main problem: objects which hav a greater distance to the camera are rendered first, and i dont know why.
The main code is here:
_view = new View3D();
addChild(_view);
_view.scene.addChild(new Mesh(new CubeGeometry(), new TextureMaterial(new VideoTexture(File.userDirectory.url+"/ABA/video_technik_001.flv", 256, 256, true, true))));
_view.scene.addChild(new Mesh(new CubeGeometry(), new ColorMaterial(0x00FF00)));
_view.scene.addChild(new Mesh(new CubeGeometry(), new ColorMaterial(0x0000FF)));
_view.scene.getChildAt(0).z = -100;
_view.scene.getChildAt(1).z = -200;
_view.scene.getChildAt(2).z = -300;
_view.camera.z = -200;
_view.camera.y = 300;
_view.camera.lookAt(new Vector3D());
_cc = new HoverController(_view.camera, null, 45, 10, 800);
// entry point
addChild(new AwayStats(_view));
addEventListener(Event.ENTER_FRAME, update);
addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
addEventListener(MouseEvent.MOUSE_UP, onMouseUp);
The rest of code is just for camera moving.
If i use just ColorMaterials (without TextureMaterial) the error also appears.
my software:
flashdevelop 4.0.4RTM
away3d 4.0.9 gold
flexsdk 4.6.0 with air 3.3 (mobile)
hardware:
htc evo 3d (android 4.0.3)with newest air installed