Skip to main content

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.

0 votes
0 answers
33 views

Applying greyscale shading to objects in a Python 3D renderer

I need help with how to apply greyscale shading to objects in a 3D renderer I made in Python. The code is pasted below: ...
BrainBonkers's user avatar
1 vote
1 answer
79 views

Phong shading: missing specular lighting, skipped face

I'm implementing my first rasterizer, and I've run into a 2 issues with Phong shading that I have no idea how to debug. First, specular lighting seems to be completely missing. Second, there is an ...
diniamo's user avatar
  • 41
0 votes
0 answers
132 views

How to best simulate headlights

Goal: How can I best simulate headlight beams, in a night-time scenario, in Godot 4? The components I have are all sprite-based - a top-level car sprite, a shadow sprite (that is offset based on time-...
Cyclops's user avatar
  • 3,139
1 vote
1 answer
87 views

Why does dynamic light flicker/get replaced with a square when rotating the camera?

I am facing the same problem over and over again with Dynamic Lights in Unity and don't know where next to look. I am still learning Unity so maybe I'm missing something trivial because it happens in ...
rupps's user avatar
  • 141
1 vote
1 answer
148 views

How can I fix the rotation on a sprite normal map in Unity?

I'm making a 2D ball game in Unity v6.0, now in the process of adding some 2D lighting. The player ball is a circle sprite. To make it look like a sphere, the sprite has a normal map added as a ...
Jernious's user avatar
1 vote
0 answers
63 views

How to hide a Sprite unless it is illuminated by a Light 2D?

I want to have a sprite that is invisible when outside of light, and visible when inside of light. I created a new Custom Lit Shader Graph in Unity 6 with the following setup: I then created a player ...
stevendesu's user avatar
0 votes
0 answers
37 views

Unity Lighting Window API

I am trying to develop a tool for baking light in Unity but with some modifications and additions. Currently, what I want to achieve is for the commands ...
Ahmed Dyaa's user avatar
0 votes
1 answer
67 views

Difference between BakeAsync and BakeMultipleScenes

I am trying to develop a tool for light baking with certain modifications, but I do not understand the difference between the two functions BakeAsync and ...
Ahmed Dyaa's user avatar
0 votes
1 answer
111 views

Generate Spherical Harmonics without intermediate cubemap

I am in the process of generating Lightprobes using Spherical Harmonics. The usual approach is to render a cubemap, convolve it to generate an irradiance cubemap and then sample it to generate ...
Raildex's user avatar
  • 812
0 votes
0 answers
60 views

How to build directional light view / proj matrices in DirectX11?

I think I built my matrices wrong: ...
f1oating's user avatar
2 votes
0 answers
84 views

How to feed lightmap in GPU instanced meshes in Unity?

Unity's documentation state that GPU Instancing supports baked lighting: Since Unity 2018.1, Global Illumination (GI) rendering is supported by GPU Instancing in the form of light probes, occlusion ...
bryx19's user avatar
  • 21
0 votes
0 answers
54 views

Unknown light source in viewport when camera projection is orthogonal

I'm using Godot/Redot for my game development but so far this happens when camera projection is orthogonal, there's unknown light following the viewport when the camera is moving. Here's the example ...
KZulfazriawan's user avatar
0 votes
1 answer
76 views

Inconsistent light effect with same distance from the source from the opposite direction

I have the following brdf code to light my scene ...
ellipticaldoor's user avatar
0 votes
1 answer
143 views

Light dissapear when baking in Unity

I am playing around with Unity and lighting is proving to be the most nerve racking thing about it so far. I think I understand the types of light and pros and cons of bake vs realtime but when I do ...
Alejandro's user avatar
0 votes
1 answer
150 views

3D-lighting considerations

I'm considering how a graphics-engine lights any given environment, at the level of code. So I guess perhaps the simplest way to light a scene is just to provide a Value-figure (i.e. Value as in the ...
william's user avatar
  • 103

15 30 50 per page
1
2 3 4 5
50