Am I understanding you correctly in that you have two problems, one regarding memory management and one regarding how to embed dependencies?
First of all, memory management of meshes, geometries et c has nothing to do with the file format from where those came. That's something that we've tried to make absolutely certain in Away4. Are you really only experiencing memory cleanup issues with AWD and OBJ? Have you tried other formats and not had the same issues? Do you know what memory it is that's leaking? Concerning mapUrlToData(), you obviously need to fill out the correct URL. If you are uncertain about what URL your file is referencing, try to load without any mapping. You should get an error saying that the file cannot be found, and as part of that error you should get the URL at which it was expected. Use that URL in your mapUrlToData() mapping. If you have already done this and are certain that the URL is correct, please send the file for me to debug. Cheers /R On May 31, 7:25 pm, John Brookes <[email protected]> wrote: > Both OBJ and awd don't clean up when using dispose(true) on the mesh. > Theres always the same number of meshes and geometry hanging around. > Do I need to do anything more than ? > Mesh(themesh).dispose(true) > > Trying to embed awd files and images > Something along the lines of > > Loader3D.enableParser(AWDParser); > > imgCntxt = new AssetLoaderContext(false,null); > //Tried various paths etc > // imgCntxt.mapUrlToData("Models/TreeScotPineAWD/images/", new > treeBranchIMG()); > // imgCntxt.mapUrlToData("../src/Models/ScotsPine/images/polySurface1.jpg", > new treeTrunkIMG() as ByteArray); > > AssetLibrary.parseData(new awdFile(), new AWDParser(),imgCntxt); > AssetLibrary.addEventListener(LoaderEvent.RESOURCE_COMPLETE, > onLoadComplete); > > Gone through every random guess but cant get embedded awd and images. > Only thing I've found to work is to set > imgCntxt = new AssetLoaderContext(false,null); > > and then apply the materials without mapurltoData through new > bitmapmaterial. > so erm how?
