How to assign materials to glb/gltf files that are rigged in Blender #479
Unanswered
MinyoungNa1997
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have this cool figure that I made in blender and added materials to.
The code is fairly simple, at least just for the uploading part
The issue I was having was that, there was no easy way to assign custom material using
THREE.RawShaderMaterial
. The shaders you see now are assigned through blender.I tried altering materials from
const { material } = useGLTF('/glb/Victory.gltf')
, but the new material was applied to anunrigged version of the model. As far as I know,
nodes
are composed of SkinnedMesh and Skeleton, and skeletons aren't meshes, so I can't change their material.Is there any way to alter the material of a rigged mesh?
Beta Was this translation helpful? Give feedback.
All reactions