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

Scale geomod crater texture PPM based on its resolution #293

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GooberRF
Copy link
Contributor

This PR adjusts the pixels per metre (PPM) value applied to geomod craters at creation such that it scales based on the resolution of the crater texture. Base game behaviour is to use a static PPM value of 32.0.

This is beneficial because custom geomod textures (either via HD texture mods or configuration by level author in Level Properties) will now display correctly. Stock game behaviour stretches them out if their resolution is >256. The new behaviour in this PR scales them based on the game's established standard of 32 PPM at 256px resolution. As a result, this PR has no effect whatsoever unless you either have a clientside mod that replaces rock02.tga or you load a map configured to not use the default geomod crater texture.

Resolves #69

Here are some screenshots showing the behaviour with this PR:

256x256 crater texture (default)
20241020_004241_glass_house

512x512 crater texture
20241020_004159_glass_house

8192x8192 crater texture
20241020_004040_glass_house

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.

Method to fix UV scaling for high resolution geomod textures
1 participant