I know how to add light picker to a Cubegeometry made in Away3d, but what about .awd that I load. Can I add lighting to them?
Thanks
How to add lightpicker to a loaded .awd model?Software: Away3D 4.x |
||
Ankur, Jr. Member
Posted: 22 January 2013 07:51 PM Total Posts: 43 I know how to add light picker to a Cubegeometry made in Away3d, but what about .awd that I load. Can I add lighting to them? Thanks |
||
|
||
|
||
Ankur, Jr. Member
Posted: 12 February 2013 07:40 AM Total Posts: 43 [ # 3 ]
Hi yohann, The trick is not to use a Loader3D, instead use AssetLibrary to load the model. When you have loaded it in assetLibrary, you can get the mesh and apply a lightpicker to its material as shown in the code below.
private function onAssetComplete(e:AssetEvent):void Also if you know about AssetLibrary, please reply to my question at- http://away3d.com/forum/viewthread/3981/ |
||
|
||
|
||
yohann, Newbie
Posted: 13 February 2013 01:04 PM Total Posts: 17 [ # 6 ] Sorry Ankur, I don’t know. Sounds like you’re a few steps ahead of me with Away3D stuff. I’m still trying to master importing and skinning meshes; all of my “animations” so far have been limited to what I can do w AS3. Good luck! |