Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue generating material from converted gltf #503

Open
neph1 opened this issue Apr 26, 2023 · 2 comments
Open

Issue generating material from converted gltf #503

neph1 opened this issue Apr 26, 2023 · 2 comments

Comments

@neph1
Copy link
Contributor

neph1 commented Apr 26, 2023

https://hub.jmonkeyengine.org/t/error-importing-assets-gltf/46716

Repro steps:

  1. Create default cube in Blender
    
  2. Apply a shader with a texture.
    
  3. Export as gltf
    
  4. Open in SDK. Select “generate material”.
    
  5. Open material. Missing texture with the same logs as above.
    
@neph1
Copy link
Contributor Author

neph1 commented Apr 26, 2023

Well, I don't think it's going to work. The SDK would not find the texture, and the texture, called "dirt.jpg" and actually selected from assets/Textures in the Project is named 'image0.jpg' in the gltf.

@neph1
Copy link
Contributor Author

neph1 commented May 1, 2023

I've changed my mind. The SDK even tries to make it work. But I haven't been able to decipher the code to find out why it doesn't (or rather why it should work)
Key methods are:
MaterialPropertyEditor:setAsText
EditableMaterialFile:checkPackedTextureProps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant