libgdx / libgdx/box2dlights

Directional Light has "sides"

Open
#98 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
265
Forks
81
PR merge metrics
No merged PRs in 30d

Description

This might be the same issue as #61, which is for top/bottom, but I'm not sure.

When creating a directional light (pointing downwards), if you pan the camera far enough to the left or right, you get darkness. I'm working around this for now by periodically dirtying all the static lights, but that's sorta ugly.

wall of darkness

Is this expected? Am I supposed to poke static lights periodically, or should they "know" that the camera is panning near/past the last calculated light area?

Contributor guide

No contributing guide indexed for this repository

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 reported case: create a downward-pointing directional light, then pan the camera far left or right until darkness appears. Compare the behavior with issue #61 and determine whether the light should update as the camera approaches or passes the calculated area. Done means the directional light behaves correctly during panning without periodically dirtying static lights.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
computer-graphics, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.