HI to all.

I am creating Mesh consisting of a Face-elements. Something like this:

        ....
        var triangle1:Face = new Face();
        triangle1.v0 = new Vertex (p1.x, p1.y, p1.z);
        triangle1.v1 = new Vertex (p2.x, p2.y, p2.z);
        triangle1.v2 = new Vertex (p4.x, p4.y, p4.z);
        knotMesh.addFace(triangle1);
        ...
        knotMesh.material = knotMaterial;

If I set ShadingColorMaterial, then everything works as expected, but
if I set PhongColorMaterial, the surface looks as in the previous
case, and when MouseEvent3D event appears on my mesh i get this
exception:

TypeError: Error #1009:
at away3d.containers::View3D/checkPrimitive()[C:\away_last_svn
\fp10\Away3D\src\away3d\containers\View3D.as:201]
        at away3d.containers::View3D/checkSession()[C:\away_last_svn
\fp10\Away3D\src\away3d\containers\View3D.as:154]
        at away3d.containers::View3D/checkSession()[C:\away_last_svn
\fp10\Away3D\src\away3d\containers\View3D.as:157]
        at away3d.containers::View3D/findHit()[C:\away_last_svn\fp10\Away3D
\src\away3d\containers\View3D.as:805]
        at away3d.containers::View3D/fireMouseEvent()[C:\away_last_svn
\fp10\Away3D\src\away3d\containers\View3D.as:693]
        at away3d.containers::View3D/fireMouseMoveEvent()[C:\away_last_svn
\fp10\Away3D\src\away3d\containers\View3D.as:1014]
        at away3d.containers::View3D/render()[C:\away_last_svn\fp10\Away3D\src
\away3d\containers\View3D.as:982]
        at Main/onEnterFrame()[C:\Users\Soulfly_2\Documents\Flash Projects
\Path Smoothing\Main.as:172]

Also PhongBitmapMaterial does not work.
Version of away3d from svn. Thx for help.

Reply via email to