jMonkeyEngine / jMonkeyEngine/jmonkeyengine
shadow renderer casts shadow on invisible parts of receiving geometries
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);
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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