diff --git a/src/main/java/cactusServer/models/StageModelManager.java b/src/main/java/cactusServer/models/StageModelManager.java index 2eea941..43d6f92 100644 --- a/src/main/java/cactusServer/models/StageModelManager.java +++ b/src/main/java/cactusServer/models/StageModelManager.java @@ -1,17 +1,13 @@ package cactusServer.models; -import java.io.BufferedInputStream; -import java.io.FileInputStream; import java.io.IOException; import java.util.HashMap; import javax.inject.Singleton; -import javax.servlet.ServletContext; import org.ntlab.radishforandroidstudio.framework.model3D.Model3D; import org.ntlab.radishforandroidstudio.framework.model3D.ModelFactory; import org.ntlab.radishforandroidstudio.framework.model3D.ModelFileFormatException; -import org.ntlab.radishforandroidstudio.framework.model3D.Object3D; @Singleton public class StageModelManager { @@ -19,7 +15,11 @@ private HashMap model = new HashMap<>(); private StageModelManager() { - + try { + setStage(0, ModelFactory.loadModel(getClass().getResource("assets/konan.obj").getPath())); + } catch (IOException | ModelFileFormatException e) { + e.printStackTrace(); + } } public static StageModelManager getInstance() {