smartGL icon indicating copy to clipboard operation
smartGL copied to clipboard

Unable to load referencing other mtl file with in raw folder

Open rameshkec85 opened this issue 2 years ago • 0 comments

ship.zip


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;
    }

rameshkec85 avatar Aug 23 '22 14:08 rameshkec85