Thanks. But unfortunately I can't get it to work. I have this error:
1119: Access of possibly undefined property smooth through a reference
with static type away3d.materials:IMaterial.
I looked at the IMaterial.as file but it didn't really help?!? Do I
also have to update my material or something?!?
I also couldn't get the debug to work?!?
Elye
On Oct 22, 11:44 pm, "Rob Bateman" <[EMAIL PROTECTED]> wrote:
> 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]