Thanks for the reply.

I am indeed casting the child to Mesh first and then accessing its
material. Doesn't work unfortunately

I tried the way in your example as well, using MouseEvent3D and
e.object as Mesh. Doesn't work either.
The method is being executed (the trace in line 121 shows that the
event fires) but the material doesn't change.

It seems there's something fundamentally wrong; I can't even turn
meshes invisible.
For instance, the camPlaceholder and camtargetPlaceholder stay visible
despite line 110 and 111. Or the mesh itself when clicked (line 119).

code: http://www.ycchen.de/blogging/ExColladaYC.as
swf: http://www.ycchen.de/blogging/away3dlite.html



On 15 Mai, 03:56, katopz <[email protected]> wrote:
> it's happen like this...
> fast render = paint algo each mesh //so you will see it render like
> separated mesh
> basic render = paint algo each mesh with mix faces z-sort
>
> and for change each mesh material for dae
> you have to use getChildByName and access their material after that
>
> or do try 
> thishttp://away3d.googlecode.com/svn/branches/lite/bin/ExChangeBitmapMate...http://away3d.googlecode.com/svn/branches/lite/src/ExChangeBitmapMate...
>
> if you still on trunk, do try this 
> insteadhttp://away3d.googlecode.com/svn/branches/lite/libs/
>
> do try take a look all examples here, should 
> helphttp://away3d.googlecode.com/svn/branches/lite/bin/
>
> hth
>
> On 15 May 2010 01:24, YC_Chen <[email protected]> wrote:
>
> > I just found out that
>
> > model.materialLibrary.getMaterial("leaf-material").material = (flag) ?
> > wiremat : originalmat
>
> > works, but that changes all objects witht hat material.
> > I need the change to apply only to specific meshes.
>
> --
> Regards
> -----------------------------------------------------------
> katopz,http://sleepydesign.com
> Away3D and JigLibFlash Developer Team

Reply via email to