# Two viewer of same scene in VTK

**URL:** <https://discourse.vtk.org/t/two-viewer-of-same-scene-in-vtk/9822>\
**Category:** Development\
**Tags:** code\
**Created:** [November 15, 2022, 9:12am UTC](https://discourse.vtk.org/t/two-viewer-of-same-scene-in-vtk/9822 "2022-11-15T09:12:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Heydar](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/h/9fc348/32.png) [@Heydar](https://discourse.vtk.org/u/Heydar)\
**Post date:** [November 15, 2022, 9:12am UTC](https://discourse.vtk.org/t/two-viewer-of-same-scene-in-vtk/9822/1 "2022-11-15T09:12:47Z")

</div>

The VTK library really is powerful . The question that I could not handle was how we could just create a scene with 2 cameras! , I found that we should create 2 renderers(from other question/answer), so we should add all objects to both, and if we want to apply any changes to either one , we should duplicate the other one too.

Am I right? How can we prevent duplicating codes(Because it is error prone and really boring.) and just have 2 cameras (two views) in same scene! (C++)
