Sigh,
I got a DirectionalLight all working. BUT when I set up the texture for the main character (before I do others), I can’t get both Lighting and texture to appear. the model comes off as untextured but with light and shadows.
I load a BitmapFileMaterial which works normally, for the light I tried whiteShading and then Phong.. the lines for both (I used one or the other was)
var newMaterial:WhiteShadingBitmapMaterial = new WhiteShadingBitmapMaterial(RabbitTex.bitmap,{repeat:true});
var newMaterial:PhongBitmapMaterial = new PhongBitmapMaterial(Cast.bitmap(RabbitTex.bitmap),{repeat:true});
I tried just using the bitmap data from the texture, didn’t work. so I found out and tried ‘Bitmap’ and that seams to be okay.. but probably not. I tried just passing it, then I tried to cast it as you can see.
neither works.. I think I haven’t got the bitmapData to pass right..
problem is, most Tutorials and guides use embedded bitmaps more then filematerials so.. help is tricky.
once this is done I can work on shadows ^_^ maybe