Skip to content

How to use baked textures with gltfjsx loader #1302

Answered by drcmda
xzilja asked this question in Q&A
Discussion options

You must be logged in to vote

gltfjsx just extracts structure, it doesn't change the gltf or influence what it contains. the texture is either part of the glb or external. you need to apply it in blender or in threejs via the map property.

you can see a finished version of that particular scene here https://codesandbox.io/s/threejs-journey-ni6v4 (with a external texture)

But when I refreshed model was completely black, like its not receiving any light.

meshbasicmaterial doesnt need light. it must be red. have you refreshed to make sure its not some hot-reload screw-up?

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@xzilja
Comment options

@ggomaeng
Comment options

@ggomaeng
Comment options

@alxgeoaln
Comment options

Answer selected by xzilja
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants