Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to load referencing other mtl file with in raw folder #28

Open
rameshkec85 opened this issue Aug 23, 2022 · 0 comments
Open

Unable to load referencing other mtl file with in raw folder #28

rameshkec85 opened this issue Aug 23, 2022 · 0 comments

Comments

@rameshkec85
Copy link

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;
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant