Skip to content

Commit

Permalink
Add in QuiltiX integration examples. (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwokcb committed Dec 4, 2023
1 parent 100fb4e commit ab1afe0
Show file tree
Hide file tree
Showing 33 changed files with 1,303 additions and 2 deletions.
29 changes: 29 additions & 0 deletions docs/data/QuiltiX/Black_Upholstery.mtlx_baked.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0"?>
<materialx version="1.38">
<nodegraph name="NG_baked" colorspace="srgb_texture">
<image name="roughness_baked" type="float" xpos="13.768116" ypos="-0.094828">
<input name="file" type="filename" value="textures\Black_Upholstery_roughness.png" fileprefix="" />
</image>
<output name="roughness_output" type="float" nodename="roughness_baked" xpos="17.391304" ypos="0.000000" />
<image name="sheen_color_baked" type="color3" xpos="13.768116" ypos="1.327586">
<input name="file" type="filename" value="textures\Black_Upholstery_gltf_pbr_sheen_color.png" fileprefix="" />
</image>
<output name="sheen_color_output" type="color3" nodename="sheen_color_baked" xpos="17.391304" ypos="1.336207" />
<gltf_normalmap name="gltf_normalmap_vector3_1_0" type="vector3" xpos="12.862319" ypos="3.025862">
<input name="file" type="filename" value="textures\Black_Upholstery_normal.png" />
</gltf_normalmap>
<output name="output_vector3" type="vector3" nodename="gltf_normalmap_vector3_1_0" xpos="17.630434" ypos="3.068965" />
</nodegraph>
<gltf_pbr name="standard_surface_1_baked" type="surfaceshader" xpos="13.768116" ypos="-0.810345">
<input name="base_color" type="color3" value="0, 0, 0" colorspace="srgb_texture" />
<input name="metallic" type="float" value="0" />
<input name="roughness" type="float" output="roughness_output" nodegraph="NG_baked" />
<input name="sheen_color" type="color3" output="sheen_color_output" nodegraph="NG_baked" />
<input name="sheen_roughness" type="float" value="0.498039" />
<input name="clearcoat_roughness" type="float" value="0.0980392" />
<input name="normal" type="vector3" output="output_vector3" nodegraph="NG_baked" />
</gltf_pbr>
<surfacematerial name="Black_Upholstery_baked" type="material" xpos="17.391304" ypos="0.000000">
<input name="surfaceshader" type="surfaceshader" nodename="standard_surface_1_baked" />
</surfacematerial>
</materialx>
320 changes: 320 additions & 0 deletions docs/data/QuiltiX/Black_Upholstery.mtlx_baked.mtlx.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,320 @@
{
"asset": {
"version": "2.0",
"copyright": "Copyright 2022-2023: Bernard Kwok.",
"generator": "MaterialX 1.38 to glTF 2.0 generator. https://github.com/kwokcb/glTF_MaterialX"
},
"accessors": [
{
"bufferView": 0,
"byteOffset": 0,
"componentType": 5126,
"count": 36228,
"type": "VEC3",
"max": [
1.0168780088424683,
2.091491937637329,
0.9763060212135315
],
"min": [
-1.1265790462493896,
0.07684300094842911,
-1.1052850484848022
]
},
{
"bufferView": 1,
"byteOffset": 0,
"componentType": 5126,
"count": 36228,
"type": "VEC3",
"max": [
0.9999819993972778,
0.9999993443489075,
0.9999726414680481
],
"min": [
-0.9999819993972778,
-0.9999997615814209,
-0.9999726414680481
]
},
{
"bufferView": 2,
"byteOffset": 0,
"componentType": 5126,
"count": 36228,
"type": "VEC2",
"max": [
0.9962999820709229,
0.9973000288009644
],
"min": [
0.002199999988079071,
0.004199981689453125
]
},
{
"bufferView": 3,
"byteOffset": 0,
"componentType": 5125,
"count": 212424,
"type": "SCALAR",
"max": [
36227
],
"min": [
0
]
},
{
"bufferView": 4,
"byteOffset": 0,
"componentType": 5126,
"count": 9140,
"type": "VEC3",
"max": [
0.6733869910240173,
1.8961529731750488,
0.7821810245513916
],
"min": [
-0.7826089859008789,
0.004230000078678131,
-0.763903021812439
]
},
{
"bufferView": 5,
"byteOffset": 0,
"componentType": 5126,
"count": 9140,
"type": "VEC3",
"max": [
1,
1,
1
],
"min": [
-1,
-1,
-1
]
},
{
"bufferView": 6,
"byteOffset": 0,
"componentType": 5126,
"count": 9140,
"type": "VEC2",
"max": [
0.9962000250816345,
0.7520999908447266
],
"min": [
0.0027000000700354576,
0.0037999749183654785
]
},
{
"bufferView": 7,
"byteOffset": 0,
"componentType": 5125,
"count": 52368,
"type": "SCALAR",
"max": [
9139
],
"min": [
0
]
}
],
"buffers": [
{
"uri": "shaderball_data.bin",
"byteLength": 2510944
}
],
"bufferViews": [
{
"buffer": 0,
"byteOffset": 0,
"byteLength": 434736,
"target": 34962
},
{
"buffer": 0,
"byteOffset": 434736,
"byteLength": 434736,
"target": 34962
},
{
"buffer": 0,
"byteOffset": 869472,
"byteLength": 289824,
"target": 34962
},
{
"buffer": 0,
"byteOffset": 1159296,
"byteLength": 849696,
"target": 34963
},
{
"buffer": 0,
"byteOffset": 2008992,
"byteLength": 109680,
"target": 34962
},
{
"buffer": 0,
"byteOffset": 2118672,
"byteLength": 109680,
"target": 34962
},
{
"buffer": 0,
"byteOffset": 2228352,
"byteLength": 73120,
"target": 34962
},
{
"buffer": 0,
"byteOffset": 2301472,
"byteLength": 209472,
"target": 34963
}
],
"materials": [
{
"extensions": {
"KHR_materials_sheen": {
"sheenColorTexture": {
"index": 2
},
"sheenColorFactor": [
1.0,
1.0,
1.0
],
"sheenRoughnessFactor": 0.49803900718688965
},
"KHR_materials_clearcoat": {
"clearcoatRoughnessFactor": 0.09803920239210129
}
},
"name": "standard_surface_1_baked",
"pbrMetallicRoughness": {
"baseColorFactor": [
0.0,
0.0,
0.0,
1.0
],
"metallicFactor": 0.0,
"roughnessFactor": 1.0,
"metallicRoughnessTexture": {
"index": 0
}
},
"normalTexture": {
"index": 1
}
}
],
"meshes": [
{
"name": "Preview_Mesh",
"primitives": [
{
"mode": 4,
"material": 0,
"indices": 3,
"attributes": {
"POSITION": 0,
"NORMAL": 1,
"TEXCOORD_0": 2
}
}
]
},
{
"name": "Calibration_Mesh",
"primitives": [
{
"mode": 4,
"material": 0,
"indices": 7,
"attributes": {
"POSITION": 4,
"NORMAL": 5,
"TEXCOORD_0": 6
}
}
]
}
],
"nodes": [
{
"name": "Preview_Mesh",
"mesh": 0
},
{
"name": "Calibration_Mesh",
"mesh": 1
}
],
"scenes": [
{
"nodes": [
0,
1
]
}
],
"scene": 0,
"textures": [
{
"name": "NG_baked/roughness_baked",
"source": 0,
"sampler": 0
},
{
"name": "NG_baked/gltf_normalmap_vector3_1_0",
"source": 1,
"sampler": 0
},
{
"name": "NG_baked/sheen_color_baked",
"source": 2,
"sampler": 0
}
],
"images": [
{
"name": "NG_baked/roughness_baked",
"uri": "textures/Black_Upholstery_roughness_combined.png"
},
{
"name": "NG_baked/gltf_normalmap_vector3_1_0",
"uri": "textures/Black_Upholstery_normal.png"
},
{
"name": "NG_baked/sheen_color_baked",
"uri": "textures/Black_Upholstery_gltf_pbr_sheen_color.png"
}
],
"samplers": [
{
"wrapS": 10497,
"wrapT": 10497,
"magFilter": 9729,
"minFilter": 9986
}
],
"extensionsUsed": [
"KHR_materials_sheen",
"KHR_materials_clearcoat"
]
}
Binary file not shown.
Binary file added docs/data/QuiltiX/Copper_Old.glb_baked.mtlx2.glb
Binary file not shown.
26 changes: 26 additions & 0 deletions docs/data/QuiltiX/Copper_Old.gltf_baked.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0"?>
<materialx version="1.38">
<nodegraph name="NG_baked" colorspace="srgb_texture">
<image name="base_color_baked" type="color3" xpos="13.768116" ypos="0.000000">
<input name="file" type="filename" value="textures\Copper_Old_baseColor.png" fileprefix="" />
</image>
<output name="base_color_output" type="color3" nodename="base_color_baked" xpos="17.391304" ypos="0.000000" />
<image name="roughness_baked" type="float" xpos="13.768116" ypos="1.336207">
<input name="file" type="filename" value="textures\Copper_Old_roughness.png" fileprefix="" />
</image>
<output name="roughness_output" type="float" nodename="roughness_baked" xpos="17.391304" ypos="1.336207" />
<gltf_normalmap name="gltf_normalmap_vector3_1_0" type="vector3" xpos="13.094203" ypos="2.663793">
<input name="file" type="filename" value="textures\Copper_Old_bump.png" fileprefix="" />
</gltf_normalmap>
<output name="output_vector3" type="vector3" nodename="gltf_normalmap_vector3_1_0" xpos="17.449276" ypos="2.784483" />
</nodegraph>
<gltf_pbr name="SR_Copper_Old_baked" type="surfaceshader" xpos="14.463768" ypos="-1.362069">
<input name="base_color" type="color3" output="base_color_output" nodegraph="NG_baked" />
<input name="roughness" type="float" output="roughness_output" nodegraph="NG_baked" />
<input name="clearcoat_roughness" type="float" value="0.0980392" />
<input name="normal" type="vector3" output="output_vector3" nodegraph="NG_baked" />
</gltf_pbr>
<surfacematerial name="Copper_Old_baked" type="material" xpos="17.391304" ypos="0.000000">
<input name="surfaceshader" type="surfaceshader" nodename="SR_Copper_Old_baked" />
</surfacematerial>
</materialx>
Loading

0 comments on commit ab1afe0

Please sign in to comment.