Teardown-Issue-Tracker-Maintainers / Teardown-Issue-Tracker

A public repo for the community to track issues/bugs/feature requests in Teardown.
12 stars 5 forks source link

Graphical glitch when using lights in editor and then playing the map #53

Closed Chevronie closed 3 years ago

Chevronie commented 3 years ago

Describe the bug

When I added 2 lights to my map for my workbench with some lights and tried playing my level, the entire lighting system broke. I quit the game and tried replicating the bug on a different map, but when I launched the game everything was pitch black, despite the sun which still appeared. This happened if there was a light on the map or not. I relaunched the game and the issue was gone. When I tried replicating the bug again, everything was fine and nothing happened to the lighting system. I changed the color of the lights to 255 240 167, the same as the color of the lights in magicavoxel, and the glitch happened again, but instead of everything turning to black, it turned into blue with some transparency, where I could still see the level but everything was blue. Right where the lights where added, there is a large square of solid blue that covers the entire map, but when I fly above it goes away, and when I go back down under the lights it's back. When I break the vox node that the light is a child of, the blue square goes away. When I launch a different map the blue tint affects the entire map minus the sun, but without the blue square which isn't there because there isn't a light. Here is a video of what happens when I play the level. I also figured out that changing the scale of the light from 1 to 3 makes the effect go black, where you cant see anything but the sun. I have uploaded a video in #modding-discussion in the teardown discord server, and my discord name is @Chev. I titled the video "teardown lighting system having a stroke.mp4"

Steps to reproduce the behavior

Expected behavior

I expected for the light to be the same as when it had a color of 1 1 1 just with a different color.

Environment

Additional context

No response

tuxedolabs commented 3 years ago

The problem is likely your color value of "255 240 167" should be in range 0-1