on the loaded ObjectContainer3D or the Object3DLoader itself is the
materialLibrary property:
materialLibrary.getMaterial("theIdFromTheDAE").material.smooth = true;
a bit more long winded, but having the material as a property of the library
object allows us to replace the material if we so wish like this:
materialLibrary.getMaterial("theIdFromTheDAE").material = new
BitmapMaterial(myBitmap);
which can be handy too.
a lot of the time the id and name attributes are the same for materials and
objects in a collada file. But just in case they're not, the loader always
uses the id attribute of the collada items for the names of objects and
materials.
if you prefer not to go rooting around in xml for object and material names,
you can do the following at the start of your application:
Debug.active = true;
this puts Away3d into debug mode, using the trace window to output data
about various events. In the case of a collada file loading, the names of
all parsed materials, bones, containers and mesh objects are output, helping
you find the right name for your material.
hth
Rob
On Wed, Oct 22, 2008 at 3:04 PM, Albinal <[EMAIL PROTECTED]> wrote:
>
> If I am loading a texture through my DAE how do I set the texture to
> smooth? In Papervision they have something like
> "GetMaterialByName("theNameFromTheDAE").smooth = true;
>
> Many thanks!
>
> Elye
--
Rob Bateman
Flash Development & Consultancy
[EMAIL PROTECTED]
www.infiniteturtles.co.uk
www.away3d.com