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
2
votes
0 answers
How do I generate a Spotlight Projection Matrix for Shadow Mapping?
I'm currently in the Process of making a simple little shaodw mapping ystem for Ogre3d.
I'm currently stuck at Mapping the Shadow map texture to the object for depth comparison because I have no idea how to generate the required Projection Matrix…

user2706035
- 95
- 1
- 1
- 6
2
votes
1 answer
Shadow mapping with a deferred rendering
I am trying to implement a shadow mapping technique and I have some problems to make it works.
I have a camera in the light's position and this is the shadow map I get. All the vertex have been multiplied by each modelViewProjectionMatrix.
I also…

MikeFadeCrew
- 107
- 2
- 11
2
votes
1 answer
Shadow mapping 'shadow acne' artifacts using OpenGL and GLSL
I wrote a simple 3D application implementing hard and PCF shadow mapping algorithms using the famous front face culling technique. Unfortunatly, the problem with this technique is only sealed meshes can produce cast shadows. For example a plane…

user1364743
- 5,283
- 6
- 51
- 90
2
votes
1 answer
Basic shadow mapping artifacts using OpenGL and GLSL
I've written a simple OpenGL test application about basic shadow mapping technique.
I have removed most artifacts except for the one on the occluder back face. This back face is concerned by artifacts because during the first rendering pass (shadow…

user1364743
- 5,283
- 6
- 51
- 90
2
votes
1 answer
Shadow Mapping Artifacts
I just started messing around with shadow mapping. I understand the algorithm used. The thing is I cannot for the life of me figure out where I am messing up in the HLSL code. Here it is:
//These change
float4x4 worldViewProj;
float4x4 …

user3355098
- 173
- 7
2
votes
1 answer
GLSL 1.20 shadow mapping, distorting shadow
I have been trying to figure out a weird issue in my application for a week now. I implemented a very simple shadow mapping app and I get a shadow, but it moves and distorts in a weird way as the game camera moves.
An obvious explanation that I…

sharman
- 21
- 3
2
votes
0 answers
OpenGL shadow map issue
I implemented a fairly simple shadow map. I have a simple obj imported plane as ground and a bunch of trees.
I have a weird shadow on the plane which I think is the plane's self shadow. I am not sure what code to post. If it would help please tell…

D.Razvan
- 325
- 1
- 5
- 18
2
votes
0 answers
Shadowmapping always produces shadows beyond far plane
I am working on the beginnings of omnidirectional shadow mapping in my engine. For now I am only producing one shadowmap as a test. I am getting an odd result when using my current shaders. Here is a screenshot which shows the problem:
I am using a…

jbills
- 694
- 1
- 7
- 22
2
votes
1 answer
Soft Shadow Technique using XNA 3.0
I am working with XNA 3.0 (sigh, I know) and I am working off a tutorial that helps implement a 3d scene with objects where a spot light hits a torus and projects a hard-edged shadow. Now, I want to know where I can find help (tutorial, source code,…

user2529011
- 705
- 3
- 11
- 21
2
votes
1 answer
Shadow map projection in deferred rendering (OpenGL 3.3)
I have a working G-buffer (color, normal, depth) and for each spot light, I have the depth map from the light's point of view. The problem is in the lighting map phase, I can't get it to work. Could you point out what's the problem here?
Here's my…

manabreak
- 5,415
- 7
- 39
- 96
2
votes
1 answer
Bias matrix in shadow mapping confuse
I have confused about bias matrix in shadow mapping. According this question: bias matrix in shadow mapping, bias matrix is used to scale down and translate to [0..1]x and [0..1]y. So I image that if we don't use bias matrix, the texture would be…

Bình Nguyên
- 2,252
- 6
- 32
- 47
2
votes
1 answer
ShadowMap confuse
I am confused about shadow mapping. Here's what I've understood (folowing steps are not working:) )
How to get profit (please don't get confused about the code, it is roughly because I write on Java):
1. Create empty depthTexture (mine is 1024x1024)…

TomatoMato
- 703
- 2
- 8
- 19
1
vote
1 answer
Shadow Mapping - Space Transformations are going bad
I am currently studying shadow mapping, and my biggest issue right now is the transformations between spaces. This is my current working theory/steps.
Pass 1:
Get depth of pixel from camera, store in depth buffer
Get depth of pixel from light,…

vK 3 1 RON
- 113
- 8
1
vote
0 answers
How to fix shadow mapping problems - resolution, shadow swimming, sawtooth (OpenGL)
Im experimenting with rendering by trying to make a minecraft-like voxel engine. I want nice visuals, so I implemented basic shadow mapping. On a basic level it works, I do have shadows, and I have already accounted for shadow acne. But I am still…

DFined
- 51
- 4
1
vote
1 answer
Finding the light ray that goes from light world position through the shadow map texel
I want to move from basic shadow mapping on to adaptive biased shadow mapping.
I found a paper which describes how to do it, but I am not sure how to achieve a certain step in the process:
The idea is to have a plane P (which is basically just the…

AudioGuy
- 413
- 5
- 18