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

Texture is exported along with the model but it is not applied on the model. #54

Open
PantherStudio1 opened this issue Apr 25, 2023 · 5 comments

Comments

@PantherStudio1
Copy link

Hello,
I am using this plugin to export the FBX from the WebGL build at runtime. Exports the model along with the texture, but the texture is not applied to the model. Can someone help to solve this problem?

Thank you.

@KellanHiggins
Copy link
Owner

Hi @PantherStudio1,

Are you trying to have the FBX file embedded inside the FBX file? Or are the textures in the same folder as the exported FBX?

I couldn't figure out how they packed PNGs or JPGs into the FBX file so unfortunately this exporter can't do this.

What is your end goal with your export?

@PantherStudio1
Copy link
Author

@KellanHiggins Thanks for reply,
Actually I'm using different Unity GameObjects then I apply materials on them and after this I try to export the model from the WebGL build. Texture is downloaded with the exported model but it is not applied as mentioned earlier. May be I made some mistake, Any sample project link or a video tutorial would help.

About the end goal, Model should be presented with the material and textures applied on it in any commonly used Model Viewer.

Thanks

@KellanHiggins
Copy link
Owner

So unfortunately the FBX file format only supports regular textures and regular bump maps. Is this okay? Any other types of Unity texture maps will not map to these.

What common model viewer are you looking at? Like the standard windows one?

@PantherStudio1
Copy link
Author

I'm sharing the type of model and materials. I'm using Universal RP. Could it be the reason?
Box.zip

@KellanHiggins
Copy link
Owner

I haven't tested it with Universal RP. That is a definite possibility. Can you post the FBXExporter call you are using to export this file?

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

No branches or pull requests

2 participants