Sun light source
Moderator: GZDoom Developers
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49073
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Sun light source
Portals only matter if geometry shadows come into play.
- Tormentor667
- Posts: 13534
- Joined: Wed Jul 16, 2003 3:52 am
- Contact:
Re: Sun light source
Commenting this to keep track
Re: Sun light source
I created a sunlighttest branch for this in the gzdoom repository. At the moment it uses a global sunlight source that can be calibrated with some CVARs.
The visuals on that branch make it pretty clear that we can't apply this ever to old maps (not that it was suggested, just saying). We also probably can't get away with a single global setting - I think we probably need to apply it on a per sector basis or something.
The good news is that at least with the test map Nash provided it gives a pretty good visual improvement.
Edit: The sunlight on the test branch also doesn't do diminished light on the sunlight. It probably needs to do that in a final version or the contrast between the back (sector light) and front (sun) won't remain the same there.
Edit 2: after toying a bit with it with fake contrast turned off, and with the gl_sunlight_str set to 0.25, it actually looks better than fake contrast in some situations. I do wonder how that will look once it takes diminished light into account.
The visuals on that branch make it pretty clear that we can't apply this ever to old maps (not that it was suggested, just saying). We also probably can't get away with a single global setting - I think we probably need to apply it on a per sector basis or something.
The good news is that at least with the test map Nash provided it gives a pretty good visual improvement.
Edit: The sunlight on the test branch also doesn't do diminished light on the sunlight. It probably needs to do that in a final version or the contrast between the back (sector light) and front (sun) won't remain the same there.
Edit 2: after toying a bit with it with fake contrast turned off, and with the gl_sunlight_str set to 0.25, it actually looks better than fake contrast in some situations. I do wonder how that will look once it takes diminished light into account.
Re: Sun light source
@dpJudas sprites seem to be unaffected by the additional sun light...
Re: Sun light source
Hmm yes, forgot to apply them to the sprites. Not sure how they should apply, though, since they billboard - could of course use the angle of the billboard, but would that look good?
Re: Sun light source
Actually, my bad - I had accidentally set the intensity too high during my tests when I reported to you. You should probably revert that 50% brightness sprite fix for now, it doesn't look good... sorry!
Re: Sun light source
Figured as much, but seeing is believing.
- Tormentor667
- Posts: 13534
- Joined: Wed Jul 16, 2003 3:52 am
- Contact:
Re: Sun light source
Can you share screenshots?
Re: Sun light source
Seconded, this interests me greatly.
- Major Cooke
- Posts: 8176
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
Re: Sun light source
This is a highly experimental feature. I wouldn't expect screenshots for a while.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49073
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Sun light source
I'm still not sold on making this solely a sector property. I think it'd be better to have sunlight as a sky property as well that automatically applies to all sectors with the given sky as its ceiling. Otherwise it might become too clumsy to edit.
- Major Cooke
- Posts: 8176
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
Re: Sun light source
I need the sectors version for Doomwinia. The terrain takes on different colors.
Here's a video of Darwinia (mute the sound, I have an annoying sound pack installed) with different colored patches of terrain.
(Hell, you don't even need to play it -- you can see the different colors up front on the preview!)
Here's a video of Darwinia (mute the sound, I have an annoying sound pack installed) with different colored patches of terrain.
(Hell, you don't even need to play it -- you can see the different colors up front on the preview!)
- Tormentor667
- Posts: 13534
- Joined: Wed Jul 16, 2003 3:52 am
- Contact:
Re: Sun light source
I don't get the difference between the screenshot and normal fullbright sectors
Re: Sun light source
The fact that there is any shading at all aside from SSAO on those models is a big difference. The thing, I think, that makes it not look so good (other than the gamma setting in those shots), is that there isn't any noticeable darkening on the sides opposite the sun source.