Large explosions visible around doors

Messages are moved here (should anyone ever want to see them again) once they are no longer applicable to the current version (e.g. suggestions that have been implemented or bugs that have been fixed).

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
User avatar
R.K.
Apprentice
Posts: 30
Joined: Sun Aug 06, 2006 10:58 pm

Large explosions visible around doors

Post 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.
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post 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.
User avatar
Lunever
Grand Druid
Posts: 2712
Joined: Thu Feb 14, 2002 4:47 pm

Post 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.
Parting is all we know from Heaven, and all we need of hell.
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post 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!).
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

Of course, with the "door" bug now fixed, in practice, you'll very rarely encounter an explosion against a door...
User avatar
Gambit37
Should eat more pies
Posts: 13715
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post 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! ;)
User avatar
beowuuf
Archmastiff
Posts: 20687
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Post by beowuuf »

Well, the fix could be to change the door frame graphics to have them cover the roof area too.. would that work?
User avatar
Sophia
Concise and Honest
Posts: 4240
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Post by Sophia »

No! Then you're bound to using a certain roof with a certain door frame! Yuck!
Post Reply