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

Make -renormalize work on the top mip-level too (opt-out option) #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

illwieckz
Copy link

@illwieckz illwieckz commented Jul 23, 2017

For Dæmon-based games like Unvanquished, we need to renormalize on the top of mip-level too.

Until now, we used an old crunch fork that was patched by @gimhael on this purpose, he said in that time:

Some tools scale the vectors in normalmaps to maximum length for
increased precision, but that breaks reconstruction of the z part
in DXN compressed normal maps. Passing -renormalize on compression
fixes those textures now.

This PR reports the change to upstream, making it as an opt-out option to not change the default -renormalize behavior.

Dæmon engine users can do crunch -renormalize -rtopmip to get the behavior they need.

gimhael and others added 2 commits July 23, 2017 14:38
Some tools scale the vectors in normalmaps to maximum length for
increased precision, but that breaks reconstruction of the z part
in DXN compressed normal maps. Passing -renormalize on compression
fixes those textures now.
Dæmon engine users can use -renormalize -rtopmip
@illwieckz illwieckz mentioned this pull request Feb 18, 2018
11 tasks
illwieckz added a commit to illwieckz/crunch that referenced this pull request Jun 16, 2019
FreeBSD: fix malloc in crn_decomp single header file
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.

2 participants