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.
217
questions
0
votes
0answers
64 views
How to implement PCSS properly?
I'm trying to implement PCSS in OpenGL/GLSL, but I have problems understanding the details especially the conversions between the coordinate spaces. The existing implementations are so different from ...
2
votes
1answer
46 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 ...
0
votes
0answers
18 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 ...
0
votes
0answers
27 views
Is it appropriate approach to simulate shadowing via occlusion culling of lights?
I have own deferred renderer and a scene with both closed and open spaces. I want to prevent light passing though solid objects. For example, there can be a house with a lot of point lights inside. I ...
0
votes
1answer
55 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 ...
0
votes
0answers
12 views
Unity : I can't turn on my realtime shadow
I just add new project using 2019.4.4f1 and setup for Android build. Nothing fancy, i add a plane and sphere. Put sphere on top of plane. There's only 1 light (directional light with default setting). ...
0
votes
1answer
79 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 ...
0
votes
0answers
467 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 ...
0
votes
0answers
20 views
How variance shadow maps moments fall into Chebyshev's inequality
I'm having hard time understanding how the moments fall into place into Chebyshev's inequality.
I'm reading about the technique in the following article.
In the article the following is written:
...
0
votes
1answer
62 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 ...
0
votes
1answer
166 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 ...
0
votes
0answers
38 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 ...
2
votes
1answer
71 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?
0
votes
0answers
16 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 ...
0
votes
0answers
485 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 ...
28
votes
2answers
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 ...
0
votes
0answers
44 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 ...
1
vote
1answer
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 ...
0
votes
0answers
58 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 ...
1
vote
0answers
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 ...
0
votes
1answer
26 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. ...
0
votes
0answers
743 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 ...
1
vote
1answer
171 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:
...
0
votes
1answer
323 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 ...
0
votes
1answer
229 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 ...
1
vote
1answer
302 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 ...
2
votes
0answers
23 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 ...
0
votes
0answers
93 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 ...
0
votes
1answer
236 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?
2
votes
1answer
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 ...
1
vote
1answer
262 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 ...
1
vote
0answers
770 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 ...
0
votes
1answer
65 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,...
0
votes
0answers
52 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 :
...
0
votes
1answer
119 views
Omnidirectional Faded Soft Shadows
I'm doing research to implement a shadow algorithm for omnidirectional soft shadows in a real-time 3D renderer. I've read about PCF but to me it doesn't look very realistic since it doesn't "fade" ...
0
votes
1answer
191 views
How can you pass a large amount of textures or equivalent to the fragment shader in OpenGL?
I am adding shadow mapping to a game engine I am working on.
For this effect, each light source needs it's own associated shadow map cube texture.
I am going to be exaggerated and say there can be ...
0
votes
1answer
160 views
How to create a depth-recording shader for shadow mapping?
I am attempting to implement shadow maps.
I am first going to implement spotlights over directional lights (I am aware this is harder).
Since I was already rendering the geometry, my attempt was to ...
4
votes
1answer
124 views
Phantom objects in ray tracing
I am attempting to add volumetric shadowing to an application I am working on to test some things. For this effect I wrote the following fragment
...
1
vote
2answers
942 views
Proper indoor lighting without directional light
I would like to know how to properly handle indoor lighting without a directional light. My scene has a room( its some kind of shop), in which the player and ai-agents can move around. I can get good ...
1
vote
1answer
658 views
How can I animate shadow in surface shader?
I wrote wind shader that works but as you can see it have shadow problem!
when I animating vertices shadow is fixed!
...
0
votes
1answer
2k views
How can I fix my shadow caster problem?
I'm trying to make invisible object with shadow by using it's shadow castting pass it additionaly shades back side of object itself. I mean object shades his back side and draws shadow on the ...
0
votes
1answer
261 views
Can you access the vertices passed into GLSL as an array?
So in the vertex shader I receive my vertex data as:
...
0
votes
0answers
76 views
How to put triangle information into a glsl shader for dynamic shadows?
I am experimenting with how much I can push the GPU with clever optimizations and correct use of hardware, so I know this may lag my computer a lot, that's not the issue.
Currently my goal is as ...
2
votes
1answer
179 views
Unity Shadow shows on my Android device but NOT my Windows Mobile device
Unity version: 2017.1.1f1
Problem:
I'm using Directional Light. Shadow is not showing in my Windows Mobile device (Lumia 640 XL), but works fine when I run the exact same UWP project as PC (Local ...
1
vote
0answers
243 views
Improving Shadow
I need to improve the shadows in my scene. At a first look they don't look too bad:
They look awful when the camera gets closer to them, showing weird artifacts.
I would like to know what are the ...
0
votes
1answer
401 views
How do I write to a 16-bit depth buffer using Monogame and HLSL?
I'm working on shadow mapping. Part of the implementation involves drawing 3D models to a depth buffer with recommended 16-bit depth. To that end, I'm first creating a render target as follows:
...
0
votes
1answer
462 views
A shader that casts shadows, doesn't receive shadows and doesn't render any textures/models at all?
Bit of a strange one but I'm in the situation where i need a shader to essentially render nothing and cast a shadow!
I found this though some googling but sadly that casts shadows onto itself which ...
0
votes
1answer
355 views
Shadow Shimmering When Moving Objects
I am having a shadow shimmering in my scene when using a shadow mapping technique. I know that there is a lot of posts over the internet dealing with this subject but my issue is slightly different.
...
0
votes
0answers
652 views
Unity : orthographic camera and shadow
When using an Orthographic Camera, the shadows appear to be of poor quality.
How can I display smooth shadows?
3
votes
0answers
129 views
How can I fix this shadow slicing the mesh on Android?
I have a golf ball in my Unity game for Android, which is an icosphere (imported from blender) with a baked normal map. There are 18 tracks located in one level around the (0, 0) coordinate, rotated ...