We’re rewarding the question askers & reputations are being recalculated! Read more.

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
1answer
38 views

OpenGL object load in reverse

I am trying to load a model and it is loading it in reverse. When I am trying to rotate it 180 degrees it changes the lightning as well. I am not sure what I need to do to change the position that eh ...
0
votes
0answers
23 views

How to have a point light with no falloff in Unity 3D?

Does anyone know of a good strategy to make point lights with no falloff, eg. anything in the radius of the light will be 100% illumination while anything outside the radius will be 0% illumination. ...
0
votes
1answer
23 views

Unity ceiling light issues

I'm trying to get back into Unity and I've been playing around with lighting. I modelled a simple lightbulb in Maya and have been trying to create a hanging ceiling light but I'm struggling to get it ...
1
vote
0answers
88 views

Spherical harmonics

I'm currently trying to implement a GI system for diffuse lighting and wanted to do so in spherical harmonics. Now i have read what else i could find and i know the general idea of how to get from ...
0
votes
0answers
20 views

Unity light probes are giving incorrect results

I've got a scene with a track. I've created a script that places light probes along the track to create a volume extending either side. However, as the vehicle moves along the track, incorrect ...
1
vote
0answers
59 views

Self-illumination vs luminance

I'm using a graphics format reading library which has an enum called "MaterialLuminanceMode". There are three luminance modes for materials available: Self-illumination, which I interpret to mean "...
0
votes
0answers
8 views

Lighting not working in a 2D JavaFX game when using subtracting shapes?

So im trying to add lighting into my game. I'm using shape subtracting and unions to subtract circles (the lights) from a dark rectangle that covers the whole world. I think that its a problem with ...
0
votes
0answers
23 views

Flare fading when moving camera

I have been trying to do a sun in Unity 3D. I have used a sphere with a texture and a flare. The problem is that when I move the camera the flare fades until it disappears when the sun is almost out ...
0
votes
0answers
13 views

How to add lighting to a 2D Tile-based game in JavaFX?

I'm making a 2D roguelike tile-based game with Java and JavaFX. I'm currently working on adding lighting and darkness to the dungeon, but whenever I try running it, it takes a very long time to load, ...
0
votes
1answer
42 views

Opengl the light position always on the origin point therefore the diffuse and specular does not work

I am newbie of opengl, so I did the tutorial by learnopengl. I have a strange problem when I was trying to do the light effect (ambient, diffuse and specular). For the diffuse, the effect appears on ...
1
vote
1answer
22 views

How do you turn off all scene lighting in the game view like you would with the scene view button?

In the scene view, there's a control bar with a 'lighting' button that lets you toggle scene view lighting. This turns off all shadows and all light sources, i.e. makes it so that all objects are seen ...
0
votes
0answers
50 views

Unity light baking out of memory

I have a problem where whenever I try to bake the light in my scene I get this error after a while: ...
0
votes
1answer
22 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
31 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
25 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 ...
3
votes
0answers
33 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 ...
2
votes
1answer
57 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
32 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
27 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
34 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
28 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
34 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
94 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
31 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
63 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
69 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
28 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
37 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
32 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
10 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
74 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
49 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
19 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
12 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
62 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
182 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
52 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
22 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
59 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
45 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
65 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
59 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
37 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
350 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
68 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) [...