Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lighting tweaks #25

Merged
merged 4 commits into from
Jun 8, 2024
Merged

Conversation

Lehm2000
Copy link
Contributor

@Lehm2000 Lehm2000 commented Jun 4, 2024

This PR is a bit subjective. There are certain areas of the game that look way too dark IMO. This was due to the textures that are used as primary light sources in these areas are not marked as lights in the code. The main culprit being metl126. It is used as a primary light source in several places. Most notably the big room at the beginning of level 2.

Rebirth:
scrn0000
Raytraced v1.1
scrn0003
Raytraced v1.1 with metl126 emissive increased (blotchy looking)
scrn0004
This PR with metl126 marked as a light
scrn0005

I also added additional lights for a series of lights on the metl materials:
Before
scrn0050
After
scrn0046

Before
scrn0051
After
scrn0047

These lights are on a base material and required updating RT_ExtractLightsFromSide to also look for lights on base materials as well as overlay. It didn't add any noticeable increase in level load time.

I also took the opportunity to tone down a few of the other lights where the texture itself is small but the light was just as bright as the others, it just looked a bit overbright in a few areas (this one is especially subjective), willing to remove this. The other changes are more important I think.

Copy link
Collaborator

@SamBoots SamBoots left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the screenshots this is a clear improvement.

I will play through the game a bit with this CL and approve it.

Copy link
Collaborator

@SamBoots SamBoots left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I may have missed some stuff but I think this is better.

If people notice that the lighting is a bit overbright and mention this then we should try to revert it. But from what I know people mainly dislike the darkness in certain areas. This PR fixes it.

Accepted.

@SamBoots SamBoots merged commit e656112 into BredaUniversityGames:main Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants