[Won't change] "Light boxes" problem in enhanced night vision

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

"Light boxes" problem in enhanced night vision

Postby jablon1000 » Fri Jan 12, 2018 12:00 pm

I use a lot of mods but it seems like engine problem so i post it here. When using night vision googles around light sources you can see white boxes. I have toying with some options but notthing happen. I attach my ini file.




(21.92 KiB) Downloaded 13 times
Joined: 06 Jul 2017

Re: "Light boxes" problem in enhanced night vision

Postby Graf Zahl » Fri Jan 12, 2018 12:06 pm

The 'transparent' parts of these sprites are black with no alpha. When these get inverted they turn white. To handle this properly the sprites need to have an alpha channel. This cannot be handled by the renderer without very costly workarounds.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
Joined: 19 Jul 2003
Location: Germany

Re: "Light boxes" problem in enhanced night vision

Postby Rip and Tear » Fri Jan 12, 2018 12:52 pm

Would it be possible for a flag to be added that excludes the actor from being inverted for night vision?
User avatar
Rip and Tear
King of creative usernames
Joined: 02 May 2017
Operating System: Mac OS X 10.8 or later

Re: "Light boxes" problem in enhanced night vision

Postby Mikk- » Fri Jan 12, 2018 1:30 pm

GzDOOM's enhanced night vision only inverts classes that inherit from the class Inventory, or has the flags ISMONSTER, MISSILE or CORPSE
source: gzdoom/gl/scene/gl_sprite.cpp [line 948]

I guess Project Brutatlity marks those flare/smoke actors as MISSILE.
User avatar
Joined: 30 Jun 2009
Location: Somewhere off Kanagawa
Discord: Mikk0451#3922

Return to Closed Bugs

Who is online

Users browsing this forum: Yandex [Bot] and 1 guest