Hi ,
I am trying to simply load a 3DS file. Downloaded from web.
It seems , these files have already textures mapped to it.. and I haven’t got those textures with me.. >
I just want to view the 3DS file and Apply my own textures to those geometries ..
This is my code :
_loader = new Loader3D();
_loader.addEventListener(LoaderEvent.RESOURCE_COMPLETE, onModelLoaded);
_loader.load(new URLRequest(‘pool3.3DS’));
Error shown :
Error: Error #2032: Stream Error. URL: app:/DIVEBORD.TGA
at away3d.loaders::AssetLoader/onRetrievalFailed() [/Users/robbateman/Documents/fdt5workspace/away3d-core-fp11/src/away3d/loaders/AssetLoader.as:423]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at away3d.loaders.misc::SingleFileLoader/handleUrlLoaderError()[/Users/robbateman/Documents/fdt5workspace/away3d-core-fp11/src/away3d/loaders/misc/SingleFileLoader.as:336]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
>>>>>> As you can see , DIVEBORD.TGA is the asset , i don’t have and I don’t want actually.
Please suggest a way to simply load without texture map.. for the ones coming with assets assigned.
And if possible I would be glad if anyone could post a simple generalized code to load 3DS , Apply texture of my own choice..
* AIR application for Mobile Devices