@ richard
MAybe im doing this wrong

Loader3D.enableParser(OBJParser);

var context:AssetLoaderContext = new AssetLoaderContext(true, "../src/");
var objFile:EventDispatcher =  AssetLibrary.load(new
URLRequest('../src/objTest.obj'),new OBJParser(), context);

objFile.addEventListener(AssetEvent.ASSET_COMPLETE, assetComplete); //never
fires
objFile.addEventListener(LoaderEvent.DEPENDENCY_COMPLETE,
dependancyComplete);
objFile.addEventListener(LoaderEvent.RESOURCE_COMPLETE, onComplete);

works apart from asset complete doesnt seem to fire.

BUT
Try loading an obj file that has mtl, but the mtl doesnt use textures
(images)
It ends up trying to load the obj file.

TypeError: Error #1034: Type Coercion failed: cannot convert "# This file
uses centimeters as units for non-parametric coordinates.

mtllib test2obj.mtl
v -2502.885766 0.000014 -600.490442
v -743.613427 0.000014 -600.490442


If you change AssetLoaderContext(false, "../src/"); (False)
No error but.
It doesn't load ( no events fire)

Reply via email to