scene.environment set to anything other than PMREMGenerator output is unuseable - bug or feature?
See original GitHub issuefor example,
var envMap = new THREE.Texture( whatever );
envMap.mapping = THREE.EquirectangularReflectionMapping;
envMap.needsUpdate = true;
scene.environment = envMap;
will creaate ridiculously dark scene, while running same texture through PMREMGenerator performs as expected.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Envmap + no lights = dark scene - Questions - three.js forum
scene.environment set to anything other than PMREMGenerator output is unuseable - bug or feature? ... for example, var envMap = new THREE.Texture( ...
Read more >RGBELoader low quality of texture - 256 x 256 - Stack Overflow
The problem in your code is that the result of PMREMGenerator should not be used for Scene.background . Besides, the renderer automatically ...
Read more >Creating a game in Three.js - LogRocket Blog
Develop games using Three.js, a 3D library that provides an easy way to load models, and allows users to play the game within...
Read more >https://raw.githubusercontent.com/BabylonJS/Babylo...
As in the majority of the scene they are the same (exception for multi room and so on), * this is easier to...
Read more >10 Three.JS Tips - Nik Lever
Then we tidy up memory and set the scene.environment. No 4. Renderer.outputEncoding. If you use the GLTFLoader class then make sure to set...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s already noted in the docs that you can only use an env map in cube map format with
MeshStandardMaterial
:So this code should produce a response:
Also set
metalness
to1
androughness
to0
to better see the env map.https://jsfiddle.net/nt4pL0dg/
So, feature then.