GDevelop icon indicating copy to clipboard operation
GDevelop copied to clipboard

[DRAFT] implementation of Shadowmapping

Open NeylMahfouf2608 opened this issue 8 months ago • 0 comments

I tried implementing the built-in shadowmapping system of threeJS exposed here (this implementation is only for DirectionalLight, but the concept is the same for each type of light):

https://threejs.org/examples/webgl_shadowmap_viewer.html

a course on the subject (very short) : https://threejs-journey.com/lessons/shadows#

In my implementation, i forced every required booleans absolutely everywhere it could be necessary. I did not have any good result with this way, nor with a more precise implementation. I push this for clarity.

I have only two theories to explain why there is no shadows :

  • A conflict of any sort with Pixi
  • A problem of scale within our implementation of 3D. We seem to use very high values for our most basic mesh (cube) compared to what I could find on other project. This might be a big problem to solve if we want to implement shadows, as it will force the shadow camera to have a huge plan, which will probably be horrible for performance.

NeylMahfouf2608 avatar May 05 '25 08:05 NeylMahfouf2608