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

Support for multiple canvases #12978

Closed
wdanilo opened this issue Dec 27, 2017 · 4 comments
Closed

Support for multiple canvases #12978

wdanilo opened this issue Dec 27, 2017 · 4 comments
Labels

Comments

@wdanilo
Copy link

wdanilo commented Dec 27, 2017

Hi!
Does Three.js support drawing to multiple html canvases? It is possible in pure WebGL and it would be straightforward to add it to Three.js if i'm not missing something obvious. I haven't found any simple API allowing for it though. Here is an example: https://jsfiddle.net/greggman/vDKd5/

@WestLangley
Copy link
Collaborator

@wdanilo
Copy link
Author

wdanilo commented Dec 27, 2017

@WestLangley oh, I have to be blind! Thank you for your answer and yeah, its simple to achieve using current apis! I understand it is better to use just canvases and "draw" there results from render than using multiple renderers? Or using multiple renderers should have similar performance and the scene and all the buffers would be "shared" under the hood?

@WestLangley
Copy link
Collaborator

Sorry, I have no idea. Perhaps you can try the forum...

@mrdoob
Copy link
Owner

mrdoob commented Dec 27, 2017

Or using multiple renderers should have similar performance and the scene and all the buffers would be "shared" under the hood?

It's better to reuse the same renderer.

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

No branches or pull requests

4 participants