(it show chinese,I tranlate it to english, I am in china)
TypeError: Error #2007: param data can not be empty?
code snippets come from BvhTriangleMeshCarTest.as
var materia :BitmapMaterial=new BitmapMaterial((new CarSkin() as Bitmap).bitmapData)
[strong]materia.lights = [_light,_pl];[/strong]
materia.ambient = 0.8;
materia.specular = 0.8;
materia.specularColor = 0xff0000;
materia.shadowMethod = new FilteredShadowMapMethod(_light);
var sceneMesh : Mesh = Mesh(container.getChildAt(0));
sceneMesh.geometry.scale(1000);
sceneMesh.geometry.scaleUV(1000);
sceneMesh.material = materia;
sceneMesh.castsShadows = true;
or
var sceneMesh : Mesh = Mesh(container.getChildAt(0));
sceneMesh.geometry.scale(1000);
sceneMesh.geometry.scaleUV(1000);
// sceneMesh.material = materia;
//sceneMesh.castsShadows = true;
(sceneMesh.material as BitmapMaterial).lights=[_light]
both got error.
Please help try any example on github or write a simple test class .
Thanks.