Adding Multiple Views To vtkRenderWindow in vtk.js

Can I add multiple views (vtkOpenGLRenderWindow) to vtkRenderWindow? If so how do I get certain vtkRenderer’s to only show in any particular view, since we add renderer’s to the vtkRenderWindow and not to the views?

I think I can use SetViewport on the renderers instead of creating multiple views. I tried to set the viewport on the renderers, but I would not get anything rendered when I did that. Does anybody know if SetViewport on the renderers is functional?

I got SetViewport to work correctly. I had a bug in my program when testing SetViewport that prevented proper rendering. The interaction even works as intended.

2 Likes