Hi All,
I have a request for OBJs, but really it would apply to all 3D file formats.
When emdedding an OBJ file, I’m forced to load its MTL file and subsequent material maps at runtime.
Since most of the time you will want to embed a model in its entirety, not just the geometry, this limitation in embedding is a problem.
Would it be possible to add some additional logic so we can do this?
//Instantiate Embedded Assets
obj = new EmbeddedOBJ();
mtl = new EmbeddedMTL();
map1 = new EmbeddedMap1();
map2 = new EmbeddedMap2();
_loader.parseData(new EmbeddedFile(), “”, false, OBJParser);
//Pass Material information to the Loader3D
_loader.setMTL(mtl);
_loader.addMaterial(“map1.jpg”, map1);
_loader.addMaterial(“map2.jpg”, map2);
This would give the Loader3D enough information to map all the material maps to the geometry and would allow for a model in its entirety to be embedded.
iOS apps are very strict about what gets loaded at runtime. Once molehill is released for mobile, this feature request will become urgent, so might as well add support now, rather than waiting for the alarm bells!
Thanks for all your hard work Away3D team! <3 Away3D 4
-Jahiro