3dreamengine / 3DreamEngine

3DreamEngine is an *awesome* 3d engine for LÖVE.
MIT License
393 stars 17 forks source link

Shader issues on Intel UHD Graphics 620 #55

Closed leso-kn closed 3 years ago

leso-kn commented 3 years ago

Hi,

I've recently discovered this project and first of all, amazing work!

Now, unfortunately on my main machine, which is an Intel NUC Kit 7i7, there seems to be a major shader issue.

To describe the problem in more detail: it seems like the color space is completely shifted or like the buffers are mixed up or something simliar. I have attached screenshots of the tavern, alpha blend and fps game examples.

I'm running

Things I've tried so far

On the tavern demo, I was as well experiencing the black screen issue with smooth lighting turned on as described in #33, without that it looks like in the screenshot.

I have also tried most fixes mentioned in #33. What actually surpises me, is that @Luke100000 uses precisely this GPU to validate shaders. So something must be very fishy with my environment.

I wonder if this is a known issue, didn't find anything similar among the Github issues. Also, please let me know if you need more specifications on my environment.

Screenshots alpha blend 2021-02-23 21-30-44tavern 2021-02-23 21-32-00fps game 2021-02-23 21-32-53

Luke100000 commented 3 years ago

Thanks for the detailed issue. That looks like modern art!

I was able to reconstruct the environment using a live version of ubuntu 20.04 on my UHD 620 system. While the result is slightly different it probably is the same error.

After some try and error I found the error, and I am a little bit ashamed. vec3 col; does NOT initialize with 0 on all systems...

Thanks again, I will double check for similar errors and then fix it on both master and beta branch.

leso-kn commented 3 years ago

Cool, yes, I can confirm it's working now, thanks!