Things I want to do
Edit the .glTF file created on the following page directly.
Edit as text (JSON)
The .glTF file for gltTF Separate is in JSON format and can be edited as a text file.
When you use Japanese characters in Blender (object names, material names, etc.), they are decoded within the .glTF file.
You can edit the settings, but it’s more convenient to use English if you want to make it easier to find the settings you’re looking for.
Texture changes
Textures are declared as follows:
"images" : [
{
"mimeType" : "image/png",
"name" : "texture",
"uri" : "texture.png"
}
],You can change the image used for the texture by modifying the file declared in ‘uri’.
Change color
Color settings are declared within the materials as follows:
"materials" : [
{
"doubleSided" : true,
"name" : "Material",
"pbrMetallicRoughness" : {
"baseColorFactor" : [
1,
1,
1,
1
],
"metallicFactor" : 0,
"roughnessFactor" : 0.5
}
},The first three of the four values set in baseColorFactor correspond to R, G, and B.
The value range is (0-255).


コメント