away3d / away3d-core-fp11

Away3D engine for Flash Player 11
http://www.away3d.com
Other
640 stars 273 forks source link

Error: An abstract method was called via LensBase #668

Closed katopz closed 10 years ago

katopz commented 10 years ago

This error throw when try to move mouse over the view3d

Error: An abstract method was called! Either an instance of an abstract class was created, or an abstract method was not overridden by the subclass.
    at away3d.cameras.lenses::LensBase/unproject()[D:\forked\away3d-core-fp11\src\away3d\cameras\lenses\LensBase.as:143]
    at away3d.cameras::Camera3D/unproject()[D:\forked\away3d-core-fp11\src\away3d\cameras\Camera3D.as:262]
    at away3d.containers::View3D/unproject()[D:\forked\away3d-core-fp11\src\away3d\containers\View3D.as:854]
    at away3d.core.pick::RaycastPicker/getViewCollision()[D:\forked\away3d-core-fp11\src\away3d\core\pick\RaycastPicker.as:72]
    at away3d.core.managers::Mouse3DManager/updateCollider()[D:\forked\away3d-core-fp11\src\away3d\core\managers\Mouse3DManager.as:82]
    at away3d.containers::View3D/render()[D:\forked\away3d-core-fp11\src\away3d\containers\View3D.as:669]
    at ARAppBase/_onEnterFrame()[D:\pir2\pir2\labs\flash\FLARToolKit-away3d-fp11\src\ARAppBase.as:245]

happen even

view3d.mouseEnabled = false;
katopz commented 10 years ago

Problem can be fix via FLAR side by override unproject

override public function unproject(nX:Number, nY:Number, sZ:Number):Vector3D
...

to class ARLens extends LensBase via FLARCamera3D

will close for now, and revisit if need to fix via away3d side