Skip to main content

Questions tagged [lightmap]

The result of an optimization technique that involves prebaking all static lighting and shadows and then applying it as an additive layer on top of static geometry at run time.

Filter by
Sorted by
Tagged with
0 votes
0 answers
35 views

How to project Polygon onto Lightmap texture like in quake?

I am in the process of writing a Lightmapper and I discovered this video about Quake's lightmapping process: https://www.youtube.com/watch?v=bxientPsqRg The video discusses that the polygon is somehow ...
Raildex's user avatar
  • 768
1 vote
0 answers
37 views

Changing scene baked lightmap according to the time of day

I need a dynamic light view in a mobile game without losing any performance. So I thought to resort to baking the light, but I'll lose the light dynamic feature. And now I have a time system that ...
Ahmed Dyaa's user avatar
1 vote
1 answer
76 views

How to achieve believable interior night light in Unity URP?

I have scene which shows inside of an house. I am trying to achieve night as shown in horror movies. But in order to light up the entire room I have to increase the intensity of light way too much. ...
Akshay Dhotre's user avatar
0 votes
0 answers
53 views

Black terrain when baking lightmap in Unity URP

I'm trying to bake a lightmap of my level in Unity URP. I've fixed issues with other objects; only the terrain remains. It just remains black, no matter what I do. It is checked as static and to ...
Dekash's user avatar
  • 1
0 votes
1 answer
70 views

Why does my "Game" tab show images with grayish/wrong colors while my "Scene" tab correctly shows images with correct colors in Unity?

I create a Unity project. The "Scene" tab shows the image with the correct colors. But, the "Game" tab shows the image with a grayish colors, which are the wrong colors. Here is ...
Job_September_2020's user avatar
0 votes
1 answer
50 views

Which coordinates should I use to generate a 2D lightmap properly?

Recently I noticed that my 2D lightmap rendering has an issue - lighted area is getting rendered as far from the actual light source as the world coordinate of the light source grows. E.g. when world ...
Steyrix's user avatar
  • 259
0 votes
1 answer
105 views

How do I interpolate light intensity for tilemap's lightmap?

I implemented lightmap creation for a tilemap, but I cannot figure out how do I interpolate light intensity values. For now, my lighted tiles create an obvious grid-like structure. It was pretty easy ...
Steyrix's user avatar
  • 259
0 votes
0 answers
65 views

Baked lightmaps in SceneA, at runtime loaded SceneB from SceneA: lighting is now messed up in untouched SceneB. Only in Editor!

I'm using Unity, and in my MainMenu scene I made most objects static and baked some lightmaps. I built the game, clicked on a button in MainMenu which ...
Tudvari's user avatar
  • 771
2 votes
1 answer
468 views

How is a Spherical Harmonics Lightmap generated?

I have successfully generated a single color lightmap using ray tracing. For each texel in the lightmap, I trace into the hemisphere (using the normal) and capture the incoming light. This single ...
Raildex's user avatar
  • 768
1 vote
0 answers
52 views

Baked shadows look different when camera post-processing is on/off

Sooo... basically title. I have no idea what's going on here. I don't think I've seen this kind of behavior before, or perhaps I did but I can't remember it. Any idea on what's happening here? Couldn'...
YoshGJ's user avatar
  • 525
2 votes
1 answer
808 views

Seams on tiled wall after lightbaking in unity

I spent several days now trying to fix the seams in my unity scene whenever I hit the lightbaking button. My setup is a wall out of different parts created in blender and then stitched together in ...
Carolin Köhn's user avatar
2 votes
0 answers
536 views

How to get rid of these seams on the lightmap? ( Unity )

The wall is made of blocks of identical wall models with the same UVs. How to get rid of these seams on the lightmap? How I made this scene with this models: I made 3D model of the wall element in ...
White Raven's user avatar
0 votes
1 answer
383 views

Where does this orange tint come from after baking LightMap?

My settings: Unity version - Unity 2021.1.12f1 Lightmap Lighting Mode - Bake indirect Render Path - URP All Objects in Scene are marked as static. If you move objects aside, then under them there is ...
White Raven's user avatar
0 votes
1 answer
221 views

