X Tutup
Skip to content

Implement XR_META_foveation_eye_tracked#112888

Merged
Repiteo merged 1 commit intogodotengine:masterfrom
dhoverb:meta_foveation_eye_tracked
Nov 18, 2025
Merged

Implement XR_META_foveation_eye_tracked#112888
Repiteo merged 1 commit intogodotengine:masterfrom
dhoverb:meta_foveation_eye_tracked

Conversation

@dhoverb
Copy link
Contributor

@dhoverb dhoverb commented Nov 17, 2025

In addition to integrating with XR_META_foveation_eye_tracked, this reverts dsnopek@820b5a5 since it provides the offsets to the fragment density map.

See more discussion here: #102780 (which has a link to https://github.com/dsnopek/godot/tree/pr/99551-no-offset)

Copy link
Contributor

@dsnopek dsnopek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

This is working great in my testing on a Samsung Galaxy XR. For the most part the XR code looks good to me, but I have one question below.

Regarding the use of VulkanHooks: @m4gr3d, @BastiaanOlij and I discussed this, and we can't think of another graphics API or platform aside from OpenXR that would need to use offsets for a VRS texture. So, in our opinion, using VulkanHooks is fine for now. It's also completely internal and so if another use case comes up, we can rework this without causing any compatibility issues for developers.

But I'm curious to hear what folks on the rendering team think!

(FYI, the code from the revert of dsnopek@820b5a5 was written by @DarioSamo - just to give proper credit :-))

@BastiaanOlij
Copy link
Contributor

Just to underline what David already said, I think this solution is sound for what we need. The VulkanHooks entry point is a bit iffy but as we don't know if any other graphics API will ever require this it's a solution with very little impact.
As its purely internal, if ever other scenarios become known we can easily revisit it.

@dhoverb dhoverb force-pushed the meta_foveation_eye_tracked branch from 8013133 to 53e1ea1 Compare November 18, 2025 15:01
Copy link
Contributor

@dsnopek dsnopek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

The XR changes look great to me! We still need feedback from the rendering team on the rendering changes

@Repiteo Repiteo modified the milestones: 4.x, 4.6 Nov 18, 2025
@Repiteo Repiteo merged commit d30ec9a into godotengine:master Nov 18, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Nov 18, 2025

Thanks!

@dsnopek
Copy link
Contributor

dsnopek commented Nov 20, 2025

It's turned out that this PR has caused regression on Meta Quest (and probably other) devices. I've created issue #112988 to track it

@akien-mga akien-mga changed the title Implement XR_META_foveation_eye_tracked Implement XR_META_foveation_eye_tracked Nov 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

X Tutup