panda3d / maya-egg

Maya plug-ins for exporting and importing .egg files
0 stars 0 forks source link

Egg2Maya: Named UVs Unsupported #1

Open BartGunshot opened 3 years ago

BartGunshot commented 3 years ago

Converting an egg with named UV fields to maya produces a maya binary with broken UVs. For instance the top tag will convert with broken UVs but the bottom one will convert correctly.

<UV> UVMap { 0.802775084972382 0.206263214349747 }

<UV> { 0.802775084972382 0.206263214349747  }

Tested with maya 2018 and 2017.

rdb commented 3 years ago

Could you elaborate what you mean by "broken UVs"?

BartGunshot commented 3 years ago

On closer inspection there seems to be two separate issues here.

  1. Eggs with multiple UV fields will only import their first UV, not subsequent UVs. Only the first UV map will show up in Maya's UV sets editor as "map1" image

  2. Eggs with named UV fields will import and have a UV set in Maya (named "map1" regardless of the name in the egg), however the UV layouts will have all verts situated at 0,0.

Example: 1 unnamed UV/1 named UV on the left and 2 named UVs on the right. image What this should look like: (two textures overlapping with a multiply) image

Video showing the UV at the origin: https://i.gyazo.com/216cdcb3225a4107e1286b44428c2d3f.mp4