-
Notifications
You must be signed in to change notification settings - Fork 251
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
Unable to Export from Unity with materials #654
Comments
Hi, I assume you're not using HDRP Lit shaders (since the sources are glTFast imported glbs). It's a known issue that the glTFast shaders won't export well at the moment and thus round-trips are prone to errors. Always curious what your use-case is. It helps me prioritize working on a solution. Thanks! |
Hi, Our use case is that we create high fidelity rendering of furnished apartments, for this we use Unity to prepare the shots and then we need to export the scene to go through a distributed rendering system. We also use a lot of tooling to prepare this as well as blend shapes that we need to convert to static meshes and alike as can be seen in the example script. |
Hi, Is there an option to unpack the glb content on import? Or import using HDRP Lit Shader? |
Hey @atteneder, any news on the ability to do round-trips import/export at runtime? This feature would be greatly appreciated. Our use case is to be able to import multiple glb files at runtime and reexport them in one scene (bundling them). Avoiding the pain of changing all the materials and swapping maps channels around would be great! |
Also have the same problem with importing an object during runtime but with URP. Same gltfast version. |
Same problems here... Big mystery, the missing textures... |
Any update on this? @atteneder with the GltFast library going to Unity, is this being worked on internally? Or are you looking for a community PR to solve this issue? I am interested in round-trip runtime import/export/import using Unity's URP Materials. Right now, importing with URP textures works, but export of that same model fails to export textures/materials. |
The next release will festure export of materials based on glTFast's shaders and shader graphs, this enabling import-export round-trips. Probably comes next week. Hth |
That's a really good news! We'll test it as soon as it drops 🙂 |
6.5 dropped https://docs.unity3d.com/Packages/com.unity.cloud.gltfast@6.5/changelog/CHANGELOG.html Will test & report back. Thanks @atteneder & Unity Team! |
Hi, The same happens when I use the function in editor (right-click > export glTF) |
Hello. |
Sorry to hear it's not resolved yet. Can y'all please look if you have the |
There's a bug where materials are not exported properly when URP/HDRP are both NOT installed. If that's the case on your end, a fix is incoming. |
It's live! |
Describe the bug
Trying to export a gameObject from Unity scene (imported glb) does not include the material.
I tried to look at export example ( https://github.com/atteneder/glTFast/blob/main/Documentation%7E/ExportRuntime.md ) and trying to use the SimpleExport example. But It returns an error that it can't find GLTFast.Exports from using nor GameObjectExport class.
Files
Due to confidential glb I managed to reproduce the issue with GLBs from a different issue
GLB.zip
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The GameObject is exported with material
Screenshots
export.zip
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
MeshMerger.zip
This is the script I am trying to run, I have gltFast v6.0.1 added as package in package manager.
The text was updated successfully, but these errors were encountered: