Shadowmap flag on lines

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

User avatar
camaxide
Posts: 382
Joined: Thu Jun 11, 2015 8:38 am

Shadowmap flag on lines

Post by camaxide »

See viewtopic.php?f=4&t=56728&start=60 for original suggestion

The new shadowmap is a really nice tool, and it's been proving to make quite amazing impact on visuals when used right.
It'd however been very nice if two-sided lines could have a flag that allows you to set 'block light/block shadowmap' so that the shadowmap calculation would threat the two-sided line as if it was a 1-sided blocking line (without any of the other side-effects of making a line one-sided). According to DpJudas this would be really easy to implement from shadowmap calculations side of it, though not sure how tricky it is to implement a new flag to lines. And finally it would also need to be implemented in the gzdoombuilder, which likely is a breeze to do once the line-flag is in place in gzdoom.

There are a number of places where such a feature would be very handy (like columns built up from meeting floor/ceiling to allow different upper/lower texture, bottom room in 3-dfloors with a column only covering the bottom room blocking a light that anyway does not reach upper floor etc. etc.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Shadowmap flag on lines

Post by Graf Zahl »

The main question here is, how static is the list of lines for the shadowmap calculator? Is this collected only once at map startup or can this be changed at run time without unreasonable overhead? If changing is possible, it may be better do handle most cases dynamically. That could also be useful for polyobjects.
dpJudas
 
 
Posts: 3037
Joined: Sat May 28, 2016 1:01 pm

Re: Shadowmap flag on lines

Post by dpJudas »

At the moment it only builds the AABB binary tree once, but there's nothing that prevents us from updating the tree and then re-upload it. We might get a slightly less balanced tree out of it, but I don't think it will be much of a problem, especially if we only do it for stuff like polyobjects.
User avatar
camaxide
Posts: 382
Joined: Thu Jun 11, 2015 8:38 am

Re: Shadowmap flag on lines

Post by camaxide »

if it can update, then it would be nice to be able to toggle the flag on these lines - so if you have bars that lock off an area, which can then block light and cast a nice shadow - this shadow could be easily removed when the bars are raised etc.
Post Reply

Return to “Feature Suggestions [GZDoom]”