Hi,
After reading several posts, I got to know that we can run unreal in headless mode since 4.14. But, I’m unable to find how to do that with rendering.
What I want (Need to know if this is possible):
- No network game. Just simple game with a camera moving around, capturing images and sending it across to remote client.
- launch the game headless, but render the camera views onto a rendertarget and send it to a remote client.
As a note, I’m able to do it in non-headless mode. I just want to do in headless mode.
From my understanding,
- running the editor with
-nullrhi
option does start the editor in headless mode, but doesn’t this also mean no rendering(as shown in below examples)? - running editor with
-server
, or without it does not matter in my case as I’m not concerned with networking here. - running the editor with
-game
, launches the game as expected (I’m able to communicate with unreal in game), but I get a UI/display. When I add-nullrhi
option, the game starts in headless mode, but I’m not able to get the rendertarget resource.
I’ve tried this:
// packaged version. Tried this but I get an error pointing to no rendertargetresource availability.
open ~/sample_project.app --args -server -nullrhi
and the same happens when I do this:
// Tried this but I get an error pointing to no rendertargetresource availability.
open UE4Editor.app --args <sample_project.uproject> -game -nullrhi
Appreciate any thoughts/suggestions. Cheers!