Skip to content

AR Mode: Scaling affects light behaviour unexpectedly #2474

@hybridherbst

Description

@hybridherbst

Description

GLB supports lights, and we're using them in a good number of scenes by now.
When scaling models in the WebXR mode, lights behave "wrong", their effect isn't invariant (invariant would be expected).

Expected: scaling in WebXR mode has the same visual effect as scaling in Display mode - light intensity, radius etc. stays invariant.
Actual: scaling in WebXR has a different visual effect, it seems that light radius and intensity aren't scaled accordingly.

Live Demo

Open attached file in modelviewer.dev/editor and deploy to mobile with AR enabled
LightScale.zip

Video:
https://user-images.githubusercontent.com/2693840/121874453-a87a8900-cd07-11eb-9191-7b7ad9bf30b9.mp4

Version

Latest on modelviewer.dev/editor

Browser Affected

all with WebXR support

OS

  • Android
  • iOS
  • Linux
  • MacOS
  • Windows

AR

  • WebXR
  • SceneViewer (behaves "better" in the sense that lights don't blow out as crazy, but has the same issue)
  • QuickLook

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions