# Generating a Dynamic CubeMap

**URL:** <https://forum.babylonjs.com/t/generating-a-dynamic-cubemap/1367>\
**Category:** Questions\
**Created:** [February 13, 2019, 6:04pm UTC](https://forum.babylonjs.com/t/generating-a-dynamic-cubemap/1367 "2019-02-13T18:04:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SpaceToast](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/spacetoast/32/648_2.png) [@SpaceToast](https://forum.babylonjs.com/u/SpaceToast)\
**Post date:** [February 13, 2019, 6:04pm UTC](https://forum.babylonjs.com/t/generating-a-dynamic-cubemap/1367/1 "2019-02-13T18:04:09Z")

</div>

I’ve been experimenting with the cubeTexture generated by the ReflectionProbe (rendering a hidden skybox at low resolution, then using that cubemap texture on a real skybox) but there seem to be a few limitations. I just had three quick questions, if anyone has any ideas:

1. For performance reasons, the **probe seems to stop rendering** when no material with _reflectionTexture=ReflectionProbe.cubeTexture_ is being drawn that frame. Is there a way to force rendering? (Calling _ReflectionProbe.refreshRate = BABYLON.RenderTargetTexture.refreshrate\_render\_once_ every frame doesn’t do it.)

2. It looks like there’s **no option to render to an HDR texture** in 3.3. Is this coming in 4?

3. **Can a normal camera** render to a cubeTexture in BJS? (Basically, am I being sillier than usual.)

---

<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:** [February 13, 2019, 9:06pm UTC](https://forum.babylonjs.com/t/generating-a-dynamic-cubemap/1367/2 "2019-02-13T21:06:23Z")

</div>

Hey!

1. You can call reflectionProbe.cubeTexture.render()
2. Yes 🙂 new ReflectionProbe(name, size, scene, true, true): The last boolean means HDR
3. Yes reflectionProbe.cubeTexture.activeCamera = mycamera
