multiple canvases - Too many active WebGL contexts. Oldest context will be lost.

Here is what I have so far: CadQuery Examples — CadQuery Documentation

It is 99% there. I have two questions:

  1. I had to use
function exitCurrentRenderer(e) {
  interactor.setCurrentRenderer(null);
  interact_style.setEnabled(false);
}

otherwise the last render window had the interaction active even after the mouse pointer left it (The issue is visible in the official example too vtk.js)

  1. On the cosmetic side, scrolling through the webpage results in “jumps” of the rendering areas. As if the events are handled in a slightly wrong order. Would you have any pointers on how to improve this?

Thanks,
Adam

1 Like