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

Exporting high resolution images #28

Closed
neilcharles opened this issue Feb 13, 2019 · 3 comments
Closed

Exporting high resolution images #28

neilcharles opened this issue Feb 13, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@neilcharles
Copy link

I think this is an rgl question really, but I'm interested in exporting hi-res images, larger than my screen.

Using rayshader::render_depth I get a screen-sized image and rgl.postscript (suggested here) just hangs because the scene is so large.

Any chance there's a better way to do it?

@tylermorganwall
Copy link
Owner

At this moment, rgl is limited to the size of the screen when taking snapshots. The workaround they talk about in the stackoverflow post (using a virtual frame buffer which acts as a separate user-defined monitor) is a good idea in theory, but rgl's implementation of snapshot3d is currently incompatible with xvfb and just produces black images. I attempted to integrate it myself starting at this commit (3e68b0d) but upon further research discovered this is still an active area of development in rgl and snapshots don't currently work.

See the rgl todo.txt for a mention of xvfb:
https://github.com/rforge/rgl/blob/b89a3ec1e04429d20094642e3e13afb7fcc035fe/pkg/rgl/inst/todo.txt

If only rayshader had a built-in software renderer for non-interactive use... 🤔

@neilcharles
Copy link
Author

Thanks. Sounds like I should wait a bit and keep an eye on your changes ;)

@tylermorganwall
Copy link
Owner

Arbitrary resolutions can now (as of commit 8e4353d ) be obtained via width/height arguments in render_snapshot() when software_render = TRUE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants