Page 1 of 1

[1.1.0, r52] Transparency and horizons

Posted: Fri Mar 07, 2008 2:24
by Kate
I'm not sure if this is easily reproducable but I seem to be able to get it consistently on certain maps in my project.

When a line_horizon line is in view and smooth sprite edges is enabled, the sprites completely lose their edges at all. But the real problem is that if there's a PNG that uses translucency, it loses it's translucency altogether and becomes a solid square, though the sprites in question have the renderstyle set to ADD and the alpha to 1.0 so you need a png sprite assigned to a thing with those settings to get it to happen.

Posted: Fri Mar 07, 2008 12:28
by Graf Zahl
Can you please make a demo map for the effect?

Posted: Thu Mar 20, 2008 21:27
by Kate
Whoo, that was a difficult bug to reproduce, but I got it. Here. The exact conditions need to be met for this alpha bug to occur:
  • It must be a projectile
  • It must have RenderStyle_ADD
  • It must have an Alpha of 1.0
  • There has to be both sky and line_horizon visible at once

Posted: Thu Mar 20, 2008 23:34
by Graf Zahl
Thanks. That info helped find the problem. The render style used for additive things with an alpha of 1 doesn't work for anything with an alpha channel.

Fixed.