Skip to main content

Questions tagged [lighting]

The simulation of light and illumination in games, including its interaction with the environment. A core element of games that can bring out vivacity into otherwise static worlds.

Filter by
Sorted by
Tagged with
0 votes
0 answers
27 views

Unity Grayscale camera but mask colors

I'm trying to replicate the example given in this thread: https://gamedev.stackexchange.com/a/185593/179264, and I was able to, but for now I want to implement the "mask" thing to 2d lights ...
crgd 23WD's user avatar
0 votes
0 answers
34 views

What is the best lighting & shadow setup for mininal draw calls and triangles?

I have been testing out various lighting and shadow settings in Unity since during play mode the stats are showing a much higher set pass call and triangle count to what I know my model has. I have ...
FrontEnd's user avatar
  • 1,707
0 votes
0 answers
57 views

Lighting of clouds billboards

I created billboards of clouds that always face the camera in OpenGL. Now I want to add some lighting effects and maybe simulate a scattering light effect. I experimented with phong shading but my ...
JadGL's user avatar
  • 1
0 votes
1 answer
19 views

light difference between scenes on player model

Here is a screenshot of same model on different scenes. I'm trying to understand why the second one has that bright/light and remove it. I want the model appear like the first picture. Is this a ...
anderlaini's user avatar
0 votes
0 answers
46 views

BRDF and Point Light - Abrupt Shadows

I'm following this BRDF implementation which returns 0 when (NdotL < 0 || NdotV < 0), i.e., when the normal is pointing away from the light source. This ...
wongler's user avatar
0 votes
0 answers
41 views

The lighting result is wrong when switching scene in Unity

When I use SceneManager.LoadScene() to switch between scenes the result of lighting in loaded scene is wrong. However if I open the scene solely the lighting ...
Simp Guy's user avatar
0 votes
1 answer
87 views

How to setup gradient lighting in OpenGL shader?

I setup simple single light source lighting around campfire object. However, as can be seen, the transition between lightened area and unlighted one is sharp. The GLSL fragment shader code: ...
Steyrix's user avatar
  • 225
0 votes
0 answers
35 views

Surface Lit on Wrong Side (UE 5.3)

