Questions tagged [shadow-mapping]

Technique used to produce shadows in a 3D scene, by drawing objects to a texture or textures, and then mapping them onto a scene.

199 questions
4
votes
1 answer

Shadow mapping with Deferred Rendering (OpenGL)

So I've been trying to wrap my head around shadow mapping in OpenGL for the past week and it's not been going so great. So I was hoping somebody here could help me out. I've been learning about shadow mapping from LearnOpenGL's shadow mapping…
Toby
  • 41
  • 4
4
votes
1 answer

Empty (white) framebuffer - shadow mapping

See EDIT since the first part of the problem is solved. I am trying to replicate the shadow mapping demo from http://learnopengl.com/#!Advanced-Lighting/Shadows/Shadow-Mapping with my own framework, but interestingly I did not get any shadows. The…
bobby
  • 115
  • 8
4
votes
1 answer

Stable Shadow Mapping

I'm trying to stabilise the shadows in my 3D renderer. I'm using CSMs. Here's the code I've got, making no attempt to stabilise. The size of the projection in world space should at least be constant though: void SkyLight::update() { // direction…
Jagoly
  • 939
  • 1
  • 8
  • 32
4
votes
1 answer

Shadow Mapping with Deferred Renderer (OpenGL 4.1, GLSL)

I've read several articles here at stackoverflow and in some books. But I can't find the error in my code. I have an deferred renderer and saved albedo, depth and normals (including spec) inside the g-buffer. Moreover created an shadow map from a…
Tobias
  • 427
  • 4
  • 19
4
votes
1 answer

Are soft shadows possible with point light using cubemap (OpenGL/GLSL)?

I coded a 3D application managing spot light shadow mapping. To do this I use classical shadow mapping technique (I fill a depth texture in the first render pass and in the second render pass I compare the distance from light to the first occluder…
user1364743
  • 5,283
  • 6
  • 51
  • 90
3
votes
1 answer

How to make Shadow Mapping?

I was trying to understand how Shadow Mapping works on its own and describes this Python program to test Shadow Mapping, and this is as far as possible. I searched for shadow mapping problems, but I haven't found what has already happened for…
Arthur Sally
  • 134
  • 1
  • 10
3
votes
1 answer

OpenGL ES3 framebuffer draw depth in red scale

So after hard work to make directional light shadow map work finally I can see a shadow map rendered on a quad but it is drawn only with depth GL_DEPTH_COMPONENT16 and type GL_UNSIGNED_SHORT , or GL_DEPTH_COMPONENT32F and type GL_FLOAT but it is in…
user8581488
3
votes
1 answer

Getting GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT with depth texturing

I have been trying to implement shadow-mapping for a long time, and I am using Lance Williams' technique (which is rendering the scene twice, once in light space and once in view space). However, when I call glCheckFramebufferStatus on…
clabe45
  • 2,354
  • 16
  • 27
3
votes
0 answers

How can I implement Shadow Volumes in WebGL

I have some questions about drawing shadows of a .obj in a scene of WebGL. For example, if I want to draw shadows with Shadow Volumes Method, how should I develop this ? I'm trying to implement this but I have failed. Are there more efficient…
3
votes
1 answer

Shadow Map Positioning and Resolution

I'm currently learning C++ and OpenGL and was wondering if anyone could walk me through what is exactly happening with the below code. It currently calculates the positioning and resolution of a shadow map within a 3D environment. The code…
lolguy343
  • 33
  • 3
3
votes
0 answers

How to choose the Light Size in World Space for Shadow Mapping and Percentage Closer Filtering?

Hi computer graphics and math people :-) Short question: How to let an artist choose a meaningful light size in world space for shadow maps filtered by percentage closer filtering (PCF) and is it possible to use the same technique to support spot…
FrozenTarzan
  • 834
  • 10
  • 30
3
votes
1 answer

Cascaded Shadow maps not quite right

Ok. So, I've been messing around with shadows in my game engine for the last week. I've mostly implemented cascading shadow maps (CSM), but I'm having a bit of a problem with shadowing that I just can't seem to solve. The only light in this scene is…
Jagoly
  • 939
  • 1
  • 8
  • 32
3
votes
1 answer

Shadow Mapping in OpenGL

I can't get shadow mapping to work in my application. I try to render a quad bike and view its shadow on a floor beneath it. Here's some of my code. Texture creation: // Create a depth texture glGenTextures(1, &depth_texture); …
McLovin
  • 3,295
  • 7
  • 32
  • 67
3
votes
1 answer

Shadow map perspective aliasing

It seems impossible to remove this sort of perspective aliasing when the surface is nearly parallel to the light direction. I have tested several different shadow acne removing techniques: Constant bias doesn't work: Introduces peter panning on…
Daniel
  • 678
  • 1
  • 5
  • 20
3
votes
1 answer

Shadow acne on Nvidia graphics card

A partner and I are working on a small demo in OpenGL. We are doing simple shadow mapping. He uses an ATI and Intel HD graphics 4000 and everything works fine. I use a GTX 560 TI and get shadow acne although we use the same code. When I'm moving…
Stan
  • 721
  • 10
  • 24
1
2
3
13 14