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

Flipping V texture coordinate #2

Open
thecodewarrior opened this issue Nov 4, 2019 · 0 comments
Open

Flipping V texture coordinate #2

thecodewarrior opened this issue Nov 4, 2019 · 0 comments

Comments

@thecodewarrior
Copy link

When exporting UV maps from Blender, the origin is in the bottom-left corner, opposite Minecraft's origin in the top-left, resulting in a vertically flipped texture. It would be really helpful if FOML supported an option to flip the V coordinate to correct for this.

From what I can tell you could either iterate through the texture coordinates after loading the model in OBJBuilder and set v = 1 - v, or you could store whether to flip the axis and flip them when baking the model.

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

No branches or pull requests

1 participant