View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0006649 | The Dark Mod | Coding | public | 27.12.2025 12:01 | 27.12.2025 22:30 |
| Reporter | stgatilov | Assigned To | stgatilov | ||
| Priority | normal | Severity | normal | Reproducibility | sometimes |
| Status | resolved | Resolution | fixed | ||
| Product Version | TDM 2.13 | ||||
| Target Version | TDM 2.14 | Fixed in Version | TDM 2.14 | ||
| Summary | 0006649: Light estimate system returns full shadow for parallel lights | ||||
| Description | Light estimate system casts ray between query point and light point to check if the point is in shadow. Parallel lights are a bit hacky, since their light origin is very far away, outside visleafs. Right now this is considered to be "always in shadow", which is not good. | ||||
| Steps To Reproduce | I noticed this issue on the upcoming "Displacement" mission. | ||||
| Tags | No tags attached. | ||||
|
I fixed two things to make it work properly: r11069 Don't use BSP optimization for shadow rays for lights which have origin in the void (in LightQuerySystem). (parallelSky light has its origin far in the void, so the "fast" BSP trace always detects immediate intersection) r11068 R_LocalTrace can know find two-sided intersection or frontsided intersections only, based on flag. r11070 Now idRenderWorldLocal::TraceAll treats all model surfaces as two-sided when intersecting with a ray. (raycasting a rendermodel used to only count frontfacing intersections and we picked the unlucky side) Also optimized the shadow rays in this case a little bit: r11067 Added r_useNodeCommonChildren kind of optimization to idRenderWorldLocal::BoundsInAreas_r. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 27.12.2025 12:01 | stgatilov | New Issue | |
| 27.12.2025 12:01 | stgatilov | Status | new => assigned |
| 27.12.2025 12:01 | stgatilov | Assigned To | => stgatilov |
| 27.12.2025 12:02 | stgatilov | Relationship added | related to 0006546 |
| 27.12.2025 22:30 | stgatilov | Note Added: 0017100 | |
| 27.12.2025 22:30 | stgatilov | Status | assigned => resolved |
| 27.12.2025 22:30 | stgatilov | Resolution | open => fixed |
| 27.12.2025 22:30 | stgatilov | Fixed in Version | => TDM 2.14 |