[Bug]: Inverted Normals on Stage Transition Animation Models
Tweaks version
outrun2006tweaks-c5409134ef8e0b393ee8bce03fdfb6082c412e8d
Describe your issue here (please attach the OutRun2006Tweaks.log file with your report, you can drag+drop it into the text area)
Stage Transition Animations have inverted Normals only when turning right on a junction. Don't know if this applies to all, but the UFO animation was the easiest to spot. Afterburner is def also affected.
Left Turn:
Right Turn:
EDIT: This bug also affected the og xbox version, notice the red stunt plane, the blue stripes on the wings are supposed to be on the top:
Left Turn:
Right Turn:
I'm sure this is no surprise, but on arcade these animations of course play correctly, they also play mirrored when going right, so that much is correct in 2006: https://youtu.be/cHVtCBSY-QA?t=106
What a strange bug. emoose pushed a lighting fix on the same day you reported this, have you tried seeing if that fixes it?
What a strange bug. emoose pushed a lighting fix on the same day you reported this, have you tried seeing if that fixes it?
The tweaks version I'm using is the character lighting build, so yes. I also added that the xbox version was also affected by this bug when it had correct character lighting, so it's something else sadly.
Ah might have found cause for this, when on right side the game sets a flag on the model (and also inverts matrices to let it show up on right side), preventing flag from being set while keeping the matrices inversion seems to help fix it.
Not really sure why this flag is causing the issue though, afaik with it set the game is meant to cull backside vertices (via D3DCULL_CCW), but somehow this causes the issues in OP - Lindbergh also seems to work mostly the same but doesn't have the same issue somehow, odd.
Hopefully none of the anims depend on the flag being set somehow, had a look through most of them and didn't see anything broken (some reason I couldn't get balloons to display though, pretty sure those did have normal issues before as well...)
If anyone wants to try here's a build that'll prevent flag being set: OR2006Tweaks-FlagRemoval.zip (if this crashes on launch make sure to update VC redist)
If anyone manages to get balloons to show properly with it let me know, otherwise I guess we could add some check to make them keep the flag.
If anyone manages to get balloons to show properly with it let me know, otherwise I guess we could add some check to make them keep the flag.
Quick test and Stunt Planes and UFOs work correctly now when turning right. I haven't checked left turns much yet, but balloons seemed to work on left turns atleast, have yet to see them on right turns.