469,300 Members | 2,312 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,300 developers. It's quick & easy.

Three.js lighting problem

93 64KB
Hello! I'm trying to set up a scene in THREE.js using some different lighting sources, but the "floor" only reacts to AmbientLight (removed in three.js scene) and should be lit about the same as in the blender view. I've verified the normals on the model point outwards and the material has default blender material settings as THREE.MeshLambertMaterial.

Light settings:
Expand|Select|Wrap|Line Numbers
  1. const spotLight = new THREE.SpotLight('#ffffff');
  2. spotLight.position.set(0, 10, 0);
  3. spotLight.angle = Math.PI / 4.5;
  4. spotLight.intensity = spotLightIntensity / 2;
  5. spotLight.penumbra = 0.5;
  6. this.scene.add(spotLight);
  7. const spotLight2 = new THREE.SpotLight('#ffffff');
  8. spotLight2.position.set(0, 5, 0);
  9. spotLight2.angle = Math.PI / 7;
  10. spotLight2.intensity = 1;
  11. spotLight2.penumbra = 0.5;1505d2299138ef64a8fa667388a2e36419f
  12. this.scene.add(spotLight2);
Please state if any more information is needed.
Does anyone have any idea as of why?

Three.js scene:



Blender 3dview:



Default material settings:

2 Weeks Ago #1
0 4891

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by Matthew Robinson | last post: by
4 posts views Thread by theo | last post: by
17 posts views Thread by Dave | last post: by
3 posts views Thread by Adam Toline | last post: by
4 posts views Thread by randy1200 | last post: by
reply views Thread by Sin Jeong-hun | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.