Page 1 of 1

Large explosions visible around doors

Posted: Thu Aug 10, 2006 4:50 am
by R.K.
Explosions from wizard's eye lightning are large enough that a few red pixels are visible above the top of closed doors.

Posted: Thu Aug 10, 2006 11:29 am
by George Gilbert
Just wait until you get deeper - the more powerful fireball explosions go much higher over!

Seriously though, this is something that has been noticed before, but theres very little that can be done without severe performance restrictions (or by changing the explosion graphics to be smaller).

What's happening, as I'm sure you realise, is that the explosion is drawn and then the door is drawn on top of it, but the explosion graphic is larger than the door graphic so the latter doesn't fully cover the former up. From the point of view of the engine (which has just been told to draw two graphics, which it's then done), everything is correct - but I agree from a human interpretation it looks wrong.

Of course, the explosion could be clipped to reduce it's size below that of the door; but if you think about it, that's extremely hard to do. For example, if the door frame wasn't snug to the wall at the edges, but instead free-standing with a small gap to the wall, then you *wouldn't* want to clip the explosion as it genuinely should be displayed around the edges. The difference between the two sets of door frame graphics (one snug to a wall, and one free standing) would be very hard for a computer to work out as it relies on human 3D perception of a 2D image.

To take a less extreme example, consider an explosion against the doors in the DM-II thicket (which are only 3/4 height). Again, whilst as a human it's easy to determine which bits of the explosion should be drawn and which bits shouldn't, it's much harder to do by computer using only 2D information.

Anyway, all that rambling means is that whilst I agree it looks wrong, I don't think I can easily fix it (without adversely affecting performance). As it's only a cosmetic issue (rather than it affecting gameplay in any way), I'm therefore inclined not to fix it.

Posted: Thu Aug 10, 2006 12:09 pm
by Lunever
Maybe it would help a little to have the explosions bitmap size increase logarithmically so it will approach the size of the current default doors, but never surpass it. The size of most explosions except the biggest ones would be largely unaffected by this.

Posted: Thu Aug 10, 2006 12:13 pm
by George Gilbert
Lunever wrote:Maybe it would help a little to have the explosions bitmap size increase logarithmically so it will approach the size of the current default doors, but never surpass it. The size of most explosions except the biggest ones would be largely unaffected by this.
It already does this (or actually, it does it via a power law - logarithmically would make it worse!).

Posted: Thu Aug 10, 2006 12:16 pm
by George Gilbert
Of course, with the "door" bug now fixed, in practice, you'll very rarely encounter an explosion against a door...

Posted: Thu Aug 10, 2006 12:56 pm
by Gambit37
I thought it looked weird too, but having seen it a few times actually quite like the effect -- really shows how powerful those spells are! ;)

Posted: Thu Aug 10, 2006 2:43 pm
by beowuuf
Well, the fix could be to change the door frame graphics to have them cover the roof area too.. would that work?

Posted: Thu Aug 10, 2006 6:49 pm
by Sophia
No! Then you're bound to using a certain roof with a certain door frame! Yuck!