[Papervision3D] Issues with Maya DAE file

David Di Biase dave.dibiase at gmail.com
Wed Apr 8 07:10:08 PDT 2009


Looking at all the issues that material referencing is giving me, I'm
thinking that it might be much simpler if I just created separate named
DisplayObject3Ds and assign the colours dynamically.

So far I've found code to assign a material list on load with my load
method. ie. modelCol.load("assets/test_cube_02red2.dae", new
MaterialsList({all: cm}));

The problem now is how do I reference the children of a DisplayObject and
assign materials to them explicitly?

Thanks!

Dave

On Tue, Apr 7, 2009 at 11:53 PM, David Di Biase <dave.dibiase at gmail.com>wrote:

> Hi there,
>
> I've been researching this from top to bottom in Google for days and as a
> last resort turning to the mailing group. I'm under the gone to get this
> working so help would be greatly appreciated :-) I'll pay if I have to -
> hehe (or buy someone a nice cold beer at least).
>
> I have a much more complicated model but I've decided to link to test on a
> simple cube for now. You can find it at
> http://www.mozzly.com/test_cube_02.dae . The file has one colour side
> material called "color_red" which I want to dynamically modify in PV3D using
> a call such as: modelCol.getMaterialByName('color_red').fillColor =
> 0x000000;
>
> We got it working on a SketchUp export DAE model by naming the materials
> themselves but for some reason no matter what we've attempted (almost 15
> different solutions we've found on Google) nothing does the trick. I'm sure
> someone has worked with Maya Collada formats, I'm assuming there's some
> trick or kluge to fix it - but what???
>
> Thanks in advance,
>
> David
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090408/515b15b3/attachment.html>


More information about the Papervision3D mailing list