Skip to content

Conversation

BastiaanOlij
Copy link
Contributor

@BastiaanOlij BastiaanOlij commented Dec 4, 2024

This is a demo project that shows how to implement a spectator view when deploying a VR project to desktop, while ignoring the spectator view code from an export to a standalone headset.

The demo also has additional logic to show how to deal with a 3rd tracker to track a physical camera. While only the basics are shown, this could be used to create a mixed reality setup where we combine a 3rd person render result, with a physical camera recording the player in front of a green screen.

This demo requires the godotengine/godot#110002 (Compatibility) or godotengine/godot#109955 (Vulkan) fix to display left or right eye views on the desktop!

@BastiaanOlij BastiaanOlij added this to the 4.4 milestone Dec 4, 2024
@BastiaanOlij BastiaanOlij self-assigned this Dec 4, 2024
@BastiaanOlij BastiaanOlij force-pushed the openxr_spectator_view_demo branch from 11f92a5 to 7297f03 Compare December 4, 2024 03:02
@BastiaanOlij
Copy link
Contributor Author

Note, there is currently a bug around displaying the subviewport textures if we want to show the left or right eye results: godotengine/godot#100004

However that doesn't stop the main spectator camera from working, optionally showing the left/right eye output is a nice bonus here for this example.

@BastiaanOlij BastiaanOlij force-pushed the openxr_spectator_view_demo branch from 7297f03 to 40b4022 Compare December 4, 2024 03:28
@BastiaanOlij BastiaanOlij changed the title Add demo for spectator view Add XR demo for spectator view Dec 12, 2024
@BastiaanOlij BastiaanOlij force-pushed the openxr_spectator_view_demo branch from 40b4022 to abdca43 Compare August 25, 2025 11:26
@BastiaanOlij
Copy link
Contributor Author

BastiaanOlij commented Aug 25, 2025

Couple of things I should really add here before this is finished:

  • add in the ability to zoom in/out
  • add a 4th view option for a stabilized first person view (same as I use on stream)
  • if current 3rd person spectator camera is used, add ability to see that camera in headset
  • if current 3rd person spectator camera is used, add ability to adjust its position by pointing at it with your controller.

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.

2 participants