Questions tagged [shadows]

Dark spaces cast by the presence of a solid object blocking the flow of light. Often helpful for telling where your character is going to land.

Filter by
Sorted by
Tagged with
0 votes
1 answer
133 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 Nitzan's user avatar
0 votes
0 answers
76 views

Ursina not applying shader and light to entity

I'm making a terrain-based game in Ursina. I finished making the terrain and the texture, and all of them run well, but Ursina is having problems with the lights and the shaders. ...
EarthAndMoon's user avatar
0 votes
0 answers
27 views

Shadow squares on meshes

I had created project on r3f (React THREE Fiber), and after "blocking" when I decided to add high resolution models, I noticed this shadow issue. Help me to understand, how can I fix the ...
Эльвин Агарагимов's user avatar
1 vote
0 answers
48 views

How to transform correctly shadow cascades?

I think I got the main idea of shadow cascades but I have misunderstanding of transforming shadow cascades using matrices for getting correct a result. I understand it this so Define shadow cascade ...
Andrey Klimenko's user avatar
0 votes
1 answer
66 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
3 votes
0 answers
73 views

Smooth self shadow on dense foliage

I don't know how to achieve or research smooth lighting on foliage, like in this screenshot of theHunter: Call of the Wild. The grass is translucent, but blocks light smoothly when it's tall and ...
Cebbi's user avatar
  • 171
2 votes
1 answer
241 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,141
0 votes
1 answer
275 views

How can I remove dither effect on player's shadow?

I am trying to make a dithering effect on the player so that when the camera comes below or very close to the player he will be dotted or transparent like in Genshin Impact. So, I followed a tutorial ...
Dev 's user avatar
  • 1
0 votes
0 answers
97 views

How to stop light from seeping through meshes?

I'm trying to make a giant minecraft world but light keeps seeping through everything, as every block is paper-thin. Is there a way to increase its thickness? Notice the edges of the meshes. Light is ...
BlenderMaster15's user avatar
0 votes
0 answers
168 views

Gaps in shadows even with zero bias set Unity

I have a problem with gaps in shadows in Unity. I know that there are many questions about that, but all of the answers are usually about setting bias property to 0. But this didn't help me. I use ...
crackanddie's user avatar
0 votes
0 answers
161 views

Per pixel shadows with depth / displacement map

I am looking to draw 2D sprites that cast artificial 3D shadows onto a flat terrain using an additional depth-texture when rendering the sprites. A black/white depth texture is used to add a height-...
Dahl's user avatar
  • 21
0 votes
0 answers
126 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
0 answers
34 views

How to calculate if a complex shadow matches a Texture?

Unreal 4.27, newbie and experimenting, will switch to 5 if supporting features are not available in 4. I have a light on the left side of the room pointed toward the right side. In the middle of the ...
JD.'s user avatar
  • 101
0 votes
0 answers
122 views

Thin gaps in shadows of FBX models imported into Unity

I recently have started making my game in Unity and making models to go alongside it. However, I export my models as an FBX and am able to successfully get them into the game, but unfortunately it ...
Spooked-Hyena's user avatar
0 votes
1 answer
545 views

Changing Ambient Light settings in Environment window does not affect scene after baking LightMap

My settings: Unity version - Unity 2021.1.12f1 Lightmap Lighting Mode - Bake indirect Render Path - URP I want to change Ambient Light in Environment window while I have baked LightMap. Is it possible?...
White Raven's user avatar
0 votes
1 answer
165 views

How not to multiply real time and bake shadows? (Unity)

I have one Light Source ( Directional Light ) with Mixed Mode. Lighting Mode in Lighting Window I seted to Subtractive. What the problem looks like How I would like the shadows to blend. How to ...
White Raven's user avatar
1 vote
1 answer
546 views

Deriving shadow position from a 2D heightmap

I have a 2D heightmap with discrete values. Based on these values they should cast a fixed position shadow (constant angle respective to the "sun"). I can figure out how to cast it on a flat ...
KayleMaster's user avatar
0 votes
1 answer
228 views

Cascaded Shadow Maps - Handling shadows that cast into different cascades

For example I have 3 shadow cascades. A shadow is cast by a hill in my 2nd cascade, but the shadow itself is cast into not only the 2nd cascade but also the 1st. In the shader program, in order to ...
T. Elliott's user avatar
0 votes
1 answer
695 views

