# \#cube-camera

**URL:** https://discourse.threejs.org/tag/cube-camera/293.md

[Latest](https://discourse.threejs.org/latest.md) · [Categories](https://discourse.threejs.org/categories.md) · [Tags](https://discourse.threejs.org/tags.md)

---

## [How to solve the jagged edges / blur on the CubeTexture?](https://discourse.threejs.org/t/how-to-solve-the-jagged-edges-blur-on-the-cubetexture/90300)

<div class="topic-metadata">

**Author:** [@fossas](https://discourse.threejs.org/u/fossas)\
**Replies:** 5\
**Last updated:** [March 11, 2026, 7:15pm UTC](https://discourse.threejs.org/t/how-to-solve-the-jagged-edges-blur-on-the-cubetexture/90300 "2026-03-11T19:15:52Z")

</div>

Hello! I am working with a setup with a dynamic CubeMap to generate realtime reflections. Overall it works good on curved surfaces but not on flat surfaces like a cube. Of course, I expect that, because meanwhile a curve…

---

## [With IBL, do I remove lights from the scene?](https://discourse.threejs.org/t/with-ibl-do-i-remove-lights-from-the-scene/65757)

<div class="topic-metadata">

**Author:** [@RichFWebb](https://discourse.threejs.org/u/RichFWebb)\
**Replies:** 4\
**Last updated:** [May 21, 2024, 3:56pm UTC](https://discourse.threejs.org/t/with-ibl-do-i-remove-lights-from-the-scene/65757 "2024-05-21T15:56:34Z")

</div>

When I render the scene, should the lights still be in it? Or am I getting “double” lighting? const rt = new THREE.WebGLCubeRenderTarget(512); const cubeCamera = new THREE.CubeCamera(1, 20000, rt); scene.add(cubeCamera…

---

## [cubeCamera breaks down after I import a glb model](https://discourse.threejs.org/t/cubecamera-breaks-down-after-i-import-a-glb-model/56192)

<div class="topic-metadata">

**Author:** [@Jernej\_Ivancic](https://discourse.threejs.org/u/Jernej_Ivancic)\
**Replies:** 4\
**Last updated:** [December 13, 2023, 11:54am UTC](https://discourse.threejs.org/t/cubecamera-breaks-down-after-i-import-a-glb-model/56192 "2023-12-13T11:54:22Z")

</div>

Im currenty working on a interior scene where create an interior from a floor plan, after its done loading I make a cube camera render of my scene and convert it to a equirectangular image. When I add certain glb models…

---

## [Incorrect reflections with multiple Cube Cameras and MeshStandardMaterial](https://discourse.threejs.org/t/incorrect-reflections-with-multiple-cube-cameras-and-meshstandardmaterial/56562)

<div class="topic-metadata">

**Author:** [@PAB](https://discourse.threejs.org/u/PAB)\
**Replies:** 1\
**Last updated:** [October 20, 2023, 1:11pm UTC](https://discourse.threejs.org/t/incorrect-reflections-with-multiple-cube-cameras-and-meshstandardmaterial/56562 "2023-10-20T13:11:24Z")

</div>

Hi I have found a very weird issue when using multiple cube camera’s for reflections, when using MeshStandardMaterial some of the reflections are broken, but the same scene with MeshPhongMaterial is closer to what I woul…

---

## [Parallax correction from environment Maps](https://discourse.threejs.org/t/parallax-correction-from-environment-maps/32692)

<div class="topic-metadata">

**Author:** [@JRefusta](https://discourse.threejs.org/u/JRefusta)\
**Replies:** 4\
**Last updated:** [February 14, 2022, 4:27pm UTC](https://discourse.threejs.org/t/parallax-correction-from-environment-maps/32692 "2022-02-14T16:27:02Z")

</div>

Hello guys, I’m using the CubeCamera method of three in order to recreate the reflections projected on the objects in my the 3d scene. Once I have the texture from the CubeCamera, I take the texture and then it is appli…

---

## [CubeTexture from CubeRenderTarget not working in fragment shader](https://discourse.threejs.org/t/cubetexture-from-cuberendertarget-not-working-in-fragment-shader/54829)

<div class="topic-metadata">

**Author:** [@Lee\_Yuguang](https://discourse.threejs.org/u/Lee_Yuguang)\
**Replies:** 0\
**Last updated:** [August 10, 2023, 2:09am UTC](https://discourse.threejs.org/t/cubetexture-from-cuberendertarget-not-working-in-fragment-shader/54829 "2023-08-10T02:09:05Z")

</div>

Hi there, I’m trying to use the CubeTexture generated from CubeCamera in a fragment shader with textureCube() function. But I got black screen. When I load a CubeMap with local texture image, the fragment shader works we…

---

## [Make a custom Pass to render a 360 degree equirectangular panorama image from a scene](https://discourse.threejs.org/t/make-a-custom-pass-to-render-a-360-degree-equirectangular-panorama-image-from-a-scene/54391)

<div class="topic-metadata">

**Author:** [@sakhawat](https://discourse.threejs.org/u/sakhawat)\
**Replies:** 2\
**Last updated:** [July 31, 2023, 5:18am UTC](https://discourse.threejs.org/t/make-a-custom-pass-to-render-a-360-degree-equirectangular-panorama-image-from-a-scene/54391 "2023-07-31T05:18:02Z")

</div>

Hello everyone, First, thank you so much for this awesome three.js library and this awesome community. I really appreciate your support. Now, I am trying to make a Pass to render a 360 degree equirectangular panorama i…

---

## [How to read from a WebGLCubeRenderTarget?](https://discourse.threejs.org/t/how-to-read-from-a-webglcuberendertarget/54211)

<div class="topic-metadata">

**Author:** [@DrDoom](https://discourse.threejs.org/u/DrDoom)\
**Replies:** 1\
**Last updated:** [July 24, 2023, 8:51am UTC](https://discourse.threejs.org/t/how-to-read-from-a-webglcuberendertarget/54211 "2023-07-24T08:51:43Z")

</div>

When trying to get the pixel from a WebGLCubeRenderTarget it get this error. Uncaught TypeError: Failed to execute 'bindFramebuffer' on 'WebGL2RenderingContext': parameter 2 is not of type 'WebGLFramebuffer'." renderer…

---

## [CubeCamera looks magnified](https://discourse.threejs.org/t/cubecamera-looks-magnified/53593)

<div class="topic-metadata">

**Author:** [@Vikms95](https://discourse.threejs.org/u/Vikms95)\
**Replies:** 14\
**Last updated:** [July 10, 2023, 5:43pm UTC](https://discourse.threejs.org/t/cubecamera-looks-magnified/53593 "2023-07-10T17:43:55Z")

</div>

Hi guys. i’m trying to use CubeCamera to reflect the surroundings of a mesh but this reflection has a weird magnification which I cannot figure out how to solve. I attach a screenshot. The furniture in front is reflectin…

---

## [CubeCamera Reflection Mapping Issue](https://discourse.threejs.org/t/cubecamera-reflection-mapping-issue/45870)

<div class="topic-metadata">

**Author:** [@Vonernue](https://discourse.threejs.org/u/Vonernue)\
**Replies:** 0\
**Last updated:** [December 16, 2022, 7:31am UTC](https://discourse.threejs.org/t/cubecamera-reflection-mapping-issue/45870 "2022-12-16T07:31:33Z")

</div>

Hi guys, I’m relative new to threeJS and I’m currently working on a project with the need of dynamic reflection. I followed the threejs example on the official website and successfully got a working reflection. Howeve…

---

## [Is it possible to change the field of view for a cube camera?](https://discourse.threejs.org/t/is-it-possible-to-change-the-field-of-view-for-a-cube-camera/43798)

<div class="topic-metadata">

**Author:** [@nkzmi](https://discourse.threejs.org/u/nkzmi)\
**Replies:** 10\
**Last updated:** [October 26, 2022, 9:33am UTC](https://discourse.threejs.org/t/is-it-possible-to-change-the-field-of-view-for-a-cube-camera/43798 "2022-10-26T09:33:28Z")

</div>

Hi Friends! I wonder if there is a way to change the field of view (fov) for the cube camera. Unfortunately I have some lens curves in my scene and I could solve this with a different value for the field of view. Howev…

---

## [Dynamic Reflections](https://discourse.threejs.org/t/dynamic-reflections/39742)

<div class="topic-metadata">

**Author:** [@jash\_patel](https://discourse.threejs.org/u/jash_patel)\
**Replies:** 6\
**Last updated:** [June 28, 2022, 1:50pm UTC](https://discourse.threejs.org/t/dynamic-reflections/39742 "2022-06-28T13:50:53Z")

</div>

The dynamic reflections works fine on threejs v124 but breaks in v135(black object). Can anyone let me know if there are any dependencies deprecated. I am using cubecamera.renderTarget.texture to set the envmap of gltf o…

---

## [Is this line really setting CubeCamera render target encoding?](https://discourse.threejs.org/t/is-this-line-really-setting-cubecamera-render-target-encoding/37118)

<div class="topic-metadata">

**Author:** [@mrpink17](https://discourse.threejs.org/u/mrpink17)\
**Replies:** 1\
**Last updated:** [April 16, 2022, 8:59am UTC](https://discourse.threejs.org/t/is-this-line-really-setting-cubecamera-render-target-encoding/37118 "2022-04-16T08:59:13Z")

</div>

https://github.com/mrdoob/three.js/blob/f9d1f8495f2ca581b2b695288b97c97e030c5407/src/cameras/CubeCamera.js#L77 I am confused by this line because according to the documentation when rendering to a render target, it is u…

---

## [How to set layers of a CubeCamera?](https://discourse.threejs.org/t/how-to-set-layers-of-a-cubecamera/35852)

<div class="topic-metadata">

**Author:** [@jackkutilek](https://discourse.threejs.org/u/jackkutilek)\
**Replies:** 2\
**Last updated:** [March 14, 2022, 3:34pm UTC](https://discourse.threejs.org/t/how-to-set-layers-of-a-cubecamera/35852 "2022-03-14T15:34:40Z")

</div>

Setting a CubeCamera’s layers property does not set the child camera’s layers as well. This is expected, since layers do not automatically update in children. I see that the layers property is copied to each child camer…

---

## [Is it possible to reverse CubeCamera to show interior](https://discourse.threejs.org/t/is-it-possible-to-reverse-cubecamera-to-show-interior/35473)

<div class="topic-metadata">

**Author:** [@chongma](https://discourse.threejs.org/u/chongma)\
**Replies:** 0\
**Last updated:** [March 2, 2022, 10:23am UTC](https://discourse.threejs.org/t/is-it-possible-to-reverse-cubecamera-to-show-interior/35473 "2022-03-02T10:23:11Z")

</div>

I understand how to use CubeCamera to apply an environment map to object. Is it possible to reverse the CubeCamera to show what is on the inside? I am trying to reflect objects which are inside a sphere onto the interi…

---

## [PMREMGenerator, CubeCamera and envmap mirroring issues](https://discourse.threejs.org/t/pmremgenerator-cubecamera-and-envmap-mirroring-issues/30389)

<div class="topic-metadata">

**Author:** [@phxbf](https://discourse.threejs.org/u/phxbf)\
**Replies:** 10\
**Last updated:** [January 7, 2022, 4:16pm UTC](https://discourse.threejs.org/t/pmremgenerator-cubecamera-and-envmap-mirroring-issues/30389 "2022-01-07T16:16:25Z")

</div>

Following a few examples, I was trying to use PMREMGenerator that seems to produce better results for lightprobing stuff. On latest THREE release seems that CubeCamera and PMREM produce wrong results for envmap associat…

---

## [CubaCamera won't cover all faces](https://discourse.threejs.org/t/cubacamera-wont-cover-all-faces/32645)

<div class="topic-metadata">

**Author:** [@AfarsheziF](https://discourse.threejs.org/u/AfarsheziF)\
**Replies:** 11\
**Last updated:** [December 14, 2021, 9:10pm UTC](https://discourse.threejs.org/t/cubacamera-wont-cover-all-faces/32645 "2021-12-14T21:10:13Z")

</div>

Hello all. I’m trying to add a cubeCamera to an object on position (0,0,0). In theory, the camera should reflect all sides. I’m able to have the camera working but It will render only a small part of the reflection (see…

---

## [How to use cube camera with gltf objects](https://discourse.threejs.org/t/how-to-use-cube-camera-with-gltf-objects/31788)

<div class="topic-metadata">

**Author:** [@const](https://discourse.threejs.org/u/const)\
**Replies:** 2\
**Last updated:** [November 19, 2021, 6:05pm UTC](https://discourse.threejs.org/t/how-to-use-cube-camera-with-gltf-objects/31788 "2021-11-19T18:05:06Z")

</div>

Hi friends. There is an example of using a cube camera for Three js objects https://sbcode.net/threejs/cubecamera/. But I want to use gltf loaded objects instead of balls. How can I attach an individual cube camera (with…

---

## [Dynamic Cubemap as MeshPhysicalMaterial envMap possible?](https://discourse.threejs.org/t/dynamic-cubemap-as-meshphysicalmaterial-envmap-possible/31358)

<div class="topic-metadata">

**Author:** [@Hank](https://discourse.threejs.org/u/Hank)\
**Replies:** 0\
**Last updated:** [November 1, 2021, 5:01pm UTC](https://discourse.threejs.org/t/dynamic-cubemap-as-meshphysicalmaterial-envmap-possible/31358 "2021-11-01T17:01:14Z")

</div>

Hi guys, I have been trying to get a dynamic cubemap working with MeshPhysicalMaterial for a few days now and I can’t seem to make it work. All I get is black. I found this thread WebGLRenderer: fails to convert CubeCam…

---

## [Question regarding cubeCamera results on materials](https://discourse.threejs.org/t/question-regarding-cubecamera-results-on-materials/30532)

<div class="topic-metadata">

**Author:** [@blackInk](https://discourse.threejs.org/u/blackInk)\
**Replies:** 1\
**Last updated:** [October 6, 2021, 7:30am UTC](https://discourse.threejs.org/t/question-regarding-cubecamera-results-on-materials/30532 "2021-10-06T07:30:05Z")

</div>

Hi, I´m setting up a cubecamera → adding its update-results to an meshlambert material and it works just fine → aka I can see the reflected surroundings on my object. I do same same on an meshstandardmaterial → and I d…

---

## [ENVmap - MeshStandardMaterial](https://discourse.threejs.org/t/envmap-meshstandardmaterial/30183)

<div class="topic-metadata">

**Author:** [@Evil\_Google](https://discourse.threejs.org/u/Evil_Google)\
**Replies:** 1\
**Last updated:** [September 23, 2021, 12:21pm UTC](https://discourse.threejs.org/t/envmap-meshstandardmaterial/30183 "2021-09-23T12:21:10Z")

</div>

Hello. I am using CubeTextureLoader () to set the texture to the environment. envMap = new THREE.CubeTextureLoader (). load (\[ '/images/x-pos.jpg', '/images/x-neg.jpg', '/images/y-pos.…

---

## [How to scale reflection(cubecamera)?](https://discourse.threejs.org/t/how-to-scale-reflection-cubecamera/29503)

<div class="topic-metadata">

**Author:** [@Anonymous\_User](https://discourse.threejs.org/u/Anonymous_User)\
**Replies:** 3\
**Last updated:** [September 2, 2021, 2:52pm UTC](https://discourse.threejs.org/t/how-to-scale-reflection-cubecamera/29503 "2021-09-02T14:52:11Z")

</div>

Hello Folks :slight\_smile: I have created this sandbox in which i want to SCALE the reflection created by cubecamera. Cubecamera is inside right box which is made by combination of plane geometry and reflection is on…

---

## [Using a custom CubeCamera and WebGLCubeRenderTarget to generate cubemaps gives weird result](https://discourse.threejs.org/t/using-a-custom-cubecamera-and-webglcuberendertarget-to-generate-cubemaps-gives-weird-result/28196)

<div class="topic-metadata">

**Author:** [@hblee](https://discourse.threejs.org/u/hblee)\
**Replies:** 1\
**Last updated:** [July 22, 2021, 5:37am UTC](https://discourse.threejs.org/t/using-a-custom-cubecamera-and-webglcuberendertarget-to-generate-cubemaps-gives-weird-result/28196 "2021-07-22T05:37:51Z")

</div>

Hello everyone! I’m currently working on a project which captures 6 faces of an inside-out box to generate a cubemap texture dynamically(shows 1face, 2 faces … 6 faces when each face updates) on the scene background/ano…

---

## [CubeTexture from CubeCamera used as an Environment map on a Mesh appears to shift based on roughness](https://discourse.threejs.org/t/cubetexture-from-cubecamera-used-as-an-environment-map-on-a-mesh-appears-to-shift-based-on-roughness/27121)

<div class="topic-metadata">

**Author:** [@Mason\_Wong\_BCL](https://discourse.threejs.org/u/Mason_Wong_BCL)\
**Replies:** 3\
**Last updated:** [June 12, 2021, 10:33pm UTC](https://discourse.threejs.org/t/cubetexture-from-cubecamera-used-as-an-environment-map-on-a-mesh-appears-to-shift-based-on-roughness/27121 "2021-06-12T22:33:09Z")

</div>

Hey All, Setup (Pictures included): Three JS v.129 I have a CubeCamera that is positioned where my scene Camera is positioned. And the basic cube camera / render target set up here: const cubeRenderTarget =…

---

## [Bad texture quality on mobile devices with CubeCamera](https://discourse.threejs.org/t/bad-texture-quality-on-mobile-devices-with-cubecamera/18266)

<div class="topic-metadata">

**Author:** [@andou](https://discourse.threejs.org/u/andou)\
**Replies:** 4\
**Last updated:** [May 14, 2021, 8:53pm UTC](https://discourse.threejs.org/t/bad-texture-quality-on-mobile-devices-with-cubecamera/18266 "2021-05-14T20:53:56Z")

</div>

Hi everyone, I am pretty new to ThreeJS and I am interested in generating panoramic pictures from ThreeJS scenes. I found this handy tool for that purpose: THREE.CubemapToEquirectangular It is working pretty fine but t…

---

## [Why do I have to update cubecameras like this?](https://discourse.threejs.org/t/why-do-i-have-to-update-cubecameras-like-this/21067)

<div class="topic-metadata">

**Author:** [@m1ke](https://discourse.threejs.org/u/m1ke)\
**Replies:** 4\
**Last updated:** [November 27, 2020, 5:52pm UTC](https://discourse.threejs.org/t/why-do-i-have-to-update-cubecameras-like-this/21067 "2020-11-27T17:52:04Z")

</div>

I’ve never posted here. Bear with me. I updated ThreeJS version from 103 to 123 last night. I didn’t have as many as errors as I thought I would (after changing the renderer to webgl1), but there was a problem beside …

---

## [Water not reflecting correctly](https://discourse.threejs.org/t/water-not-reflecting-correctly/20875)

<div class="topic-metadata">

**Author:** [@loveliz](https://discourse.threejs.org/u/loveliz)\
**Replies:** 3\
**Last updated:** [November 20, 2020, 7:23am UTC](https://discourse.threejs.org/t/water-not-reflecting-correctly/20875 "2020-11-20T07:23:48Z")

</div>

I have a scene with a reflective sphere, and everything reflects correctly. However, once I replaced the “water” on the floor to an actual Water object, the reflection (of only the Water object) seems rotated. Wh…

---

## [Some problem using cubeCamera generating reflections](https://discourse.threejs.org/t/some-problem-using-cubecamera-generating-reflections/20656)

<div class="topic-metadata">

**Author:** [@RichardBao](https://discourse.threejs.org/u/RichardBao)\
**Replies:** 3\
**Last updated:** [November 12, 2020, 10:32am UTC](https://discourse.threejs.org/t/some-problem-using-cubecamera-generating-reflections/20656 "2020-11-12T10:32:01Z")

</div>

i kept getting black render from cubeCamera. here is my code. i am not sure if its the reason of the order of loading scene or is there anything else i did wrong? \` three.js webgl - glTF loader \<body\> …

---

## [CubeCamera inject texture to planar 3D object](https://discourse.threejs.org/t/cubecamera-inject-texture-to-planar-3d-object/18849)

<div class="topic-metadata">

**Author:** [@Kvothe](https://discourse.threejs.org/u/Kvothe)\
**Replies:** 6\
**Last updated:** [September 19, 2020, 1:08pm UTC](https://discourse.threejs.org/t/cubecamera-inject-texture-to-planar-3d-object/18849 "2020-09-19T13:08:57Z")

</div>

Hi all, I am not an expert with three.js but i was just wondering if it’s possible to inject an environment texture captured by a camera to just one face of a cube using one single camera instead of 6 as the CubeCamera …

---

## [What is the difference between Camera and CubeCamera](https://discourse.threejs.org/t/what-is-the-difference-between-camera-and-cubecamera/18790)

<div class="topic-metadata">

**Author:** [@jaya\_kannan](https://discourse.threejs.org/u/jaya_kannan)\
**Replies:** 10\
**Last updated:** [September 18, 2020, 11:42am UTC](https://discourse.threejs.org/t/what-is-the-difference-between-camera-and-cubecamera/18790 "2020-09-18T11:42:15Z")

</div>

Hi, Anybody please explain, what is Camera and What is CubeCamera. What are the use of these?

[Next page](https://discourse.threejs.org/tag/cube-camera/293.md?match_all_tags=true&page=1&tags%5B%5D=cube-camera)
