I know I am running a much older version, but because of issues with es6 without rewriting everything (which would be huge for me) I am slowing testing up till things start breaking.
I finally got up to r96 and all was fine, but soon as I went to r97 nothing was showing in scene. I found that it was because spotlight and pointlight were no longer working.
They worked fine in 96.
Below is code right from docs. I get no errors but I also get no light.
Anyone remember any reason this would happen? I looked in migrate files but nothing listed that changed on spotlights
const spotLight = new THREE.SpotLight( 0xff0000 );
spotLight.position.set( 100, 1000, 100 );
It is indeed the renderer.physicallyCorrectLights. If I set that to false then light shows but everything is way too bright at current settings. Do I really need the Correct? I tried setting distance and decay above 0but went black again ( I was not using either one), what should I set these to? Will that fix my issue setting those up?
What are the light settings (mainly distance and decay) for which youâre trying to get the same results after r97? The intention of that change was to make distance=0 behave as if there were no distance cutoff, or an infinite cutoff, while maintaining the given decay. Previously distance=0 disabled decay, if Iâm remembering correctly, which you can also manually do by setting decay=0.
EDIT: Assuming the default Spotlight values, distance=0 and decay=1, I would instead try distance=0 and decay=0.
I wouldnât advise recommending GLTFLoader in isolation from the rest of the library, is that what you mean? It has dependencies on the core loader utilities.