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
20 views

Figuring out the exponent in a spotlight equation from the angle of a cone

I followed a tutorial on how to build a spotlight using DirectX. This tutorial uses a point light equation plus a line of code to limit the light to the shape of a cone. I have everything working, but ...
0
votes
0answers
29 views

How to bake reflections and lights in Unity's Universal Render Pipeline?

I just upgraded my project to Universal Render Pipeline (using Unity 2019.4.3.4f1 on Windows 10) and want to bake some HDR reflections and some spotlights into the floor. I placed some light and ...
0
votes
1answer
56 views

Distant objects remain fully lit at sunset, when they should be in the mountain's shadow

I'm trying to make dynamic sunrises and sunsets in my game but I have some problems. My scene is surrounded by mountains and when the sun tint is still hot the sun is not visible but, the trees that ...
0
votes
0answers
37 views

Strange lighting bug in my game

I've been experiencing this lighting bug in my game. As you can see there is a box around the player on the back wall and underneath it. the platform and back wall are 3D objects and the player is a ...
-1
votes
1answer
44 views

Render output difference cause

There are two 3D applications compared side by side: I'm looking for difference cause. These might be the cause, but I'm not sure: Color Lighting Shading code (GLSL) ? Can anybody help me with ...
1
vote
1answer
92 views

Why baked light differ so much from realtime light?

I'm trying to figure why Baked light differ so much from realtime lightning (whose final result I like and prefer!) Left one: baked light, right one: realtime. I've placed a: Directional light 3 ...
1
vote
1answer
63 views

Performing image based lighting in an open world game

I finally have a PBR implementation in an engine that I'm writing for a game I'm developing but I'm stuck on how to use IBL in real situations. Most IBL tutorials use it just to show a single mesh or ...
0
votes
0answers
14 views

How to place a reflection probe in an interior scene?

Perhaps this is a "dumb" question, but I can understand how/where to place correctly a reflection probe in Interior scene (a room) to improove lighting. In particular I can't understand if my Probe "...
1
vote
1answer
59 views

How do 3D rendering pipelines render light effects?

How does 3D software like Blender, Maya, Unity, or Houidini etc. render the effects of lights illuminating a 3D scene?
1
vote
0answers
38 views

How to get interior uniform lightning?

I'm trying to reach uniform lighting as in this image. This scene i've bought is rendered with 3ds and v-ray (i suppose). This is the same scene i've imported in Unity. I've put a "big" point ...
0
votes
0answers
23 views

Calculating PBR Lighting returns weird results at (0, 0, 0) or lower positions

I'm writing a Physically Based Renderer with the help of this tutorial here https://learnopengl.com/PBR/Lighting The vertex shader they use can be found here: https://learnopengl.com/code_viewer_gh....
0
votes
0answers
22 views

Handling metallic roughness maps colour channels

I'm trying to use a metalness/roughness workflow and I'm not sure how to translate the colour channels into the different metalness and roughness attributes. I'm not sure if there's a standard on how ...
1
vote
0answers
40 views

How do I ensure my Android build is not darker than in Editor?

My scene on the Android Build looks much darker. Based on my research about the topic, and from the texture of the light on the spheres, I assume it is because the light uses per vertex render mode ...
0
votes
0answers
35 views

Unity - Load Lightmaps at Runtime

I'm a bit of a novice to lighting, but I think what I want to do is possible, so please bear with me. Due to the nature of my game, I've taken an approach where a singular scene ...
1
vote
1answer
41 views

Why do asymmetric specular highlights appear in a scene with only ambient lighting in Unity?

I have a scene in Unity (2019.3.0f3 Personal) using the High-Definition Render Pipeline. There are no lights in the scene, and Baked Global Illumination is disabled. The skybox is a ...
0
votes
2answers
69 views

How to change the intensity of a light

I just want to change the intensity of a light. The script is already in the light object, but I can't turn it up or down to save my life, and wherever I look, no one has the answer. ...
0
votes
1answer
35 views

ToonRamp Shader + Normal Maps: How to keep strict lighting bands?

I'm trying to achieve a shading similar to the one on this image: Image 1: https://imgur.com/a/eTTvSCD To get something similar to this I wrote a toon ramp shader (similar to the one in the Standard ...
0
votes
1answer
37 views

Problem with Blender model imported to Unity (Lighting problems)

I made a simple box in blender and imported it to unity. Now I'm facing with this weird lighting problem: I've been messing around with normals, duplicated vertex, lots of things, even lightning ...
0
votes
0answers
88 views

Unity Light Baking for Best Balance between Performance and Visuals

I'm trying to optimize my Unity game. I have static objects, dynamic objects and (only) static lights. I wish to fully pre-compute lighting and shadows for the static objects while still ...
0
votes
1answer
51 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 ...
1
vote
0answers
45 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
28 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
108 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
30 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
62 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 "...
2
votes
0answers
20 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
26 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 ...
1
vote
1answer
37 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
117 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
34 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
182 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
24 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
28 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
39 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
168 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
50 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
29 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
38 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
30 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
73 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
173 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
51 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
90 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
84 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 ...
1
vote
1answer
46 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
39 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
36 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,...

1
2 3 4 5
13