_canvas.setTitle("Ardor3D - Simple Obj Example");
_canvas.getCanvasRenderer().getCamera().setLocation(new Vector3(0, 5, 20));
// Load the collada scene
final long time = System.currentTimeMillis();
final ObjImporter importer = new ObjImporter();
try {
importer.setTextureLocator(new SimpleResourceLocator(ResourceLocatorTool.getClassPathResource(
SimpleObjExample.class, "com/ardor3d/example/media/models/obj/")));
} catch (final URISyntaxException ex) {
ex.printStackTrace();
}
final ObjGeometryStore storage = importer.load("obj/pitcher.obj");
System.out.println("Importing Took " + (System.currentTimeMillis() - time) + " ms");
_root.attachChild(storage.getScene());
}