iimachines / Maya2glTF

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

Parameters textures no longer showing #159

Closed CodeCodeCodeCodeCodeCodeCode closed 3 years ago

CodeCodeCodeCodeCodeCodeCode commented 3 years ago

I was exporting .gltfs just fine yesterday and today when I try "assign PBR shader to selection" and select my texture files, the texture files don't show up in the Parameters section and the model looks green.

I tried reinstalling and turning on the Plugin. Any other suggestions? A chocolatey doughnut for the fix.

ziriax commented 3 years ago

Oh that must be a regression. What version of Maya are you using?

ziriax commented 3 years ago

I can't reproduce this with the latest release

So I need more information. E.g. what version of Maya, version of this plugin, and maybe you could share your texture files with me?

CodeCodeCodeCodeCodeCodeCode commented 3 years ago

Hi, thanks for the quick response! I'm using v1.3.1 and Maya 2019.2. I can't share my textures but they were created in Painter and exported as Redshift Roughness maps. I see the same thing though when I just use a .jpg from Google.

Here is an example of what I'm seeing (selecting just the color texture "Test_BaseColor.jpg" with the "assign PBR to selection") Maya2glTF_Error_Example

ziriax commented 3 years ago

I guess this previously reported issue will solve the problem:

https://github.com/iimachines/Maya2glTF/issues/146

Basically make sure that you are using OpenGL for hardware rendering.

CodeCodeCodeCodeCodeCodeCode commented 3 years ago

My preferences were already set to OpenGL. I tried resetting my Preferences completely too but didn't fix it. I can keep messing around and can let you know if I discover anything.

ziriax commented 3 years ago

Interesting. Because the error you got No object matches name: GLSLShader1.u_BaseColorTexture is exactly the same as in that issue.

ziriax commented 3 years ago

Can you share your texture privately?

CodeCodeCodeCodeCodeCodeCode commented 3 years ago

Woop, I figured it out. Even though my Maya Preferences were showing that I was using OpenGL, I was remoting into my computer which Maya doesn't support for OpenGL. Maya's Output Window clued me in (and your helpful comments about the error message being the same from Issue #146). Thanks!

OutputWindow_DX11