-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lack of ambient light with more than 2 lights causes "flashing" of whole meshes #8651
Comments
Project is broken, plus it is far from "minimal" as it currently stands... |
What do you mean it's broken? It opens fine on my end... |
isn't this a z-index issue? put the road 1px higher :) |
@Zireael07 Here it complains about missing .tex and .tres files. |
@nunodonato: Believe me, moving the road 0.01, 0.02, 0.03 etc. up was one of the first things I tried. The other thing was turning off shadows. I slimmed down the sample even more (turns out I missed a whole folder I'd stuffed random stuff into) and removed some old unused test things. I even checked that I'm using matching case in script and in project. At any rate, the project opens both in editor and in play on my end, and still displays the issue as soon as you open the main scene in editor. |
On simple meshes like the testcube I see that when turning shadows on a light, but on this project appears too but only on the editor, while running the textures are ok. Except for the light, saw something weird, made the light pointing up and the wheels and other parts are receiving light when should not get it (model, exporter or importer issue?). (yes, I'm a bad driver) |
Car model is mine and admittedly not perfect, but since the same thing happens to the wheels (which are not mine, I took them from the truck town demo for 2.x) looks like something is indeed weird with lighting. @eon-s: This was a quick export from 2.x and it appears there were changes made to the vehicle physics in-between, I already had to invert the logic for steering left/right and the car is very bouncy. So it's partially you being a bad driver and partially me not having found the right settings for 3.0. |
Wait, when I was about to close the project, removed the environment, then the shadow (that added before) and everything suddenly looked fine in the editor. Made some undo (to get the buggy textures) and disabled the shadows again and got this: Also noticed that sometimes the effects keep adding up for awhile (like changing specular, the effect stays after removing, same for lights), like if changes are not updated for some reason. |
Does the bug pop back up if you enable shadows? |
@Zireael07 shadows always adds that texture bug to me (on 3), maybe default shadow settings are wrong but I don't know. Could be the default max distance at 0? |
@bojidar-bg: I checked "Editable children" and tried moving apart the doubles, but they still flash (even the one on top which is certainly NOT overlapping anything). I'll have to do something about eliminating the doubles but they are not the cause of the issue. It seems to be related to the lighting and the camera. (Clip from stable [2.1.3] since the issue is more visible in it) - https://gfycat.com/DetailedBareGrosbeak |
Ive added a stripped down project (2.3) to demonstrate the issue: |
I could confirm with the given example, though I think it might be another issue (not completely sure yet), since the whole mesh is flashing, as opposed to random faces. Note that 1) the issue is gone when the second (non-player) OmniLight is hidden/removed, and that 2) it isn't black, it is just a lack of ambient light. Also, removing the normal map makes it less likely to happen, though it still happens. |
Workaround I have found for my problem:
|
@bojidar-bg: It's the same issue, see OP:
EDIT: Downloaded @Mangomago 's project and yes, it's the same issue. I stood in the doorway and looked towards the corner (either will do) and bam, flickering blackness. I don't have an omni light in my project, just directional light plus ambient light from the environment, but I'm positive it's the same problem. |
I have an omni light and spot light in my project, and things flicker (becomes darker or lighter) when the camera moves. Probably the same issue. |
After revisiting my ol' project and fiddled around, I can confirm that turning off ambient light causes the issue to disappear. Like mangomago said, you could use an omni-light with large radius to emulate ambient light. |
First of all thank you for your report and sorry for the delay. We released Godot 3.0 in January 2018 after 18 months of work, fixing many old issues either directly, or by obsoleting/replacing the features they were referring to. We still have hundreds of issues whose relevance/reproducibility needs to be checked against the current stable version, and that's where you can help us. For bug reports, please also make sure that the issue contains detailed steps to reproduce the bug and, if possible, a zipped project that can be used to reproduce it right away. This greatly speeds up debugging and bugfixing tasks for our contributors. Our Bugsquad will review this issue more in-depth in 15 days, and potentially close it if its relevance could not be confirmed. Thanks in advance. Note: This message is being copy-pasted to many "stale" issues (90+ days without activity). It might happen that it is not meaningful for this specific issue or appears oblivious of the issue's context, if so please comment to notify the Bugsquad about it. |
As there was no answer to the above request, we're closing this issue as inactive. |
Operating system or device - Godot version:
Win 7 64 bit - Godot 3.0 (May 4 build from Fixnum)
Issue description:
Meshes appear to flash depending on angle to camera. The whole single mesh flashes darker or brighter, regardless of how many faces it has. (The road is made of a sequence of meshes, each mesh has quads, one quad for one half of the road, both quads flash simultaneously)
Old road version where there is a single-face mesh for each half of the road (2x as many meshes) - at the beginning, you see some meshes on the left side flash and then the ones on the right (https://gfycat.com/TintedRealFlounder) - this is 2.x (stable)
It's not shadows (they are disabled in the example project).
The issue is much more pronounced in 2.x (stable).
(https://gfycat.com/GleamingNearKoodoo) - issue in 3.0
Steps to reproduce:
Load the example product and move the camera around a bit.
(It's less noticeable in-game but I left the car in so that you can have a look in game too)
Link to minimal example project:
The example project is a 3.0 project!
3.0flashingmeshes.zip
The text was updated successfully, but these errors were encountered: