-
Notifications
You must be signed in to change notification settings - Fork 18
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
glitches on the ground #300
Comments
|
"What OS are you on, what graphics card do you use, what version of CE are you using?" I compiled CE from git yesterday. My config: I own Steam (english) and GOG (english) and even CD (french) version of Tomb Raider 1. |
"What do you mean by "does not seem to be compatible"? Explain what you did, and what happenened." |
Ah, you probably found a commit that broke the graphics, but it's fixed now, although it now has a performance regression. Additionally, 2.0 has a bug that prevents importing the CD images. For importing checkout tag 1.9, then checkout tag 2.0 to play, and everything should be fine. |
I'm sorry, I messed up with the versions. You may checkout the latest |
I will give it a try when I will return at home. |
Just tried today's git code:
More than words, this is a video: |
Oh, that's clearly broken shadow mapping, haven't seen that for quite a while, so I didn't recognize it immediately. As it's probably a race condition with texture access, I'm not sure I can reproduce it on my system. |
I finally got my system (partially) running again, and I can't reproduce it, neither in debug mode, nor in release mode. Please note that I was only able to test the amdgpu driver, so it might be because of different drivers. What are your drivers and versions? What is your Mesa version? |
GPU: AMD Radeon RX 6600M (navi23, LLVM 15.0.7, DRM 3.49, 6.1.9-1-MANJARO) I launch CroftEngine directly from compile folder. git clone https://github.com/stohrendorf/CroftEngine.git |
Can you take a look at the log files and confirm that the "opengl ..." log lines report that it's actually using that graphics card? I have the suspicion that it's running on some integrated intel GPU, which would explain the problems. |
I join you my latest log: |
From what I could find on the internet, the RX 6600 series seems to have a lot of issues and bugs. Many users complain their system won't even boot, others have the problem that the GPU isn't identified correctly, some have crashes, etc., although a few times it was mentioned that updating everything to the newest releases seems to have fixed stuff. I think you got bad luck with your GPU. |
My GPU card is today well supported now on Linux, since 6.x kernel version. |
You can try to re-build using |
I just compiled a debug release with today's git. |
Unfortunately, that log file doesn't help. In debug mode, if there's any issue with the graphics pipeline, the engine just crashes, and this means that (in general) the pipeline is working fine for you. Additionally to that, you're the only one who reported this issue, and I'm unable to reproduce it. I looked into the code and couldn't see any issue (but that doesn't mean there is no error). As CE uses some advanced OpenGL features, it might be that it either has a rare bug (which I consider unlikely given on how many systems this runs fine on), or that you discovered a rare bug in the graphics driver. In any way, as of right now, I don't have a solution for your problem, I'm sorry. |
ok, I let this report open, in case another user have the same issue as me on Linux or Windows. We'll see in several month if I can still reproduce it. |
FYI, the recent nvidia and AMD driver updates on my Windows system point towards the engine having some issues with resource handling regarding textures. As the shadowing is (basically) just a texture, this means that it's probably a fundamental engine issue. I'm currently investigating, but as of right now, I only have very vague suspicions what's going wrong. I hope the solution to the issues the engine has resolves your issues, but as of right now, I'm mostly clueless. |
I just compiled today's git and issue is still present. |
Oh sorry, there's no fix yet, there's only hope for a fix now, just wanted to let you know about that. |
Can you try the latest master, please? There were some major changes to the render pipeline that might resolve your issues. |
I just compiled today's git and I have bad news, two things:
|
I joined another log, this time crash appeared when I selected "Details levels" |
Thanks, I'm pretty sure I have fixed the crashes. But I'm not sure what you mean with "strange colors", the only thing I can currently imagine is that the texture interpolation is different. Can you please try the latest master again and tell me whether it crashes and possibly fixes your issues? |
my english is limited but "the texture interpolation is different" is exactly what I meaned. |
Crosoftengine still crash when I try to access "Details levels" |
Okay, here's the first set of tests to try and narrow the issue down. You only need to
Big thanks! |
1° ) 6c90e56 |
2°) a0bf5d2 |
3°) ea1042f |
4°) 409265e |
Thank you very much. The crash with test 2 shouldn't have happened at all, I'll investigate. About tests 3 and 4, these basically replace some rendering outputs with with internal shader stuff that I can test against. Regarding test 3, this confirms that the shader is working correctly at the tested point, so everything is fine here, even if it changes rendering drastically for you. |
Thanks, test 4 is an actual issue that is at least a part of the problem. I need to figure out a few more tests to narrow it down further, though. This is very valuable. |
Here's the next set of tests, these skip internal stuff and should hopefully not look that broken, except maybe the first one.
|
That's worrying. Does |
Dang. How about |
Are the artifacts on her arms and legs consistent or do they change/flicker? |
How to use your save file? |
As the visuals are that broken right now, it doesn't matter. Anyways, within the launcher, open the "configuration" tab, and select "show data location", it will (hopefully) open your file manager at the user data folder. There's a folder |
a video for bfee7da |
Huh. That video is actually interesting. How about |
Uhm... I'm sorry to say, but that's probably a bug either with the driver or the graphics card. The video shows stuff that shouldn't be possible with the overall changes in that commit. There's nothing more I can do, sorry. |
I saw the same issue with RX5700XT, also on Linux (Mesa 22.2.5). I investigated a bit using apitrace, and for what it's worth it seems to have something to do with the use of bindless textures in the vsm-square-pass. I did a little hack to force using traditional texture binding for this pass. It fixes the glitches on my machine. Here's a patch that can be applied on cd05510: https://gist.github.com/Magnutic/af0b45766530acdfee0c86707fb6e53e (Disabling AMD debug output was needed to make apitrace work.) There are also glitches when using the edge-outline outline. I suppose the same underlying issue may be the same, but I have not investigated that. |
As it turns out, it's valid, as written in issue 12 in the ARB_bindless_texture specs. |
It might be that flooding the code base with a lot of |
@legluondunet @Magnutic could you check whether the current revision reduced or, even better, resolved your issues? That would be awesome. Thanks in advance! |
just tested, no changes. |
Thanks for the feedback. This is unfortunate. I'm currently working on refactoring the engine to Vulkan, but it's a lot of work, and I'm just scratching the surface. |
Hello,
I just compiled today's git croftengine on Linux.
Three things:
failed to load translations for QLocale(French, Latin, France) / "fr_FR"
Where could I find this translations files?
This glitches follow Lara when she runs.
I tried to report this issue on youtrack but it seems I haven't permission to do that.
Thank you for your help.
The text was updated successfully, but these errors were encountered: