jMonkeyEngine / jMonkeyEngine/jmonkeyengine

shadow renderer casts shadow on invisible parts of receiving geometries

Open
#463 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
4.3k
Forks
1.2k
Avg merge
4d 7h
Merged PRs (30d)
14

Description

please see the attached screenshot demonstrating the problem in 3.1.0-alpha4.

Using the following code to render the shadows. Both the wall and the floor only receive shadows. The floor is wider and is cut by the vertical wall, but the shadows are rendered on both the visible and invisible parts of the floor geometry.

   DirectionalLightShadowRenderer rend = new DirectionalLightShadowRenderer(assetManager, 2048, 4);
        rend.setLight(sun);
        viewPort.addProcessor(rend);
2016-04-01_2156

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 screenshot with DirectionalLightShadowRenderer, the supplied light setup, and overlapping wall and floor geometries. Trace how the renderer determines shadow receivers and verify that shadows are limited to the visible portions of the receiving geometry; done means invisible or occluded floor sections no longer display shadows.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
computer-graphics
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.