Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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
0 answers
25 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-...
user avatar
  • 21
0 votes
0 answers
82 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 ...
user avatar
0 votes
0 answers
28 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 ...
user avatar
  • 101
0 votes
0 answers
19 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 ...
user avatar
0 votes
0 answers
49 views

Unity, Universal Rendering Pipeline - Shadows are very pixelated even though shadow resolution is 4096. How to make shadows look better?

I'm using URP and I set shadow resolution to 4096, which is the max: But shadows still look very pixelated: How do I make the shadows look better?
user avatar
0 votes
1 answer
56 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?...
user avatar
0 votes
1 answer
19 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 ...
user avatar
0 votes
1 answer
141 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 ...
user avatar
0 votes
1 answer
45 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 ...
user avatar
0 votes
0 answers
72 views

Have object accept shadows cast from other objects without receiving lighting (Unity)

I have a map object with textures (including lighting) baked in. I want to have a realtime directional light shining on my character walking on the terrain such that the character shadow is cast on ...
user avatar
0 votes
1 answer
85 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.
user avatar
0 votes
1 answer
212 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
20 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 ...
user avatar
0 votes
1 answer
253 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 ...
user avatar
1 vote
0 answers
27 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 ...
user avatar
0 votes
0 answers
28 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 ...
user avatar
2 votes
1 answer
119 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 ...
user avatar
0 votes
1 answer
181 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 ...
user avatar
  • 131
0 votes
0 answers
27 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 ...
user avatar
0 votes
1 answer
180 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) ...
user avatar
1 vote
1 answer
99 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 ...
user avatar
0 votes
0 answers
156 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 ...
user avatar
  • 610
0 votes
1 answer
99 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 ...
user avatar
0 votes
1 answer
306 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 ...
user avatar
0 votes
0 answers
695 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 ...
user avatar
0 votes
2 answers
137 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 ...
user avatar
  • 103
0 votes
1 answer
371 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 ...
user avatar
  • 31
0 votes
0 answers
43 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 ...
user avatar
2 votes
1 answer
81 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?
user avatar
  • 133
0 votes
0 answers
25 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 ...
user avatar
  • 507
0 votes
0 answers
842 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 ...
user avatar
27 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 ...
user avatar
  • 373
0 votes
0 answers
69 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 ...
user avatar
  • 21
1 vote
1 answer
2k 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 ...
user avatar
0 votes
0 answers
67 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 ...
user avatar
1 vote
0 answers
51 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 ...
user avatar
0 votes
1 answer
36 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
954 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 ...
user avatar
1 vote
1 answer
250 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: ...
user avatar
  • 21
0 votes
1 answer
410 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 ...
user avatar
  • 102
0 votes
1 answer
326 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 ...
user avatar
1 vote
1 answer
378 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
2 votes
0 answers
29 views

Unity Lighting Problems [duplicate]

I've got a problem with the settings of lighting in my unity scene. The objects have got "dark sides" and it doesn't look natural. You can see the screenshots and my light settings here: The ...
user avatar
0 votes
0 answers
130 views

Cascading Shadow Maps - Spotlight Projection

In all the cascading shadow map explanations I have read, the final projection into the shadow-map is done using an orthographic projection. This makes sense for a directional light because a ...
user avatar
  • 165
0 votes
1 answer
306 views

Light and shadows like Diablo

I wanted to have shadows in my game and thought the way they were implemented in Diablo was good enough. Any hints on how to produce a similar outcome?
user avatar
2 votes
1 answer
2k views

Strange realtime shadows in Unity3D

I'm trying to do realtime lighting, and my shadows are acting very strange. When I project a spotlight out from the camera (like a flashlight in a first person game) my shadows show up as 3D skews of ...
user avatar
1 vote
1 answer
285 views

Unity3d - Cast dynamic shadows without processing multiple lights

Back Story I've built a game with a friend and all goes well until there are too many spheres under a group of 5 lights, then things start getting choppy. Troubleshooting I've found that by turning ...
user avatar
  • 191
1 vote
0 answers
994 views

Screen-space shadows?

Is there such a thing as screen-space shadows? I know that most shadow projection comes from rendering the world from the viewpoint of the light source, projecting the shadows onto a large square ...
user avatar
  • 762
0 votes
1 answer
102 views

Calculating the shadow cast by triangle onto the YZ plane

So, one of the exercises for my computer graphics class is as follows: Calculate the shadow cast by triangle T onto the YZ plane P. given: Triangle T coordinates: A=(30,10,16) B=(32,11,18) C=(31,...
user avatar
0 votes
0 answers
56 views

Getting proper shadows in my Disolve shader

So I wipped up this shader that disolves an object. The problem is that the shadow of the object is unaffected from the alpha value. How do I fix this. Full code : ...
user avatar
  • 2,965

1
2 3 4 5