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

Is it possible to render with a lower resolution within a higher resolution container/window? #926

Open
felixriehm opened this issue Jun 19, 2023 · 1 comment

Comments

@felixriehm
Copy link

Because of performance issues i would like to render a 2D scene (animated circles, lines, text, etc) with a lower resolution within a higher resolution window. Of course, the rendered images than would be stretched by some kind of interpolation to the higher resolution of the window. For example, i like to render my scene in 1080p and than stretch the rendered image to a 4k window. Is there a way to do that with nannou?

@johannesvollmer
Copy link

You could render into a low-res texture, and then draw that to the screen.

Have a look at the high-res capture example, you might be able to do the opposite (render to smaller texture). See #947 for an extracted version of that code.

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

No branches or pull requests

2 participants