Unity 3d when camera is closer the shadows getting clipped weirdly

When in distance the shadows are appearing correctly but when getting near to the shadows it is getting clipped in a weird way. I was not able to fix it. Any help would be appreciated.
Krishnan's user avatar
0 votes
1 answer
604 views

How to calculate the shadow bounding box with a directional light

I'm trying to implement a directional light in my C++ / OpenGL engine, but I struggle to calculate the shadow bounding box (i.e the shadow frustum). The bounding box has to encompass the main frustum ...
user avatar
0 votes
0 answers
127 views

Shadows issue in Unity

I am using Unity Built-in render pipeline 2020.3.5 I have a weird shadow projection when pointing at game objects with my flashlight (spotlight). It looks like the shadow is floating or is another ...
matmalm's user avatar
0 votes
1 answer
1k views

How to make a shadow-casting day/night system in 2D URP?

I am trying to achieve a day/night lighting system similar to the game RimWorld. Short preview of what I want can be seen here: https://giphy.com/gifs/VgzcwtjueP7BrYSrXe Instead of using Global Light ...
caleidon's user avatar
  • 561
1 vote
0 answers
30 views

Perspective of a Point Light

I'm trying to calculate shadows by projecting the silhouette of each object seen by the light source. (The shadows are just going to go on planes.) To get each silhouette I take a snapshot from the ...
pointlightperspective's user avatar
0 votes
0 answers
97 views

Unity Light Bug

I saw this while testing my game. I have a light situated behind the Main Camera. All is working perfect, until I get a Game Over, and changes to the Game Over scene. From then, all lights have no ...
GospelBG's user avatar
2 votes
1 answer
362 views

Matrix math in cascade shadow mapping

I am implementing cascade shadow mapping algorithm and currently stuck with matrix transformations - my AABBs, when projected in light space are pointing in the direction opposite to the light: I was ...
shybovycha's user avatar
0 votes
1 answer
445 views

Unity - jagged shadows when export as apk?

Alright, I found this question with the same problem but it's out of date Jagged shadows with default settings My problem is a discrepancy between shadow quality settings in editor vs apk built to ...
blue's user avatar
  • 131
0 votes
0 answers
63 views

Issues with percentage closer filtering

I'm trying to code a simple game via OpenGL C++. I've implemented a point light, parallax effect with textures, objects from blender etc. but I seem to have an issue with my percentage closer ...
Restlessman77's user avatar
0 votes
1 answer
958 views

How to get light level (brightness) of a particular location?

I'm making a 2D top-down survival game similar to Rimworld, I'm trying to emulate a day-night system. Many features depend on whether any tile is light (or dark) ...
caleidon's user avatar
  • 561
1 vote
1 answer
165 views

2D shadow from polar coordinates has hard cut-off at a certain radius

I'm trying to cast shadows from a 1D texture that goes from white to back according to the distance given by an occlusion map. That part I think I got it right. The problem lies on the algorithm to ...
Slat Slatius's user avatar
0 votes
0 answers
1k views

How to make a point light cast shadows in realtime?

I have a solar system... The central star has a point light attached to it. However, objects don't cast shadows on each other... Planets are < 20 units from the star, so it's not a light falloff ...
Basic's user avatar
  • 1,141
0 votes
1 answer
140 views

Stride: Can't see shadows in programmatically created scene

As a learning exercise I'm trying to recreate the 'new game' scene with the sphere on a plane. Mostly working but two issues: Shadows are not working. Skybox light (reflected on the sphere) is not ...
Paul Whiting's user avatar
0 votes
1 answer
604 views

Generated Mesh Does Not Have Shadows/Shading

Description I'm trying to create a water shader, and at this point in development I'm using a Photoshop-generated cloud texture as a map for vertex displacement. The displacement itself works just ...
verified_tinker's user avatar
0 votes
0 answers
959 views

How do you make lights affect 2D sprites in a 3D environment using Unity's URP render pipeline?

I'm using Unity, URP and have 2d sprites characters in a 3D environment. I want 2D sprites to be affected by lights/shadows like the rest of the environment. -I know if I use a 2D renderer I can use ...
Alex Vemon's user avatar
0 votes
2 answers
196 views

The colors of Unity 2019 are different

I currently use Unity 2018 LTS, because of my 2019 Unity colours are not really good. For example, the white is not really white but more like grey and the Shadows are really strong too even if I ...
Anon's user avatar
  • 103
