StjerneIdioten / I3D-Blender-Addon

Rewriting the I3D blender addon from scratch and adding long-sought community features
GNU General Public License v3.0
66 stars 18 forks source link

fix: tangent for skinned and merged mesh #210

Closed LKAMinco closed 3 months ago

LKAMinco commented 4 months ago

Fixed tangent setting for skinned and merged meshes.

StjerneIdioten commented 4 months ago

And this is needed for skinned and merged meshes?

LKAMinco commented 4 months ago

As I know every mesh that contains normal should have tangent. Also I have tested it and merged mesh is not rendered without tangent flag, if it contains normal map.

StjerneIdioten commented 4 months ago

As I know every mesh that contains normal should have tangent. Also I have tested it and merged mesh is not rendered without tangent flag, if it contains normal map.

Do you know if GE adds it to the I3D if you export without it and then save in GE? Because then it should definitely have it as I try and model the i3d format from whatever GE does 😂

LKAMinco commented 4 months ago

Nope, i3d converter haven't set that flag. What is interesting because it could be done automatically, probably something from old giants editor.

StjerneIdioten commented 4 months ago

Nope, i3d converter haven't set that flag. What is interesting because it could be done automatically, probably something from old giants editor.

What exactly do you mean by "I3D converter"?

LKAMinco commented 4 months ago

The I3D Binary converter that is used to convert xml to shapes. Same what does giants editor when u save it as binary. The important thing is that all meshes that have normal map needs tangent option.

StjerneIdioten commented 4 months ago

The I3D Binary converter that is used to convert xml to shapes. Same what does giants editor when u save it as binary. The important thing is that all meshes that have normal map needs tangent option.

Ah okay. I normally just check by opening the files in GE and then saving them again (not as binary) to see if GE adds any extra flags to the file. And that is what I consider to be the "most accurate" version of how the i3d file should be.

LKAMinco commented 4 months ago

Yes, but after export without that setting, u need to open i3d, then set it and, save it, which is annoying. It would be nice to have it work from Blender