Skip to content

Problems with normals in Linux decoder  #736

@NicolasCharmel

Description

@NicolasCharmel

Hello,
First of all, thanks for the great job around gltf.

Draco appears to be inevitable to crosswork APIs.

But it seems that libdracodec_unity.so doesn't work properly.

The normals after decoding are not in the expected direction.
Here is a visual comparison :
this is a mesh with no compression at exporting from blender on linux mint.
no-comp

everything is ok.

and this is the same with compression at export, and decoded by libdracodec_unity.so :
comp+decomp

Here, there are artefacts as if the normal shader was not correctly set.

We tried exporting with normal compression at 0 instead of 10, and then, the result was better, but the file's weight was not reduced enough, and most of all, it still remained some little errors on the faces.

We also tried the same mesh with the same compression parameters and exported again from blender on the same linux system, but this time decoded on a windows system and it appeared to be clean, as if it had not be compressed-decompressed.
Our conclusion is that there is no problem with the compression step, but only with the decompression, and only on linux systems.

And of course, we tried the same comparison tests with several meshes.

Could be the libdracodec_unity.so bugged ?
I have to precise that I did the test with the last release found her in github.

Is there a hope that the file could be tested and fixed ?

Thanks a lot again.

Nicolas

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions