You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I was getting this error when i started digging into whats happening:
Problem:
three has an _object3DId attached with each Object3d which increments by one like so.
So when setting up my world i create few Object3Ds using three.cjs and and the id goes up to some value (example: 13)
Now when CSM constructor (which uses three.module.js)
this.createLights()
is called it create 3 DirectionalLights with id's (example: 8,11,14)
After so the id of next light i make outside CSM will be 14 which exactly aligns with the last DirectionalLight (id: 14) which messes up the UniformCache in three.cjs.
Most cases this will not be a problem as what are the chances of 2 id's to coincide is very rare which wont mess up the cache.
Solution:
I dont know yet. If you have an idea do let me know if this is problem of CSM or THREE.js or something in my setup.
The text was updated successfully, but these errors were encountered:
Error:
So I was getting this error when i started digging into whats happening:
Problem:
three has an _object3DId attached with each Object3d which increments by one like so.
So when setting up my world i create few Object3Ds using three.cjs and and the id goes up to some value (example: 13)
Now when CSM constructor (which uses three.module.js)
this.createLights()
is called it create 3 DirectionalLights with id's (example: 8,11,14)
After so the id of next light i make outside CSM will be 14 which exactly aligns with the last DirectionalLight (id: 14) which messes up the UniformCache in three.cjs.
Most cases this will not be a problem as what are the chances of 2 id's to coincide is very rare which wont mess up the cache.
Solution:
I dont know yet. If you have an idea do let me know if this is problem of CSM or THREE.js or something in my setup.
The text was updated successfully, but these errors were encountered: