Rob, Thank you! The spheres are now showing at the correct location! When I use the "Away3D/trunk/fp10/Away3DLite/" source.
But.. when I use the "Away3D/branches/lite/libs" the spheres DO NOT show up at the correct location and the rendering/camera are all different. Whatever you did recently has fixed a number of issues. Thank you again! YOUDAMAN! On Oct 31, 5:11 pm, mogg <[email protected]> wrote: > Rod, Thank you! The Away3Dlite scene coordinates were not working > correctly for me before. To test I would add a sphere to the > view.scene at the returned mouse3d scene position but the sphere would > apear at strange locations... never under the mouse cursor in 3D > space. I will update and try again along with your global to local > code. Again, Thank you. > > On Oct 30, 8:47 am, Rob Bateman <[email protected]> wrote: > > > > > Hey mogg > > > the sceneX, sceneY and sceneZ properties from the mouse event are > > essentially global coordinates. they represent the position in the > > scene of your mouse event. if you want to determine the position local > > to the object (ie the coordinate inside the cube object of the mouse > > event) then you can simply transform the scene coordinates into local > > coordinates by using the inverse of the sceneMatrix3D property in > > Away3dLite: > > > var invSceneMatrix3D:Matrix3D = o3D.sceneMatrix3D.clone(); > > invSceneMatrix3D.invert(); > > var localPosition:Vector3D = > > invSceneMatrix3D.transformVector(event.scenePosition); > > > hth! > > > Rob > > > On Wednesday, October 28, 2009, Philip <[email protected]> wrote: > > > > I'd love to see a built in Local3D to Global3D method!- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text -
