Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
17 views

Shadow problems with Unity's Lightweight Render Pipeline

So I installed the Lightweight Render Pipeline onto an existing project of mine and the placeholder model I've been using for the player (the broom) started showing a hole in its shadow. I don't ...
0
votes
1answer
202 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. ...
1
vote
1answer
304 views

Particles not rendering over projectors

I am using projectors for shadows...When I use particles for bike speed up i.e., nitro speed the particles get cutout by those shadows.... Here is screenshot of it, Here is my shader code of ...
1
vote
0answers
41 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 ...
4
votes
1answer
357 views

LibBDX create a tail when the object is moved

I am looking for a way to implement in my game a kind of shadow/tail which will be displayed after the object is moved. Should I use animation? If yes how? Here an example:
0
votes
1answer
22 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. ...
1
vote
1answer
709 views

Depth texture white in shader

I am trying to implement shadow mapping into my project and am stuck at this problem: If I'm reading the shadow map values with glReadPixels and linearize those ...
0
votes
0answers
43 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 ...
0
votes
2answers
1k views

Unity - How to get nicer shadows from distant point lights?

I get too unsatisfying results for shadows when using a point light that is far away. (The quality settings are maxed.) The scene: The result: The light: What can I do to get better shadows?
3
votes
1answer
298 views

front and back face detection

I am trying to implement a dynamic shadow system for a 2d game using this tutorial : http://www.gamedev.net/page/reference/index.html/_/technical/graphics-programming-and-theory/dynamic-2d-soft-...
1
vote
1answer
80 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
83 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
63 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
150 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
20 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
39 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
110 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
543 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 ...
0
votes
0answers
29 views

weird shadows in unity 3d

I've got some weird changes to the shadow surrounding a moving sphere. I tried changing different settings in the lighting options and on the renderer, but I wasnt really knowing what I was doing and ...
1
vote
1answer
135 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 ...
0
votes
1answer
47 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,...
1
vote
0answers
295 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
220 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
0answers
39 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 : ...
3
votes
1answer
964 views

Rendering 2D shadows in shader

Update: I am getting slightly better results by modifying the shader so that it sets a flag on entering a obscured region, and then only sets the fragment to black if the ray casting exits the ...
23
votes
1answer
978 views

How can I get PagedGeometry grass to receive shadows?

I made the switch to Ogre3D (v1.7) and to using PagedGeometry. What I'm trying to do is make a simple scene with a terrain, some trees and grass. In a nutshell, I would like to achieve this kind of ...
0
votes
1answer
105 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
102 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
130 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 ...
0
votes
1answer
305 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 ...
4
votes
0answers
93 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
358 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
393 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
1k 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
152 views
0
votes
0answers
63 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 ...
1
vote
1answer
278 views

Shadows are choppy on Android, but look fine in Unity Editor on my PC

Here is a gif of what I'm seeing with my shadows on my Android device: https://gfycat.com/VapidTestyFrigatebird That shadow looks perfectly fine from any angle / distance in my Unity editor, however....
2
votes
1answer
113 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
190 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 ...
7
votes
2answers
1k views

Shadows in html5 canvas game

I'd like to ask for reference. I met an article about how to cast shadows in games. I'm using html5 canvas (currently without webgl) with javascript for my projects. The article mentioned above is ...
2
votes
1answer
2k views

Reflection and shadows in OpenGL

I'd like to implement shadows and reflective surfaces in my OpenGL app. I already have ideas which I will provide below. But I would like to ask someone more experienced than me before I put too much ...
2
votes
1answer
2k views

Cave lighting in Unity

I have a cave that is inside a mountain (one mesh) that I created in Blender. I would like to make the cave quite dark inside so that either the player can light it up, or it is lit up with things ...
0
votes
0answers
433 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?
2
votes
0answers
91 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 ...
2
votes
1answer
329 views

Omnidirectional light (point) shadow mapping bug: everything's lit up white

I am facing a really frustrating problem. After looking at a lot of tutorials (probably all existing on net, not kidding), i tried to do the point light shadow mapping using a cube texture. The ...
0
votes
1answer
932 views

Shadow casting in 2D OpenGL

I´ve read several articles, tutorials about shadow casting and I think that I understand the way how it works. However I miss some of the steps. Here is included my order list: Fill framebuffer with ...
3
votes
1answer
2k views

Pixelated shadows in Unity

I have tried everything I can think of and all the solutions I could find on forums, but I haven't been able to fix this problem. I have a point light that is shining on several spheres which are ...
2
votes
2answers
4k views

How can I make shadows darker in unity5 without changing light intensity?

I have a problem where I want the shadow cast by an object to be a well defined and dark one. However I have to do it without changing how illuminated the object looks so only increasing the intensity ...
5
votes
1answer
291 views

How to receive shadows on animated object In optimize way?

I've been trying to add shadow to my flag that animated In my vertex shader but after adding shadow , my shadow is fixed and does not follow the animation of the flag. for adding shadow I use below ...
2
votes
1answer
294 views

Isn't it redundant to implement both lights and shadows?

Most games come up with their lighting implementation and their shadow implementation. Due to deferred shading, we are able to simulate lights independent from the scene geometry. But realistic ...