#Importing gltf models

1 messages · Page 1 of 1 (latest)

median crypt
#

Hello All,

I got a model off of PolyHaven and it seemingly imports into godot, but there is a red X next to the filename in the filesystem viewer. I am not exactly sure what I am doing wrong here, but it is making it hard to use because plugins/tools like terrain3D won't load it.

tough cloud
#

Probably missing grass_medium.bin or something, make sure all the files from the zip have been extracted into the same place

median crypt
#

Do I need to import it with the bin?

#

Cause this is the extracted zip file, I just dragged the gltf file into godot

#

Ah I got it now

#

Oddly enough though the textures aren't being applied when I drag the model from the fs

#

Just white

tough cloud
#

do the textures show when you doubleclick the glb?

#

*gltf

median crypt
#

Nope

#

Its just a white texture

#

Whichj I assume is the default

#

Sorry if my questions seem dumb, I am a programmer not whatever this is 😭

tough cloud
#

alright. Delete the lot from the godot project and import them into a new folder. Then you should be able to drag them back once it's working.

median crypt
#

So delete it from the project and then import them where exactly?

#

A new folder in the project?

tough cloud
#

yeah

median crypt
#

Alright

tough cloud
#

(to make sure it treats it like a new asset)

median crypt
#

Ohhhh thank you a lot

#

It is now textured :))

tough cloud
#

yay

median crypt
#

Oh wait hm, interesting

#

As soon as I drag it into my models folder it is untextured again

tough cloud
#

huh. Does it fix when it's dragged back?

#

oh.. the textures also need to be moved with the object, is that also done?

median crypt
#

Ah

#

It expects the textures to be in a folder called textures where the model is

#

I just needed to make a new textures folder inside the models folder with the textures in there

#

:p

#

bit annoying but it works ig

tough cloud
#

Yeah, in the long run it is easiest to keep them together. I do something like

some_game_element/
  model/
    some_model.glb
    some_model.material.tres
    textures/
      some_model_albedo.png
  some_game_element.tscn
  some_game_element.gd