FOML icon indicating copy to clipboard operation
FOML copied to clipboard

Flipping V texture coordinate

Open thecodewarrior opened this issue 5 years ago • 0 comments

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.

thecodewarrior avatar Nov 04 '19 00:11 thecodewarrior