0 votes

I'm importing a model from Blockbench. The model has been exported using Blockbench's gltf export function.

At first, the texture looks blurred in the editor, but by editing the Material -> Albedi -> Texture -> Flags, and clear the Filter flag, the texture looks ok in the editor. (I'm after the pixel art look).

Texture ok in editor

However, once I run the program, the texture is back to its blurred state:

Texture not ok in game

From what I understand, it should be possible to get the texture to use a nearest neighbour strategy instead of blurring. However, I cannot seem to figure out how to do it.

Godot version 3.3.2
in Engine by (18 points)

1 Answer

0 votes

select the texture, click on import (the second tab at the scene tree) deselect filter under flags and click reimport.

by (3,932 points)

That option is not available to me when I import the gltf file. Do you mean that I should import the texture separately?

So the texture is embedet into the gltf file?

Does the filter flag gets reseted when you reopen your project?

Good find - yes the flag gets reset every time I re-open the project. Do I have to somehow separate the texture from the model?

I dont know how you import your gltf. Most of the time godot warns you about unsaved properties when opening or closing certain files.

Maybe you have to import the file and right click it and select "enable editable children" to save those properties.

... or with a "custom"material and texture this should be working.

Given your pointers, I went to the material, made it unique and saved it. Then I selected each and every mesh in the model and reapplied the material. This way I could make the filtered = false setting stick.

Now, the question is - how can I make this convenient :-)

Have a look here ....

Till the end there is a section about import and materials.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.