Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Headless/Offscreen rendering #1900

Open
Clockwork-Muse opened this issue Sep 28, 2020 · 5 comments
Open

Headless/Offscreen rendering #1900

Clockwork-Muse opened this issue Sep 28, 2020 · 5 comments
Labels
feature request This issue requests a feature kha This issue needs to be fixed/implemented in Kha

Comments

@Clockwork-Muse
Copy link

Part of my deployment scenario requires Headless/Offscreen rendering (in this case, inside of Docker containers) - for example, as might be used for rendering movies or streaming games from the server. I'm not seeing a documented way to do this at the moment.
I know this is possible in the general sense (UnrealEngine, for one example), but not whether Kha supports this, or whether it was a planned feature.

@Clockwork-Muse Clockwork-Muse added the feature request This issue requests a feature label Sep 28, 2020
@MoritzBrueckner
Copy link
Collaborator

As far as I know Kha doesn't support offscreen rendering, there is the node target which can be used to execute Kha applications headless but they won't draw something at all, many functions are just empty on that target. It's good for unit testing Kha applications for example but that's it (I think). Would be nice to have!

@Amir-Arsalan
Copy link

@MoritzBrueckner Is this still valid (Kha not supporting off screen rendering). Is Armory still not supporting headless rendering?

@MoritzBrueckner
Copy link
Collaborator

@Amir-Arsalan I do think so, yes. There is this Kha issue linked to a Kinc issue, maybe ask there if there is any progress. There seems to exist a workaround but I don't know how well it works.

@Amir-Arsalan
Copy link

@MoritzBrueckner Thanks. I took a quick look at that issue and some relevant ones but haven't been able to get a clear answer as some people there is a way around this and some say there isn't. @luboslenco Do you know if it's possible to do headless rendering with Armory? If full background rendering is not supported for Armory/Kha at the moment, is there a workaround for background rendering with Armory with a virtual window? Would the rendering speed does get affected via background rendering with a virtual window?

@anon-cs
Copy link

anon-cs commented Jul 4, 2021

@MoritzBrueckner @luboslenco I also have the same issue and haven't been able to run Armory in the background on Ubuntu 16.04, 18.04 and 20.04 after trying some random, and honestly I think somewhat irrelevant, things that I saw on the internet. I just learned about this issue here and learned that I need to change something in Kha but I'm not sure what exactly those changes entail. Would you be able to write a small tutorial on how one can render things in the background with Armory?

@MoritzBrueckner MoritzBrueckner added the kha This issue needs to be fixed/implemented in Kha label Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request This issue requests a feature kha This issue needs to be fixed/implemented in Kha
Projects
None yet
Development

No branches or pull requests

4 participants