Access the material by name it was given in 3d modeling program,This way it should work.I do this all the time and have no problem swapping materials.
On Tue, Jul 13, 2010 at 9:59 PM, Joshua Granick <[email protected]>wrote: > > Hi everyone! > > Updated to the latest version of Away3D, and it's caused some trouble in > my projects. > > 1.) I can't rotate the scene anymore. Is there a quick work-around for > this, like putting everything in an ObjectContainer3D, and rotating that? > > 2.) I can't change the material for a loaded Collada at runtime anymore. > Here is an example of the method I was using: > > > for each (var materialData:MaterialData in instance.materialLibrary) { > > materialData.material = new WireColorMaterial (); > > } > > > Please help! Thanks! > > > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ > -- Michael Ivanov ,Programmer Neurotech Solutions Ltd. Flex|Air |3D|Unity| www.neurotechresearch.com http://blog.alladvanced.net http://www.meetup.com/GO3D-Games-Opensource-3D/ Tel:054-4962254 [email protected] [email protected]
