Model-viewer: Seeing purple noise when viewing assets in Model-Viewer 8.0 on a Pixel 3

Created on 3 Jan 2020  路  3Comments  路  Source: google/model-viewer

Description

Noticed that, after updating a test page to use Model-Viewer 8.0, I am now seeing purple noise appear on the surface of that model.

Live Demo

Provided via DM

Browser Affected

  • [X ] Chrome
  • [ ] Edge
  • [ ] Firefox
  • [ ] Helios
  • [ ] IE
  • [ ] Safari

OS

  • [ X] Android
  • [ ] iOS
  • [ ] Linux
  • [ ] MacOS
  • [ ] Windows

Versions

  • model-viewer: v0.8.0
  • three.js: rXX
compatibility rendering & effects bug

Most helpful comment

Okay, the wrong shadow thing was mostly red herring and easily fixed. I'm seeing some strange color bugs though. Here is the originally reported bug, where we get purple noise in blocks on a Pixel 3, but only on one material (the only one I've kept here), which has an AOmap, but no other maps:
image

Here it is with the AOmap removed (so no maps at all), and I'm getting a weird yellow color, which reminds me of #942:
image

All 3 comments

This model did not pass the glTF validator. If you can reproduce the problem with a modified subset of the model that does pass the validator, please pass it along.

@datkinsGoogle Thanks for the version that passes the validator! I removed everything but the problematic body paint part and found that the problem only repros with shadows enabled. In addition, I found that even on non-Pixel devices, the shadow is incorrect for this model:
image

Okay, the wrong shadow thing was mostly red herring and easily fixed. I'm seeing some strange color bugs though. Here is the originally reported bug, where we get purple noise in blocks on a Pixel 3, but only on one material (the only one I've kept here), which has an AOmap, but no other maps:
image

Here it is with the AOmap removed (so no maps at all), and I'm getting a weird yellow color, which reminds me of #942:
image

Was this page helpful?
0 / 5 - 0 ratings