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

Hi, can you share with me your code example. I’m a beginner with these VTK.js.

Can you post specific questions that you are having issues with. I cannot tell from your post what exactly you are looking for.