List of usage examples for com.badlogic.gdx.graphics.g3d.loaders.wavefront ObjLoader ObjLoader
public ObjLoader()
From source file:org.escoladeltreball.arcowabungaproject.ar.PizzaModelLoader.java
License:Open Source License
/** * Load the texture and model .obj from file *//*from ww w.j ava 2 s . c o m*/ private void loadModelFromFile() { try { if (textureFileName != null) texture = new Texture(Gdx.files.internal(textureFileName), true); } catch (Exception e) { Log.e(LOGTAG, "Could not load the specified texture: " + textureFileName); e.printStackTrace(); } if (fileName.endsWith(".obj")) model = new ObjLoader().loadObj(Gdx.files.internal(fileName), true); }