sketchfab / Unity-glTF-Exporter

Unity editor wizard that exports to glTF Format
MIT License
117 stars 14 forks source link

[bug]it seem not explort uv2 from model . #27

Open sonygod opened 7 years ago

sonygod commented 7 years ago

it seem not explort uv2 from model . according the docs, it's can be show more than one channels options , but my model show nothing . image I'm sure My model have 2 channels.May be it's a bug.

AurL commented 7 years ago

Hi @sonygod,

Are both UVs imported and used in Unity ? Would if be possible to share the sketchfab URL so that I can check what has been exported and why you don't have the switch option ?

Thanks,

sonygod commented 7 years ago

https://skfb.ly/69TOt

sonygod commented 7 years ago

sorry,this model have no uv2 ,but there are some other issues.

the maintexture is not upload .

here is the originally result

image

but the gltf is not contain the maintexture of each meshrender

image

sonygod commented 7 years ago

https://github.com/sonygod/unityAssets/blob/master/Assets/testmodel.unitypackage

here is source package.

sonygod commented 7 years ago

https://skfb.ly/69Vvv

source file: https://github.com/sonygod/unityAssets/blob/master/Assets/fuqlbaach0055.unitypackage this model I'm sure have 2 uv channels image image image image

sonygod commented 7 years ago

hi,it's seem uv0,and uv1 was revert each other. https://skfb.ly/69VEw here is uv1

image

uv0 image

and in unity is use uv1 instead uv0,

what's wrong about that ?

AurL commented 7 years ago

Hi,

Sketchfab is handling UVs a such way that the index is often not relevant (i.e the order in the geometry is often different from the order in the dropdown on Sketchfab) , we are aware of this and it could be improved. Most of the time, everything should be set correctly so that you don't need to go in the 3D editor to fix settings like that. I downloaded your sample and will take a look, because this should be a seamless workflow.

Thanks for the samples and details!

sonygod commented 7 years ago

thank you for your attention, if you have time,please consider support our custom shader "Standard2" was include in sample package.