Hey 2smacks did you add your light objects to the scene?
On Wed, Oct 5, 2011 at 2:56 AM, 2smacks <[email protected]> wrote: > Hello Away3d members, > > I loaded an obj file and I displayed it succefully in my scene. > The problem is, when I add any type of light in my material.lights > array, flashdevelop return me this : > > TypeError: Error #2007: Le paramètre data ne doit pas être nul. > at flash.display3D::VertexBuffer3D/uploadFromVector() > at away3d.core.base::SubGeometry/getVertexNormalBuffer()[D:\2smacks > \away3D2\src\away3d\core\base\SubGeometry.as:274] > at away3d.core.base::SubMesh/getVertexNormalBuffer()[D:\2smacks > \away3D2\src\away3d\core\base\SubMesh.as:199] > > Lights works fine with primitives likes Cube, Plane, etc... > > My light & my mesh are both child of my scene3D. > > Can you help me, please ? -- Rob Bateman Flash Development & Consultancy [email protected] www.infiniteturtles.co.uk www.away3d.com
