Load Model3DGroup from stream (obj & mtl & bmp)

Mar 3, 2015 at 1:34 PM

currently i am loading an obj file with ObjReader.
var r = new ObjReader();
Model = r.Read(pathToObj);
It finds the other files (mtl and bmp) and works fine (all files are in the same folder and the obj file is pointing to the mtl file)

But now i would like to load the object not as a obj file but as a stream (or byte array)
I know that the ObjReader has a read method for a stream but how should i give him the material (with the bmp) ??

All files would be streams or byte arrays.

Thx a lot.
Mar 11, 2015 at 8:37 AM
So there is no way? to create a material from stream and add him a bmp from stream ?

Or something in this way.