# Use RenderTarget

**URL:** <https://forum.babylonjs.com/t/use-rendertarget/49701>\
**Category:** Bugs\
**Tags:** shadowgenerator, render-target\
**Created:** [April 16, 2024, 3:07am UTC](https://forum.babylonjs.com/t/use-rendertarget/49701 "2024-04-16T03:07:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![brightMoon](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/brightmoon/32/9959_2.png) [@brightMoon](https://forum.babylonjs.com/u/brightMoon)\
**Post date:** [April 16, 2024, 3:07am UTC](https://forum.babylonjs.com/t/use-rendertarget/49701/1 "2024-04-16T03:07:38Z")

</div>

I used the Create Screenshot Using RenderTarget method to capture the screen in my scene, and the screen suddenly flickered because I wanted to capture a width of 1920 and a height of 1080, which is different from the original renderer size. However, in the Playground implementation, the screen does not flicker. In my project, it flickers and there are shadows in my scene. When I cancel using addShadowCaster, the screenshot is normal. So, I don’t know why this situation occurs in my project

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [April 16, 2024, 9:08am UTC](https://forum.babylonjs.com/t/use-rendertarget/49701/2 "2024-04-16T09:08:51Z")

</div>

Have you tried to recreate the problem in the Playground in the same conditions, that is with shadows enabled? Except if someone already encounters the problem you described, it will be hard for us to help without a repro, unfortunately…
