Three.js lighting problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Xillez
    New Member
    • Jul 2013
    • 93

    Three.js lighting problem

    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.MeshLambe rtMaterial.

    Light settings:
    Code:
    const spotLight = new THREE.SpotLight('#ffffff');
    spotLight.position.set(0, 10, 0);
    spotLight.angle = Math.PI / 4.5;
    spotLight.intensity = spotLightIntensity / 2;
    spotLight.penumbra = 0.5;
    this.scene.add(spotLight);
    const spotLight2 = new THREE.SpotLight('#ffffff');
    spotLight2.position.set(0, 5, 0);
    spotLight2.angle = Math.PI / 7;
    spotLight2.intensity = 1;
    spotLight2.penumbra = 0.5;1505d2299138ef64a8fa667388a2e36419f
    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:
Working...