0
Better way to load multiple models ?
This discussion was imported from CodePlex
Rogad wrote at 2013-12-08 18:10:
I was wondering if there is a better way to do this :
I was thinking I could do this, but the individual models do not load, I think it's just loading the first one four times but I am not sure.
ObjReader CurrentHelixObjReader = new ObjReader();
neutral = CurrentHelixObjReader.Read("C:/Users/Roger/Desktop/cutie1/cutie.obj");
ObjReader CurrentHelixObjReader2 = new ObjReader();
anger = CurrentHelixObjReader2.Read("C:/Users/Roger/Desktop/cutie1/cutie_ExpressionAnger.obj");
ObjReader CurrentHelixObjReader3 = new ObjReader();
smile = CurrentHelixObjReader3.Read("C:/Users/Roger/Desktop/cutie1/cutie_ExpressionSmileOpen.obj");
ObjReader CurrentHelixObjReader4 = new ObjReader();
blink = CurrentHelixObjReader4.Read("C:/Users/Roger/Desktop/cutie1/cutie_ModifierBlinkLeft.obj");
So you can see I am loading 4 models. I was thinking I could do this, but the individual models do not load, I think it's just loading the first one four times but I am not sure.
ObjReader CurrentHelixObjReader = new ObjReader();
neutral = CurrentHelixObjReader.Read("C:/Users/Roger/Desktop/cutie1/cutie.obj");
anger = CurrentHelixObjReader.Read("C:/Users/Roger/Desktop/cutie1/cutie_ExpressionAnger.obj");
smile = CurrentHelixObjReader.Read("C:/Users/Roger/Desktop/cutie1/cutie_ExpressionSmileOpen.obj");
blink = CurrentHelixObjReader.Read("C:/Users/Roger/Desktop/cutie1/cutie_ModifierBlinkLeft.obj");
Rogad wrote at 2014-02-15 19:00:
Still stuck on this, anyone have any ideas ?
objo wrote at 2014-02-18 08:39:
The first code is correct, but I am considering adding an issue on refactoring the importers so it looks more like the second version. The exporters were recently refactored so they could be reused.
Customer support service by UserEcho