Skip to main content

Questions tagged [shadow-mapping]

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

0 votes
0 answers
24 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
30 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
  • 139
0 votes
0 answers
39 views

Need help with artefacts when rendering shadows using a shadow map

I am encountering some weird artefacts when rendering shadows using a shadow map. I am using C++ with Vulkan and GLSL shaders. This is the vertex shader that calculates the ...
Symlink's user avatar
  • 133
1 vote
1 answer
298 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
84 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
42 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
  • 139
0 votes
1 answer
34 views

Error in directional light shadow projection matrix

I have VC++ code for DX9 that draws shadows perfectly. ...
black4's user avatar
  • 215
0 votes
0 answers
254 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
357 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,228
0 votes
1 answer
121 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
  • 45
0 votes
1 answer
150 views

Using cubemap in view space for shadowing in deferred rendering

I want to render shadows for point lights with a cubemap. My shader uses view space for lighting (directional and point). So I convert ligthposW/lightfocusW in world space to ligthposV/lightfocusV in ...
philB's user avatar
  • 139
0 votes
2 answers
198 views

Shadowmapping in view space

UV coordinates for shadow mapping are usually calculated from world position. I want to make it compliant with my screen space reflection (SSR) pipeline which works in view space. Is it possible to ...
philB's user avatar
  • 139
0 votes
1 answer
1k views

Simulating sprite shadows for a 2D top-down game

I have read some other posts with almost identical titles on here, but they are not exactly what I am looking for. (What I have seen come up a lot in 2D shadows is some sort of "ray-cast effect&...
Dahl's user avatar
  • 21
0 votes
0 answers
147 views

What's the solution to this kind of shadow acne?

I'm working with a OpenGL ES/GLSL homebrew engine my company developed, in C++. Below is a screenshot of it rendering shadow acne. The light's direction is too perpendicular to the face of the curve ...
KiraHoneybee's user avatar
0 votes
1 answer
45 views

ZBias trouble with alternative cubemap shadow method

I find two methods to produce cubemap for shadow both using the same geometry shader to draw each of the 6 faces. The first one writes in the depth buffer only and is used like this (really I thanks ...
philB's user avatar
  • 139

15 30 50 per page
1
2 3 4 5
12