Hi !
I’m looking for a way to delete a material from a mesh and replace it with a new one which uses an external texture (.png) called by an URLRequest. How could I do that? BitmapFileMaterial is not supported any more…
thxs
TextureMaterial and URLRequestSoftware: Away3D 4.x |
||
Mael, Newbie
Posted: 18 June 2012 08:37 PM Total Posts: 5 |
||
|
||
Mael, Newbie
Posted: 19 June 2012 12:55 PM Total Posts: 5 [ # 2 ] I forgot : sorry for my english. I tried that, is it the right way to do? :
function onModelLoaded(e : LoaderEvent):void |
||
Austen, Newbie
Posted: 19 June 2012 06:13 PM Total Posts: 21 [ # 3 ] i’m not a texture expert, but what error does it throw exactly? i give you the piece of code i use to load my textures from an embedded tileset:
[Embed(source="/../assets/mat/tileset.jpg")] private var TileSet:Class; |