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

Help with unity cel shader not work when turning away from the main light?

So i'm using this really good toon shader I found, that works with multiple directional and point lights. Only problem is, it acts weirdly when turning away from the main light seen here, ( sorry for ...
-1
votes
0answers
27 views

RGB sequence of day/night cycle

I'd like to simulate a day/night cycle, and am thinking to do this with two components: an underlay to simulate sky color, accompanying either an alternating cloud or star rotation animation ...
0
votes
1answer
37 views

Volumetric lighting not working when building and running game

I have a volumetric lighting system implemented into Unity and when I am making the game and run it in the Unity editor the volumetric lighting shows up. When I build it and run it though it doesn't. ...
0
votes
1answer
17 views

Spotlights and Pointlights not working with Unity Render Pipeline?

I'm experimenting with URP, Render Pipelines, and Shaders for the first time recently and have noticed something odd. In the scene I'm building, Point Lights and Spotlights don't work. No matter what ...
0
votes
1answer
26 views

Generated Mesh Does Not Have Shadows/Shading

Description I'm trying to create a water shader, and at this point in development I'm using a Photoshop-generated cloud texture as a map for vertex displacement. The displacement itself works just ...
2
votes
2answers
113 views

Why are 2D game tiles often lit from the top left?

I have been in to game programming for some time now, and recently ventured out in to trying to create my own pixel art. So I have learned the basics of lighting and shading etc. and noticed that ...
3
votes
0answers
46 views

Help in understanding atmospheric scattering shading

I have a made a planet and wanted to make an atmosphere around it. So I was referring to this site: Click to visit site I don't understand this: As with the lookup table proposed in Nishita et al. ...
0
votes
0answers
37 views

Making a 'Darkvision' Mechanic for a Unity C# Game, Not Sure Where to Start

I am endeavoring to make a small multiplayer dungeon crawler and would like to introduce a mechanic like 'Darkvision' from table-top RPGs. The desired effect would be that where there is some ...
0
votes
0answers
32 views

Why is there grey haze that appears when game is simulated in viewport, and how do I fix it?

For some reason when the game runs in the regular viewport (not it's own) a grey haze slowly appears. This never used to happen. The level architecture (code) changed recently and then this started ...
0
votes
0answers
42 views

How do you make lights affect 2D sprites in a 3D environment using Unity's URP render pipeline?

I'm using Unity, URP and have 2d sprites characters in a 3D environment. I want 2D sprites to be affected by lights/shadows like the rest of the environment. -I know if I use a 2D renderer I can use ...
0
votes
0answers
11 views

Unity baked emissive light not working

I'm having issues getting the left emissive light in the image to bake. I've tried messing around with all the lighting settings but nothing seems to solve the issue. Can anyone pinpoint where I'm ...
0
votes
1answer
24 views

Unity - Global illumination seems no longer applied to static objects on runtime

First of all I'm newbie with Unity, so please forgive me if the answer of this question is obvious for any experimented developer. So, in one of my project I have this result while I run the project ...
0
votes
1answer
39 views

Multiple directional lights use cases?

I have been building and designing a hobby-tier game engine and I am currently working on supporting any amount of lights of any type. I checked out Unity and it supports multiple directional lights, ...
0
votes
0answers
29 views

Fragment shader for lighting in isometric perspective

What I'm trying to do is to achieve basic lighting in 2D from an isometric perspective. Here I have 2 textures that are used as tiles for the ground: Color: Normal map: I have a fragment ...
0
votes
0answers
14 views

How to make a sun that only illuminates stuff in sunlight?

I set up a scene with Gaia Pro, and it looks really nice so far. It even has a script to add a Sun object and have it circle the scene, which is pretty cool. Problem is, it's implemented as a ...
0
votes
1answer
34 views

The colors of Unity 2019 are different

I currently use Unity 2018 LTS, because of my 2019 Unity colours are not really good. For example, the white is not really white but more like grey and the Shadows are really strong too even if I ...
0
votes
1answer
26 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
211 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
61 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
38 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
45 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
93 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
106 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
62 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
28 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
24 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
43 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
151 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
43 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
134 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
38 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
42 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
193 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
54 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
63 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
39 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
111 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
34 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
26 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
72 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
163 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
50 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
248 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
33 views

3D title Rendering in Maya For babylon Js Game Engine

I created a 3D title in Maya and applied color through Lambertian shading and rendering with mental ray. The problem is when the title is rendered in the game engine, it is looking very sad. The ...

1
2 3 4 5
13