How not to multiply real time and bake shadows? (Unity)

I have one Light Source ( Directional Light ) with Mixed Mode. Lighting Mode in Lighting Window I seted to Subtractive. What the problem looks like How I would like the shadows to blend. How to ...
White Raven's user avatar
0 votes
1 answer
930 views

Unity baked light messes up a set of objects

On a few objects I use a technique where instead of using geometry, I place planes with a Cutout Material on top of each other, creating a 3D illusion with minimal cost. The thing is, it looks great ...
505Legion's user avatar
  • 103
1 vote
0 answers
2k views

Baked lightmap: Parts of scene appear too dark

I'm having trouble setting up global illumination in my Unity 2021.1.1 URP project Parts of my scene are appearing completely dark, I'm only using directional light and area light on the windows, here'...
denis's user avatar
  • 11
0 votes
2 answers
2k views

Godot Engine: Why is baking light making my scene darker?

I have an interior scene with some windows. The light is from an OmniLight near the ceiling, default environmental light from outside, and a desk lamp with emission. Without baking light, the scene ...
user2604415's user avatar
0 votes
0 answers
28 views

Baked lightmap errors in adjacent polygons

Everything seems to work great, but in some parts of my model I get shadows like this If I look at the light map, it looks bad: What is the best approach to solve this issue? Here my light settings:
Blasco's user avatar
  • 101
2 votes
2 answers
2k views

How to make 2D lighting in JavaScript

I am making a recreation of the 2D voxel game Terraria in JavaScript. Like most sandbox games, Terraria has lighting, but because I am using JavaScript, performance is going to be an issue. I have ...
luek baja's user avatar
  • 123
0 votes
0 answers
65 views

How do I fix this unintentional chromatic aberration on a lightmap?

Some strange rainbow halos (front and left) appear after computation of a lightmap for direct light. The formula is dot * dot2 / ( dist * dist ) * dl->intensity ...
Ivan Feoktistov's user avatar
0 votes
1 answer
3k views

After baking my lights again in Unity, my character is black?

I had to re-bake my scene several times before getting the look that I wanted. This last time, the scene looks great, but my characters are now very dark and the playable character is completely black....
hatinacat2000's user avatar
1 vote
1 answer
3k views

Mesh turns black after baking light

