View Issue Details

IDProjectCategoryView StatusLast Update
0003524The Dark ModCodingpublic19.08.2013 19:07
Reportergrayman Assigned Tograyman  
PrioritynormalSeveritynormalReproducibilityalways
Status resolvedResolutionfixed 
Product VersionTDM 1.08 
Target VersionTDM 2.00Fixed in VersionTDM 2.00 
Summary0003524: Certain lights not contributing to illumination
DescriptionSome of our lights offset the light source from the origin of the light entity.

For example, atdm:lamp_electric_fancy_lit has its origin on the metal base that attaches to the wall, and offsets the light source so it's at the light bulb.

The illumination math determines whether a light is contributing to illumination of an object by tracing from the object to the light's origin. If the light is placed against a wall, it's possible that the trace will hit the wall before it hits the origin, thus concluding that, since walls create shadows, the light entity is NOT contributing to the object's illumination.

The trace should go to the light source, the location that's offset from the light's origin
TagsNo tags attached.

Activities

grayman

grayman

19.08.2013 17:47

viewer   ~0006061

Also found out that if the light holder is rotated, the rotation is not taken into account.
grayman

grayman

19.08.2013 17:48

viewer   ~0006062

Aaand ...

The weak lightgem calcs are also ignoring light holder rotation.
grayman

grayman

19.08.2013 19:07

viewer   ~0006063

Apply any light rotation to illumination calcs.

Use the light center for traces, not the light’s origin.

Rev. 5865:

darkModLAS.cpp
Player.cpp
Light.cpp

Issue History

Date Modified Username Field Change
19.08.2013 13:13 grayman New Issue
19.08.2013 13:13 grayman Status new => assigned
19.08.2013 13:13 grayman Assigned To => grayman
19.08.2013 17:47 grayman Note Added: 0006061
19.08.2013 17:48 grayman Note Added: 0006062
19.08.2013 19:07 grayman Note Added: 0006063
19.08.2013 19:07 grayman Status assigned => resolved
19.08.2013 19:07 grayman Resolution open => fixed
19.08.2013 19:07 grayman Fixed in Version => TDM 2.00