This was the error I was getting when trying with a PointLight and solved when I replaced it by a DirectionalLight...
Please confirm the type of light you are using. On 16 mayo, 14:27, CoreGr <[email protected]> wrote: > My error is different than yours ragaes. Mine seems to be caused when > passing the "light" argument to create an instance of any of the > ShadowMethod classes. In the "LightBase.as" class the method I said > before (createShadowMapper()) is called and it throws the exception. > The method is called from: "castsShadows(value : Boolean)" which is in > the same class (LightBase). > > My code is very simple: > > var material : ColorMaterial = new > ColorMaterial(0xff0000); > material.shadowMethod = new > SlowFilteredShadowMapMethod(light); > material.lights = [light]; > var esfera:Sphere = new Sphere(material, 100, 10, 10); > esfera.castsShadows = true; > esfera.position = new Vector3D(-200, 50, -200); > view.scene.addChild(esfera); > > Even ommiting the line "esfera.castShadows = true" I get this > exception. > > Any idea about what could be the problem please?