I had to port a project from Unity to Unreal which relied mostly on baked lighting. When I baked the light (StaticMeshActor set to Static), the 3D model in the map turned black. Without bake (...
01F0's user avatar
  • 185
0 votes
1 answer
227 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 ...
Jean-Milost Reymond's user avatar
0 votes
1 answer
5k views

Baked vs realtime global illumination in unity

I use unity. So far I know that the baked GI is less GPU processing when the game is played so if possible, I need to use baked GI. Newbie question: I'm using unity and just curious in the light ...
andio's user avatar
  • 165
0 votes
0 answers
91 views

Unity3D : Creating & Sharing light-baked levels without updating the game

I want to give myself freedom to add more levels after releasing the game. For creating levels I broke down structure and created a tilemap like a structure. here's an example : I will add them up ...
videogamechef's user avatar
1 vote
0 answers
2k 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 ...
lase's user avatar
  • 550
1 vote
0 answers
21 views

Setting up Lightprobes

Moving around lightprobes requires using the movetool and all you really can do is move them along global axes and copy paste. There are no functions to scale, rotate, Snap to a surface, not even ...
AzulShiva's user avatar
  • 679
1 vote
0 answers
75 views

Lightmapper artifacts

I really don't understand why this is creating these kinds of artifacts. I'm starting to think something is wrong with Unity. There are clearly no overlapping faces on the Model. There is enough of a ...
AzulShiva's user avatar
  • 679
0 votes
0 answers
44 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 ...
SmugLispWeenie's user avatar
3 votes
0 answers
225 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 ...
oliver's user avatar
  • 131
1 vote
1 answer
4k views

Strange artifacts in Unity Lightmaps

I experienced this weird lightmapping bug in my game that causes some models to have glowing artifacts on their surface. These artifacts "move" around, when I edit the UVs of the model in Blender, so ...
Enrico Ludwig's user avatar
1 vote
1 answer
319 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, ...
hatinacat2000's user avatar
1 vote
0 answers
196 views

How to import a texture to be used as occlusion map?

The same way normal maps need to be imported as "Normal map" in the import settings, how should I setup an Ambient Occlusion texture to correctly work? I've been searching around in the manual and ...
40detectives's user avatar
0 votes
0 answers
361 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 ...
Saad Anees's user avatar
0 votes
1 answer
1k 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 ...
Daniel Marques's user avatar
1 vote
0 answers
423 views

Errors when baking lights in unity3d

So, i'm developing a game in unity and avoided baking lightmaps untill now ( i just assembled my new workstation setup wich is capable of baking the lightmaps and not the computer ). And now i have ...
czyngis's user avatar
  • 111
2 votes
1 answer
1k 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 ...
wooden_coder's user avatar
2 votes
1 answer
5k 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 ...
GDP2's user avatar
  • 131
1 vote
1 answer
1k 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 ...
Pins's user avatar
  • 579
1 vote
2 answers
2k views

Proper indoor lighting without directional light

I would like to know how to properly handle indoor lighting without a directional light. My scene has a room( its some kind of shop), in which the player and ai-agents can move around. I can get good ...
dkerm's user avatar
  • 11
-1 votes
3 answers
19k views

How to make neon lightning effect in unity 3d

How can i Create Neon Lighting effect in unity 3d , so i have 2d scene and i want the rect to glow like neon
Kartik's user avatar
  • 139
0 votes
1 answer
297 views

2D Lighting Problem with Black Backgrounds

I'm currently experimenting with simple lighting in my game made with SFML and C++ (though I don't think that's relevant to the question). It's my first time messing with lighting in 2D, and my basic ...
Ben Humphries's user avatar
4 votes
1 answer
4k views

FPS drops when I maximize the game tab in Unity Editor

I have a simple unity scene with some primitive objects like cubes and spheres. Most of the objects are static and I made backed GI for lighting, The light is a point light. I also used unity post-...
Emad's user avatar
  • 1,126
0 votes
1 answer
1k views

How to make non-static gameobjects brighter?

I placed non-static gameobject in the scene. Look at this picture: You can see the lighter, but it's too dark, way darker than others. The only difference between the lighter and the other objects ...
modernator's user avatar
  • 1,223
3 votes
1 answer
1k views

Baking artifact in Unity

I am using unity 2017.1.0 f3, Enlighten baking, with Generate lightmap UV ticked in import settings. Also the object has prioritized illumination and the light map resolution is high. An example of ...
Nithin Jose's user avatar
1 vote
1 answer
238 views

in unity, lightmap comes out blurry on android device

as you see, shadow is blurred. (see the tree's shadow) What settings should I add?
mjk6026's user avatar
  • 246
0 votes
1 answer
2k views

Combined Mesh and Lightmap

I am using Unity 2017. The left picture is the original state. Light map applied. On the right is the state after all meshes are made into Combined Mesh. Same lightmap settings as left. As you can ...
mjk6026's user avatar
  • 246
1 vote
1 answer
531 views

Strange patterns on models with Unity Lightmap

To save performance and increase the details of static shadows I marked all static objects as static in my Unity Scene. Unfortunately there are now strange patterns on some of my models and I have no ...
Morph's user avatar
  • 102
1 vote
0 answers
392 views

Lighting, shader and GI is messing up the materials in Unity3D

Hello Guys I am not very sound with Unity3D Lightmapping. Currently I have a set of low poly items in my scene. Textures on my models are getting washed out. They totally look absurd. here is a ...
Adnan Nazir's user avatar
0 votes
1 answer
175 views

Lightmaps from RTCW BSP file not being rendered correctly

I'm trying to recreate a Return To Castle Wolfenstein renderer using Direct3D 11, but I can't seem to be able to render the lightmaps as they should be. I have not found much information on the ...
Hermetix's user avatar
  • 507