-
-
Notifications
You must be signed in to change notification settings - Fork 362
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
Still strange rendering #3336
Comments
|
It looks to me as though the zbuffer clearing is just not happening on Linux. Perhaps the calls to glDepthRange used to clear it but for some reason they don't anymore? Do a quick test and find the call in the renderer where |
|
Not sure I follow. As far as I can tell, Or should I muck about in |
|
Hmm, damn that was my best guess. Basically I don't know why but it looks like on Linux the depth buffer is not being cleared. However I can't think of anywhere that has changed. The |
|
Perhaps something to do with #3306, as that does introduce changes to some of the code I looked at when following your advice. |
|
I've checked that before but I can't see any reason it would fail on Linux and not on Windows. Also there's no changes to the depth clearing. I need to try this out on a Linux machine and just debug it. |
|
Happy hunting! |
|
I am now having to compile older versions to find when the problem started. I'm totally baffled by this one :/ If you can find which version it actually started with that would help me greatly. |
|
Will do. |
|
Ok, I think you're right that it might come in with #3306 but I am baffled as to why. I can't see what would cause it. |
|
Just trying to find the specific commit from that range to see exactly what happened, maybe that will help me figure this out. |
|
@impaktor ok I can't find an intermediate commit between robn@84ef0d7 and robn@8b5c721 that will compile so it's going to be a case of figuring out why it doesn't work. The only other likely candidate is before the #3306 commits was 81e728f by me but I tested that one and it was ok. Could you verify my findings? |
|
Looking at it, it's almost like the z-ordering is reversed. It's too late tonight for me to do any more on this but I'll try to find some time asap. |
|
Hey @robn just wanted you to know about this bug we're having, I can't fathom why it's happening so wanted to loop you in for brighter ideas :) I had a couple of thoughts before bed last night like:
That last one though I would expect to affect all systems but it seems to only be certain Linux machines/builds. |
|
Do you have an AMD/Ati GPU? I just tried it (I have AMD GPU) and it's like everything is ok for the first frame, and trashed after that. |
But I can't swear it isn't using some integrated thing on the board instead of the graphics card. I've done zero setup on this machine. |
|
Damn, I was starting to hope it was we could track that way. |
|
Ok that's interesting, if I disable planet rendering then everything works ok. I wonder if this is state being persisted when it shouldn't. |
|
Is the repro is to start game, open BB, request launch, and note bits of terrain shape hanging around? If so, its working fine here on:
@fluffyfreak testing the first point means just shoving calls to |
|
Yeah I've eliminated everything else now. Nothing has changed in that section that I can see. Especially not with the dummy renderer changes. The biggest change I can see is an |
|
Yeah, that looks rather benign. Also couldn't reproduce it on the Mesa software renderer: @impaktor do you know how to drive |
|
|
|
hmm, I just get "Failed to set video mode". Guess I need the driver. |
|
Probably |
|
Yeah, I can't see anything interesting between those two commits either. The only vaguely interesting thing I saw (that is, enough to make me check some headers) is that |
|
Possibly range wrapping? I've seen that on some GPUs but not others to do with colours and alpha. |
|
Possibly. But hang on, that's SectorView (yeah, didn't read properly). What could the UI be doing to bollocks it up? |
|
Depth testing? Grr, but I still don't understand what's changed. |
|
Exactly, there's nothing that should affect what we're seeing. I find it rather telling though that it behaves differently for different makes/models of GPU/driver. |
|
That software rendering still doesn't work for me. I'll try again this evening. |
Never used it, but I can learn. Is it still needed, since the suspected commits don't compile? |
|
Bad @robn, non-compiling commits are EVIL! On Tue, Jan 27, 2015 at 12:17 PM, Karl F notifications@github.com wrote:
|
|
EDIT: |
|
Just like a married couple, I don't have much to add that hasn't already been said, but to project the illusion of a successful life together, I took git bisect out for a ride today on our drive way to impress the neighbours. These are my findings: 8b5c721 compiles, has the bug EDIT: Ops, wrong again, updated the list. What a surprise. (I don't know what we ever saw in each other to begin with.) |
|
Seems like I'm not good enough for anything other than taking out the trash (read: "close issues"). I was wrong in my findings, updated the list accordingly, in the "Edit". I reached the same conclusions as @fluffyfreak. (I want a divorce.) |
|
Will do, first thing tomorrow. |
|
Works. |
So a continuation of #3308, the BBS is fixed as I mentioned there, but world view is still strange.
(On latest master, 77bd4bb, GNU/Linux)
The text was updated successfully, but these errors were encountered: