# Issue when taking a screenshot with multi-cameras

**URL:** <https://forum.babylonjs.com/t/issue-when-taking-a-screenshot-with-multi-cameras/14964>\
**Category:** Bugs\
**Created:** [October 16, 2020, 11:27am UTC](https://forum.babylonjs.com/t/issue-when-taking-a-screenshot-with-multi-cameras/14964 "2020-10-16T11:27:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabrielheming](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/gabrielheming/32/10160_2.png) [@gabrielheming](https://forum.babylonjs.com/u/gabrielheming)\
**Post date:** [October 16, 2020, 11:27am UTC](https://forum.babylonjs.com/t/issue-when-taking-a-screenshot-with-multi-cameras/14964/1 "2020-10-16T11:27:37Z")

</div>

I’ve created this discussion here to create an issue on GitHub to send the pull request correction.

I am working on a project that represents real industry models in a 3D environment. We use multi-cameras to represent different views of the model.

A user can add some remarks on the model as part of his work. This remark will be added to a further report together with a screenshot from the model. When the user creates that remark, an automated process rotates the camera to a better view and take a screenshot. However, that behaviour cannot be shown to the user.

In this case, I am using the method [CreateScreenshotUsingRenderTarget](https://doc.babylonjs.com/api/classes/babylon.screenshottools#createscreenshotusingrendertarget). However, the multi-camera scene is not respecting the selected camera to do the screenshot.

I’ve used this playground to show the behaviour: [Babylon.js Playground](https://www.babylonjs-playground.com/pg/E9IRIF/revision/266)

Line 82-89 has the following method:

```
BABYLON.ScreenshotTools.CreateScreenshotUsingRenderTarget(
    engine,
    camera1,
    { width: engine.getRenderWidth(), height: engine.getRenderHeight() },
    (data) => {
        console.log(data);
    }
);

```

On line 84, I am using the camera1, that shows the “bigger” box. The result is the following screenshot:

 ![actual-output](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/a/a1cf9a30ef83980528d762dd00c8eea1939aa0c6.png)

However, the expected result should be:

 ![expected-output](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/e/e4aae2c93411c063ea587723af8cc8e810998aa4.png)

The solution is pretty straightforward. I would like to validate it in order to create a issue ticket, and a pull-request.

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [October 16, 2020, 5:47pm UTC](https://forum.babylonjs.com/t/issue-when-taking-a-screenshot-with-multi-cameras/14964/2 "2020-10-16T17:47:01Z")

</div>

Please go ahead and thanks a ton for your help!

---

<div class="post-metadata">

**Author:** ![gabrielheming](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/gabrielheming/32/10160_2.png) [@gabrielheming](https://forum.babylonjs.com/u/gabrielheming)\
**Post date:** [October 17, 2020, 7:32pm UTC](https://forum.babylonjs.com/t/issue-when-taking-a-screenshot-with-multi-cameras/14964/3 "2020-10-17T19:32:01Z")

</div>

Great!

[Issue #9201](https://github.com/BabylonJS/Babylon.js/issues/9201) and [PR created](https://github.com/BabylonJS/Babylon.js/pull/9202).
