views:

471

answers:

2

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

+3  A: 

Hi,

DisplayObject3D's have a "replaceMaterialByName(material:MaterialObject3D, name:String):void" method which will allow you to do that. Hope it helps.

Tyler Egeto
I tried that before but it didn't work at once so I just left it.After some debugging it now works great. Thanks for the tip :)
Dimitris
A: 

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

George Rosar