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
21 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
31 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
107 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
34 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
  • 317
1 vote
1 answer
152 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
82 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
0 votes
0 answers
53 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
30 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
512 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
40 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
75 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
0 votes
0 answers
307 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
77 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
0 answers
170 views

What is the correct way to set up the Unity URP Pipeline to allow for Normal Mapped lighting to work with Isometric Sprite Tilesets?

I'm attempting to build an isometric RPG in Unity. I'm trying to get this to layer correctly, and to work with Unity's 2D normal mapping and lighting system. So far I have: Used the Isometric Z-as-Y ...
ArnhenGames's user avatar
0 votes
1 answer
696 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
1 vote
0 answers
213 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
  • 111
0 votes
0 answers
148 views

Strange Shadows and Textures On Models When Lighting a Scene in Unity ( Models Exported From Blender )

I am importing models into Unity that I have created in Blender. In Blender, the models look great when lit and textured, and have no strange lighting / shadow issues. When in Unity, however, when I ...
AbstrAKTGames's user avatar
0 votes
1 answer
235 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
140 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,713
0 votes
1 answer
58 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
136 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
77 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
100 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
41 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
1k 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
0 votes
1 answer
150 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
277 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
98 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
123 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
  • 317
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
1 vote
1 answer
297 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
144 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
389 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
83 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
39 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
39 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
  • 99
0 votes
0 answers
127 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
1 answer
335 views

How do I fill a scene with light by using real-time lights in Unity?

This is my scene: Components of this scene: Cube Spotlight This project is under URP and I am building it for android. In this scene, I want more indirect lighting so that the objects/materials ...
Naitik's user avatar
  • 1
0 votes
1 answer
273 views

How do I adjust the start diameter of a spotlight in Unity?

To clarify, I'm an experienced 3D modeller, but there are hiccups here and there getting used to Unity's interface. I'm working with an adjustable spotlight for a game; it can be mounted and directed ...
Michael Macha'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
1 answer
22 views

Math function equivalence for deferred transparency blending

if one consider the following blending operation: color1*src_alpha blended with color2*(1-src_alpha) Where ...
philB's user avatar
  • 99
0 votes
0 answers
544 views

What is a good method for 2D isometric lighting in Pygame?

I'm making my first isometric game in Python using Pygame. It's a 2D tile-based dungeon crawler, but I want to create a nice lighting system. I've made a random level generator that creates the rooms ...
Jayce's user avatar
  • 101
0 votes
1 answer
223 views

Storage of surface and vertex normals

I am writing a program that displays a bunch of 3D objects in a room with lighting. I am doing that from scratch, so I have to implement normals calculation myself. Say I have a set of 3D points ...
Andru's user avatar
  • 3
1 vote
0 answers
2k views

Spotlight and Point Light not working in HDRP

I have a Unity project using HDRP, and in my scene only directional lights work. Spot lights and point lights don't work, even if set them to a super high value. How can I correct this?
Kimbo Kembi's user avatar
1 vote
1 answer
1k views

How can I make my Unity 2d scene pitch black, except for manually added lighting?

I have tried modifying all the settings suggested that I can find, but the lighting of objects in my Scene remains unchanged. I've used the "Generate" button, I've set "Intensity ...
Fricative Melon's user avatar
0 votes
1 answer
2k views

Scene lightning is wrong when scene is loaded from a different scene

I have a problem with the light in my scene. If I start the scene directly, it looks like I want it to be. If I load the scene from another, the light is too dim. Lighting is still applied, but ...
Zibelas's user avatar
  • 3,383
-1 votes
1 answer
166 views

Is diffuse reflection definition failed when we see both reflection(diffuse,specular) is happening on one single object?

Let us consider the situation where only we moved the camera. The object and the light source remain in the same place. Thus the angle of the incident light is the same for every point.I have captured ...
S. M.'s user avatar
  • 117
0 votes
1 answer
549 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
1 vote
1 answer
584 views

Why specular reflection portion changes when we move in different direction?

We know that in Specular reflection rays reflected off surface at inverse angle;so camera position matters;creates bright highlights. I have taken one image where specular reflection is seen(Here ...
S. M.'s user avatar
  • 117

1
2 3 4 5
15