Hello! I've been trying to import some blender files using the new blender support, but have been a little confused about how it works. I saw in this video a blender file being imported while keeping the texture files out of the project files, which I think would be nice to reduce clutter, but when I import something into godot, I find it puts the textures into a separate texture folder. Can I somehow change the import settings to do this?
How to keep textures in the .blend file?
I've been experimenting with Godot 4's feature of importing .blend files. I've been successful at importing models.
I just made a simple example of a cube with a texture, to see if there's a separate texture folder, but the texture doesn't seem to get imported. I'm probably doing something wrong.
DaveTheCoder Yeah the whole process has seemed a little weird to me. I have found that sometimes to get the textures to import in a seperat folder you can hit delete on the blend file, but then press cancel when it asks you if you are sure. Weird!
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.
- 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.