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
0answers
5 views

How to add a flash light to a particle explosion

I've an explosion effect using particle system. Explosion occur on air, so I want to add a "flash" light effect when explosion occur (that light sky and terrain ). Can you suggest me best way to ...
0
votes
0answers
26 views

How to do Colored Lights in CIE XYZ/LUV-like Space?

I've a 2d background, some sprites, blitted onto it. And over all that in the final pass I draw colored lights, to make projectiles look cooler. Basically I apply a classic lightmap, which is colored ...
0
votes
1answer
13 views

3D title Rendering in Maya For babylon Js Game Engine

I created a 3D title in Maya and applied color through lambert and rendering with mental ray. Problem is when the coder is rendered in the game engine, it is looking very sad. The colors are faded ...
2
votes
0answers
26 views

Resolution problems with global illumination in Unity

I am pretty new to Unity and after hours of searching I have finally figured out how to set everything up for (baked) global illumination to work for my model. However the model is an export from a ...
1
vote
1answer
30 views

Flat Shading does not work correctly (openGL)

So currently I'm trying to implement flat shading into my engine using glsl's flat qualifier, and I have encounterd a really weird bug. Somehow the lightning on terrain isn't spread correctly, I want ...
-1
votes
1answer
31 views

Material in particle system is not showing in dark area

I am working on a muzzle flash with particle system where when the user fires the gun the material in the particle system will appear. The problem is that is shows really well in light but when the ...
0
votes
0answers
25 views

Lighting closed off map in UE4

How would you tune your lighting setup on a big closed off map without day-night cycle or any changes in lighting scenario during gameplay. Level can have some kind of foliage moving in the wind.
0
votes
0answers
33 views

I need help debugging this Spotlight implementation

I'm hoping someone can help me debug this wacky implementation of a Spotlight done in Java LWJGL that I found online. Basically, I found the bug, but I cannot figure out how to fix it so that the math ...
1
vote
1answer
26 views

Nonsense error when increasing LightSource angle?

My project has a Light Source and a Sky Sphere Blueprint. The rotation on the y axis (Light Source) defines the position of the sun (Sky Sphere Blueprint). Character Blueprint (increases by 10 ...
0
votes
0answers
20 views

Asset with blinking lights/buttons for Unity?

I'm working on a number of assets that will have blinking lights on them. I'm trying to determine how best to set these up for use in Unity. For example, if I have a control panel with light-up ...
1
vote
0answers
83 views

2D Shader for affecting lights based on y-distance

I've been struggling with this problem for a few weeks (mostly because I'm so new to shaders), but I have an angled camera for my 2D game that uses lights. I saw this link about the '3D light ...
0
votes
1answer
30 views

how to make UI material ignore scene lighting, have same brightness as albedo?

