Page 1 of 1

[All?] Models can show through translucent sprites too much

Posted: Tue Oct 06, 2009 19:33
by Enjay
I'm not sure if this is actually a bug or just the way things are but I have noticed it for a while now so I may as well flag it up.

Image

That screenshot is of me getting a face-full of fireballs from Korax. However, notice all the dark spots on the ground? Those are flat-shaped models used to make blood splats on the ground that were generated when shooting Korax. For some reason, the models show through the fireballs more than the surrounding ground does. In case it is relevant, the blood actor is set to be slightly translucent too. The trees are also models and do not seem to show this effect.

If you need a test file I can make one up with a bit of time but I figured that you might know what is going on without it.

Re: [All?] Models can show through translucent sprites too much

Posted: Tue Oct 06, 2009 20:42
by Graf Zahl
I have an idea. Does this happen with all fog types or only with radial fog?

Re: [All?] Models can show through translucent sprites too much

Posted: Tue Oct 06, 2009 20:47
by Enjay
All fog modes including "Off".

Re: [All?] Models can show through translucent sprites too much

Posted: Thu Oct 08, 2009 8:14
by Graf Zahl
I'd need a demo map to check this.

Re: [All?] Models can show through translucent sprites too much

Posted: Thu Oct 08, 2009 10:14
by Enjay
Alright. when I get home I'll try to make something up that makes it easy to see. Dancing around Korax until you get the right kind of fireball explosion in your face and while all the blood splats are visible in the right place is a little annoying to try and replicate so I'll try and create a map that show it easily.

Re: [All?] Models can show through translucent sprites too much

Posted: Thu Oct 08, 2009 18:05
by Enjay
OK, here you go. A simple translucent fake fireball actor surrounding a bunch of the models spammed inside the ring of fireballs. Just load the pk3 and you should see the effect. Whilst making this, I have determined that the model actor being translucent is critical. If I make it opaque, then the effect vanishes.
testmodel.pk3
(16.71 KiB) Downloaded 53 times
Just in case it doesn't work for you, this is how the test map looks to me:

[spoiler]Image
Image
Image
Blood splats visible as if there was no fireball in the way but everything else is correctly obscured by them.[/spoiler]

Re: [All?] Models can show through translucent sprites too much

Posted: Thu Oct 08, 2009 21:20
by Graf Zahl
Fixed. The depth value used for sprite sorting was never set for models.