I have designed an apartment with 6 rooms. Light is going thru walls from 1st room to 6th room
This is not the behavior of light in reality. It should stop at walls unless:
The wall is set to be transparent.
If there are any windows of doors to that walls.
How can I make the light stop at walls?.
I could not understand the renderList stuff. Do I need to mention all my mesh IDs in the renderList of every light?
I have 100s of meshes and I have around 10 lights in every room. 60*100=6000 GUIDs in file.
Do I still need to use ShadowGenerator?
If I need to use ShadowGenerator, Do I need to create one ShadowGenerator for each light and all all the meshes to the renderList of each ShadowGenerator?
For your walls and rooms, are you using primitives (box, sphere, ext…), or meshes built in 3d software and exported using the exporter?
If exporter, what format were the files exported in and what software was used.
If primitives, are there any negative scales applied to the wall between the rooms?
Maybe check to make sure you did not exclude that wall from the lights influence list with exclusion lightname.excludeMeshes.push(array) or explicit inclusion of other objects using lightname.includeOnlyMeshes.push(array)
Deltakosh is right as usual. Learning the dark ways of shadows will stop light from misbehaving.
The whole plan is generated on the fly with code.
Everything is perfect in terms of the normals. The only thing is, the thickness of the wall meshes is Zero
Using shadows could help but - I think - this will probably be more compute intensive than using the includedOnlyMeshes method (easy to script by using a right naming convention).