Technique used to produce shadows in a 3D scene, by drawing objects to a texture or textures, and then mapping them onto a scene.
Questions tagged [shadow-mapping]
199 questions
0
votes
1 answer
how to get upvector of lookAt function when implement shadow mapping of point light
i am learning to implement point shadow using depth cubemap following learnopengl.com. in learnopengl it uses one perspective matrix and six view matrices to do light space transform.its six view matrices are:
std::vector…
0
votes
0 answers
THREE.VSMShadowMap shadow making some line in the shadow material
`I want to control the shadow so I added THREE.VSMShadowMap. now I can control it using this
Renderer
renderer.shadowMap.enabled = true;
renderer.shadowMap.type = THREE.VSMShadowMap;
Geometry
const geometry = new THREE.SphereGeometry( 15, 32,…

MadhavanDev
- 1
- 1
0
votes
1 answer
Logic of Deferred Rendering combined with other Shading techniques
I'm trying to create a program in DirectX-11 that implements several techniques, namely Deferred rendering, Phong Tessellation and Shadow mapping. I have had no problem making phong tessellation and Shadow-Mapping, but that was with Forward…

Charlie.Q
- 43
- 6
0
votes
1 answer
Can anyone tell me how the code move the light in texel-size increment and solve shadow map shimmering
Today when I read the part of Moving the Light in Texel-Sized Increments in the msdn document Common Techniques to Improve Shadow Depth Maps to try to solve the problem of shadow map shimmering, I cannot under the meaning of the variable…

CarolGolang
- 11
- 3
0
votes
1 answer
openGL shadow mapping but everything is black
I first made a scene with no shadowing and tested it with good results, then I was trying to make shadows for my scene, which resulted in every object being black. However, my remaining features function normally.
I think there might be some uniform…

YX L
- 55
- 6
0
votes
1 answer
why this shader variable doesn't change?(dx12, hlsl)
I'm working with dx12 and hlsl, and this specific root constant seems doesn't change or doesn't work for index.
this is hlsl code
#include "LightUtil.hlsli"
cbuffer cbCameraInfo : register(b1)
{
matrix gmtxViewProj : packoffset(c0);
float3…

Shark_Bladder
- 67
- 7
0
votes
2 answers
Shadow Mapping (DirectX12) : Shadow map does not render properly
Sorry for auto translation.
The part that's stuck right now is shadow mapping.
The position of the player is exactly 2000, 0, 2000; there is a light source that is the origin of the shadow mapping camera directly over the sky (it is a directory…

Shark_Bladder
- 67
- 7
0
votes
1 answer
Dealing with the non-linearity of perspective shadowmap depth values
I have implemented shadow maps in GLSL by rendering the view from a light into a depth texture, and then in a second pass compare these values when rendering my geometry from camera view.
In abbreviated code, the vertex shader of the second (main)…

Bram
- 7,440
- 3
- 52
- 94
0
votes
1 answer
Shadow map doesn't work with world space transformation (OpenGL)
I'm trying to implement shadow maps into my 3D world I created with openGL.
I want to be able to move around the map and the shadow to follow as I move, so I needed a light Projection matrix that take into account my world view frustrum.
…

adrien bedel
- 116
- 8
0
votes
0 answers
Directional Light Shadow Mapping Issues
So I've been trying to re-implement shadow mapping in my engine using directional lights, but I have to throw shade on my progress so far (see what I did there?).
I had it working in a previous commit a while back but refactored my engine and I'm…

Adr7000
- 69
- 2
- 7
0
votes
1 answer
Why does VSM Depth Map Blurring produces strange results?
I am trying to implement Variance Shadow Mapping for directional shadows in my rendering engine with OpenGL.
I have read multiple articles such as -…

skeelz
- 57
- 8
0
votes
1 answer
Shadowmap works with ortho projection, but not perspective projection
I have implemented shadow-mapping, and it works great as long as I use an orthogonal projection (e.g. to have shadows from 'sun')
However, as soon as I switched to a perspective projection for a spotlight, the shadowmap no longer works for me. Even…

Bram
- 7,440
- 3
- 52
- 94
0
votes
0 answers
Adding a shadow map to a closed source single pass fixed function pipeline OpenGL 1.x game
I've been hacking a very old fixed function pipeline OpenGL 1.x game. I've been intercepting opengl calls and injecting all sorts of modern opengl elements, such that I've achieved new lighting and added post processing shaders (programmable…

Zain Syed
- 443
- 4
- 12
0
votes
1 answer
Shadowmap blank with GL_LESS but not with GL_GREATER or GL_ALWAYS?
I've been working on shadowmapping for a few days now in my custom OpenGL engine. After reading a few guides, I've tried to stick to the basic method as closely as possible: create a shadowmap framebuffer with a GL_TEXTURE_2D for the shadowmap…

shadowmapper100
- 13
- 1
0
votes
0 answers
Problem at Shadows Calculation with ShadowMap Rendering
I'm having a little trouble on implementing Shadow Mapping in the Engine I'm doing. I'm following the LearnOpenGL's tutorial to do so, and more or less it "works", but there's something I'm doing wrong, like if something in the shadowmap was…

LuchoSuaya
- 77
- 10