[Papervision3D] Issues with Maya DAE file

John Brookes jbpv3d at googlemail.com
Wed Apr 8 07:47:28 PDT 2009


That dae file doesn't have a face assigned as "color_red".

In maya.
create a cube
select a face
assign a new material to that face eg lambert.

If you want to rename the material, its the shadingEngine name.
eg lambert1SG
export.

Then in pV (assuming you didnt rename it)

daeModel.replaceMaterialByName("lambert1SG", new colorMaterial());

2009/4/8 David Di Biase <dave.dibiase at gmail.com>

> 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
>>
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090408/e75d6209/attachment.html>


More information about the Papervision3D mailing list