Bitmask exclude sectors from dynamic lights

Moderator: GZDoom Developers

User avatar
Caligari87
User Accounts Assistant
Posts: 5989
Joined: Thu Feb 26, 2004 3:02 pm
Discord: Caligari87#3089
Github ID: caligari87

Bitmask exclude sectors from dynamic lights

Post by Caligari87 »

So I'm not sure if this was ever addressed (I'm not around much), but a little over a year ago, there was a short discussion where Graf mentioned it might be possible to use bitmasking to exclude certain parts of a level from certain dynamic lights. Thread/post in question.

Graf Zahl wrote:How about adding a bitmask property to linedefs, sector planes and light things (both map placed and attached to other actors, so that lights get discarded if both bitmasks ANDed together are not 0? That'd give mappers some control over certain parts of the map that get excluded by certain dynamic lights


Since we're unlikely to get actual shadow-casting, this seems like a reasonable in-between at least for static level lights. Thoughts?

8-)
Zanieon
Posts: 2059
Joined: Tue Jan 13, 2009 4:13 pm
Discord: Zanieon#3177
Twitch ID: Zanieon
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD with Vulkan Support
Location: Somewhere in the future

Re: Bitmask exclude sectors from dynamic lights

Post by Zanieon »

/\
/\
/\
/\
/\
THIS! Please.
Image
User avatar
ibm5155
Posts: 1268
Joined: Wed Jul 20, 2011 4:24 pm

Re: Bitmask exclude sectors from dynamic lights

Post by ibm5155 »

It could be nice too if the inverse could happen too, a floor/ceiling/wall can only be affected only by a single dynamic light
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 47962
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Bitmask exclude sectors from dynamic lights

Post by Graf Zahl »

Zanieon wrote:THIS! Please.
Image



What?
You want me to implement a cat in ZDoom?
I'm afraid, that's not possible! :mrgreen::twisted:
User avatar
ibm5155
Posts: 1268
Joined: Wed Jul 20, 2011 4:24 pm

Re: Bitmask exclude sectors from dynamic lights

Post by ibm5155 »

Oh no, cat's eyes have failed, you human? D:
Zanieon
Posts: 2059
Joined: Tue Jan 13, 2009 4:13 pm
Discord: Zanieon#3177
Twitch ID: Zanieon
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD with Vulkan Support
Location: Somewhere in the future

Re: Bitmask exclude sectors from dynamic lights

Post by Zanieon »

Graf Zahl wrote:What?
You want me to implement a cat in ZDoom?
I'm afraid, that's not possible! :mrgreen::twisted:


Of course! Why not? A Cat in ZDoom would be very nice, you can die 7 times per single-player match, do high jumps, propel in walls to do parkour and things of the kind :D
User avatar
Mikk-
Posts: 2269
Joined: Tue Jun 30, 2009 1:31 pm
Discord: Mikk0451#3922
Location: Somewhere off Kanagawa

Re: Bitmask exclude sectors from dynamic lights

Post by Mikk- »

MBF helper cats
User avatar
Caligari87
User Accounts Assistant
Posts: 5989
Joined: Thu Feb 26, 2004 3:02 pm
Discord: Caligari87#3089
Github ID: caligari87

Re: Bitmask exclude sectors from dynamic lights

Post by Caligari87 »

The fact that Graf commented on this to make a joke about the cat instead of saying "No" gives me hope. And warm fuzzies inside. :wub:

8-)
User avatar
Jaxxoon R
Posts: 772
Joined: Sun May 04, 2014 7:22 pm

Re: Bitmask exclude sectors from dynamic lights

Post by Jaxxoon R »

Zanieon wrote:you can die 7 times per single-player match,

What kind of cats you been livin' with? I hope you kept the receipt on those things, cuz that's about two lives too short.
User avatar
ibm5155
Posts: 1268
Joined: Wed Jul 20, 2011 4:24 pm

Re: Bitmask exclude sectors from dynamic lights

Post by ibm5155 »

I hope Graf is touching this code so bad ;--;
Monsterovich
Posts: 59
Joined: Sat Apr 12, 2014 11:10 am

Re: Bitmask exclude sectors from dynamic lights

Post by Monsterovich »

So I'm not sure if this was ever addressed (I'm not around much), but a little over a year ago, there was a short discussion where Graf mentioned it might be possible to use bitmasking to exclude certain parts of a level from certain dynamic lights.


SHADOWS! Please.
Image

Oh, I forgot that gzdoom 2.0 is not working anymore.

Return to “Closed Feature Suggestions”