Skip to content

Broken AOMap in USDZ with Transform2d #21906

@kolodi

Description

@kolodi

After introducing support for texture repeat and offset in #21852, the ambient occlusion map is repeated many times, despite the fact that we are setting the scale separately for each texture:
float2 inputs:scale = ${ buildVector2( texture.repeat ) }

To Reproduce

Steps to reproduce the behavior:

  1. Have a model with tiled diffuse map and (obviously not tiled) AO map.
  2. Export to USDZ
  3. unzip USDZ archive and open USDA file
  4. notice different scaling for each textures, diffuse texture may have scale major/minor from (1,1) and AO map should have a scale of (1,1)
  5. Transfer USDZ file to iPhone/iPad
  6. Open it in QuickLook and see AO map being tiled multiple times (probably as many as diffuse)

Expected behavior

AO map should not be tiled/repeated.

Screenshots

from #21871
image

Platform:

  • Device: [Desktop, Mobile]
  • OS: [Windows, MacOS, Linux, iOS]
  • Browser: [Chrome, Firefox, Safari, Edge]
  • Three.js version: [dev, r129]

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions