Sceneform-android-sdk: Texture added to ShapeFactory Cube shows up horizontally flipped

Created on 17 Jul 2018  路  4Comments  路  Source: google-ar/sceneform-android-sdk

Not sure if this is a bug or not, just wondering if I'm doing something wrong or missing a setting, but textures added to a ShapeFactory cube show up horizontally flipped for me.

      Texture.builder()
          .setSource(getApplicationContext(), R.drawable.magistrates_office_jp)
          .build()
          .thenAccept(texture -> {
            MaterialFactory.makeOpaqueWithTexture(getApplicationContext(), texture)
                .thenAccept(material -> {
                  ModelRenderable cube = ShapeFactory.makeCube(
                      new Vector3(new Vector3(1f, 1f, 1f)), Vector3.zero(), material);

                  Node node = new Node();
                  node.setRenderable(cube);
                  node.setParent(anchorNode);
                });
          });
bug fixed in upcoming release

Most helpful comment

Thanks for the report, this is definitely a bug. I've verified it and it will be fixed in an upcoming release.

All 4 comments

@michaelvogt I have the same problem !! The ShapeFactory cube with my texture:
bildschirmfoto 2018-07-17 um 19 00 05

And the texture is the following:
metaioman

Yes, I have seen it mentioned in several issues, but it was never talked about directly. So I thought creating a separate issue might be a good idea. Originally I thought its just me doing something stupid.

Thanks for the report, this is definitely a bug. I've verified it and it will be fixed in an upcoming release.

This is now fixed in Sceneform 1.4.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hcjung2000 picture hcjung2000  路  3Comments

PaulTVungle picture PaulTVungle  路  3Comments

KamikX picture KamikX  路  4Comments

rohitagarwal3011 picture rohitagarwal3011  路  4Comments

scolar picture scolar  路  4Comments