Hey keen6 this is related to how the phong materials work - currently you need an object that uses uv coordinates, even for the color materials. this is so that a shading texel can be defined, which is used in the shading process. If you can export your model with uv coordinates (as if you were applying a bitmap material), phongcolormaterial should work
cheers Rob On Thu, May 6, 2010 at 8:55 PM, keen6 <[email protected]> wrote: > 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. > -- Rob Bateman Flash Development & Consultancy [email protected] www.infiniteturtles.co.uk www.away3d.com