I have a triangular mesh and a directional light in UE 5.3.2. The directional light is facing in +Z direction (up). Can anyone explain to me why the top surface is lit instead of being in a shadow (i....
eball's user avatar
  • 101
0 votes
1 answer
65 views

How to prevent sun light from passing through the walls and flickering when navigating in viewport?

I am new to UE5. I am using a geometry brush to create an inner box and an outer box. The inner is set to brush type ‘subtractive’, resulting in a simple room like this: Then I create several windows ...
storycg's user avatar
0 votes
0 answers
34 views

How can I create a Spotlight in a Vertex Shader?

...
mueoc mueoc's user avatar
0 votes
0 answers
26 views

Materials on 2D Objects Has Bad Lighting and Changes Shape

Whenever I assign a material on an object in 2D unity, it becomes much darker and if the material is assigned to a circle, the circle becomes a dodecagon. The material is completely white. I can fix ...
sammyiscuul's user avatar
2 votes
1 answer
49 views

I can't find what I'm doing wrong when rendering a point light that is clipped by the floor

I have a top down camera on my game, and I'm rendering a point light on my opengl fragment shader. When the point light is far away from the floor it looks like I would expect it should look, like a ...
ellipticaldoor's user avatar
0 votes
0 answers
60 views

Need advice on how to implement grass shader similar to Breath of the wild

What I am trying to achieve : I’m trying to recreate the grass shader of Breath of the wild & Tears of the Kingdom. There is a glow on the edge of the individual grass blades present when the sun/...
Abhishek Jathan's user avatar
0 votes
1 answer
69 views

Normal map lighting is just slightly off

I've been trying to implement normal mapping into my custom OpenGL shader. The result I'm getting is almost there, but it looks like the Point Light is not ...
Tom Tsagkatos's user avatar
0 votes
0 answers
38 views

Baked lightmaps in SceneA, at runtime loaded SceneB from SceneA: lighting is now messed up in untouched SceneB. Only in Editor!

I'm using Unity, and in my MainMenu scene I made most objects static and baked some lightmaps. I built the game, clicked on a button in MainMenu which ...
Tudvari's user avatar
  • 761
0 votes
0 answers
29 views

Unreal 5 Strange Global Illumination Effects

As stated in the title, I am having some strange effects with global illumination. I am using Lumen, and I have no active post process volumes (I have one which is set to "editor only") I ...
OGorbitz's user avatar
0 votes
0 answers
37 views

How can I reduce beam intensity without significantly reducing light brightness?

I picked up Unreal 5.0 last week and don't what question to ask the oracle Google to help me fix the problem. This is what I have. (ImgA) This is the look I am trying to get. (ImgB) I started with ...
Jakob Hinman's user avatar
1 vote
1 answer
122 views

Can somebody please explain why my illumination is inconsistent?

100% not a graphics guy here. Problem Demonstration. Randomly discovered this when showing the project to a friend after not touching it for over a month (been working on other stuffs). First I ...
memorylick's user avatar
0 votes
0 answers
41 views

Is there a way to make area affected by light completely white despite object color in Unity?

I have a 3D object that is affected with a directional light with a cookie texture (might be irrelevant). This object has a specific color lets say blue for the example. I would like the area affected ...
Ivan's user avatar
  • 339
1 vote
2 answers
533 views

Recreating The Lighting In Paper Mario: TTYD In Unity

Goal: I would like to recreate the lighting in Paper Mario: The Thousand Year Door. Currently, I am only using a directional light. I am also using URP. Comparison: Here is an example of how it ...
PayasoPrince's user avatar
0 votes
0 answers
236 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
36 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
0 votes
0 answers
79 views

Black space and incorrect lighting when capturing to Composure

I'm setting up a Virtual Production project and capturing from a camera to a Composure CG_layer. I then output this CG layer to a Render Target that I have assigned to a material on a virtual LED ...
starphan's user avatar
1 vote
0 answers
41 views

Terrain Trees weird behaviour after lightmapping

I've been working on this game for quite awhile now and have had this problem ever since I switched from real-time lighting to lightmaps. For some reason the trees that are at X distance from me ...
Bas de Baare's user avatar
0 votes
1 answer
1k views

In Unity, how can I make sprites be affected by lights in the scene? The Sprite-Lit-Default Material doesn't seem to be working

I am trying to make it so the sprites in my scene are affected by lighting, but I cannot figure out how. I looked it up, and everywhere I looked, I was told to switch the sprite's material from "...
NateBob's user avatar
0 votes
0 answers
41 views

speeding up image manipulation for shadows- engineless

so my project is a ray-casted lighting system thats trying to implement soft shadows. the ray casting is working currently, so right now my focus is on performance of the soft shadows portion. i use ...
Potat.OS1's user avatar
3 votes
0 answers
87 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
  • 201
1 vote
0 answers
527 views

More performant 2D raytracing than Radiosity?

Currently if you want real-time 2D ray-traced scene lighting, you're limited to a few options: geometry based SDFs or Scene Based Radiosity. However 2D Radiosity is really the only choice if your game ...
FatalSleep's user avatar
1 vote
1 answer
84 views

Is it better to cut floor polygons where they're hidden under objects?

I have a floor that's interrupted by several objects sitting on top: Would it be better for performance to let the floor polygons extend straight through the footprints of these objects? Or should I ...
wuqs's user avatar
  • 13
0 votes
1 answer
1k views

How can I create a mask for 2d lights in Unity?

I'm working on a top-down 2d game in Unity. assume my world/map looks like this through the player's eyes: (The art isn't mine, this is just an example) Now by making art directly like this, I can ...
python newbie's user avatar
2 votes
0 answers
393 views

How to bake ambient light?

I'm working on an indoor maze-like scene, with the only illumination coming from a few static point lights set to either Baked or Mixed mode. Since there are no windows, I'm facing the problem that ...
Zippy1970's user avatar
  • 121
0 votes
1 answer
347 views

How to turn off shaders?

Whenever I import something in Godot it looks like it's covered in some mushy slimy glittery stuff, I don't like it.... Garbaj on youtube showed that it's possible to turn shaders off and just render ...
Lost's user avatar
  • 1
1 vote
0 answers
221 views

Is there an alternative method do do per-texel lighting in 3D without stream compaction?

Note: I'm not asking for an x% faster method. Work efficiency is an objective measure, it doesn't change because of hardware. I've got a voxel world I'm trying to render, think Minecraft, same texture ...
Krupip's user avatar
  • 1,763
0 votes
1 answer
73 views

How to Start with a Flashlight in the Off Position on Start

I'm fairly new to Unity, and I have a script I'm working with that plays two different flashlight sounds (one for the off and one for the on position). Here's the script I'm currently working with: <...
Darko's user avatar
  • 3
1 vote
1 answer
186 views

How to keep the sunlight out of the interior even with a transparent roof?

In my Unity project, the player sees the action from a bird's eye view. If he walks into a building, the roof should become invisible. The problem now is that the lighting shouldn't change, which ...
EchtFettigerKeks's user avatar
0 votes
1 answer
93 views

How can I change the default dawn and dusk times in Unity?

I'm working on a game in which the season is particularly important to the player, along with sunlight. It progresses from early spring to late fall. I have a very basic day/night cycle system working,...
Michael Macha's user avatar
0 votes
0 answers
150 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
1 answer
48 views

Character Controller shows in scene but not in game

When I press play my character controller turns black, the scale on the z axis is 0 and all the children are not visible. Now the thing this only happens when I press play — if I don't, everything is ...
Sajawal Hassan's user avatar
1 vote
2 answers
2k views

Sprite Shape & URP Custom 2D Lighting Shader

I've been losing my mind over this for a couple of days now, and can't find any concrete information about it. I am trying to write a custom shader (shader graph to be specific) to light sprite shape ...
Cristian C.'s user avatar
1 vote
1 answer
169 views

Surface normal vs tangent space

I am having a hard time being convinced why calculating the tangent space the way most textbooks do is the best thing to do? Why shouldn't we just simply use the edges of our triangle as Tangent and ...
Sina Dasht's user avatar
0 votes
1 answer
355 views

Change environment saturation based on exposure to "light source" - Unity

I am trying to make a game where particular "light sources" bring color to an otherwise grey world. I am extremely new to the world of custom graphics processing. I assume it will require a ...
Angus's user avatar
  • 3
0 votes
1 answer
105 views

Adding second light hides the first on iOS unless quality is set to high

When I add a light in the scene then the light will show on the ground, but when I add a second light, neither of them show on the ground. One light: Add second light: My light is a spot light, and ...
stingalimian galimian's user avatar
0 votes
1 answer
150 views

Why does lighting on the object changes when I import it as Unity Package from my old project to new one?

Here is the original lighting ( Unity 2021.1) And Here is the same setup imported in a new project ( Unity 2021.1): As you can see importing this package in new Unity project makes it a lot lighter ...
Ivan's user avatar
  • 339
0 votes
0 answers
198 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
1 vote
1 answer
337 views

HDRP indoor scene has no diffuse indirect light

The lights in my indoor scene correctly produce direct illumination, but no indirect diffuse illumination. So the areas that aren't directly lit are completely black before exposure/post-processing. ...
Matt Tsōnto's user avatar
1 vote
1 answer
204 views

Inverse Spot light

A central mechanic in my game involves shining a flash light on a glass sphere, which then focuses the light like a magnifying glass in order to burn enemies. The flash light was easy to implement - ...
crass_sandwich's user avatar
1 vote
1 answer
502 views

Strange lighting/shadows in Unreal Engine game (shadow suddenly gets darker or lighter)

As the title suggests. I have made a level for Unreal Engine. It uses RectLights in the ceiling without any directional lighting. There is a Lightmass Importance ...
I_Keep_Trying's user avatar
1 vote
1 answer
102 views

Determine if a static mesh is lit by directional light

I want to determine if a mesh is lit by the directional light on my scene in editor to automatically disable its "dynamic shadow casting" property (let's say I have one light source in my ...
Netherwire's user avatar
0 votes
0 answers
50 views

Procedural Terrain Computing Normal in Shader

I've been pulling my hair out on this. I'm trying to paint a procedural terrain. The white ball in this photo is supposed to be the light source. However, it looks like it is shining black light. The ...
K2xL's user avatar
  • 111
0 votes
0 answers
41 views

Problem with pointlight used as "cubic" light

I'm now applying my recent work to some "real" game level and find an issue with the lighting. In this level I'm using a light source which should be like a "cube" (see picture). I'...
philB's user avatar
  • 139

1
2 3 4 5
15