SaschaWillems / Vulkan

C++ examples for the Vulkan graphics API
MIT License
10.15k stars 2.01k forks source link

glTF loading from Blender 4.0 #1094

Closed Mikez2015 closed 8 months ago

Mikez2015 commented 8 months ago

Hello.

In my project I use your loading glTF files. It works correctly with files exported from Blender 2.8:

gltf_1

If I export the latest versions from Blender, I get this:

gltf_2

It can be seen, for example, that some of the coordinates flies to 0. This is definitely not a problem with Blender export, as I checked it with an online viewer - everything is ok there.

Please help.

Mikez2015 commented 8 months ago

I doing research. I found out that the "vert.jointIndices" contains incorrect values.

SaschaWillems commented 8 months ago

The glTF skimnning sample is a basic sample that shows how to do skinning. It's not a fully fledged, 100% correct loader. Please test in https://github.com/SaschaWillems/Vulkan-glTF-PBR instead. If the model doesn't work there either, I need the model file.