-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Outrun 2006 Lighting Bug: Every cars' colours are wrong #5506
Comments
What happens if you disable lighting when it's drawing the reflection? You might have to keep disabling it. Just double click Lighting under Flags until it's 0. -[Unknown] |
If i remember correctly , set the vfb->format == fmt , fixes the color issue here but breaks Kingdom Heart.
|
@unknownbrackets: When lighting is disabled, the car is drawn correctly, but without the "shininess", of course: For comparison, here's the bug: |
It'd be great to see all the values from the Lighting tab. -[Unknown] |
When it's first drawn as yellow (no reflection yet): When the car has the reflection drawn on it: |
When the reflection is drawn: Vertices (raw box UNchecked): https://gist.github.com/thedax/fce4a59e888e49a784ac/raw/0ebaa5acbf62640715c0f68e2b6df91dab5fed3b/gistfile1.txt Vertices (raw box checked): https://gist.github.com/thedax/e7baa5ff3be2f32f866f/raw/23db740bcd176e2c22dc88031c1e1a699a72c1fb/gistfile1.txt Lists tab: Start PC PC Stall State Started Interrupted |
So it's obviously making the car shiny using an environment map, which might be dynamic. If we are rendering to that environment map, maybe that's when we have the wrong colors? |
Is there a simple way to check for an amateur like me? |
if i try to shuffle 0.5 , it did show the yellow shinning .
|
Non-buffered rendering is irrelevant because it's a performance hack that skips all rendering to textures, so things like this will break. It's only interesting if it's broken with buffered rendering. Which is seems to be given your two last images, so okay :) |
Um..this wasn't fixed with that commit, it was just mostly corrected. See #5612 (comment) for how it looks now. |
Autoclosed, sorry. |
Ah, right. I forgot Github does that. It's okay. |
Quick update, this affects Direct3D9 as well, and the issue is still happening on the latest builds with both backends. |
Yet another update: somewhere along the way, OpenGL lost the environment mapping on the cars, making them look dull and flatly shaded, while Direct3D9 continues to have shiny cars with the wrong colours. if you'd like me to bisect to find where OpenGL went astray, I can. |
While I'm on the subject of updating some of my old issues, this one is still present, with one minor new piece of info: Vulkan suffers from the same missing environmental mapping as OpenGL (which is expected :) ). Direct3D9 still has shiny cars, but bad colours on small parts of the cars (e.g. where bumpers or chrome pieces are). |
Same issue with Dirt 2 same problems with the skins of the cars showing incorrect colours. |
Update on this with the latest commit ( 562c5f6 ): Cars are still missing their reflections/environment maps on all backends, but software rendering appears to display them correctly. However, as far as I can tell, the original issue of "every car has the wrong colours in Outrun 2006" has been fixed on all backends (on Windows), so I think it might be worth making a new issue for it and closing this one, so new info can be gathered; I'll let Unknown decide on that though. |
Interesting. I wonder when it improved - maybe whatever change fixed that could lead us to a reflection fix. I am a fan of a new issue, to avoid getting lost on comments. But I don't think it's important either way. A GE debugger dump might help for the reflection issue. Especially interesting: if you create the dump while on software, does it work on hardware? If yes, it's almost definitely a framebuffer effect or upload/download. If it still doesn't work, then it's some mishandled state. -[Unknown] |
From what i saw, yes, the dump made on software works on hardware. Here are two dumps I took, one on Vulkan (hardware) and one on Vulkan (software): That being said though, let's move this over to a new issue. |
Yeah, the texture is blank. It seems to use a 4444 texture using tex env mapping. I'm guessing it's an upload of some kind - I'm not sure where, though. It could be 0x040cc000. -[Unknown] |
Blank texture data in VRAM can of course also be caused by faulty render target downloads/writebacks... But let's add any further comments or research in the new issue instead. |
As a continuation of #2603, it makes more sense to begin parsing out the game's remaining separate issues into their own issues instead of one mega issue for everything wrong.
In this particular instance, nearly all of the cars in the game have the wrong colours.
Screenshots of all of the cars (in their default colours) from RHW: http://min.us/mbwKK55M1pdsCm
Screenshots of all of the cars (in their default colours) from PPSSPP: http://min.us/mbqcmIXrarTMEs
I'm currently unaware if they've ever been correct. I need to investigate. From a few screenshots I've seen of the game in JPCSP, the car colours appear to be correct.
The text was updated successfully, but these errors were encountered: