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
away3D2srcaway3dcorebaseSubGeometry.as:274]
at away3d.core.base::SubMesh/getVertexNormalBuffer()[D:2smacks
away3D2srcaway3dcorebaseSubMesh.as:199]
Lights works fine with primitives likes Cube, Plane, etc… But in this case, I always get en error.
My light & my mesh are both child of my scene3D.
Can you help me, please ?
(full code in attachment)