[Papervision3D] ShadedMaterial throws errors
-a-
aYo at binitie.com
Tue Dec 25 01:51:53 PST 2007
The problem is the BitmapFileMaterial - when its used as the argument
for the material parameter, throws up a null object error. By the by
what exactly does is the compositeMode parameter for??
a/
> Am I missing something here?
>
> I've got this
>
> var _orbbitmap:BitmapFileMaterial = new
> BitmapFileMaterial('assets/dSt.jpg');
>
> var _orbPhongShade:PhongShader = new
> PhongShader(pointLight,0xffffff, 0x777777, 30);
> var _orbShadeMaterial:ShadedMaterial = new
> ShadedMaterial(_orbbitmap, _orbPhongShade,4)
>
> _orb = new Sphere(_orbShadeMaterial,100, 20,20,{x:20});
>
> I get compiler errors pointing to a line in the ShadedMaterial class.
> Any pointer would be appreciated.
>
> a/
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
>
More information about the Papervision3D
mailing list