iimachines / Maya2glTF

Maya to glTF 2.0 exporter
MIT License
324 stars 49 forks source link

Maya "reshade" bug. #19

Open psurace opened 6 years ago

psurace commented 6 years ago

Hey There! First, thank you for this plugin. It works great so far, the flow from Substance to Maya and out to glTF is fantastic.

I was experiencing this small issue. I have a model I wanted to test with 3 different sized maps. I assign the PBR, the window pops up asking for all the "textures" I select them and perfectly it exports the mapped model as a glTF.

When I go back to "change the maps" in the shader I experience odd things such as, "Roughness" appears to have "Normal" mapped to it, yet "Normal" also has a "Normal" mapped to it. Seeing that, my instinct was to delete the shader and start over (which is fine with me). What happens now though is the new assigned shader comes in and assigns but we don't get the dialogue to "select" maps anymore.

My solution as of now has been to quit Maya and restart all from the top and it works that way just fine.

Also one small detail, is there any way the extension can write out as "gltf" instead of "glTF"? some viewers are rejecting the files as "glTF" and it's got to be renamed to "gltf".

Again thank you for these scripts!

-Patrick

ziriax commented 6 years ago

Thanks for trying out Maya2glTF

I will make a release that outputs as gltf.

I don't completely understand the other part of the issue.

So, if you assign a shader the first time, it works fine, all the textures go into the correct attributes?

But when you assign it again, some go into wrong slots?

Or what do you mean with "change the maps"?

Could you provide the filenames (not be files) of your textures?

Thanks!

ziriax commented 6 years ago

@psurace I closed this issue by mistake, reopened it.

psurace commented 6 years ago

Ziriax, not a problem at all. Thank you for the "gltf" fix, really appreciate it!

So, when I assign the shader the first time, everything works perfectly as it should. If I choose to leave that shader on and "swap the images" using the map assignments in the gltf shader when I click the icon for Roughness map, the path to it shows to the image is a "normal" map. So when I saw this I deleted the shader and reassigned fro your plugin gui, when I do that I don't get the option to "select" map images again. Restarting Maya and starting over it works.

Hopefully I have explained this better. It's an odd one to explain/visualize!

Thank You,

-Patrick

ziriax commented 6 years ago

That is really odd. I will try to reproduce this. What version of Maya are you using, including service pack/update number?

psurace commented 6 years ago

Hi Ziriax I'm in Maya 2018.2.