Thanks for the suggestions, guys.

On the first problem, I was looking for a way to change the color of
an object after it is instantiated.  We re-use the same object for
different projects so I want to avoid editing the original Thing.as
code to change color.  Accoding to the livedocs for AS3Exporter, we
should be able to do:
   (myThing.meshes[0] as Mesh).material = wsMat;
But looking at the code that AS3Exporter makes, I am a bit confused
because there is a getter for meshes but no setter for it, so I am not
sure how changing meshes[0] can have an effect.  On the other hand,
the meshes getter returns array oList, and if I hack Thing.as to make
oList public and then try
   (myThing.oList[0] as Mesh).material = wsMat
it ignores that too.  Clearly I don't understand the Mesh data
structure!

On the second problem, I did confirm that basic primitives like
Cylinder render properly alongside my "Thing" in the same scene with
the light set to DirectionalLight3D.  So I think I have a valid
combination of material and light - although I know this can be tricky
to get right.

Perhaps someone has an example of changing material on an object
created by AS3Exporter...

Thanks all
Ralph

On Jul 5, 6:12 am, ben <[email protected]> wrote:
> not pretty helpfull but I agree with li.... ;-)
> check your light !

Reply via email to