OpenXRay / OpenXRay/xray-16

CS - Sun Rays coming through walls in R4 render

Open
#2,071 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug
Dominant language
C++
Stars
3.6k
Forks
536
Avg merge
6d 1h
Merged PRs (30d)
3

Description

Describe the bug
The sun rays can burst through walls

To Reproduce
Steps to reproduce the behavior:

  1. Set R4 and Start new game
  2. enter in the huts in swamps
  3. Move around in the direction of sun
  4. See error

Expected behavior
A sun rays should come inside only from windows or open doors

Screenshots, videos

https://github.com/user-attachments/assets/40b4225a-96da-4872-8b55-13db795cc3e1

Image

BugTrap error report
No crash

Desktop (please complete the following information):

OpenXRay Release Master Gold build 9856, Feb 1 2026 (Windows 64-bit, static)
GitHub Actions build 6237 (21565295480) from commit[62b2e33e1ed7bdeefbcdf6de7840efa4956ec602] branch[dev] (built by OpenXRay/xray-16)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in R4 using the listed swamp huts and the supplied screenshot or video as the visual reference. Move around indoors toward the sun to confirm rays pass through walls rather than only windows or open doors. Done means the same scenario shows sunlight entering only through those openings, with no crash.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.