Tomb-Editor
Tomb-Editor copied to clipboard
TE: vertices sometimes gets lighting from other room, if said vertex shares the same position as a vertex from that other room
Some vertices take the lighting from the another room if they share their position with a vertex from that other room. Here's an example.
Example
Editor view, showing both the inside (sanctuary) and outside room:
Inside, this corner in-game is bright because of the outside room:
The outside room doesn't seem to be affected by this issue though:
Which makes it look like it's not even merging the lighting between both rooms, but just taking the lighting from the outside room.
If I slightly edit the geometry in the inside or outside room, so the vertices don't share the same position, the issue disappears.
Counter-example
This is NOT systematic. In the exact same level, I have a room "hidden" inside the structure in the middle, with a yellow lighting. While multiple vertices share the same position both in this room and the main sanctuary room, the issue mentioned above doesn't appear.
Here is an example of those vertices, editor view: both screenshots are taken from the exact same angle/position - the first is showing the main room, and the 2nd is showing the "hidden" room:
In-game, no issue is found, no matter from which side you are looking:
Download
Here is a package with playable level (x64 only so the ZIP size fits Github limits) and PRJ2 file. TE lighting bug.zip
It only contains the relevant rooms. Lara is placed right in front of the problematic corner.
This is a TombEngine level, but this issue also happened in the exact same room when it was a TRNG level, so it is NOT TombEngine specific.