Papervision: MovieMaterial on a Collada object
-
06-09-2019 - |
Question
Is it possible to put a MovieMaterial on an imported Collada object in Papervision? I can't find anything on the matter on the internet and anything I try on my own is in vain...
Thank you
Solution
DisplayObject3D's have a "replaceMaterialByName(material:MaterialObject3D, name:String):void" method which will allow you to do that. Hope it helps.
OTHER TIPS
I think DisplayObject3D's also allow you to just say
DisplayObject3D.material = new MovieMaterial(new arbitraryMovieClip(), false, true);
I typed that without looking at anything so it may have a typo in it, I just did it to a sphere yesterday
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow