How to create a cubemap screenshot?

Godot Version

4.5

Question

I need to create a cubemap screenshot of a game I am working on for the Oculus Quest. Meta has instructions for how to do this on Unity using a plugin. Is there a plugin or demo code for doing this with Godot? Here is the Unity example: https://developers.meta.com/horizon/documentation/unity/unity-cubemap/

Thanks!

There is no easy way to do it in Godot like the screenshot tool for Unity, the only way I could find is someone made one about a year ago (might not work anymore, Godot moves fast) (it also might not work the same as the unity tool)

you can try and look through how he coded it or maybe dm him on github (he is very active) and see if you can get more advice on how to duplicate it, but other than that it is not as easy as in unity

one idea I did think of is using unity to make a cubemap and then importing the image into godot for use (that sound like a real pain though)

Apparently there are no plugins but it shouldn’t be too hard to do.

Just setup 6 cameras with 90 deg fov at the same position, each pointed in one of 6 directions. Let each render into a square viewport. Fetch the images of those 6 viewport textures and stitch them together into a cubemap layout.

1 Like

Thanks I will try those and report back!