« Return to Thread: Lights and Shader Materials

Lights and Shader Materials

by Maggical :: Rate this Message:

Reply to Author | View in Thread

Hi there, I'm having some trouble making a light affect a material that I load to a Collada file.

All works great, exept the light does not seem to affect the model. Here's the function that creates the light, the materials, the materiallist and the collada... Any ideas?

private function addCollada():void{
      ///
      light = new PointLight3D(true);
      ///
      var shader:GouraudShader = new GouraudShader(light,0xffffff,0x222222);
      var shadeMat:ShadedMaterial = new ShadedMaterial(new BitmapFileMaterial("assets/Rectangle2CompleteMap.png"),shader);
      ///
      var materialsList:MaterialsList = new MaterialsList();
      materialsList.addMaterial(shadeMat,"baked_wire_028028177");
      ///
      collada = new Collada("assets/skate.dae", materialsList);
      default_scene.addChild(collada);
}


I tried moving the light's x, y and z and nothing...

Thanks,

Javier

_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

 « Return to Thread: Lights and Shader Materials