Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
0answers
28 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
21 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 ...
0
votes
0answers
41 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?
0
votes
0answers
23 views

Unity3D: What could be affecting my baked lighting?

I have a scene in which I have placed multiple sources of light in an apartment. After baking my lights, one of the rooms have strange smudges on the wall just above my window Here are the settings ...
0
votes
0answers
25 views

Bake or not to bake, lights

Well, Im building an indoor level with several dynamic objects, but it's getting to expensive, I decided to bake the lights but to bake objects they have to be static... and these ones are dynamic ...
0
votes
0answers
30 views

Using a light mask overlay without lighting the sky

I'm using an overlay to create a lighting effect in a 2D game. The overlay is a grey-scale mesh and I multiply each pixel of the mesh with the pixel already written to the framebuffer. This works ...
3
votes
2answers
102 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 ...
0
votes
1answer
50 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 ...
1
vote
1answer
52 views

SceneKit flickering with Ambient and Omnidirectional lights

I have a project where I have a sphere with a png texture that represents a planet (or a moon in the videos I'm attaching). Wrapped around that sphere I have a hexasphere (implemented using the ...
2
votes
0answers
18 views

Unity Lighting Problems [duplicate]

I've got a problem with the settings of lighting in my unity scene. The objects have got "dark sides" and it doesn't look natural. You can see the screenshots and my light settings here: The ...
6
votes
1answer
279 views

How can I implement a revealing light beam?

In SEARCHLIGHT, you control a ray of light that illuminates incoming enemies that are otherwise invisible in the night sky. Here is an illustration: How would I go about doing this, preferably in ...
1
vote
1answer
74 views

OpenGL Deferred Shading Pixelation

I'm working on a 3-pass deferred lighting system for a voxel game, however I am having problems with pixelated lighting and ambient occlusion. The first stage renders the color, position and normal ...
0
votes
0answers
22 views

How to mix baked lighting and real-time lighting in Unity?

I was watching this tutorial about lighting in Unity and while it shows how you can do pretty cool stuff with post processing and a bunch of other things, I'm worried about making that sort of ...
0
votes
1answer
58 views

Baking lights causes weird seams on meshes. How to avoid it?

I'm trying to bake lightning in the simple scene with some imported geometry. The result is weird seams near the edges of the meshes even there is no free space between them. How to avoid it and just ...
1
vote
2answers
97 views

How to avoid “completely” dark shadow using directional light (as Sun) ?

Look at my scene: Sun is rising and as you can see the scene is realistic; I mean, that what is in shadow is almost completely dark. This is correct, but i would like something less "dark", like an ...
3
votes
1answer
139 views

2.5D platformer how to darken building edges?

I was wondering how I could go about creating a vignette type effect / some sort of volumetric shadow for the 'cross section' parts of a 2.5D level. The effect I'm going for can be seen in 'This war ...
0
votes
0answers
15 views

Unity Skybox for Realtime lighting

I have a Directional light as my "sun" which goes with the local time of the computer being used. However when it's night time the scene is excessively dark. I added another directional light to act ...
0
votes
0answers
36 views

Bright lights produce strange artifacts on Android

I'm testing lighting on Android and I'm getting strange artifacts when the light is increased. I'm not sure if this is normal with Unity or a setting somewhere is unchecked. The only light in my ...
0
votes
1answer
94 views

Light and shadows like Diablo

I wanted to have shadows in my game and thought the way they were implemented in Diablo was good enough. Any hints on how to produce a similar outcome?
1
vote
1answer
93 views

Getting dynamic objects to match baked lighting on nearby static objects

Here's how the hallway in my game looks now: You might notice the dark section near the centre of the screen; This is, in fact, a pair of cupboard doors which are not set to static and so don't get ...
0
votes
1answer
68 views

Directional light shadow on terrain

When player is walking on terrrain, around him Unity is rendering shadow coming from directional light. But after some radius in the distance, shadows are not rendered. Only when player walks close ...
0
votes
0answers
127 views

Dissolving fog of war when entering a room

I want to achieve a similar effect to what you see in the following clip from Enter the Gungeon. When a character enters a new area, I want a dissolving fog of war which begins dissolving at the ...
0
votes
0answers
49 views

improving a real-time tile based 2d lighting system

I'm making a 2D game with lots of little particles that can fly all around the screen. The viewport has a resolution of 900x900px. Within that region, at most 450x450 particles can be displayed per ...
1
vote
1answer
10 views

Normal doesn't appeared on shadow/dark area in Mobile Shader

Let's look at this picture: You can see the red rectangles, those are shaded by normalmap. Here, is the same model with different light angle, there's no normal shading in dark area. It only ...
2
votes
1answer
187 views

Strange realtime shadows in Unity3D

I'm trying to do realtime lighting, and my shadows are acting very strange. When I project a spotlight out from the camera (like a flashlight in a first person game) my shadows show up as 3D skews of ...
3
votes
0answers
161 views

Moving directional light cause huge fps drop: why?

I've implemented a simple script to simulate Sun Rotation (day/night cycle). In my "Update" i Rotate main Directional Light (the sun). What i've noticed is that my FPS dropped from 60 to 20-25 fps. ...
0
votes
1answer
62 views

Artifacts in unity shading

I created block of 3x3x3 cubes, disabled shadows, set directional lighting color to white and ambient to black. And I'm getting this: Any idea what is going on and how to fix it? Effect is visible ...
1
vote
1answer
178 views

What's the use and difference between Forward, Deferred and Physically Based Rendering?

Maybe I'm still confused about my own understanding, Forward Render: render the lighting of an object according to the light source in the scene. (e.g Phong) Deferred Render : render the scene to ...
0
votes
0answers
33 views

How to Handle Lighting from a 3D Game Engine with a Roguelike Game using Shadowcasting

Normally the shadowcasting will, from the player position, set a brightness amount to each relevant tile. Yet I'm making a roguelike with a 3D map, and Unity has lighting. Currently I have the player ...
0
votes
1answer
23 views

Unity2D: Sprite Mesh Lighting Issue

I am trying to make my 2D mesh render sprites with the same brightness as the original file. On the below picture, the mesh on the left is darker than the UI Image on the right, which is an exact ...
0
votes
0answers
50 views

Half-shaded pixel artifacts on 2d dynamic lighting shader

I'm working on a shader for dynamic lighting in a 2 unity game. I'm new to shaders but I've managed to get something close to the effect I was looking for, although not 100%. As you can see in the ...
1
vote
1answer
88 views

Unity3d - Cast dynamic shadows without processing multiple lights

Back Story I've built a game with a friend and all goes well until there are too many spheres under a group of 5 lights, then things start getting choppy. Troubleshooting I've found that by turning ...
1
vote
1answer
116 views

Unexpected lighting on cube

I am following a tutorial for 3D game development in Java, using LWJGL. I have completed all chapters up to chapter 14 - Terrain, inclusive. The tutorial is in Java, but I'm using Scala. My full code ...
1
vote
1answer
107 views

efficient 2D light source

I wanted to add a light source for a project I'm working on, and luckily I had some code based on this article: http://ncase.me/sight-and-light/, but when I ran the code after carefully transplanting ...
2
votes
1answer
400 views

How can I make tree foliage work with baked lighting?

I have an issue in Unity where my trees are black and it seems to be due to the fact that I'm using baked lighting in my scene. Luckily, it seems that I'm not the only one who's experienced this. I ...
0
votes
0answers
222 views

UE4 Lighting scenario baking with multiple streaming sub-levels

I am trying to bake multiple levels with lighting scenario, but the levels don't bake at all. I put the lights and other non geometry stuff in persistent level, the sub levels consists of individual ...
0
votes
0answers
20 views

Unity / How can i prevent my model from blinking when it doesnt have normals?

Somehow the light which is shining on a moving model is making it "blink" (its like getting very dark and then very lit again. The model has no normals. (unity import settings: normals: none) Is ...
1
vote
0answers
39 views

When load my unity scene on vmware windows virtual machine, the color/lightening of the scene randomly changes? It turns pink

Hi I have a unity scene doing all it is suppose to on mac but I had to load that scene on vmware windows virtual machine and when I did that, the color or the lighting of the scene was randomly ...
2
votes
0answers
93 views

Art Guide Theory: Lighting an Game Environment (Objectives, approach/workflow and mood) in PBR

What's the theory behind the Lighting an Game Environment in a Physically Based Renderer? As far my research, lighting an scene is done with different Rules and Different Ways of Lighting an Scene ...
0
votes
0answers
94 views

How can I achieve a 'warm' scene in Unity using post processing effects?

I've recently fallen inlove with this Cozy Tavern scene by Beholder, and am looking to replicate it's feel the best I can in unity as a learning exercise. A lot of the scene's depth is added through ...
1
vote
1answer
99 views

Create lamp shade material

How would one go about creating a lamp shade material that lets light through from a light inside the object. I have read that turning of shadow casting for that object should work, however I have ...
0
votes
0answers
57 views

Unwrap 2D texture to polar coordinates

I'm trying to create a lighting engine for a 2D game. What I'm planning to do is something similar to this tutorial, specifically the concept of unwrapping the Cartesian coordinates to a 2D polar ...
1
vote
0answers
255 views

SFML - How to implement a simple 2D lighting system

Lately, I've been reading a lot about 2D lighting systems in a game, and have observed just how much lighting can add to a game's graphics appeal. However, as for implementing one of these in SFML, I ...
0
votes
0answers
24 views

Decoding old game formats - Calculating lighting range based on attenuation

Bit of a tricky question so bear with me. I'm decoding an old game format. It involves a lot of guesswork and one of the fields in a light fragment was marked as 'attenuation' by another coder. The ...
0
votes
0answers
79 views

Unity lighting bleeding through geometry

I am trying to sort out lighting in my game. I have a spotlight that is bleeding through a standard Unity cube. I am not sure if I don't have a setting on or something? My current settings are: ...
0
votes
0answers
19 views

How to fix rendering bug in Unity for UWP

I want to create a game which levels are designed with cubes like in Minecraft. I use lightbaking for static objects because it looks better than dynamic lighting. It all worked correctly in the ...
1
vote
0answers
34 views

Why a point light not cast shadow on my moving object, but only on static?

In my Unity3d scene i've two light: a directional (sun, outside the window) and a point light. In my scene, I can see shadow correctly, also if i "play" with settings like Intensity or Range. But in ...
1
vote
1answer
192 views

Render to texture and gaussian blur texture problem

im using a lightmap to achieve a 2d lighting effect in OpenGL with dynamic shadows and to make them soft I use the gaussian blur. However I noticed one problem : When I use big blur ratio, it has some ...
1
vote
0answers
25 views

Export baked lightmaps from Unity to Monogame

I'm trying to bake lightmaps in Unity, export as textures and apply the textures in Monogame. Is this the right path to go? If so, how it should be done? Thank you.
0
votes
2answers
127 views

Inside realtime lighting

I have a small house with point light in it. But as you see, directional and sky lighting affect inside lighting. It's too bright. How can I make that inside is only affected by point light and not ...