vpenades / SharpGLTF

glTF reader and writer for .NET Standard
MIT License
457 stars 72 forks source link

Export Obj #131

Closed Omega1975 closed 2 years ago

Omega1975 commented 2 years ago

I have created an Obj to gltf / glb converter which copies the data on vertices, textures and normals in the data structures of the sharpgltf library without modification. With several objects the export is correct but I have some problem with a model whose geometry is correct but not the texture mapping. How can I correct the mapping? DONNA2.zip

vpenades commented 2 years ago

your model loads just fine in windows viewer as you can see here: imagen

So the problem is in your side, not mine.

Omega1975 commented 2 years ago

yes, I agree but how can I correct the texture mapping to get the same result. I am attaching the export in glb format base.zip .

vpenades commented 2 years ago

Wavefront OBJ has the texture V coordinate inverted, that is, from bottom to top.

Please, learn about the formats you use before using them.

Omega1975 commented 2 years ago

Thank you very much.