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

r_wateralpha < 1 rendering issues #210

Open
fhomolka opened this issue Aug 9, 2023 · 4 comments
Open

r_wateralpha < 1 rendering issues #210

fhomolka opened this issue Aug 9, 2023 · 4 comments
Labels
enhancement New feature or request Quake Anything related to Quake I, addons, and mods for said game

Comments

@fhomolka
Copy link
Contributor

fhomolka commented Aug 9, 2023

Games Tested: Quake 1
r_wateralpha has a few issues.

  • At a distance, the brushes behind the liquid are not drawn unless the player or an entity casting light are near it. This causes the transparent, warping texture, to appear smeared.
    Smeared:
    fte-20230809134112-0
    Light in water:
    fte-20230809134119-0

  • At some parts of the map, it acts as straight up wallhacks. The specific case seems to be that there must be only the void between the space the player is in, and the loaded space
    clipboard

@shpuld
Copy link

shpuld commented Aug 9, 2023 via email

@fhomolka
Copy link
Contributor Author

fhomolka commented Aug 9, 2023

Ah yes, you're right!
Okay, the issue is different, then: FTE should probably warn if the map isn't water-vised, since the game is technically working correctly.

@eukara
Copy link
Contributor

eukara commented Aug 10, 2023

I am not sure there is a way to figure out if something is patched with watervis. How watervis works is like this, you take a .bsp and run the vis tool over it again, which is patched to ignore any water-prefixed-brushes during its calculation. It's making the map slightly less optimized so we can have transparent water not produce a hall of mirrors. There's no universal way to detect that has taken place. It just shakes up the portals within the maps.

Edit: Response from Spike:

<Spoike> I wrote some code to detect it.
<Spoike> qss certainly does so
<Spoike> general rule is to check if some underwater leaf can see any above-water leaf.
<Spoike> if it can then its watervised.
<Spoike> problem is that water and tele textures are both water, and if someone's using weird settings then you can get false positives.

@fhomolka
Copy link
Contributor Author

Yeah, QSS has some detection. The message there says "Map might not be water-vised", which is fine. This will usually appear in older maps, since most modern map compilers will watervis. So, it's one of those "is it worth it" deals

@Xylemon Xylemon added enhancement New feature or request Quake Anything related to Quake I, addons, and mods for said game labels Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Quake Anything related to Quake I, addons, and mods for said game
Projects
None yet
Development

No branches or pull requests

4 participants