libgdx / libgdx/box2dlights

possibility to mask light when light intersect with another body

Open
#94 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

Hello, I think it would be a great feature to allow light to be masked by other bodies when they intersects, let say for example

lightObjectDef.filter.groupIndex = -1;
...
boxObjectDef.filter.groupIndex = -1;

so that the two object wont collide but will get into each others. The actual result is that the light is not masked at all

image

the idea is to mask the light the following way

image

keeping the light overflow on.
It would allow for awesome graphics effects (and I really need it).
If anybody has any idea/advices, it would help me a lot.

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

No source files, tests, or entry points are named. Start by tracing how the Java filter.groupIndex settings relate to light masking, then determine where intersecting bodies are handled; done means a body masks the light without collision and light overflow remains enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
computer-graphics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.