Resolving Shadows Issues in Emscripten Builds Topic is solved

Problems building or running the engine, queries about how to use features etc.
Post Reply
User avatar
Cyberix3D
Gnoblar
Posts: 23
Joined: Tue Jan 17, 2023 10:25 pm
x 4
Contact:

Resolving Shadows Issues in Emscripten Builds

Post by Cyberix3D »

Ogre Version: :13.6.1:
Operating System: :linux/windows:
Render System: :emscripten:

Hello,
I am currently experiencing an issue with the shadows after building for emscripten.
The build was successful upon running the following commands:

Code: Select all

emcmake cmake .. -DCMAKE_BUILD_TYPE=Release
emmake make

However, the shadows are not displaying correctly and are appearing duplicated and flickering.
Image

A demonstration of the issue can be found at this link:
https://www.gamemaker3d.com/ogre-sample/EmscriptenSample.html
Could anyone assist me in understanding if there are additional parameters that need to be added to the build process to correct this issue?

paroj
OGRE Team Member
OGRE Team Member
Posts: 1994
Joined: Sun Mar 30, 2014 2:51 pm
x 1075
Contact:

Re: Resolving Shadows Issues in Emscripten Builds

Post by paroj »

the issue is that clamp to border is not available on WebGL1 and the shadow texture is simply repeated.
This should fix the issue: https://github.com/OGRECave/ogre/pull/2744

Alternatively, consider switching to WebGL2

Post Reply