I’m having some issues getting mouse clicks, or any mouse events interacting with away3d scenes when using Orthographic lens, OrthographicOffCenterLens in this case, but the same issues apply to a standard OrthographicLens.
I have applied the typo fix to the OrthographicOffCenterLens.hx code from OrthographicLens (https://github.com/away3d/away3d-core-fp11/pull/692/commits/a493d43fcfe512e83618425c14a4b1fdeb4168ea), which hasn’t seemed to have been applied yet…
// Replace the following //if (v == null) v = new Vector3D(); //v.x = nX; //v.y = -nY; //v.z = sZ; //v.w = 1; // With the following if (v == null) v = new Vector3D(); var translation:Vector3D = Matrix3DUtils.CALCULATION_VECTOR3D; matrix.copyColumnTo(3, translation); v.x = nX + translation.x; v.y = -nY + translation.y; v.z = sZ; v.w = 1;
The mouse events do fire, but not correctly, the translation from the stage mouse position to 3D mesh positions seems way off, so rollover or click events etc. don’t fire over the mesh, but from an arbitrary position on screen.
I have tried both Ortho lens options and both exhibit the same behavior, to the extent that makes me question if anybody has them working.
Is this a known bug or have I missed something.