Issue417

Title negative light radius
Priority bug Status resolved
Assigned To fluzz Keywords
Linked issues Watchers fluzz

Submitted on 2011-07-29 10h09 by matthiaskrgr, last changed by fluzz.

Files
File name Uploaded Type Edit Remove
light.jpg matthiaskrgr, 2011-07-29.10:09:07 image/jpeg
lightexplanation.jpg matthiaskrgr, 2011-07-30.23:00:17 image/jpeg
Messages
Author: matthiaskrgr Date: 2011-07-29   10h09
On level 35 near the entrance, Tux is surrounded by negative (dark) light radius.

Screenshot attached.

r4892

Attached light.jpg.
Author: ahuillet Date: 2011-07-29   13h18
Looks like some kind of overflow. Fluzz, would you please investigate this? It's
your area more than mine!

I don't think this is "important" though, resetting to "bug".
Author: fluzz Date: 2011-07-30   16h32
I rather think that the light values of level 35 are wrongly set.
I'll check them.
Author: fluzz Date: 2011-07-30   21h54
That's really strange. There is no such bug in any other levels, with same light
configuration...
Author: matthiaskrgr Date: 2011-07-30   22h57
I was able to reproduce the bug on level 24 as well, with some tricks.

Change the light properties of the level to ambient 12 and bonus 9.

Place a sign somewhere.
Place another obstacle which  (lamp for example) nearby.

Since only obstacles near tux are computed, this bug will only be visible within
certain range near the sign.

You must be in eye-contact with the sign. Otherwise there will be no bug.

When you now are near the sign, there is no other obstacle blocking the path
('view') and you are in the light radius of another obstacle, this black aura
will appear around tux.
As soon as the sign obstacle isn't computed anymore, the light radius will be
back to normal-
Author: matthiaskrgr Date: 2011-07-30   23h00
modified SC attached.
Author: matthiaskrgr Date: 2011-07-30   23h01
Note: when replacing the sign with an animated sign, the dark aura only shows up
while the sign is turned "on" (emits light).
Author: fluzz Date: 2011-07-30   23h12
What we've found until now: the bug appears because the light emitted by a sign
(5) is lower than the ambient light of the level (9).

I now have to investigate the code, to understand why...
Author: hakzsam Date: 2011-07-31   11h40
That's strange, indeed. The bug may appear with my recent changes in this area.
Author: fluzz Date: 2011-07-31   17h14
Fixed in svn r4896
History
Date User Action Args
2011-07-31 17:14:03fluzzsetstatus: open -> resolved
messages: + msg1421
2011-07-31 11:40:05hakzsamsetmessages: + msg1416
2011-07-30 23:12:16fluzzsetmessages: + msg1411
2011-07-30 23:01:39matthiaskrgrsetmessages: + msg1410
2011-07-30 23:00:17matthiaskrgrsetfiles: + lightexplanation.jpg
messages: + msg1409
2011-07-30 22:57:49matthiaskrgrsetmessages: + msg1408
2011-07-30 21:54:31fluzzsetmessages: + msg1404
2011-07-30 16:32:26fluzzsetmessages: + msg1395
2011-07-29 13:18:57ahuilletsetpriority: important -> bug
assignedto: fluzz
messages: + msg1380
nosy: + fluzz
2011-07-29 10:09:07matthiaskrgrcreate