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
fix garbage lines on some sprites #1398
Conversation
I think I have seen the black horizontal lines merely move from the top to the bottom of the sprite with this approach. Will have to check again when I'm at home. |
Indeed, with this fix I get a black line at the bottom of the sprite: |
Nope, this is the only change: $ git diff
diff --git a/src/r_things.c b/src/r_things.c
index c998b20..6a64ff4 100644
--- a/src/r_things.c
+++ b/src/r_things.c
@@ -441,7 +441,7 @@ void R_DrawVisSprite(vissprite_t *vis, int x1, int x2)
else
colfunc = R_DrawColumn; // killough 3/14/98, 4/11/98
- dc_iscale = abs(vis->xiscale);
+ dc_iscale = abs(vis->xiscale) + 1;
dc_texturemid = vis->texturemid;
frac = vis->startfrac;
spryscale = vis->scale;
(gdb) p video
$1 = {
width = 1278,
height = 600,
pitch = 1920,
unscaledw = 426,
deltaw = 53,
xscale = 196608,
yscale = 196608,
xstep = 21846,
ystep = 21846,
fov = 1267733622
} Interestingly, the line vanishes if I switch off widescreen rendering: (gdb) p video
$2 = {
width = 960,
height = 600,
pitch = 1920,
unscaledw = 320,
deltaw = 0,
xscale = 196608,
yscale = 196608,
xstep = 21846,
ystep = 21846,
fov = 1073741824
} |
This is probably what Killough meant with this comment: Lines 375 to 377 in 093dad5
|
Interesting that #1400 affect this issue (it seems to be improved). I believe the problem is in |
Doesn't really change much for me. |
Right, for some reason it's harder for me to catch this. For example, your save doesn't show any black lines, only after some turning. |
This approach doesn't work. I tested this WAD in Eternity and it too has black lines on this sprite. I think the problem is rare, so we can postpone it. |
Fix #1392
This problem is not easy to spot, the fix is the same as for pspr sprites.
Save: woofsav0.zip WAD