1
vote
0answers
29 views

Variance shadow maps less blurred than normal shadow map

I've implemented VSM (and also ESM) in my engine but results are for me not as I expected and saw in many examples published on network. I set filtering of shadow maps to GL_LINEAR but when I compare ...
1
vote
0answers
36 views

Shadow map shimmering, indexing outside the shadow map

I have tried to reduce shadow shimmering/flickering using technique described here: http://msdn.microsoft.com/en-us/library/windows/desktop/ee416324%28v=vs.85%29.aspx I works as I want and shimmering ...
0
votes
0answers
35 views

Depth texture white in shader

I am trying to implement shadow mapping into my project and am stuck at this problem: If I'm reading the shadow map values with glReadPixels and linearize those values, I am getting exactly the value ...
7
votes
2answers
363 views

stencil shadows - doom 3 engine - precision errors - shadow cracks - why?

I am testing the limits of the Doom 3 engine - in regards to maximum map size. I noticed some stencil shadow precision errors that become more pronounced when objects get further and further away ...
1
vote
0answers
108 views

implementing shadows into my 2D GLSL-based lighting system

I'm writing a lighting system in OPENGL using GLSL shaders, and I'm pretty happy with the light casting I have so far, but I'm totally stuck on casting shadows. Everything I've found online on this ...
1
vote
1answer
117 views

Shadow Map field-of-view

I'm implementing a shadow map algorithm with a spotlight (a spotlight that always "looks" at a given object). My issue is that for some configuration, part of the object the light is "looking at" is ...
1
vote
1answer
131 views

Reflection and shadows in OpenGL

I'd like to implement shadows and reflective surfaces in my OpenGL app. I already have ideas which I will provide below. But I would like to ask someone more experienced than me before I put too much ...
1
vote
1answer
49 views

Depth Map resolution shifting

the problem is with shadow mapping as you can see, actually it works fine but in a certain condition that the Depth Map size must be equal to the size of rendering buffer, I use an infinite ...
0
votes
2answers
75 views

Trouble getting shadow maps working

I am trying to implement shadow maps in my game following this tutorial. For some reason, the light is not being occluded. In the above screenshot, the big white sprite in the foreground is a ...
1
vote
0answers
82 views

Alternative to z-fail [closed]

This question is less technical but maybe someone had similar thoughts. I am wondering if the following algorithm still harms the stencil shadow patent? It is concerned with the invention of a "new ...
1
vote
1answer
330 views

Cascaded shadowmapping problem with split distances

I'm doing cascaded shadow mapping and I have problem. From the cameras position, the splits are [camPos, 6], [camPos+6, 12], [camPos+12, 18] and [camPos+18, 100]. The "mSplitDistance" variable is the ...
0
votes
0answers
141 views

Calculate parameters for orthographic matrix for directional shadow mapping

I am struggling with how I can fit my scene in an orthographic projection, based on what is visible by the camera. All tutorials so far explain almost everything in perfect detail, and then for the ...
0
votes
0answers
99 views

Shadow Mapping: How to calculate Axis Aligned Bounding Box?

I am trying to implement Shadow Mapping, which is actually working with an AABB that always covers my entire scene, but (obviously) it gives very blocky graphics. So I figured I need to calculate a ...
0
votes
1answer
516 views

Directional shadow mapping view/projection matrices

I've got shadow mapping with directional lights working, but I believe I am constructing the view/projection matrices wrong. Here's how I build them: Mat4 viewMatrix = ...
4
votes
2answers
205 views

Shadowmap first phase and shaders

I am using OpenGL 3.3 and am tryin to implement shadow mapping using cube maps. I have a framebuffer with a depth attachment and a cube map texture. My question is how to design the shaders for the ...
1
vote
1answer
262 views

Infinite terrain shadows

I'm creating an infinite terrain engine, which generates the terrain either with fractals or noise. How can I make dynamic shadows for the sun on this terrain, if I don't know in advance what will be ...
2
votes
1answer
167 views

How stencil buffer and glFrontFace help making a shadow?

I'm trying to understand the tutorial 27th in Nehe website. This is about how to cast a shadow of an object using stencil buffer in OpenGL. The idea here is checking the directions of all the faces of ...
1
vote
0answers
203 views

Unity Pro - Shadow rendering issue

