Hey Fabrice,

Thanks again for your help! I'm really close with this one. I was
actually adding my model to my scene i just forgot to copy and paste
all of my source.

I'm having the same issues with camera position, and I've included
screen shots of my prefab and away3d scenes which might illustrate it
better:

prefab:
http://away3d-dev.googlegroups.com/web/preFabBoba.png?gsc=CkxbrQsAAACiqfuKKP-Qlx-wuJccCp3Q

away3d
http://away3d-dev.googlegroups.com/web/away3dBoba.png?gsc=CkxbrQsAAACiqfuKKP-Qlx-wuJccCp3Q
My model is at the correct positions but the camera position is wrong.

Here's my code:

             public function TestApp()
             {

                        scene=new Scene3D();
                        hovercamera=new HoverCamera3D ({clipping: new 
FrustumClipping()});
                        view=new View3D({scene: scene, camera: hovercamera});
                        addChild(view);

                        md2model=Md2.parse(Cast.bytearray(new Model()), {scale: 
1});
                        modelTexture=new 
WhiteShadingBitmapMaterial(Cast.bitmap(Texture));
                        md2model.material=modelTexture;

                        view.scene.addChild(new Trident(1000, true));

                        md2model.play(new AnimationSequence("stand", true, 
true, 8));
                        scene.addChild(md2model);

                        hovercamera.x=13069;
                        hovercamera.y=13069;
                        hovercamera.z=13069;

                        hovercamera.lookAt(md2model.position);

                        stage.addEventListener(Event.ENTER_FRAME, render);

                }

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

Reply via email to