Screenshot from VR but not the HMD View

Hello,

i can’t figure out how to take a screenshot from within VR that does not show the hmd’s 2-eyed view.

Tried to switch to a different camera using ‘Set View Target with Blend’ node, but that just gives me another hmd-2-eyed screenshot from that other camera’s position. Why does it assume I want to use it with the hmd? Because I plugged in the player controller that controls my VR Pawn?

How can I force the temporary camera to give a simple 2D view instead of a VR view?

Or should I go about this in a completely different way?

Hello,
execute console command “hmd mirror mode 4”

this command has 5 values (0-4):
0=Distorted,
1=Undistorted,
2=SingleEye,
3=SingleEye Letterboxed,
4=SingleEye Cropped

i think is your solution.
Good day.

Hello,

I don’t believe this works. First of all, I think these are Oculus specific commands. I’m working with the Vive at the moment. Also assuming I can switch the mirror display to mode 4 I would still not get a screenshot of that mirror window with the ‘SHOT’ command, but from the hmd again. I’d need to switch the display of the hmd to ‘mode 4’ temporarily, take the screenshot and revert back to normal hmd view. Is this what you had in mind?

I have actually got the normal mirror window open when I’m in VR and I would rejoyce and weep happy tears was I able to capture a screenshot of that, but how would I go about setting that up?

Oh my, oh my… this is so not intuitive and the documentation could use a do-over:

In VR, ‘shot’ gives me a screenshot of the hmd image, i.e. that two-eyed picture showing the image of both eyes in egg-shapes in one screenshot.

When I pass 'HighResShot" I get something different: a nice image of… what? one eye cropped? the mirror window? I don’t know, but it’s what I was after, a screenshot of what I see in VR but as a normal 2D picture.

The documentation gives no information on what these commands take screenshots from when VR is involved.

This is my exact issue, did you ever find a solution to this?

No and yes.

I did not find a way to change the behavior of the commands and to use them in a way that you’d assume they could be used. The problem was actually more complex than just getting the correct type of view (single eye, stereo view…) as the different screenshot commands also behave differently as far as the camera position is concerned, at least on Oculus: HighResShot with Oculus captures at camera 0,0,0 - XR Development - Epic Developer Community Forums
I ended up putting something together using the ‘HighResShot’ command which leaves me with a screenshot of pretty much the view of the HMD but as a normal undistorted picture. Which is what I wanted.

I know I’m late to the party, but I found a very elegant solution to this. Basically this function spawns a temp camera at the chosen location, and then takes a high-res screenshot with a time-stamp.

It spawns a camera at your chosen transform, which I recommend be the transform of the Player camera (If you are taking it from that perspective). It snaps the pic, and then removes the camera.

This works In editor, VR, builds, and windowed playthroughs alike.

1 Like