I am using Unity Pro 4.2.1f4 and I always have this sort of glitch. This is due to the shadows and the bias. Even with a low bias this is happening. I've found a thread that talks about that ...
4
votes
1answer
785 views

Shadow mapping does not work correctly using GLSL shaders

I'm a beginner in shadow mapping. I have in my scene two meshes : a cube and a floor. The scene is lighted by a single point light. Here's for the following display the light properties : ...
0
votes
0answers
163 views

Shadow-casting through time acting in “reverse” before next notciable shadowmap update

question was re-written to better explain the problem I have a scene of big thin parallelepiped, small cube, and a light source, all aligned on Y axis, like so: _ | | | |----[ ]----Light |_| Both ...
8
votes
1answer
2k views

Modern shadow rendering techniques?

What is the state of the art in terms of shadow rendering? My target is OpenGL 3.2, using a deferred rendering pipeline, if that matters. It's been years since I looked into shadow rendering, and at ...
2
votes
1answer
259 views

How to transform a shadow map to camera view?

I'm making a rendering engine as a hobby to learn more about 3D. I have a deferred renderer with the G-buffer (color, normal and depth). I also have a lighting controller that uses only spotlights at ...
0
votes
2answers
499 views

GLSL light coloring blocked surfaces

I have created a very simple lighting shader. It currently only supports point lights, but it lights up surfaces that are completely blocked from the light. I know why, but I want to know how I can ...
3
votes
1answer
1k views

Problems implementing a screen space shadow ray tracing shader

Here I previously asked for the possibility of ray tracing shadows in screen space in a deferred shader. Several problems were pointed out. One of the most important problem is that only visible ...
3
votes
1answer
356 views

forward rendering and multiple shadow maps

I have two light sources on my scene. I created two fbo's which store depth textures for these lights. A render loop looks like this: bind fbo1 save depth values for first light unbind fbo1 bind ...
4
votes
1answer
386 views

Shadow mapping: what is the light looking at?

I'm all set to set up shadow mapping in my 3d engine but there is one thing I am struggling to understand. The scene needs to be rendered from the light's point of view so I simply first move my ...
1
vote
1answer
1k views

JOGL hardware based shadow mapping - computing the texture matrix

I am implementing hardware shadow mapping as described here. I've rendered the scene successfully from the light POV, and loaded the depth buffer of the scene into a texture. This texture has ...
7
votes
3answers
4k views

First time shadow mapping problems

I have implemented basic shadow mapping for the first time in OpenGL using shaders and I'm facing some problems. Below you can see an example of my rendered scene: The process of the shadow mapping ...
2
votes
1answer
285 views

Steps to take before trying to implement screen space ambient occlusion

I very recently started learning modern OpenGL. I have implemented a wavefront file loader and a basic ADS shading model. At some point I'd like to implement screen space ambient occlusion. I tried ...
0
votes
1answer
1k views

Deferred rendering + Shadow maps

I have a 1920x1200 shadowmap which just has the depth values of my scene drawn from the point of view of the light. I also have a 1920x1200 gbuffer that draws my scene to a fullscreen quad. How can ...
1
vote
0answers
277 views

JOGL Hardware Shadow Mapping Transparent Shadow Texture

I'm using hardware shadow mapping on JOGL based on the demo(HardwareShadowMapping) supplied by the distribution. After generating the shadow texture from lights point of view, I apply it to my scene ...
6
votes
2answers
862 views

How are dynamic blending shadows like this created?

I would like to know, how dynamic shadows, that 'blend' onto other objects, are created.
6
votes
3answers
502 views

shadowing billboards

I have a lot of billboarded 3D spheres (they have a heightmap so work properly with depth and penetration; although each is made of just a quad (with slight distortion), they look and feel and are ...
14
votes
4answers
4k views

Real time shadow casting in a 2D isometric game

I'm writing a small 2d isometric engine in C++ and I'm trying to implement real time shadow casting. I followed a simple approach described on this page and here is the result (light is located at the ...
3
votes
1answer
995 views

State of art shadowing technique for OpenGL on isometric terrain?

What's the most efficient way of creating shadows for object on a isometric terrain with OpenGL and JOGL? Note that this terrain is not flat and is not heightmap generated. Think it as another model. ...