Page 1 of 1
[fixed] sprite clipping issue with 3-d water
Posted: Mon Jul 24, 2006 19:27
by Nash
EDIT: Link removed. Instead, I've attached the file a few posts below.
Observe the Baron while you're outside the water. Lighting appears to be correct. Top half is bright, bottom half is dark (because the model sector's lighting is dark).
However, look closely. It appears that the bottom half of the Baron (the half that is under the water) is drawn in FRONT of the 3-d water. It just looks weird.
Now go underwater and look up to the Baron. Lighting is still correct... BUT the bright portion of the Baron is drawn in FRONT of the 3-d water. Shouldn't it be behind instead?
Posted: Mon Jul 24, 2006 21:16
by Graf Zahl
Your link doesn't work.
Posted: Mon Jul 24, 2006 22:08
by Nash
Sorry, I forgot to upload the file.
Okay, uploaded. Link should work now.
Posted: Tue Jul 25, 2006 0:10
by Graf Zahl
No. Same error as before:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator,
support@powweb-inc.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Posted: Tue Jul 25, 2006 2:12
by Nash
Something appears to be wrong with the server I'm hosted on.
I'll contact the guy who owns it and once it's working, I'll be sure to post here again.
Posted: Tue Jul 25, 2006 16:04
by Nash
The server is totally screwed. Here, let me upload the file as an attachment instead.
Posted: Fri Jul 28, 2006 0:34
by NeoHippo
I looked and looked, and looked again, and I have come to the conclusion that GZDoom
renders the scene correctly. I pluncked an Imp in there as well, just to make certain.
In both cases, looking from above the waterline
and from below the waterline (here, one really has to look hard for it),
the translucent texture is in front of the monsters.
Posted: Fri Jul 28, 2006 1:01
by Nash
This is how it looks like for me.
In the top screenshot, it's very obvious that the Baron is drawn fullbright and without any blue tint/overlay at all because it's being drawn in front of the water.
If you look real close at the bottom shot, you'll see that the bright parts of the water are occluded by the Baron.
Posted: Fri Jul 28, 2006 8:33
by Graf Zahl
The bug only happens when 'smooth sprite edges' is on. Which is not the case in NeoHippo's picture.
Posted: Fri Jul 28, 2006 14:00
by Nash
Let me guess, it's another one of those Z sorting problem thingies (sorry I know nothing when it comes to 3-d graphics programming

)?
A lot of games and applications have all kinds of sorting problems when it comes to alpha transparency.
So this isn't fixable?
Posted: Fri Jul 28, 2006 14:02
by Graf Zahl
Sure it is fixable. But first I need to find the time to investigate.