sceneform-android icon indicating copy to clipboard operation
sceneform-android copied to clipboard

Color of model on scene doesn't match color of texture (warm white instead of white)

Open jmhe1 opened this issue 2 years ago • 1 comments

The color is wrong after setting the Texture `CompletableFuture<Texture> texture = Texture .builder() .setSampler(Texture.Sampler.builder() .setMinFilter(Texture.Sampler.MinFilter.NEAREST) .setMagFilter(Texture.Sampler.MagFilter.LINEAR) .setWrapMode(Texture.Sampler.WrapMode.CLAMP_TO_EDGE) .build()) .setSource(this, Uri.parse("models/uv_3d_chartlet_outside.png")) .setUsage(Texture.Usage.DATA) .build(); CompletableFuture.allOf(dragon, texture2,texture) .handle((ok, ex) -> { try { Node modelNode1 = new Node(); RenderableInstance modelInstance2 = modelNode1.setRenderable(dragon.get()); modelInstance2.getMaterial().setBaseColorTexture(texture2.get()); modelNode1.setLocalScale(new Vector3(0.1f, 0.1f, 0.1f)); modelNode1.setLocalRotation(Quaternion.axisAngle(new Vector3(0f, 1f, 0f), 35)); modelNode1.setLocalPosition(new Vector3(0f, -1f, -1.0f)); com.google.ar.sceneform.SceneView.getScene().addChild(modelNode1);} catch (InterruptedException | ExecutionException ignore) {

                }
                return null;
            });`

models.zip textures.zip

jmhe1 avatar Nov 18 '23 03:11 jmhe1

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Feb 16 '24 05:02 github-actions[bot]

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

github-actions[bot] avatar Feb 23 '24 05:02 github-actions[bot]