-
Notifications
You must be signed in to change notification settings - Fork 188
Blender doesn't export textures #46
Comments
The Blender file is outdated and uses a very old glTF 2.0 node group. Because of this, your exporter cannot export correctly. Please use the latest node group and reassing the materials and textures. |
@UX3D-nopper thank you. |
No, that is not - yet - possible, as the spec is not updated to glTF 2.0 yet. |
Is there any versioning on the node group? How often can we expect breaking changes, such that older copies can't be re-exported with newer software? What's the best way to upgrade a blend file that uses an older group? |
At the moment, the Blender exporter is in the alpha phase, meaning minimal changes can still happen and no version exists. I am sorry for this but we thought, the community knows, that the Blender exporter is not final yet. Yes, the exporter is feature complete, but not regarding testing and bug fixing. Did you append or link the glTF2 Blender file? |
For the damaged helmet blend file, if I recall I loaded the |
If u get into trouble, delete the current node groups, save and close Blender. |
I closely followed the tutorial that you linked here, but the texture not appearing on the monkey head. What I did wrong? I'm attaching the test model: Here is a texture I try to apply: |
The Monkey/Suzanne has no UV-Textures bye default. So no texture is visible. YOu would need to unwrap the mesh and add the texture coordinates: You can also try to use Suzanne, which is included in the scenes folder: |
Thank You! I have a model where if I exporting to gltf2 format with Blender, all textures missing. If I converting with colada2gltf tool, then there are textures, but they dimming/vibrating. That's why I found this tutorial, although this model has perfectly textured, I have to unwrap and replace all the textures again on the faces, if I want to convert to gltf2 with Blender? Seems like a very verbose task. |
glTF 2.0 introduced PBR materials. There are two workflows, on how to export the properties of them. I always recommend the PBR guide from allegorithmic, as glTF 2.0 does not make it differently: The problem is, that in a normal use case, the current available Blender materials cannot be exactly matched to the glTF PBR matrials. That is the reason, why this glTF 2.0 node group exists: It allows to export the materials almost 1:1. As soon as Eevee is available for Blender, this problem is gone, as materials almost match each other. |
Thank You again the info. This means we don't have to re-texture the entire model? Is there any plan for an updated guide for the Eevee renderer? Right now, for the quickest result, probably I should use collada2gltf? |
Hello, Thanks for this wonderful plugin. Can someone tell me how to export the baked textures from my Blender to GLTF? Do you have a gltf node to do that or should I use the standard blender image texture node to export the baked textures? Regards, #0K |
@aalavandhaann have you seen the Cycles nodes documented here? https://github.com/KhronosGroup/glTF-Blender-Exporter/blob/master/docs/user.md#gltf-20-materials Those nodes may be used with Blender's standard "Image Texture" nodes. |
Sincerely it was my bad all the while. I indeed used the nodes provided by you guys and exported the GLTF. Works without flaws. But I was lazy enough to not let others know that my problem has been resolved. Sorry for this. However I am still struggling with exporting Actions, and Markers from Blender for animation. Nevertheless, I am happy about the whole format of GLTF and your plugin to export GLTF from Blender. Finally, the web format has been finalized. So I should not be bothering you guys with anymore feature requests, rather let you creators prioritize what is the need of hour. Once again, thank you for this wonderful blender plugin. Meanwhile I am thinking if there is a way to contribute apart from using the Blender plugin (testing it). As of now I was trying to export Cloth animation from Blender, and I wrote a short script to convert every frame of the mesh to a shapekey with the modified vertex positions. Hmmm, you know what? As of now let this page discuss only about issues to the Textures, I will meanwhile post the whole exporting of Blender physics animations in a separate thread. Regards, #0K |
Thanks for the update! Exporting actions is still an open issue that we plan to address (#112), I'm not sure about Markers — feel free to open an issue on that. It may not be possible to represent them in glTF at this time, unless they are used to denote separate animation clips? Separate issue may be needed for cloth simulation as well, as you said... I've done tests baking keyframes from animation_nodes for translation/rotation/scale of nodes, but nothing with morph targets as keyframes so far. |
Does anyone have an idea about texture repeat/sampling? Do we have a gltf-node to handle texture repeat? Currently I am trying to do this and this fails without repeating the texture. Is there something I am missing here? Regards, #0K |
@aalavandhaann the glTF format does not currently support texture repeat, and this exporter is not able to bake those transforms into UVs for you. We're working on adding that feature to glTF (see this issue: KhronosGroup/glTF#1015) and once that's done the Blender Exporter should support it as well. |
@donmccurdy Any progress on supporting texture repeat in the Blender Exporter? |
See #226 — I don't have a time estimate, but PRs would be welcome. |
Hi, personaje.blend.zip |
Looks like what I was doing wrong was not to use the PBR materials. After reading the doc I managed to link the ImageTexture as the "Color" in for the glTFMetallicRoughness node, and then the "Shader" out to the "Surface" in of the Material Output node. I have exported it this way and works! |
how to export environment texture |
Environment textures cannot be exported to the glTF format currently, you’ll need to load it separately. |
I opened https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/sourceModels/DamagedHelmet in Blender 2.78c then I tried to export model.
I turned on all export settings.
Actual result: There is no textures field in gltf
Expected result: There is textures field in gltf
The text was updated successfully, but these errors were encountered: