@John: The OBJ mtl support is not properly implemented in the OBJParser yet. There is a automatic dependency loading system inside the AssetLoader that parsers generally use to have dependencies loaded, but it is bypassed for mtl files (OBJParser goes rogue and loads it itself ;)) and that will be changing. So don't rely on the constructor parameter on OBJParser for the long run. I will be removing it shortly after I have fixed the OBJParser to conform to the dependency system's rules. :)
Once OBJParser adheres to the general dependency loading system, you will be able to achieve the same thing using the AssetLoaderContext.dependencyBasePath property, which is how it works for other parsers. Cheers /R On May 6, 10:08 pm, John Brookes <[email protected]> wrote: > Think I've solved the obj mtl issue > > before I was doing AssetLibrary.load(new URLRequest(LEVEL_URL)) and it > failed. > > This is working, no missing mtl error. > eg > private var LEVEL_URL:String = '../src/indi001/object/IndiEstate6exp.obj'; > levelfile = AssetLibrary.load(new URLRequest(LEVEL_URL),new > OBJParser("../src/indi001/object/")); > > But then after doing that realised that I would have to add each part of the > level. As there isn't (or I dont know) how to say just add the whole thang. > Plus not knowing what the part names are makes it a nightmare. (obj1...30). > Tried grouping the whole model and then adchild(obj0) but that didnt work. > > Anyhoo > Im only using obj as it good for a quick test going from maya, so for now > Ill change that bit to a basic loader3d. > > carry on :)
