I’m very new to Away3d so may be doing this all wrong anyway but i think it’s a fairly simple scene setup and i’ve had no luck getting it to work when viewing the scene in a browser.
I am loading in a scene created in 3dStudio called landing.3ds and have a standard camera3d setup in the scene which i view it through, i also have some controls which can change the x, y and z position of the camera as well as changing the camera.lookAt() vector (which starts at 0,0,0 and increments by +/- 1 when i press corresponding keys)
I am publishing this through flashdevelop and am using the latest build of away3d from github, when i view it in the external player in flashdevelop (800x600 window) everything works absolutely fine but when i view it in google chrome (and other browsers) with fp 11.0.1.98.. the lookAt vector seems to be pointing somewhere other than the loaded 3d model and the result is i can’t see anything through the camera.
Could this be due to a co-ordinate/matrix issue? I don’t understand why the scene works fine until i load it through the browser (wmode is set to direct) and only then it’s when i set the
_camera.lookAt(new Vector3D(_target.x, _target.y, _target.z));
where _target is the loaded scene vector that it ‘disappears’
I know there’s an upAxis argument to the lookAt method but that doesn’t seem to change anything (have tried setting this with properties of 1, 0 & -1 to see if it’s a directional issue on the camera)
Any help on this would be fantastic, basically i need to be able to control the position of both the camera and it’s target
Thanks…