Hi folks,
i am using an OrthogonalLens to render an isometric 3D-scene.
but now as i try to get the scene-coordinates of a mousepick i will
get very weird coordinates.
I figured out that changing the camera back to PerspectiveLens
(default)
will reolve the problem.
So i guess the coordinates need to be changes to orthogonal-matrix.
Can anyone help me to get this done?
May be this is even a bug as the camera does not recognise the
coordinates
are totally worng.
bogus example-code:
// the camera
var cam:Camera3D = new Camera3D();
cam.lens = new OrthogonalLens();
// view
var view:View3D = new View3D(
{
camera:cam,
scene:new Scene3D(),
renderer:Renderer.BASIC
} );
// the plane
var pickPlane:Plane = new Plane(
{
material:"blue",
width:200,
height:200,
segmentsW:20,
segmentsH:20,
yUp:true
});
pickPlane.addOnMouseMove(onPlaneMouseMove);
view.scene.addChild(pickPlane);
// pick-function with weid values
function onPlaneMouseMove(e:MouseEvent3D):void
{
var thePlane:Plane = (e.object as Plane);
trace("strage X-value: " + e.sceneX);
trace("strage Y-value: " + e.sceneY);
trace("strage Z-value: " + e.sceneZ);
// these traces give me stange values
}