-
DescriptionI'd like to use USDZ autogenerate for my project. As far as I know, it's not released yet so I use the version from that link: https://modelviewer.dev/node_modules/@google/model-viewer/dist/model-viewer.min.js With version 1.6.0 I was able to swap textures based on texture channel, so in my case, I change independently the base and fabric of a chair. Live Demohttps://glitch.com/edit/#!/mire-cookie-attack?path=index.html%3A17%3A63 - model-viewer from unpkg.com Versionhttps://modelviewer.dev/node_modules/@google/model-viewer/dist/model-viewer.min.js Browser Affected
OS
AR
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
It seems the problem is that despite having two materials, they both point to the same baseColor texture. In fact, the legs don't appear to be textured at all, so you'd be better off with their material having just a baseColorFactor and no texture. Not sure why this would ever have worked before. Also, I recommend putting a link to a specific npm version rather than the latest, since I just made a release and now your two examples behave the same. |
Beta Was this translation helpful? Give feedback.
It seems the problem is that despite having two materials, they both point to the same baseColor texture. In fact, the legs don't appear to be textured at all, so you'd be better off with their material having just a baseColorFactor and no texture.
Not sure why this would ever have worked before. Also, I recommend putting a link to a specific npm version rather than the latest, since I just made a release and now your two examples behave the same.