smartGL
smartGL copied to clipboard
Unable to load referencing other mtl file with in raw folder
private Object3D loadShip(@NonNull Context context) {
mSpaceFrigateTexture = new Texture(context, R.drawable.ship);
WavefrontModel modelColored = new WavefrontModel.Builder(context, R.raw.ship_1)
.addTexture("ship", mSpaceCruiserTexture)
.addTexture("cube1_auv", mSpaceCruiserTexture)
.create();
Object3D object3D = modelColored.toObject3D();
object3D.setScale(1f, 1f, 1f);
object3D.setPos(0, 0, -10);
return object3D;
}