I have a material on a quad surface object that is parented to a canvas for a pause menu. The material is animated (materials on UI elements such as canvases cannot be animated because of [reasons], ...
28
votes
2answers
7k 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
1answer
47 views

Why are there weird texture artifacts in baked light which don't appear with realtime light?

This is the comparison of the same scene, realtime light vs baked light. What's am I wrong ? EDIT: In particular, also texture are low quality (see image 2). Why ?
1
vote
1answer
51 views

Are realtime lightning calculated every frame , also the ones not 'visible'?

I've a big scene, with a lot of realtime light. I noticed a big drop in FPS after finished to add lights, so I suppose that too many realtime light are a 'bad practice'. But my question is: are all ...
0
votes
1answer
14 views

Do meshes marked “shadows only” require light maps to block light?

I want to use an .fbx mesh to block light from entering a room (except for holes cut for windows). The mesh itself must stay invisible. I know marking it "shadows only" will hide it from the camera, ...
0
votes
0answers
36 views

Scene dark when perspective camera is far from scenery

I can't find anything about this subject in the docs or forums to know if this is normal behavior: There seems to be a direct correlation between how close to the scenery my camera gets and how ...
1
vote
1answer
30 views

How to use alpha channel with emission?

I am trying to assemble scene assets and one asset needs an emission material where only the white part emits light: I set up a texture with a simple (air-quotes) "mask" for the window... ...and ...
0
votes
0answers
9 views

How to adjust the light level with multiple light emitters

I am using HDR and a bloom effect. In my scene without directional light only points of light and the player has a spot that makes a flashlight. I have already set intensities and colors that I liked,...
0
votes
0answers
54 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
0answers
9 views

Issues with Flashlight Handle position with player rotation

I want the flashlight to look same while looking up and down as when looking straight. Normal Position for Hand and flashlight: Looking up and down, position is completely off: More images for ...
1
vote
0answers
48 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
0answers
15 views

Mesh Rendere and Materia “Sprites/Diffuse”

I'm trying to create a 2d scene with lighting. The system works by applying a material Sprites/Diffuse to the Sprite Renderers ...
0
votes
0answers
5 views

“Sheen” on character model in Play mode [duplicate]

I’ve noticed there’s a ‘sheen’-like look to my character model when viewed in the Game tab, Play mode, and in the final build. In the Scene Editor, it’s fine. I’ve tried playing with the light and ...
0
votes
0answers
50 views

How to do lighting for endless runner game?

I have been working on a endless runner game for a month now and have to do basic lighting. In my game Player moves forward and world is being generated according to player position. So the positions ...
2
votes
2answers
164 views

Minecraft-Style Voxel Sunlight Algorithm

I'm implementing a pure Minecraft clone, and I want to implement sunlight. I have a basic sunlight algorithm working perfectly in 2D, and I understand how to scale it to 3D. But how do I make it so I ...
0
votes
0answers
47 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
0answers
18 views

Precomputed realtime global illumination in unity

I'm trying to learn and understand how to use this option in unity and I'm working off the example given in this tutorial https://unity3d.com/learn/tutorials/topics/graphics/introduction-precomputed-...
0
votes
1answer
41 views

Unity point light baking into lightmap

I'm developing a puzzle with a ball with cracks on it. Inside the ball there's a point light. Its light rays come out of the cracks and hit some platforms (walls/ceiling/floor). To solve the puzzle ...
0
votes
0answers
42 views

Looks like render in Unity ( Light Shaft on Particles etc.)

guys, i hope someone can help me, i want to get a looks like rendering, like a screen, i can buy Aura 2 and use volumetric light to have affect on Fireflies, and make a light shaft / good ray? The ...
0
votes
1answer
61 views

Variable number of light sources

I'm going to be writing a very simple renderer, mainly for learning purposes (using OpengGL). I've been wondering about how to implement support for dynamic number of light sources. Two solutions that ...
0
votes
1answer
51 views

WebGL - two different approaches to Point Light: what is the difference?

So I'm studying Webgl and after directional light I'm approaching point light. So I've seen two different approaches: Take the directional light (diffuse and specular components) and multiply them ...
1
vote
1answer
22 views

Unity is Creating Black Boxes when I look around

Please help me with this issue. I believe it came about after I finished tweaking post processing behavior in a minor way. If anyone has any idea please share it. I tried to rebake lighting on both ...
0
votes
0answers
27 views

Projected Light Cookie Has Its Texture Edges Instead of Spotlight Circular Edges

The projected light of Unity Spotlight on a flat surface is almost a circle: But when I add this light cookie: It renders the following projection: I expect the projected image takes the ...
0
votes
1answer
183 views

UE4 Error lighting needs to be rebuilt

I opened a blank project that came with two types of flooring, a table with two chairs and a statue. The only things I modified was the size of one of the floors and the texture of the two floors. ...
1
vote
0answers
66 views

How to lower the cost of realtime lights?

Besides Deferred rendering, what can I do to make realtime lights cheaper to render? I don't really need them but I could make good use of them in my game. BTW I thought Deferred render would give me ...
0
votes
0answers
23 views

Light is breaks after added light source with bake mode. Why?

I added spotlight to the scene and set mode to 'Bake'. After baking the light objects have incorrect color (only on wall segments). My wall consist of segments (diffrent 3d object). I don't understand ...
0
votes
0answers
18 views

Incorrect shading after building light

Whenever I build light in Unreal, the light doesn't seem to reflect off of objects correctly. This seems to happen with basically anything I import into the engine (I use Blender for all my meshes) [...
0
votes
0answers
54 views

Unity: how to mimic the lighting of a mesh as seen in the editor view

I have a camera which shows a "bird's eye view" of a procedurally generated mesh like so: Currently in the editor view (right), the terrain looks exactly as I would like it to. However, in game (left)...
1
vote
0answers
56 views

Alpha is not working in diffuse light shader

I am following this tutorials series on rastertek.com and I got a bit stuck on the Diffuse Lighting Tutorial. Particulary, the part that does not work for me is alpha channel of the light color. Here ...
0
votes
0answers
39 views

Specular/Diffuse light on an icosahedron opengl

I'm having a problem with my model here. I draw an icosahedron using GLUT, and the edge length is set to 0.8. The info of the coordinates are listed below: (X and Z are calculated since our edge ...
0
votes
0answers
79 views

Prefabs imported from asset bundle are not lighting properly

It only happens in my main game project. I've tested it in 2 other empty projects, both in multiple versions of unity (2018.3.0f2 and 2018.3.2f1). The strange thing is that if I look at the material, ...
0
votes
0answers
213 views

Reflection captures need to be rebuild message wont go away

So I have a problem. I can't seem to get rid of the message saying reflection captures need to be rebuilt. I have built the lighting and clicked on build reflection captures but the message is still ...
0
votes
0answers
33 views

GLSL and normal mapping

I'm trying to implement normal mapping on my existing shaders, but I'm definitely doing something wrong, probably related to the TBN matrix. The point is, while drawing two perpendicular walls with ...
0
votes
0answers
21 views

Missing shadow: why?

In these scene, i can't figure why, my player, and object it place, can't cast shadow on floor. All other static objects in scene cast shodow correctly. There is a floor with it's material, then ...
1
vote
0answers
131 views

Realistic intensity of a sun in Unity to match the outside world

I am creating an ARCore application in Unity where I want to make lighting shadows that match the real lighting outside. For this, I have made a rotational directional light that simulations the ...
0
votes
1answer
125 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 ...
1
vote
1answer
86 views

Lighting in Unreal is not fluid, lighting changes drastically at object “borders”?

I used the starter content's wall objects, an atmospheric fog, a directional light and this is the result: As you can see, it's obvious where the new object starts. Why?
3
votes
2answers
195 views

How to implement a clipped shadow in 2D?

I want to create a shadow effect similar to the one found in JoyMasher's Blazing Chrome. Notice that the shadow clips when you're on a ledge, and projects to the geometry below. Currently, my ...
1
vote
2answers
95 views

One side of every object is black

I'm trying to make a driving game in Unity, but recently have been having lighting issues. When I was first building it, the lighting worked fine. However, recently, one side of everything (the ...