Weekend Update 07/28/24
Added 2024-07-29 08:11:39 +0000 UTCThis week I continued struggling to learn how exactly light maps work and also added the ability to toggle lights in the toybox.
In the spirit of making new debugging tools for myself and adding them to the game I've made it possible to click light switches in the toybox (or desk setup technically). When you click on a light switch now the light turns off, clicking again turns it back on, exactly how it works if Fredrika hits it. I needed a quick way to swap between lights on and off while I'm figuring out how to fix the issues I'm having, so this was a nice bonus that you guys will also get to enjoy.
I'll try to be brief and as simple as possible about what I'm struggling with on light maps. Basically a light map is a way to have the computer "paint" objects with a texture that it should be given the lighting environment when you "bake" those textures. What I've learned is how that process relates to the meshes in the scene and it's what I'm running into as a problem. The meshes get unpacked by Unity, like pieces of origami being made into a flat piece of paper, it then paints on those flat pieces of paper. The issue is that every time I make a new texture the way it's folding the meshes is changing, this means that the painting doesn't line up with the mesh and I get very serious issues where black and glowing spots appear randomly everywhere.
Right now I think the problem is that I'm disabling the lights, when those go missing it might be causing the mesh unfolding process to run again. I need to find a way to avoid that, once that's done I'll be uploading a build, I'll upload pictures to the Discord to show what I'm talking about for those interested.