Three.js: Support for multiple canvases

Created on 27 Dec 2017  ·  4Comments  ·  Source: mrdoob/three.js

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/

Question

Most helpful comment

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.

All 4 comments

@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?

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

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Bandit picture Bandit  ·  3Comments

Horray picture Horray  ·  3Comments

makc picture makc  ·  3Comments

akshaysrin picture akshaysrin  ·  3Comments

jack-jun picture jack-jun  ·  3Comments