The purpose
directly edit the .glTF file created on the pages below (up to page i) that uses the glTF Separate format.
Edit as JSON text
.glTF files from glTF Separate are in JSON format, and therefore can be edited as text files.
Using Japanese (for object names, material names, etc.) in Blender will result in it being decoded within the .glTF file.
While you can still edit it, using English is more convenient if you want to easily find the settings you’re looking for.
Change texture
The texture is declared as follows
"images" : [
{
"mimeType" : "image/png",
"name" : "texture",
"uri" : "texture.png"
}
],
Changing the file declared by ‘uri’ allows you to change the image used in the texture.
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 values in the baseColorFactor
setting correspond to R, G, and B respectively.
The range of each value is (0-255).
comment