Page 1 of 1

r666 Sprite borders sometimes showing

Posted: Mon Dec 21, 2009 20:04
by Enjay
Sometimes (and I'm not sure exactly when or why) the transparent bits of sprites are showing as black.

I have found one option that affects it. Switching on sprite edge smoothing gets rid of the black boxes.

Here's what it looks like:

Image

However, it isn't all sprites and it isn't all of the time.

Image

Sometimes just moving is enough to "toggle" the effect.

Image

Image

Although these pics are all of my Incas and that they all have translations, I have seen it with other untranslated sprites - eg a Hexen Demon. However, it seems very easy to repeat it with my mod for some reason (Burghead seems to show it reliably).

Going back to r663 (the most recent build that I had handy) fixes the issue.

[edit] For the sake of completeness, I had the presence of mind to screenshot this. Interestingly, I'd been playing for about an hour with no glitches prior to getting this.

Image

Well lit areas and possibly areas with sky do seem to show the effect more often, but I have seen it in duller areas with normal ceilings too.

[/edit]

Re: r666 Sprite borders sometimes showing

Posted: Mon Dec 21, 2009 20:25
by Graf Zahl
I added a workaround because I haven't found the actual problem yet. One setting gets destroyed elsewhere but with smoothed edges it's hardly noticable so until now it never showed clearly.

Re: r666 Sprite borders sometimes showing

Posted: Mon Dec 21, 2009 22:58
by Graf Zahl
I think I found the real cause for this so the workaround is gone before committing.

When a texture with an alpha channel was drawn one important state was not reset afterward.