I think gltf is less painful compare to blend file, though godot import only supports,very limited node-based material types for blend, sresulting some model materials become blank texture when imported into godot or gltf format.
How to keep textures in the .blend file?
- Edited
I solved the problem of the texture not showing up, on an imported .blend file, by adding an Environment to the Camera3D.
But I don't see a "separate texture folder".
I'm using Godot 4.1.1-stable.
The .blend file was created in Blender 2.8.3, and Godot uses Blender 3.6.1 for importing. (I set it up like that because Godot 4 requires Blender 3 for importing, but I can't use Blender 3.6.1 for modeling because it keeps crashing.)
- Edited
MagickPanda That may not be a problem for me right now, since I'm using simple materials.
I've been using Godot only in 2D, and am only now getting into 3D. I'm having to re-learn Blender. What kinds of materials can't be done with "simple node-based"?
DaveTheCoder Thanks for your replies!
The problem for me happened only when using an image file for a texture, not just a solid color or something set up with nodes. Are you doing this?
DaveTheCoder IIRC there is a node called simple noise, that cannot be converted to godot counterparts(if there is a one)
I use spaceship generator blender python script to generate model for my game, most materials generated by this script cannot be imported into godot properly.
- Edited
LiabilityLuke an image file for a texture
Yes. I did that specifically because you asked about it.
By "separate texture folder". are you referring to .godot/imported?
- Edited
MagickPanda Do any procedural textures import from Blender to Godot? I would be surprised if Godot could handle that.
DaveTheCoder nope, IIRC there is s list of supported blender node material type in docs, most non-static nodes or anything involves noise/randomness are not support.
MagickPanda Are you referring to this section of the documentation?
https://docs.godotengine.org/en/4.1/tutorials/assets_pipeline/escn_exporter/index.html#blender-escn-exporter
Maybe in this video you will find what you need. I think at 8:30 you'll have an explanation of how to configure it to import models with textures.
FadaSentava Thanks for your reply! I was able to get the texture to load as in the video, but I would prefer if it didn't have to put the textures in a textures folder like in the video. Maybe I'll just switch to using gltf, as it's honestly not that much harder than using the .blend files
- Edited
FadaSentava One aspect of that video confuses me.
A texture didn't import into Godot (with a Godot error message). The narrator employs a workaround by using the Blender File menu to pack a texture into the .blend file, and then unpacks it using an option in a Material node.
Does that happen only for certain texture files?
I imported a .blend into Godot, and the texture was imported, without my having to do anything special like that.