I know this is a well known issue but I cant find a solution that works for me. I have nice shadows in my app. I am using an ortho projection matrix to render the shadow map. To keep the shadow detail high I am moving the shadow camera as the players position moves within the game. The shadows flicker. I think I need to lock the shadow camera to the nearest texel but I do not know how (I know I need to adjust the shadow matrix but don't know how). All the examples I can find are for directX and I cant translate that to opengl es 2.0. Any clues folks? Thanks for your time.
Opengl es 2.0 shadows flickering when shadow camera moves
675 Views Asked by J mott At
1
There are 1 best solutions below
Related Questions in OPENGL-ES
- How can I use ARCore and OpenGL without Sceneform for making ar measurement app android?
- Unable to find GL_INT_2_10_10_10_REV define on Android GLES
- How to rotate model and view matrix with same angle?
- CameraX custom OpenGL Video Pipeline (`UseCase`/`VideoOutput`)
- How do I avoid leaking Graphics memory in OpenGL ES 2.0 in a background thread on Android?
- How to Create GPU SkImage in a Background Thread and Draw it on a Main SkSurface with OpenGL and Skia?
- glTexSubImage2D throws GL_INVALID_OPERATION in OpenGL ES 3.2 on Android NDK with FreeType
- What are the rules for the precision of casting operations in GLSL
- Why would a OpenGL ES 2.0 leak graphics memory on Android, but not iOS with the same code
- Create a VideoFrame from Canvas
- GLES30 Ray Picking gluUnProject
- OpenGL lighting works incorrectly on Android and WebAssembly
- WebGL: this extension has very low support on mobile devices
- OpenGL ES 3.0 - Textures black
- OpenGL-glGetUniformLocation failed
Related Questions in ORTHOGRAPHIC
- Pyhton get lat and lon data of a cartopy orthographic projection by a MouseClick event
- Using own map information including polygons in the solar API?
- How do I gdal_translate an orthographic PNG image of the Earth centered at Lat=+50N Lon=+5E to proper GeoTIFF format?
- Orthographic camera is cutting rendered scene in half
- Is there a way to change a gameobject from perspective to orthographic seamlessly in Unity?
- Finding lat/long within a images using image metadata
- 2D Scene is not responsive according to screen sizes
- Behaviour of (glm::) orthographic camera in Vulkan app
- How can i move orthographic camera like google map style in unity3D
- How do you find the orthographic projection of a convex polyhedron with maximum or minimum area?
- Raymarching orthographic view
- How can I make an orthographical projection image from perspective projection image?
- Three.JS: First time Orthographic Camera is rendered, her view is broken
- Does mpl_toolkits.basemap handle coordinates consistently throughout projections?
- How do I fix my orthographic projection math when it renders cubes behind me on my screen?
Related Questions in SHADOWS
- Three JS shadow bug?
- How to do point light shadows with deferred rendering?
- Gaussian Blur never works correctly
- SSAO & Shadow mapping | Shadows do not work with the SSAO
- Shadow removal road images
- Object loaded with ObjLoader does not receive shadows in three.js
- Threejs soft shadows for point light
- Unity - shadows jagged, no solutions?
- Opengl es 2.0 shadows flickering when shadow camera moves
- Three.js - Why is the shadow of these items looking like this?
- Shadow Removal in Python OpenCV
- Making rain particle as shadows
- three.js light leaking from object
- Three.js ShaderMaterial shaders: What's the identity ("hello world") vertex and fragment code?
- How to hide shadowMapEnabler in three.js
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Assuming your flickering is along the edges of the shadow, then that's due to floating point precision, so you need to add a small bias to force the decision out of the error margin.
Enable
GL_POLYGON_OFFSET_FILLand useglPolygonOffsetto set up a bias.