Skip to content

Foveation can't be configured for WebXR #5108

@mrxz

Description

@mrxz

Description:

  • A-Frame Version: 1.3.0
  • Platform / Device: Any platform/device with support for WebXR and fixedFoveation

The documentation mentions the foveationLevel property on the render component. However, this property is only used in case of WebVR (a-scene.js#L334). WebXR now also supports setting a foveation level, and Three.js exposes this since r131 (mrdoob/three.js#22162). By default it is set to 1 in three (the maximum). This means that:

  • Setting <a-scene renderer="foveationLevel: 0"> currently has no effect when using WebXR
  • Since A-Frame version 1.3.0 foveation is on by default, whereas it used to be off by default (and can't be disabled)
  • The values for WebVR are 0, 1, 2, 3 but for WebXR in the interval [0.0, 1.0]

I can make a PR so that the foveation can be configured for WebXR, but would like to discuss the desired approach first. None of the options seem without their drawbacks as the value ranges are inherently incompatible and adding a new property might lead to confusion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions