Hi - been forced to work with OBJ files for a job. I need to parse in a tshirt model that has front, back, right sleeve, left sleeve, etc. in the OBJ file. I’m used to parsing 3ds models like:
myObjContainer3D = Max3DS.parse(Cast.bytearray(FullModel), { autoLoadTextures:false } );
and then getting access to each part of the model like
for each (var child:Mesh in myObjContainer3D.children) {
// do something like assign different materials
}
I tried:
myObjContainer3D = Obj.parse(Cast.string(FullModel)
but it throws an error about casting type Object3D to ObjectContainer3D. So how do I parse an OBJ file where I can get access to each named mesh inside it so I can assign different materials to each?