OpenNaja / cobra-tools

A suite of GUI tools for extracting and modifying OVL and OVS archives, as well as editing the associated in-house file formats. Also includes a model plugin for Blender. For downloads, guides, and FAQs visit:
https://opennaja.github.io/cobra-tools/
GNU General Public License v3.0
98 stars 28 forks source link

Planet Zoo: Inconsistent normals from falsely identified mirrored UV (Again) #273

Closed SleepyEngi closed 1 year ago

SleepyEngi commented 1 year ago

Describe the bug It seems the bug with mirrored UV flag causing normals to invert is back again for a third round

To Reproduce Steps to reproduce the behavior: In this case, I made a scenery item from a animal material and model, but it should be identical to an actual animal. The object layout consists of the main body, which has no mirrored UVS, a model for the eyes (with mirrored uvs) and a model for the tusks/teeth/tongue (also with mirrored uvs) after checking it in-game, the normals seem inverted once again, after the issue had been fixed not long ago several times

Expected behavior A clear and concise description of what you expected to happen.

Screenshots image Inverted normals in-game image Correct normals in blender after importing the model

Version Info:

Exported MS2 in question: php_reconstructions01.zip

HENDRIX-ZT2 commented 1 year ago

when I import that ms2, and export it again, the bitangent bit is cleared

HENDRIX-ZT2 commented 1 year ago

For reference, the selection of another UV layer broke it. Needs to use the first, which is now set to me.calc_tangents(uvmap="UV0")