Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quiltix plugin #4

Open
wants to merge 26 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
a48dc99
Plugin branch
kwokcb Nov 24, 2023
b1f26e5
Update image test.
kwokcb Nov 24, 2023
df7d52d
Updated image.
kwokcb Nov 24, 2023
8b6b36d
Add in glTF load.
kwokcb Nov 24, 2023
95d4190
Merge branch 'load_doc_from_memory' into gltf_plugin
kwokcb Nov 24, 2023
5d207c5
Move out code to a "plugin" class.
kwokcb Nov 26, 2023
4c998b8
- Point to shaderball resource for packing
kwokcb Nov 28, 2023
ad086d6
Trial web widget to show glTF viewer.
kwokcb Dec 5, 2023
2a2b027
Tweaks to plugin.
kwokcb Dec 6, 2023
623633e
- Export cleanup
kwokcb Dec 6, 2023
3eb2cc9
Make it so the gltf viewer cannot float as this seems to cause gl con…
kwokcb Dec 6, 2023
5464702
Add in JSON plug-in and module checking.
kwokcb Dec 11, 2023
adf25e5
Add in USD Stage materials text debug option.
kwokcb Dec 13, 2023
b2b80bd
Fix vec2 updates. Was being set as a float.
kwokcb Dec 14, 2023
fa22ab9
Add in "force bake" option. Turn off creating nodegraph on save by de…
kwokcb Dec 14, 2023
48c7580
- Misc doc / debugging cleanup.
kwokcb Jan 16, 2024
817235a
Merge pull request #3 from PrismPipeline/main
kwokcb Feb 5, 2024
f4df67f
Change for new signature.
kwokcb Feb 5, 2024
485e237
Move "show usd text" to under "show materialx text" assuming https://…
kwokcb Feb 6, 2024
5c3cc6e
Merge remote-tracking branch 'upstream/main' into quiltix_plugin
kwokcb Mar 12, 2024
77c100c
Fix up reference to gltf simple viewer.
kwokcb Mar 12, 2024
049f9b2
Merge branch 'fix_invalid_interfacename_value' into quiltix_plugin
kwokcb Apr 11, 2024
f061325
Merge branch 'definition_creation_fixes' into quiltix_plugin
kwokcb Apr 11, 2024
dd310eb
Merge remote-tracking branch 'upstream/main' into quiltix_plugin
kwokcb Jun 17, 2024
f4abc4e
Patch Qt usage.
kwokcb Jun 17, 2024
6e66533
First draft plugins.
kwokcb Jun 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added plugins_test/Copper_Old_1k_8b/Copper_Old.glb
Binary file not shown.
343 changes: 343 additions & 0 deletions plugins_test/Copper_Old_1k_8b/Copper_Old.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,343 @@
{
"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_transmission": {
"transmissionFactor": 0.0
},
"KHR_materials_specular": {
"specularColorFactor": [
1.0,
1.0,
1.0
],
"specularFactor": 1.0
},
"KHR_materials_emissive_strength": {
"emissiveStrength": 1.0
},
"KHR_materials_ior": {
"ior": 1.5
},
"KHR_materials_sheen": {
"sheenColorFactor": [
0.0,
0.0,
0.0
],
"sheenRoughnessFactor": 0.0
},
"KHR_materials_clearcoat": {
"clearcoatFactor": 0.0,
"clearcoatRoughnessFactor": 0.09803920239210129
},
"KHR_materials_volume": {
"attenuationColor": [
1.0,
1.0,
1.0
]
},
"KHR_materials_iridescence": {
"iridescenceFactor": 0.0,
"iridescenceIor": 1.2999999523162842
}
},
"name": "SR_Copper_Old_baked",
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 0
},
"metallicFactor": 1.0,
"roughnessFactor": 1.0,
"metallicRoughnessTexture": {
"index": 1
}
},
"emissiveFactor": [
0.0,
0.0,
0.0
],
"alphaMode": "OPAQUE"
}
],
"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/base_color_baked",
"source": 0,
"sampler": 0
},
{
"name": "NG_baked/roughness_baked",
"source": 1,
"sampler": 0
}
],
"images": [
{
"name": "NG_baked/base_color_baked",
"uri": "Copper_Old_gltf_pbr_base_color.png"
},
{
"name": "NG_baked/roughness_baked",
"uri": "Copper_Old_gltf_pbr_roughness_combined.png"
}
],
"samplers": [
{
"wrapS": 10497,
"wrapT": 10497,
"magFilter": 9729,
"minFilter": 9986
}
],
"extensionsUsed": [
"KHR_materials_transmission",
"KHR_materials_specular",
"KHR_materials_emissive_strength",
"KHR_materials_ior",
"KHR_materials_sheen",
"KHR_materials_clearcoat",
"KHR_materials_volume",
"KHR_materials_iridescence"
]
}
21 changes: 21 additions & 0 deletions plugins_test/Copper_Old_1k_8b/Copper_Old.gltf_baked.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0"?>
<materialx version="1.38">
<nodegraph name="NG_baked" colorspace="srgb_texture">
<image name="base_color_baked" type="color3">
<input name="file" type="filename" value="Copper_Old_gltf_pbr_base_color.png" />
</image>
<output name="base_color_output" type="color3" nodename="base_color_baked" />
<image name="roughness_baked" type="float">
<input name="file" type="filename" value="Copper_Old_gltf_pbr_roughness.png" />
</image>
<output name="roughness_output" type="float" nodename="roughness_baked" />
</nodegraph>
<gltf_pbr name="SR_Copper_Old_baked" type="surfaceshader">
<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" />
</gltf_pbr>
<surfacematerial name="Copper_Old_baked" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="SR_Copper_Old_baked" />
</surfacematerial>
</materialx>
Loading