1

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

rtn
  • 127,556
  • 20
  • 111
  • 121
Dimitris
  • 13,480
  • 17
  • 74
  • 94
  • I'm pretty sure I've already seen several times a MovieMaterial applied on a Collada object on some blogs. Can't remember right now where exactly but If I find something, I'll let you know. Also, if you could post some code , one might tell you what's wrong. – Florian F May 26 '09 at 19:08

2 Answers2

3

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

Tyler Egeto
  • 5,505
  • 3
  • 21
  • 29
  • 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 May 27 '09 at 10:39
0

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

khr055
  • 28,690
  • 16
  • 36
  • 48