Skip to main content

Questions tagged [shadow-mapping]

Shadow mapping is a process by which shadows are added in 3D graphics scenes.

Filter by
Sorted by
Tagged with
0 votes
0 answers
31 views

How does SamplerCmp works compared to Sample (PCF shadow blur)

I'm doing 3x3 PCF blur with either Texture.SampleCmp (from CascadedShadow demo in DX11) or Texture.Sample (DX11 SM5) like this ...
philB's user avatar
  • 231
0 votes
1 answer
65 views

Advice on how to best use if possible 4 GatherCmpRed to emulate a 4x4 PCF sampling for shadowmap blur

In a part of my level I have shadows close to the camera where a good blur is important. Currently I have implemented a 4x4 PCF, thus requiring 16 texture samplings. I'm trying to see if the ...
philB's user avatar
  • 231
0 votes
1 answer
51 views

Shadow artifact with cubemap shadow for pointlights

I am facing some difficulties with the use of a cubemap shadow associated to a poinlight (represented as the yellow bicone in the picture). The shadow map itself is generated properly (see picture). ...
philB's user avatar
  • 231
0 votes
0 answers
51 views

Shadow mapping frustum fitting based on Y=0 plane

I am trying to calculate tight fitting of shadow map texture based on camera frustum. Since the camera is always going to be looking down on the Y=0 plane, I ...
tchayen's user avatar
  • 133
0 votes
0 answers
50 views

How to build directional light view / proj matrices in DirectX11?

I think I built my matrices wrong: ...
f1oating's user avatar
0 votes
0 answers
38 views

Shadow Artifacts on Plane Below a Sphere

I am having this minor issue implementing shadow mapping. The plane below the sphere has these strange artifacts. I can fix it by offsetting the position slightly but I'd rather have it work ...
Jambo's user avatar
  • 1
0 votes
0 answers
37 views

How to visualize the shadowmap as the renderTarget of the main camera in Unity?

I have a Unity project with the builtin pipeline. I would like to save the shadowmap of the directional light source and visualize on screen as the primary renderTarget of the main camera. ...
Fox1942's user avatar
  • 131
0 votes
1 answer
47 views

About possibly using Depthstencil 2D array in multiplerendertarget mode

I'm rendering in forward mode my scene with its depth buffer and because I'm using animated characters I'm plannig to find a way to use multiple rendertargets to do the directional shadow pass at the ...
philB's user avatar
  • 231
1 vote
1 answer
350 views

How does planar shadow projection interact with perspective projection?

This question is about planar shadows as explained in Frank Luna's DX11 book. The author presents the 4x4 shadow matrix, whose bottom right element is n\$\cdot\$L (where n is the plane's normal and L ...
Daniel's user avatar
  • 131
0 votes
1 answer
118 views

Issues with implementing shadow mapping produces weird results

This is my first attempt in implementing shadow mapping. I am using right hand coordinate system and my projection matrices are producing z values from 0 to 1. I've decided first to use orthogonal ...
Zhukov Artem's user avatar
0 votes
0 answers
57 views

Is directional shadow mapping without projection matrix possible?

I have found this code where they use a cubemap for pointlight shadow and they don't need to retrieve the faceindex and the projection matrix. This greatly improve the FPS. I was wondering if this ...
philB's user avatar
  • 231
0 votes
1 answer
57 views

Error in directional light shadow projection matrix

I have VC++ code for DX9 that draws shadows perfectly. ...
black4joss's user avatar
0 votes
0 answers
440 views

Python Generating a Shadowmap from a Heightmap

I've recently been experimenting with Python and PIL to generate heightmap images using simplex noise. The generated heightmaps are simply 2D numPy arrays with height values ranging from 0-1. I ...
Sad Strawberry's user avatar
2 votes
1 answer
433 views

Making Unity shadows work at a small scale

I'm trying to cast shadows from a small (3cm) sphere onto a table surface. If I place a large object, I get shadows as expected, but below a certain size, I get nothing. I appreciate that under ...
Basic's user avatar
  • 1,287
0 votes
1 answer
140 views

How to apply shadows on an animated model

I have followed the learnopengl.com tutorial on skeletal animation, but it does not apply shadow on the animated model. Here is the vertex shader that is used to display the character. I suspect that <...
HenriV's user avatar
  • 67

15 30 50 per page
1
2 3 4 5
12