0 votes
1 answer
570 views

How can I fix the artifacts near the shadow edges in my variance shadow map?

I'm trying to implement variance shadow mapping in my engine. I'm using WebGL 2 and now I have only one directional light source. It's working, but it has a serious issue near the shadow edges and I ...
racz16's user avatar
  • 151
0 votes
0 answers
49 views

Strange lighting bug in my game

I've been experiencing this lighting bug in my game. As you can see there is a box around the player on the back wall and underneath it. the platform and back wall are 3D objects and the player is a ...
Adsnipers's user avatar
2 votes
1 answer
129 views

How to make shadows softer as distance increases?

I'm trying to make shadows become more blurry as the distance between the caster and receiver, so they look a little more realistic. What method can I use to achieve this?
zin's user avatar
  • 133
0 votes
0 answers
40 views

SMR shadow fade by script?

I want to make fade for my player shadow. I don't know if it's possible or not. In my skinned mesh render there is "Cast shadows" with four options "Off, On, Two sides, and Shadows Only". How to do it ...
user43474's user avatar
  • 537
0 votes
0 answers
1k views

Unity Light Baking for Best Balance between Performance and Visuals

I'm trying to optimize my Unity game. I have static objects, dynamic objects and (only) static lights. I wish to fully pre-compute lighting and shadows for the static objects while still ...
Daniel Marques's user avatar
28 votes
2 answers
8k views

Why do some games show lights shine through walls?

In some games, I see lights shining through walls, even if I set video quality on high levels. A couple of examples of games I recently played are Borderlands 2 (missile explosions) and Call of ...
Marcus's user avatar
  • 383
0 votes
0 answers
76 views

Unity: How to fix shadows with several meshes in different objects?

I'm creating many GameObjects and each one has a single mesh, created in a script. The problem is that I would like to draw them so that they behave like a single mesh. Is it possible? Or I must ...
pava's user avatar
  • 21
1 vote
1 answer
3k views

LWRP Custom Shader Graph material casts no shadow

I created an empty Shader Graph by clicking Create -> Shaders -> PBR Graph. I created the material for this shader and assigned it to my game object, but the object does not cast a shadow. If I ...
Nikita Goncharuk's user avatar
0 votes
0 answers
80 views

Unity : Casting shadows of anima2d characters

I want to cast shadows of animated 2d character on a level like this : The only thing here I want is dynamic shadows for anima2d character as animation progresses.Is there a way of achieving shadows ...
Ankit singh kushwah's user avatar
1 vote
0 answers
71 views

Shadows are not showing up

I am fairly new to graphics programming, and I am working on a rudimentary game engine in C++. I had some old graphics code written in Java that I translated, but for some reason the shadows are not ...
Kamakwazee's user avatar
0 votes
1 answer
76 views

How can spotlights be implemented with a perspective projection?

I was reading Shadow Mapping with Directional Lights and noted that spotlights are implemented by rendering with the perspective projection, stating that the spotlight worked just like the camera. ...
user avatar
0 votes
0 answers
1k views

Unity Soft Shadows

I'm building a puzzle level in Unity. I have a ball with cracks on it and a point light inside it. The goal is to project the light coming through the cracks into the walls. I've managed to do that ...
Daniel Marques's user avatar
1 vote
1 answer
320 views

Shadow artifacts/acne on block intersections

This is using the default shader and depth shader from LibGdx. It creates lines at the blocks intersections. This is what I use to create the blocks models for now: ...
Souchy's user avatar
  • 21
0 votes
1 answer
531 views

LibGDX Box2dlights - Body Shadow Problem

While playing around with the box2dlights with libGDX, I have managed to get it all up and running, but have a problem with the shadow rendering. This is what I currently have atm: With the lighting ...
PlatyPi's user avatar
  • 102
0 votes
1 answer
424 views

Why do I get this weird shadow render error?

Using Unity 2018.2.14/15 I've recently been working on a small project and I encountered a very weird problem. It's hard to describe so here is a picture: Originally I assumed it may be an issue with ...
BloodEchelon's user avatar
1 vote
1 answer
430 views

How can I create a 2D sprite shadow like in "Alto's Odyssey"?

I've seen that the game "Alto's Odyssey" has a very nice way of projecting shadows on the ground the player is sliding on: How could i replicate that? Would I use some shader magic, or by projecting ...
user avatar

1
2 3 4 5