Papervision: MovieMaterial on Collada Object

Can a MovieMaterial be put on an imported Collada object in Papervision? I can't find anything about this on the internet and everything I try to do on my own is in vain ...

thanks

+1


a source to share


2 answers


DisplayObject3D has a replaceMaterialByName (material: MaterialObject3D, name: String): void method that will allow you to do this. Hope it helps.



+3


a source


I think DisplayObject3D also lets you just say

DisplayObject3D.material = new MovieMaterial(new arbitraryMovieClip(), false, true);

      



I typed this without looking at anything, so it might have a typo, I just did this in the sphere yesterday

0


a source







All Articles