Datasets:
Add SimReady package: blender
Browse files- .gitattributes +1 -0
- blender/.metadata/blender_benchmark.json +52 -0
- blender/.metadata/blender_validation.json +177 -0
- blender/.metadata/com.nvidia.simready.conformance.Package@1.0.0.json +35 -0
- blender/.metadata/com.nvidia.simready.packaging.bom.json +120 -0
- blender/com.nvidia.simready.packaging.json +31 -0
- blender/simready_usd/.thumbs/256x256/blender.usd.png +3 -0
- blender/simready_usd/.thumbs/256x256/blender.usd_light.png +3 -0
- blender/simready_usd/.thumbs/256x256/blender.usd_transparent.png +3 -0
- blender/simready_usd/blender.json +402 -0
- blender/simready_usd/blender.usd +3 -0
- blender/simready_usd/materials/OmniGlass.mdl +261 -0
- blender/simready_usd/materials/OmniGlass_Opacity.mdl +487 -0
- blender/simready_usd/materials/OmniPBRBase.mdl +493 -0
- blender/simready_usd/textures/blender_basecolor_texture0png.png +3 -0
- blender/simready_usd/textures/blender_metallic_texture0metallicpng.png +3 -0
- blender/simready_usd/textures/blender_normal_texture0normalpng.png +3 -0
- blender/simready_usd/textures/blender_roughness_texture0roughnesspng.png +3 -0
- blender/simready_usd/textures/library/brushed_normal_f2cfd7448132.png +3 -0
- blender/simready_usd/textures/library/brushed_roughness_e609a5e8bb77.png +3 -0
.gitattributes
CHANGED
|
@@ -104,3 +104,4 @@ liquid_latex_jar/simready_usd/liquid_latex_jar.usd filter=lfs diff=lfs merge=lfs
|
|
| 104 |
liquid_latex_tub/simready_usd/liquid_latex_tub.usd filter=lfs diff=lfs merge=lfs -text
|
| 105 |
mandarin_half/simready_usd/mandarin_half.usd filter=lfs diff=lfs merge=lfs -text
|
| 106 |
mangosteen/simready_usd/mangosteen.usd filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 104 |
liquid_latex_tub/simready_usd/liquid_latex_tub.usd filter=lfs diff=lfs merge=lfs -text
|
| 105 |
mandarin_half/simready_usd/mandarin_half.usd filter=lfs diff=lfs merge=lfs -text
|
| 106 |
mangosteen/simready_usd/mangosteen.usd filter=lfs diff=lfs merge=lfs -text
|
| 107 |
+
blender/simready_usd/blender.usd filter=lfs diff=lfs merge=lfs -text
|
blender/.metadata/blender_benchmark.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": "1.0",
|
| 3 |
+
"asset": "blender",
|
| 4 |
+
"run_timestamp": "2026-11-10T15:33:30Z",
|
| 5 |
+
"passed": false,
|
| 6 |
+
"results": [
|
| 7 |
+
{
|
| 8 |
+
"test_name": "culling_xz",
|
| 9 |
+
"engine": "isaac_sim",
|
| 10 |
+
"engine_version": "",
|
| 11 |
+
"status": "fail",
|
| 12 |
+
"passed": false,
|
| 13 |
+
"duration": 548.513,
|
| 14 |
+
"message": "Engine session kit_81433_5 crashed before the test could complete (retries exhausted).",
|
| 15 |
+
"metrics": {},
|
| 16 |
+
"kit_logs": []
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"test_name": "culling_xz",
|
| 20 |
+
"engine": "isaac_sim_newton",
|
| 21 |
+
"engine_version": "",
|
| 22 |
+
"status": "fail",
|
| 23 |
+
"passed": false,
|
| 24 |
+
"duration": 546.727,
|
| 25 |
+
"message": "Engine session kit_81433_6 crashed before the test could complete (retries exhausted).",
|
| 26 |
+
"metrics": {},
|
| 27 |
+
"kit_logs": []
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"test_name": "light_response",
|
| 31 |
+
"engine": "isaac_sim",
|
| 32 |
+
"engine_version": "",
|
| 33 |
+
"status": "fail",
|
| 34 |
+
"passed": false,
|
| 35 |
+
"duration": 548.287,
|
| 36 |
+
"message": "Engine session kit_81433_11 crashed before the test could complete (retries exhausted).",
|
| 37 |
+
"metrics": {},
|
| 38 |
+
"kit_logs": []
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"test_name": "light_response",
|
| 42 |
+
"engine": "isaac_sim_newton",
|
| 43 |
+
"engine_version": "",
|
| 44 |
+
"status": "fail",
|
| 45 |
+
"passed": false,
|
| 46 |
+
"duration": 572.992,
|
| 47 |
+
"message": "Engine session kit_81433_12 crashed before the test could complete (retries exhausted).",
|
| 48 |
+
"metrics": {},
|
| 49 |
+
"kit_logs": []
|
| 50 |
+
}
|
| 51 |
+
]
|
| 52 |
+
}
|
blender/.metadata/blender_validation.json
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"simready_usd/blender.usd": {
|
| 3 |
+
"features_summary": {
|
| 4 |
+
"FET_000_MUJOCO": {
|
| 5 |
+
"blocking_failure": false,
|
| 6 |
+
"dependencies": "[{'FET_000_STANDARD': {'version': '0.1.0'}}]",
|
| 7 |
+
"optional requirements": "['com.nvidia.simready.RV.007']",
|
| 8 |
+
"passed": false,
|
| 9 |
+
"version": "0.1.0"
|
| 10 |
+
},
|
| 11 |
+
"FET_000_NEWTON": {
|
| 12 |
+
"blocking_failure": false,
|
| 13 |
+
"dependencies": "[{'FET_000_STANDARD': {'version': '0.1.0'}}]",
|
| 14 |
+
"optional requirements": "['com.nvidia.simready.RV.004']",
|
| 15 |
+
"passed": false,
|
| 16 |
+
"version": "0.1.0"
|
| 17 |
+
},
|
| 18 |
+
"FET_000_PHYSX": {
|
| 19 |
+
"blocking_failure": false,
|
| 20 |
+
"dependencies": "[{'FET_000_STANDARD': {'version': '0.1.0'}}]",
|
| 21 |
+
"optional requirements": "['com.nvidia.simready.RV.001']",
|
| 22 |
+
"passed": false,
|
| 23 |
+
"version": "0.1.0"
|
| 24 |
+
},
|
| 25 |
+
"FET_000_STANDARD": {
|
| 26 |
+
"blocking_failure": false,
|
| 27 |
+
"dependencies": "[]",
|
| 28 |
+
"passed": true,
|
| 29 |
+
"version": "0.2.0"
|
| 30 |
+
},
|
| 31 |
+
"FET_001_STANDARD": {
|
| 32 |
+
"blocking_failure": false,
|
| 33 |
+
"dependencies": "[]",
|
| 34 |
+
"passed": true,
|
| 35 |
+
"version": "1.0.1"
|
| 36 |
+
},
|
| 37 |
+
"FET_003_MUJOCO": {
|
| 38 |
+
"blocking_failure": false,
|
| 39 |
+
"dependencies": "[]",
|
| 40 |
+
"optional requirements": "['com.nvidia.simready.MUJOCO.COL.001']",
|
| 41 |
+
"passed": false,
|
| 42 |
+
"version": "0.1.0"
|
| 43 |
+
},
|
| 44 |
+
"FET_003_NEWTON": {
|
| 45 |
+
"blocking_failure": false,
|
| 46 |
+
"dependencies": "[]",
|
| 47 |
+
"optional requirements": "['com.nvidia.simready.NEWTON.COL.001']",
|
| 48 |
+
"passed": false,
|
| 49 |
+
"version": "0.1.0"
|
| 50 |
+
},
|
| 51 |
+
"FET_003_PHYSX": {
|
| 52 |
+
"blocking_failure": false,
|
| 53 |
+
"dependencies": "[]",
|
| 54 |
+
"passed": true,
|
| 55 |
+
"version": "0.4.0"
|
| 56 |
+
},
|
| 57 |
+
"FET_003_STANDARD": {
|
| 58 |
+
"blocking_failure": false,
|
| 59 |
+
"dependencies": "[]",
|
| 60 |
+
"passed": true,
|
| 61 |
+
"version": "0.2.0"
|
| 62 |
+
},
|
| 63 |
+
"FET_004_MUJOCO": {
|
| 64 |
+
"blocking_failure": false,
|
| 65 |
+
"dependencies": "[{'FET_003_MUJOCO': {'version': '0.1.0'}}]",
|
| 66 |
+
"optional requirements": "['com.nvidia.simready.MUJOCO.COL.001']",
|
| 67 |
+
"passed": false,
|
| 68 |
+
"version": "0.1.0"
|
| 69 |
+
},
|
| 70 |
+
"FET_004_NEWTON": {
|
| 71 |
+
"blocking_failure": false,
|
| 72 |
+
"dependencies": "[{'FET_003_NEWTON': {'version': '0.1.0'}}]",
|
| 73 |
+
"optional requirements": "['com.nvidia.simready.NEWTON.COL.001']",
|
| 74 |
+
"passed": false,
|
| 75 |
+
"version": "0.1.0"
|
| 76 |
+
},
|
| 77 |
+
"FET_004_PHYSX": {
|
| 78 |
+
"blocking_failure": false,
|
| 79 |
+
"dependencies": "[{'FET_003_PHYSX': {'version': '0.4.0'}}]",
|
| 80 |
+
"passed": true,
|
| 81 |
+
"version": "0.4.0"
|
| 82 |
+
},
|
| 83 |
+
"FET_004_STANDARD": {
|
| 84 |
+
"blocking_failure": false,
|
| 85 |
+
"dependencies": "[{'FET_003_STANDARD': {'version': '0.2.0'}}]",
|
| 86 |
+
"passed": true,
|
| 87 |
+
"version": "0.2.0"
|
| 88 |
+
},
|
| 89 |
+
"FET_005_STANDARD": {
|
| 90 |
+
"blocking_failure": false,
|
| 91 |
+
"dependencies": "[]",
|
| 92 |
+
"optional requirements": "['com.nvidia.simready.GSP.001']",
|
| 93 |
+
"passed": false,
|
| 94 |
+
"version": "0.1.0"
|
| 95 |
+
},
|
| 96 |
+
"FET_006_MDL": {
|
| 97 |
+
"blocking_failure": false,
|
| 98 |
+
"dependencies": "[]",
|
| 99 |
+
"optional requirements": "['com.nvidia.simready.VM.BIND.002', 'com.nvidia.simready.VM.MDL.003']",
|
| 100 |
+
"passed": false,
|
| 101 |
+
"version": "0.2.0"
|
| 102 |
+
},
|
| 103 |
+
"FET_006_OPENPBR": {
|
| 104 |
+
"blocking_failure": false,
|
| 105 |
+
"dependencies": "[]",
|
| 106 |
+
"optional requirements": "['com.nvidia.simready.VM.BIND.002', 'com.nvidia.simready.VM.PBR.001', 'com.nvidia.simready.VM.PBR.003']",
|
| 107 |
+
"passed": false,
|
| 108 |
+
"version": "0.1.0"
|
| 109 |
+
},
|
| 110 |
+
"FET_006_STANDARD": {
|
| 111 |
+
"blocking_failure": false,
|
| 112 |
+
"dependencies": "[]",
|
| 113 |
+
"passed": true,
|
| 114 |
+
"version": "0.2.0"
|
| 115 |
+
},
|
| 116 |
+
"FET_007_STANDARD": {
|
| 117 |
+
"blocking_failure": false,
|
| 118 |
+
"dependencies": "[]",
|
| 119 |
+
"optional requirements": "['com.nvidia.simready.NVM.001', 'com.nvidia.simready.NVM.002', 'com.nvidia.simready.NVM.003']",
|
| 120 |
+
"passed": false,
|
| 121 |
+
"version": "0.2.0"
|
| 122 |
+
},
|
| 123 |
+
"FET_010_STANDARD": {
|
| 124 |
+
"blocking_failure": false,
|
| 125 |
+
"dependencies": "[]",
|
| 126 |
+
"optional requirements": "['com.nvidia.simready.DISP.001']",
|
| 127 |
+
"passed": false,
|
| 128 |
+
"version": "0.1.0"
|
| 129 |
+
},
|
| 130 |
+
"FET_011_RTX": {
|
| 131 |
+
"blocking_failure": false,
|
| 132 |
+
"dependencies": "[{'FET_011_STANDARD': {'version': '0.2.0'}}]",
|
| 133 |
+
"passed": true,
|
| 134 |
+
"version": "0.1.0"
|
| 135 |
+
},
|
| 136 |
+
"FET_011_STANDARD": {
|
| 137 |
+
"blocking_failure": false,
|
| 138 |
+
"dependencies": "[]",
|
| 139 |
+
"passed": true,
|
| 140 |
+
"version": "0.2.0"
|
| 141 |
+
},
|
| 142 |
+
"FET_031_STANDARD": {
|
| 143 |
+
"blocking_failure": false,
|
| 144 |
+
"dependencies": "[]",
|
| 145 |
+
"passed": true,
|
| 146 |
+
"version": "0.1.0"
|
| 147 |
+
},
|
| 148 |
+
"FET_033_STANDARD": {
|
| 149 |
+
"blocking_failure": false,
|
| 150 |
+
"dependencies": "[{'FET_031_STANDARD': {'version': '0.1.0'}}]",
|
| 151 |
+
"passed": true,
|
| 152 |
+
"version": "0.4.0"
|
| 153 |
+
},
|
| 154 |
+
"FET_046_STANDARD": {
|
| 155 |
+
"blocking_failure": false,
|
| 156 |
+
"dependencies": "[{'FET_011_STANDARD': {'version': '0.2.0'}}]",
|
| 157 |
+
"passed": true,
|
| 158 |
+
"version": "0.1.0"
|
| 159 |
+
},
|
| 160 |
+
"FET_100_ISAAC": {
|
| 161 |
+
"blocking_failure": false,
|
| 162 |
+
"dependencies": "[{'FET_003_PHYSX': {'version': '0.4.0'}}]",
|
| 163 |
+
"optional requirements": "['com.nvidia.simready.ISA.001']",
|
| 164 |
+
"passed": false,
|
| 165 |
+
"version": "0.4.0"
|
| 166 |
+
}
|
| 167 |
+
},
|
| 168 |
+
"profile_id": "Robotics-Prop",
|
| 169 |
+
"profile_version": "4.0.0",
|
| 170 |
+
"simready_validate_version": "2026.8.0",
|
| 171 |
+
"tier_versions": {
|
| 172 |
+
"sensors": "2026.8.0",
|
| 173 |
+
"tier_aif": "2026.8.0",
|
| 174 |
+
"tier_core": "2026.8.0"
|
| 175 |
+
}
|
| 176 |
+
}
|
| 177 |
+
}
|
blender/.metadata/com.nvidia.simready.conformance.Package@1.0.0.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format_version": "1.0",
|
| 3 |
+
"profile": "Package",
|
| 4 |
+
"profile_version": "1.0.0",
|
| 5 |
+
"timestamp": "2026-11-10T15:33:33",
|
| 6 |
+
"assets": [
|
| 7 |
+
{
|
| 8 |
+
"asset": "com.nvidia.simready.packaging.json",
|
| 9 |
+
"features": [
|
| 10 |
+
{
|
| 11 |
+
"FET_030_STANDARD": {
|
| 12 |
+
"version": "0.1.0",
|
| 13 |
+
"passed": true,
|
| 14 |
+
"failing_requirements": [],
|
| 15 |
+
"dependencies": []
|
| 16 |
+
}
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"FET_032_STANDARD": {
|
| 20 |
+
"version": "0.1.0",
|
| 21 |
+
"passed": true,
|
| 22 |
+
"failing_requirements": [],
|
| 23 |
+
"dependencies": [
|
| 24 |
+
{
|
| 25 |
+
"FET_030_STANDARD": {
|
| 26 |
+
"version": "0.1.0"
|
| 27 |
+
}
|
| 28 |
+
}
|
| 29 |
+
]
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
]
|
| 33 |
+
}
|
| 34 |
+
]
|
| 35 |
+
}
|
blender/.metadata/com.nvidia.simready.packaging.bom.json
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format_version": "1.0",
|
| 3 |
+
"items": [
|
| 4 |
+
{
|
| 5 |
+
"relative_path": "simready_usd/.thumbs/256x256/blender.usd.png",
|
| 6 |
+
"size": 22306,
|
| 7 |
+
"hash": {
|
| 8 |
+
"sha256-flat-1mb": "9934c8995373db028c127a082614c2b32d172bbf07efa3eea4c551dbfb105bff",
|
| 9 |
+
"sha256": "52db8134ddeeec78db354f8bf185c938d50b4ed1a2b55f4d8786b0f440b5ea10"
|
| 10 |
+
}
|
| 11 |
+
},
|
| 12 |
+
{
|
| 13 |
+
"relative_path": "simready_usd/.thumbs/256x256/blender.usd_light.png",
|
| 14 |
+
"size": 19708,
|
| 15 |
+
"hash": {
|
| 16 |
+
"sha256-flat-1mb": "b6f9817cd6f85763f2e1ac7f158c142d27a4a09fa74366086069e57ee76ca111",
|
| 17 |
+
"sha256": "659b5837da58ee5f228d850d1d1a6224195aac142b95e31b6b6aa639b1b67868"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"relative_path": "simready_usd/.thumbs/256x256/blender.usd_transparent.png",
|
| 22 |
+
"size": 26739,
|
| 23 |
+
"hash": {
|
| 24 |
+
"sha256-flat-1mb": "c2603d5be1d4e2121379569f81d45a6bebe6c7a422902b53ee6b54f425e2d9fc",
|
| 25 |
+
"sha256": "b6daed76bc09c120ee85615d9c08bf2c65e8d82eb783dec407012264b8b63118"
|
| 26 |
+
}
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"relative_path": "simready_usd/blender.json",
|
| 30 |
+
"size": 13340,
|
| 31 |
+
"hash": {
|
| 32 |
+
"sha256-flat-1mb": "8403fc29eaa969402c42aa249378cfcc9013c986f0d6dae8f9736c256e7c9d38",
|
| 33 |
+
"sha256": "c0706c9636ed69b5a9a9c5ebe31426a9b4891fc2467ff7780f7a783127e0aed3"
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"relative_path": "simready_usd/blender.usd",
|
| 38 |
+
"size": 3717896,
|
| 39 |
+
"hash": {
|
| 40 |
+
"sha256-flat-1mb": "84324f7ac43319de6a6ba15e216123fcf38ad2f34698d233d1a48e3028cc12cb",
|
| 41 |
+
"sha256": "844fb1f83a5a07989a3e4bd810c1bdde05cfaf87e98dbf0f2497c2642eb4b625",
|
| 42 |
+
"sha256-first1m": "015ad99354e4c3c3055771857a814ffe7f341e614b306cfb8d3a56695b228f06"
|
| 43 |
+
}
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"relative_path": "simready_usd/materials/OmniGlass.mdl",
|
| 47 |
+
"size": 9945,
|
| 48 |
+
"hash": {
|
| 49 |
+
"sha256-flat-1mb": "c38116fcbe9b0d4c64b7e32d54a5f697e5f2a37fdac278edf2389c57ae8875c7",
|
| 50 |
+
"sha256": "c3f9555fbf8db2c4d47ac25501afaf23720260255381bde3df003fecf01869af"
|
| 51 |
+
}
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"relative_path": "simready_usd/materials/OmniGlass_Opacity.mdl",
|
| 55 |
+
"size": 17219,
|
| 56 |
+
"hash": {
|
| 57 |
+
"sha256-flat-1mb": "4dd5e0142971c1304de176f9c0fdac0805468bd6f19e44ddeebccf499b2da9af",
|
| 58 |
+
"sha256": "87facd037b11888d3052b663bb20e41367b769095bde4c9cf686925fa17eb2a4"
|
| 59 |
+
}
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"relative_path": "simready_usd/materials/OmniPBRBase.mdl",
|
| 63 |
+
"size": 18876,
|
| 64 |
+
"hash": {
|
| 65 |
+
"sha256-flat-1mb": "b6e947c33ebd4af4638d33f2d4f765ff151208bdb47897e8a804066ebe4e7d1e",
|
| 66 |
+
"sha256": "edcc669a238798a4d90ce36bd535282d23f88cddc544d68a532a5b732432788e"
|
| 67 |
+
}
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"relative_path": "simready_usd/textures/blender_basecolor_texture0png.png",
|
| 71 |
+
"size": 14170970,
|
| 72 |
+
"hash": {
|
| 73 |
+
"sha256-flat-1mb": "3c9d50fee40ffc3e3f07b0fc610af6506f194650166ade998d66f8d9889a3f69",
|
| 74 |
+
"sha256": "d1dd56104eabfb3a538c2fb36ba891612a3a975020d4e657dae1197125128fae",
|
| 75 |
+
"sha256-first1m": "4a0c4462c32a91493d9171e62ec486dcbc0f9870d40192e4b512305f7520e217"
|
| 76 |
+
}
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"relative_path": "simready_usd/textures/blender_metallic_texture0metallicpng.png",
|
| 80 |
+
"size": 340114,
|
| 81 |
+
"hash": {
|
| 82 |
+
"sha256-flat-1mb": "184e05c2db557d62d7072e841e3e4b715249e4d353c0a4b9189deeded06dffe8",
|
| 83 |
+
"sha256": "544699cb194ae153c167cc006f2f6894b047b5bab60c77ce03981b37610cecba"
|
| 84 |
+
}
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"relative_path": "simready_usd/textures/blender_normal_texture0normalpng.png",
|
| 88 |
+
"size": 9714802,
|
| 89 |
+
"hash": {
|
| 90 |
+
"sha256-flat-1mb": "a020e97fa3c7d47f8a5fe058b4652a98b8a849ed4f9074e99bcc9b919ce06d61",
|
| 91 |
+
"sha256": "e83611160b7e897596662dba8ba19b1fa3a907181eb98e4d7b113e8f8073a881",
|
| 92 |
+
"sha256-first1m": "a99c37244b86b05f922b1371be6f18f94f588bac66cc9496d119c9b199e19bbf"
|
| 93 |
+
}
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"relative_path": "simready_usd/textures/blender_roughness_texture0roughnesspng.png",
|
| 97 |
+
"size": 763320,
|
| 98 |
+
"hash": {
|
| 99 |
+
"sha256-flat-1mb": "8e05ce5c65ed6afa44dd9d5e1fd2e3e141eecd6ed1d24df7619b17ef53fb3d46",
|
| 100 |
+
"sha256": "e33c7d3625009ff4100c67c6b47ae57333939e1b74a3dad089bb33a283417ac9"
|
| 101 |
+
}
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"relative_path": "simready_usd/textures/library/brushed_normal_f2cfd7448132.png",
|
| 105 |
+
"size": 4637,
|
| 106 |
+
"hash": {
|
| 107 |
+
"sha256-flat-1mb": "960aa2c3f9da265a0c866d657f95e5b1da34c0dae22fd05a5c38b0902d6d98fa",
|
| 108 |
+
"sha256": "f2cfd74481329ad22ee4f9ba5121a9e30c4660b03620b0f866092dc7e1992738"
|
| 109 |
+
}
|
| 110 |
+
},
|
| 111 |
+
{
|
| 112 |
+
"relative_path": "simready_usd/textures/library/brushed_roughness_e609a5e8bb77.png",
|
| 113 |
+
"size": 121727,
|
| 114 |
+
"hash": {
|
| 115 |
+
"sha256-flat-1mb": "b0c38e4c7f7774da33b845cf1f81bfd63e64f1253a980804d62fd34f5a157859",
|
| 116 |
+
"sha256": "e609a5e8bb77a9f9229283343933e50a66a512832fa9430df64247293fc02f92"
|
| 117 |
+
}
|
| 118 |
+
}
|
| 119 |
+
]
|
| 120 |
+
}
|
blender/com.nvidia.simready.packaging.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format_version": "1.0",
|
| 3 |
+
"package_id": "simready.hf.projectsim.simready-assets.blender.2026.11.10_00",
|
| 4 |
+
"license": "cc-by-4.0",
|
| 5 |
+
"metadata": [
|
| 6 |
+
{
|
| 7 |
+
"name": "com.nvidia.simready.conformance.Package-Candidate@1.0.0.json",
|
| 8 |
+
"hash": {
|
| 9 |
+
"sha256": "ea12078998e2397a6ab1a524d2a06cb749cd04ce3f1d11b1dc1bb680a85e62ed"
|
| 10 |
+
}
|
| 11 |
+
},
|
| 12 |
+
{
|
| 13 |
+
"name": "com.nvidia.simready.packaging.bom.json",
|
| 14 |
+
"hash": {
|
| 15 |
+
"sha256": "8ec694b84c8c65c9968c6f4c7ef85581081e3ace65631c6b2eb9ac1a99ebb210"
|
| 16 |
+
}
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"name": "com.nvidia.simready.root_usds.json",
|
| 20 |
+
"hash": {
|
| 21 |
+
"sha256": "89766e45644cb3cfc008ceacdcf1f55d17d5421cd242a71b065c4a798e0c8f7a"
|
| 22 |
+
}
|
| 23 |
+
}
|
| 24 |
+
],
|
| 25 |
+
"content_hash": {
|
| 26 |
+
"sha256": "ce75f28749a6c55c3f87c3e151936c5024818f3b1966754fa9c508fbc1fbb77d"
|
| 27 |
+
},
|
| 28 |
+
"package_hash": {
|
| 29 |
+
"sha256": "dc2e653823bd69e07c9dcf2bfa45e1ccfee99b9dd6e88bf2ba28459a23ba4ec2"
|
| 30 |
+
}
|
| 31 |
+
}
|
blender/simready_usd/.thumbs/256x256/blender.usd.png
ADDED
|
|
Git LFS Details
|
blender/simready_usd/.thumbs/256x256/blender.usd_light.png
ADDED
|
|
Git LFS Details
|
blender/simready_usd/.thumbs/256x256/blender.usd_transparent.png
ADDED
|
|
Git LFS Details
|
blender/simready_usd/blender.json
ADDED
|
@@ -0,0 +1,402 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"physics": {
|
| 3 |
+
"articulation": {
|
| 4 |
+
"schema_version": "articulation/2",
|
| 5 |
+
"root_link": "base",
|
| 6 |
+
"base_mode": "free",
|
| 7 |
+
"world_joint": null,
|
| 8 |
+
"behavior_sleep_threshold": null,
|
| 9 |
+
"handoff_base_mode": "free",
|
| 10 |
+
"base_mode_source": "handoff",
|
| 11 |
+
"collision_filter": {
|
| 12 |
+
"mode": "adjacent",
|
| 13 |
+
"explicit_excluded_link_pairs": [],
|
| 14 |
+
"handoff_excluded_link_pairs": [
|
| 15 |
+
[
|
| 16 |
+
"base",
|
| 17 |
+
"dial"
|
| 18 |
+
],
|
| 19 |
+
[
|
| 20 |
+
"base",
|
| 21 |
+
"jug"
|
| 22 |
+
],
|
| 23 |
+
[
|
| 24 |
+
"cap",
|
| 25 |
+
"lid"
|
| 26 |
+
],
|
| 27 |
+
[
|
| 28 |
+
"jug",
|
| 29 |
+
"lid"
|
| 30 |
+
],
|
| 31 |
+
[
|
| 32 |
+
"jug",
|
| 33 |
+
"rotor"
|
| 34 |
+
]
|
| 35 |
+
],
|
| 36 |
+
"excluded_link_pairs": [
|
| 37 |
+
[
|
| 38 |
+
"base",
|
| 39 |
+
"dial"
|
| 40 |
+
],
|
| 41 |
+
[
|
| 42 |
+
"base",
|
| 43 |
+
"jug"
|
| 44 |
+
],
|
| 45 |
+
[
|
| 46 |
+
"cap",
|
| 47 |
+
"lid"
|
| 48 |
+
],
|
| 49 |
+
[
|
| 50 |
+
"jug",
|
| 51 |
+
"lid"
|
| 52 |
+
],
|
| 53 |
+
[
|
| 54 |
+
"jug",
|
| 55 |
+
"rotor"
|
| 56 |
+
]
|
| 57 |
+
],
|
| 58 |
+
"representation": "UsdPhysics.FilteredPairsAPI plus joint collisionEnabled",
|
| 59 |
+
"external_contacts": "enabled",
|
| 60 |
+
"other_engine_validation": "not_run"
|
| 61 |
+
},
|
| 62 |
+
"collider_aggregation": "link",
|
| 63 |
+
"joint_count": 5,
|
| 64 |
+
"joint_types": {
|
| 65 |
+
"fixed": 3,
|
| 66 |
+
"revolute": 2
|
| 67 |
+
},
|
| 68 |
+
"axis_rule": "physics:axis X; both joint frames rotated by the quaternion mapping +X onto the contract axis",
|
| 69 |
+
"links": {
|
| 70 |
+
"base": {
|
| 71 |
+
"prim": "/blender/base",
|
| 72 |
+
"mass_kg": 1.0028,
|
| 73 |
+
"mass_source": "VLM per-part estimate, 10 of 10 meshes",
|
| 74 |
+
"colliders": 1,
|
| 75 |
+
"collision": [
|
| 76 |
+
{
|
| 77 |
+
"prim": "/blender/base/Collisions/link_collision",
|
| 78 |
+
"approximation": "convexDecomposition",
|
| 79 |
+
"basis": "combined rigid link; bounded concave cook",
|
| 80 |
+
"source_mesh_count": 10,
|
| 81 |
+
"source_meshes": [
|
| 82 |
+
"/blender/base/base__visual_000/lower_plinth_001",
|
| 83 |
+
"/blender/base/base__visual_001/brushed_lower_band_001",
|
| 84 |
+
"/blender/base/base__visual_002/lower_control_fascia_001",
|
| 85 |
+
"/blender/base/base__visual_003/upper_motor_housing_001",
|
| 86 |
+
"/blender/base/base__visual_004/jug_socket_001",
|
| 87 |
+
"/blender/base/base__visual_005/rubber_foot_004",
|
| 88 |
+
"/blender/base/base__visual_006/rubber_foot_005",
|
| 89 |
+
"/blender/base/base__visual_007/rubber_foot_006",
|
| 90 |
+
"/blender/base/base__visual_008/rubber_foot_007",
|
| 91 |
+
"/blender/base/base__visual_009/selector_surround_001"
|
| 92 |
+
],
|
| 93 |
+
"aggregation": "link",
|
| 94 |
+
"boolean_union": false,
|
| 95 |
+
"cooked_shape_count": null
|
| 96 |
+
}
|
| 97 |
+
]
|
| 98 |
+
},
|
| 99 |
+
"jug": {
|
| 100 |
+
"prim": "/blender/jug",
|
| 101 |
+
"mass_kg": 0.2538,
|
| 102 |
+
"mass_source": "VLM per-part estimate, 3 of 3 meshes",
|
| 103 |
+
"colliders": 1,
|
| 104 |
+
"collision": [
|
| 105 |
+
{
|
| 106 |
+
"prim": "/blender/jug/Collisions/link_collision",
|
| 107 |
+
"approximation": "convexDecomposition",
|
| 108 |
+
"basis": "combined rigid link; bounded concave cook",
|
| 109 |
+
"source_mesh_count": 3,
|
| 110 |
+
"source_meshes": [
|
| 111 |
+
"/blender/jug/jug__visual_000/thick_glass_pitcher_001",
|
| 112 |
+
"/blender/jug/jug__visual_001/glass_loop_handle_001",
|
| 113 |
+
"/blender/jug/jug__visual_002/glass_rim_001"
|
| 114 |
+
],
|
| 115 |
+
"aggregation": "link",
|
| 116 |
+
"boolean_union": false,
|
| 117 |
+
"cooked_shape_count": null
|
| 118 |
+
}
|
| 119 |
+
]
|
| 120 |
+
},
|
| 121 |
+
"lid": {
|
| 122 |
+
"prim": "/blender/lid",
|
| 123 |
+
"mass_kg": 0.0711,
|
| 124 |
+
"mass_source": "VLM per-part estimate, 2 of 2 meshes",
|
| 125 |
+
"colliders": 1,
|
| 126 |
+
"collision": [
|
| 127 |
+
{
|
| 128 |
+
"prim": "/blender/lid/Collisions/link_collision",
|
| 129 |
+
"approximation": "convexDecomposition",
|
| 130 |
+
"basis": "combined rigid link; bounded concave cook",
|
| 131 |
+
"source_mesh_count": 2,
|
| 132 |
+
"source_meshes": [
|
| 133 |
+
"/blender/lid/lid__visual_000/black_lid_001",
|
| 134 |
+
"/blender/lid/lid__visual_001/lid_sealing_ring_001"
|
| 135 |
+
],
|
| 136 |
+
"aggregation": "link",
|
| 137 |
+
"boolean_union": false,
|
| 138 |
+
"cooked_shape_count": null
|
| 139 |
+
}
|
| 140 |
+
]
|
| 141 |
+
},
|
| 142 |
+
"cap": {
|
| 143 |
+
"prim": "/blender/cap",
|
| 144 |
+
"mass_kg": 0.0095,
|
| 145 |
+
"mass_source": "VLM per-part estimate, 1 of 1 meshes",
|
| 146 |
+
"colliders": 1,
|
| 147 |
+
"collision": [
|
| 148 |
+
{
|
| 149 |
+
"prim": "/blender/cap/Collisions/link_collision",
|
| 150 |
+
"approximation": "convexDecomposition",
|
| 151 |
+
"basis": "auto-convex: convex decomposition instead of sdf",
|
| 152 |
+
"source_mesh_count": 1,
|
| 153 |
+
"source_meshes": [
|
| 154 |
+
"/blender/cap/cap__visual_000/transparent_filler_cap_001"
|
| 155 |
+
],
|
| 156 |
+
"aggregation": "link",
|
| 157 |
+
"boolean_union": false,
|
| 158 |
+
"cooked_shape_count": null
|
| 159 |
+
}
|
| 160 |
+
]
|
| 161 |
+
},
|
| 162 |
+
"dial": {
|
| 163 |
+
"prim": "/blender/dial",
|
| 164 |
+
"mass_kg": 0.0142,
|
| 165 |
+
"mass_source": "VLM per-part estimate, 3 of 3 meshes",
|
| 166 |
+
"colliders": 1,
|
| 167 |
+
"collision": [
|
| 168 |
+
{
|
| 169 |
+
"prim": "/blender/dial/Collisions/link_collision",
|
| 170 |
+
"approximation": "convexDecomposition",
|
| 171 |
+
"basis": "combined rigid link; bounded concave cook",
|
| 172 |
+
"source_mesh_count": 3,
|
| 173 |
+
"source_meshes": [
|
| 174 |
+
"/blender/dial/dial__visual_000/selector_knob_001",
|
| 175 |
+
"/blender/dial/dial__visual_001/selector_grip_001",
|
| 176 |
+
"/blender/dial/dial__visual_002/selector_pointer_001"
|
| 177 |
+
],
|
| 178 |
+
"aggregation": "link",
|
| 179 |
+
"boolean_union": false,
|
| 180 |
+
"cooked_shape_count": null
|
| 181 |
+
}
|
| 182 |
+
]
|
| 183 |
+
},
|
| 184 |
+
"rotor": {
|
| 185 |
+
"prim": "/blender/rotor",
|
| 186 |
+
"mass_kg": 0.0184,
|
| 187 |
+
"mass_source": "VLM per-part estimate, 5 of 5 meshes",
|
| 188 |
+
"colliders": 1,
|
| 189 |
+
"collision": [
|
| 190 |
+
{
|
| 191 |
+
"prim": "/blender/rotor/Collisions/link_collision",
|
| 192 |
+
"approximation": "convexDecomposition",
|
| 193 |
+
"basis": "combined rigid link; bounded concave cook",
|
| 194 |
+
"source_mesh_count": 5,
|
| 195 |
+
"source_meshes": [
|
| 196 |
+
"/blender/rotor/rotor__visual_000/blade_hub_001",
|
| 197 |
+
"/blender/rotor/rotor__visual_001/blade_004",
|
| 198 |
+
"/blender/rotor/rotor__visual_002/blade_005",
|
| 199 |
+
"/blender/rotor/rotor__visual_003/blade_006",
|
| 200 |
+
"/blender/rotor/rotor__visual_004/blade_007"
|
| 201 |
+
],
|
| 202 |
+
"aggregation": "link",
|
| 203 |
+
"boolean_union": false,
|
| 204 |
+
"cooked_shape_count": null
|
| 205 |
+
}
|
| 206 |
+
]
|
| 207 |
+
}
|
| 208 |
+
},
|
| 209 |
+
"joints": {
|
| 210 |
+
"jug_mount": {
|
| 211 |
+
"path": "/blender/Joints/jug_mount",
|
| 212 |
+
"type": "fixed",
|
| 213 |
+
"parent": "base",
|
| 214 |
+
"child": "jug",
|
| 215 |
+
"axis_contract": [
|
| 216 |
+
0.0,
|
| 217 |
+
0.0,
|
| 218 |
+
1.0
|
| 219 |
+
],
|
| 220 |
+
"axis_token": "X",
|
| 221 |
+
"frame_alignment_wxyz": [
|
| 222 |
+
0.707106781,
|
| 223 |
+
0.0,
|
| 224 |
+
-0.707106781,
|
| 225 |
+
0.0
|
| 226 |
+
]
|
| 227 |
+
},
|
| 228 |
+
"lid_seat": {
|
| 229 |
+
"path": "/blender/Joints/lid_seat",
|
| 230 |
+
"type": "fixed",
|
| 231 |
+
"parent": "jug",
|
| 232 |
+
"child": "lid",
|
| 233 |
+
"axis_contract": [
|
| 234 |
+
0.0,
|
| 235 |
+
0.0,
|
| 236 |
+
1.0
|
| 237 |
+
],
|
| 238 |
+
"axis_token": "X",
|
| 239 |
+
"frame_alignment_wxyz": [
|
| 240 |
+
0.707106781,
|
| 241 |
+
0.0,
|
| 242 |
+
-0.707106781,
|
| 243 |
+
0.0
|
| 244 |
+
]
|
| 245 |
+
},
|
| 246 |
+
"filler_seat": {
|
| 247 |
+
"path": "/blender/Joints/filler_seat",
|
| 248 |
+
"type": "fixed",
|
| 249 |
+
"parent": "lid",
|
| 250 |
+
"child": "cap",
|
| 251 |
+
"axis_contract": [
|
| 252 |
+
0.0,
|
| 253 |
+
0.0,
|
| 254 |
+
1.0
|
| 255 |
+
],
|
| 256 |
+
"axis_token": "X",
|
| 257 |
+
"frame_alignment_wxyz": [
|
| 258 |
+
0.707106781,
|
| 259 |
+
0.0,
|
| 260 |
+
-0.707106781,
|
| 261 |
+
0.0
|
| 262 |
+
]
|
| 263 |
+
},
|
| 264 |
+
"speed_selector": {
|
| 265 |
+
"path": "/blender/Joints/speed_selector",
|
| 266 |
+
"type": "revolute",
|
| 267 |
+
"parent": "base",
|
| 268 |
+
"child": "dial",
|
| 269 |
+
"axis_contract": [
|
| 270 |
+
0.0,
|
| 271 |
+
-1.0,
|
| 272 |
+
0.0
|
| 273 |
+
],
|
| 274 |
+
"axis_token": "X",
|
| 275 |
+
"frame_alignment_wxyz": [
|
| 276 |
+
0.707106781,
|
| 277 |
+
0.0,
|
| 278 |
+
-0.0,
|
| 279 |
+
-0.707106781
|
| 280 |
+
],
|
| 281 |
+
"limits": {
|
| 282 |
+
"lower": -31.512679,
|
| 283 |
+
"upper": 91.673247,
|
| 284 |
+
"unit": "deg"
|
| 285 |
+
},
|
| 286 |
+
"drive": {
|
| 287 |
+
"type": "force",
|
| 288 |
+
"stiffness": 0.0,
|
| 289 |
+
"damping": 4.3209817590650346e-07,
|
| 290 |
+
"damping_si": 2.4757401814744082e-05,
|
| 291 |
+
"stiffness_si": 0.0,
|
| 292 |
+
"max_force": null,
|
| 293 |
+
"target_velocity": 0.0,
|
| 294 |
+
"damping_unit": "N*m*s/deg",
|
| 295 |
+
"damping_si_unit": "N*m*s/rad",
|
| 296 |
+
"note": "passive drive kept; joint friction holds the position"
|
| 297 |
+
},
|
| 298 |
+
"behavior": {
|
| 299 |
+
"recipe_version": "joint-behavior/1",
|
| 300 |
+
"intent": {
|
| 301 |
+
"confidence": "medium",
|
| 302 |
+
"mode": "hold_position",
|
| 303 |
+
"reason": "Turn selector manually; inferred detents hold selected speed after release. Pulse return is not represented by this single joint."
|
| 304 |
+
},
|
| 305 |
+
"status": "resolved",
|
| 306 |
+
"simulator_status": "not_run",
|
| 307 |
+
"effective_mass_or_inertia_si": 4.217341092593987e-06,
|
| 308 |
+
"gravity_bound_si": 0.0009676893671454488,
|
| 309 |
+
"gravity_at_rest_si": 9.059609930421055e-16,
|
| 310 |
+
"effort_unit": "N*m",
|
| 311 |
+
"assumptions": "Earth gravity; own descendant masses; no external payload; nominal downstream q=0 for interior spring balance",
|
| 312 |
+
"warnings": [
|
| 313 |
+
"Interaction must exceed the reported resistance; viewport dragging is not universally guaranteed."
|
| 314 |
+
],
|
| 315 |
+
"stiffness_si": 0.0,
|
| 316 |
+
"damping_si": 0.0,
|
| 317 |
+
"target_position_si": 0.0,
|
| 318 |
+
"max_effort_si": 0.0,
|
| 319 |
+
"static_friction_si": 0.012,
|
| 320 |
+
"dynamic_friction_si": 0.01,
|
| 321 |
+
"required_capability": "PhysxJointAxisAPI",
|
| 322 |
+
"supported_links": {
|
| 323 |
+
"dial": {
|
| 324 |
+
"mass_kg": 0.0142,
|
| 325 |
+
"mass_properties": "mesh integrals scaled to resolved mass"
|
| 326 |
+
}
|
| 327 |
+
}
|
| 328 |
+
}
|
| 329 |
+
},
|
| 330 |
+
"blade_rotation": {
|
| 331 |
+
"path": "/blender/Joints/blade_rotation",
|
| 332 |
+
"type": "revolute",
|
| 333 |
+
"parent": "jug",
|
| 334 |
+
"child": "rotor",
|
| 335 |
+
"axis_contract": [
|
| 336 |
+
0.0,
|
| 337 |
+
0.0,
|
| 338 |
+
1.0
|
| 339 |
+
],
|
| 340 |
+
"axis_token": "X",
|
| 341 |
+
"frame_alignment_wxyz": [
|
| 342 |
+
0.707106781,
|
| 343 |
+
0.0,
|
| 344 |
+
-0.707106781,
|
| 345 |
+
0.0
|
| 346 |
+
],
|
| 347 |
+
"limits": {
|
| 348 |
+
"lower": -180.0,
|
| 349 |
+
"upper": 180.0,
|
| 350 |
+
"unit": "deg",
|
| 351 |
+
"continuous": true,
|
| 352 |
+
"authored": false
|
| 353 |
+
},
|
| 354 |
+
"drive": {
|
| 355 |
+
"type": "force",
|
| 356 |
+
"stiffness": 0.0,
|
| 357 |
+
"damping": 1.3321597221366875e-06,
|
| 358 |
+
"damping_unit": "N*m*s/deg",
|
| 359 |
+
"damping_si": 7.632712971575265e-05,
|
| 360 |
+
"damping_basis": "4/s x load 1.91e-05",
|
| 361 |
+
"damping_si_unit": "N*m*s/rad",
|
| 362 |
+
"note": "passive joint: damping only; no actuation authored"
|
| 363 |
+
},
|
| 364 |
+
"behavior": {
|
| 365 |
+
"intent": {
|
| 366 |
+
"confidence": "high",
|
| 367 |
+
"mode": "none",
|
| 368 |
+
"reason": "Unpowered blade shaft can spin and slow with damping after release; no powered controller is modeled."
|
| 369 |
+
},
|
| 370 |
+
"status": "passive",
|
| 371 |
+
"simulator_status": "not_run"
|
| 372 |
+
}
|
| 373 |
+
}
|
| 374 |
+
},
|
| 375 |
+
"preview_controls": [],
|
| 376 |
+
"reference_pose": {
|
| 377 |
+
"blade_rotation": 0.0,
|
| 378 |
+
"speed_selector": 0.0
|
| 379 |
+
},
|
| 380 |
+
"provenance": {
|
| 381 |
+
"base_mode_reason": "Portable countertop appliance, with no attachment to the world.",
|
| 382 |
+
"base_mode_source": "author_explicit",
|
| 383 |
+
"contract_revision": "2.0",
|
| 384 |
+
"producer": "articulated-asset-generation",
|
| 385 |
+
"producer_version": "0.1.0"
|
| 386 |
+
}
|
| 387 |
+
},
|
| 388 |
+
"mass_kg": 1.3698,
|
| 389 |
+
"colliders": 6,
|
| 390 |
+
"status": "articulated_body",
|
| 391 |
+
"material_class": "plastic",
|
| 392 |
+
"engine": "physx",
|
| 393 |
+
"multipart_physx": false,
|
| 394 |
+
"static_friction": 0.35,
|
| 395 |
+
"dynamic_friction": 0.28,
|
| 396 |
+
"restitution": 0.3,
|
| 397 |
+
"friction_model": "legacy",
|
| 398 |
+
"friction_convention": "pair_value_on_steel_dry",
|
| 399 |
+
"dynamic_friction_source": "material_table",
|
| 400 |
+
"dynamic_friction_convention": "pair_value_on_steel_dry"
|
| 401 |
+
}
|
| 402 |
+
}
|
blender/simready_usd/blender.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:844fb1f83a5a07989a3e4bd810c1bdde05cfaf87e98dbf0f2497c2642eb4b625
|
| 3 |
+
size 3717896
|
blender/simready_usd/materials/OmniGlass.mdl
ADDED
|
@@ -0,0 +1,261 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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* Copyright 2020 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* Redistribution and use in source and binary forms, with or without
|
| 5 |
+
* modification, are permitted provided that the following conditions
|
| 6 |
+
* are met:
|
| 7 |
+
* * Redistributions of source code must retain the above copyright
|
| 8 |
+
* notice, this list of conditions and the following disclaimer.
|
| 9 |
+
* * Redistributions in binary form must reproduce the above copyright
|
| 10 |
+
* notice, this list of conditions and the following disclaimer in the
|
| 11 |
+
* documentation and/or other materials provided with the distribution.
|
| 12 |
+
* * Neither the name of NVIDIA CORPORATION nor the names of its
|
| 13 |
+
* contributors may be used to endorse or promote products derived
|
| 14 |
+
* from this software without specific prior written permission.
|
| 15 |
+
*
|
| 16 |
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
|
| 17 |
+
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
| 18 |
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
| 19 |
+
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
| 20 |
+
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
| 21 |
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
| 22 |
+
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
| 23 |
+
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
| 24 |
+
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 25 |
+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 26 |
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 27 |
+
**************************************************************************************************/
|
| 28 |
+
|
| 29 |
+
mdl 1.7;
|
| 30 |
+
import ::anno::*;
|
| 31 |
+
import ::base::*;
|
| 32 |
+
import ::tex::*;
|
| 33 |
+
|
| 34 |
+
using OmniGlass_Opacity import OmniGlass_Opacity;
|
| 35 |
+
export annotation distill_off();
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
export material OmniGlass
|
| 39 |
+
(
|
| 40 |
+
color absorption_coeff = color(0.f, 0.f, 0.f) // hiding this parameter as it does not exist in the new material
|
| 41 |
+
[[
|
| 42 |
+
anno::hidden(),
|
| 43 |
+
anno::unused()
|
| 44 |
+
]],
|
| 45 |
+
uniform bool use_glass_color_texture = false
|
| 46 |
+
[[
|
| 47 |
+
anno::hidden(),
|
| 48 |
+
anno::unused()
|
| 49 |
+
]],
|
| 50 |
+
uniform color glass_color = color(1.f, 1.f, 1.f)
|
| 51 |
+
[[
|
| 52 |
+
anno::display_name("Glass Color"),
|
| 53 |
+
anno::description("Sets the color of the glass"),
|
| 54 |
+
anno::hard_range(color(0.0), color(1.0)),
|
| 55 |
+
anno::in_group("Color")
|
| 56 |
+
]],
|
| 57 |
+
uniform texture_2d glass_color_texture = texture_2d()
|
| 58 |
+
[[
|
| 59 |
+
anno::display_name("Glass Color Texture"),
|
| 60 |
+
anno::description("Specifies the texture to be used for the glass color of the material"),
|
| 61 |
+
anno::in_group("Color")
|
| 62 |
+
]],
|
| 63 |
+
float frosting_roughness = 0.f
|
| 64 |
+
[[
|
| 65 |
+
anno::display_name("Glass Roughness"),
|
| 66 |
+
anno::description("Sets the roughness of the glass material "),
|
| 67 |
+
anno::hard_range(0.0, 1.0),
|
| 68 |
+
anno::in_group("Roughness")
|
| 69 |
+
]],
|
| 70 |
+
uniform float glass_ior = 1.491f
|
| 71 |
+
[[
|
| 72 |
+
anno::display_name("Glass IOR"),
|
| 73 |
+
anno::description("Sets IOR of the glass material "),
|
| 74 |
+
anno::soft_range(1.0f, 4.0f),
|
| 75 |
+
anno::in_group("Refraction")
|
| 76 |
+
]],
|
| 77 |
+
uniform bool thin_walled = false
|
| 78 |
+
[[
|
| 79 |
+
anno::display_name("Thin Walled"),
|
| 80 |
+
anno::description("When enabled, the material is considered thin-walled. Use this, when you have glass surfaces that are modeled with a single plane"),
|
| 81 |
+
anno::in_group("Refraction")
|
| 82 |
+
]],
|
| 83 |
+
uniform float depth = 0.001f
|
| 84 |
+
[[
|
| 85 |
+
anno::description("Controls how much light is absorbed through the surface"),
|
| 86 |
+
anno::display_name("Volume Absorption Scale"),
|
| 87 |
+
anno::in_group("Color"),
|
| 88 |
+
anno::soft_range(0.f, 1.f),
|
| 89 |
+
anno::hard_range(0.f, 1000.f)
|
| 90 |
+
]],
|
| 91 |
+
float roughness_texture_influence = 1.f
|
| 92 |
+
[[
|
| 93 |
+
anno::display_name("Roughness Texture Influence"),
|
| 94 |
+
anno::in_group("Roughness"),
|
| 95 |
+
anno::hard_range(0.0f, 1.0f)
|
| 96 |
+
]],
|
| 97 |
+
uniform texture_2d roughness_texture = texture_2d()
|
| 98 |
+
[[
|
| 99 |
+
anno::description("The roughness texture"),
|
| 100 |
+
anno::display_name("Roughness Texture"),
|
| 101 |
+
anno::in_group("Roughness"),
|
| 102 |
+
anno::usage("roughness")
|
| 103 |
+
]],
|
| 104 |
+
uniform texture_2d reflection_color_texture = texture_2d()
|
| 105 |
+
[[
|
| 106 |
+
anno::description("The reflection color texture"),
|
| 107 |
+
anno::display_name("Reflection Color Texture"),
|
| 108 |
+
anno::in_group("Reflection")
|
| 109 |
+
]],
|
| 110 |
+
uniform color reflection_color = color(1.f, 1.f, 1.f)
|
| 111 |
+
[[
|
| 112 |
+
anno::display_name("Reflection Color"),
|
| 113 |
+
anno::in_group("Reflection")
|
| 114 |
+
]],
|
| 115 |
+
uniform texture_2d normal_map_texture = texture_2d()
|
| 116 |
+
[[
|
| 117 |
+
anno::description("The normal map texture"),
|
| 118 |
+
anno::display_name("Normal Map Texture"),
|
| 119 |
+
anno::in_group("Normal"),
|
| 120 |
+
anno::usage("normal")
|
| 121 |
+
]],
|
| 122 |
+
uniform float normal_map_strength = 1.0
|
| 123 |
+
[[
|
| 124 |
+
anno::description("Determines the degree of bumpiness"),
|
| 125 |
+
anno::display_name("Normal Map Strength"),
|
| 126 |
+
anno::in_group("Normal"),
|
| 127 |
+
anno::usage(""),
|
| 128 |
+
anno::soft_range(0.f, 1.f)
|
| 129 |
+
]],
|
| 130 |
+
uniform float geometry_normal_roughness_strength = 1.f
|
| 131 |
+
[[
|
| 132 |
+
anno::hard_range(0.f, 1.f),
|
| 133 |
+
anno::display_name("Normal map to roughness weight"),
|
| 134 |
+
anno::description("Enables and weights roughness induced by normal maps"),
|
| 135 |
+
anno::in_group("Normal")
|
| 136 |
+
]],
|
| 137 |
+
uniform bool flip_tangent_u = false
|
| 138 |
+
[[
|
| 139 |
+
anno::display_name("Normal Map Flip U Tangent"),
|
| 140 |
+
anno::in_group("Normal")
|
| 141 |
+
]],
|
| 142 |
+
uniform bool flip_tangent_v = true
|
| 143 |
+
[[
|
| 144 |
+
anno::display_name("Normal Map Flip V Tangent"),
|
| 145 |
+
anno::in_group("Normal")
|
| 146 |
+
]],
|
| 147 |
+
|
| 148 |
+
// Cutout Opacity
|
| 149 |
+
uniform bool enable_opacity = false
|
| 150 |
+
[[
|
| 151 |
+
anno::display_name("Enable Opacity"),
|
| 152 |
+
anno::description("Enables the use of cutout opacity"),
|
| 153 |
+
anno::in_group("Opacity")
|
| 154 |
+
]],
|
| 155 |
+
uniform float cutout_opacity = 1.0f
|
| 156 |
+
[[
|
| 157 |
+
anno::hard_range(0.0, 1.0),
|
| 158 |
+
anno::display_name("Opacity Amount"),
|
| 159 |
+
anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"),
|
| 160 |
+
anno::in_group("Opacity")
|
| 161 |
+
]],
|
| 162 |
+
uniform texture_2d cutout_opacity_texture = texture_2d()
|
| 163 |
+
[[
|
| 164 |
+
anno::description("The opacity map"),
|
| 165 |
+
anno::display_name("Opacity Map"),
|
| 166 |
+
anno::in_group("Opacity"),
|
| 167 |
+
anno::usage("opacity")
|
| 168 |
+
]],
|
| 169 |
+
uniform base::mono_mode cutout_opacity_mono_source = base::mono_alpha
|
| 170 |
+
[[
|
| 171 |
+
anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"),
|
| 172 |
+
anno::display_name("Opacity Mono Source"),
|
| 173 |
+
anno::in_group("Opacity"),
|
| 174 |
+
anno::usage("")
|
| 175 |
+
]],
|
| 176 |
+
uniform float opacity_threshold = 0.f
|
| 177 |
+
[[
|
| 178 |
+
anno::hard_range(0.0, 1.0),
|
| 179 |
+
anno::display_name("Opacity Threshold"),
|
| 180 |
+
anno::description("If negative, disable cutout_opacity; if 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"),
|
| 181 |
+
anno::in_group("Opacity")
|
| 182 |
+
]],
|
| 183 |
+
|
| 184 |
+
// UV Projection Group
|
| 185 |
+
uniform bool project_uvw = false
|
| 186 |
+
[[
|
| 187 |
+
anno::display_name("Enable Project UVW Coordinates"),
|
| 188 |
+
anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"),
|
| 189 |
+
anno::in_group("UV")
|
| 190 |
+
]],
|
| 191 |
+
uniform bool world_or_object = false
|
| 192 |
+
[[
|
| 193 |
+
anno::display_name("Enable World Space"),
|
| 194 |
+
anno::description("When set to 'true' uses world space for projection, when 'false' object space is used"),
|
| 195 |
+
anno::in_group("UV")
|
| 196 |
+
]],
|
| 197 |
+
|
| 198 |
+
// UV Space Selector
|
| 199 |
+
uniform int uv_space_index = 0
|
| 200 |
+
[[
|
| 201 |
+
anno::display_name("UV Space Index"),
|
| 202 |
+
anno::description("Choose the UV Space Index to be used"),
|
| 203 |
+
anno::in_group("UV"),
|
| 204 |
+
anno::hard_range(0, 3)
|
| 205 |
+
]],
|
| 206 |
+
uniform float2 texture_translate = float2(0.0f)
|
| 207 |
+
[[
|
| 208 |
+
anno::display_name("Texture Translate"),
|
| 209 |
+
anno::description("Controls the position of the texture."),
|
| 210 |
+
anno::in_group("UV")
|
| 211 |
+
]],
|
| 212 |
+
uniform float texture_rotate = 0.f
|
| 213 |
+
[[
|
| 214 |
+
anno::display_name("Texture Rotate"),
|
| 215 |
+
anno::description("Rotates angle of the texture in degrees."),
|
| 216 |
+
anno::in_group("UV")
|
| 217 |
+
]],
|
| 218 |
+
uniform float2 texture_scale = float2(1.0f)
|
| 219 |
+
[[
|
| 220 |
+
anno::display_name("Texture Tiling"),
|
| 221 |
+
anno::description("Controls repetition of the texture."),
|
| 222 |
+
anno::in_group("UV")
|
| 223 |
+
]]
|
| 224 |
+
)
|
| 225 |
+
[[
|
| 226 |
+
anno::author("NVIDIA CORPORATION"),
|
| 227 |
+
anno::display_name("Omni Glass"),
|
| 228 |
+
anno::version( 1, 0, 0),
|
| 229 |
+
anno::in_group("Base"),
|
| 230 |
+
anno::description("Omni Glass Material V2"),
|
| 231 |
+
anno::key_words(string[]("omni", "omniverse", "glass", "transparent", "window", "transparency", "workflow")),
|
| 232 |
+
distill_off()
|
| 233 |
+
]]
|
| 234 |
+
= OmniGlass_Opacity(
|
| 235 |
+
glass_color: glass_color,
|
| 236 |
+
glass_color_texture: glass_color_texture,
|
| 237 |
+
frosting_roughness: frosting_roughness,
|
| 238 |
+
glass_ior: glass_ior,
|
| 239 |
+
thin_walled: thin_walled,
|
| 240 |
+
depth: depth,
|
| 241 |
+
roughness_texture_influence: roughness_texture_influence,
|
| 242 |
+
roughness_texture: roughness_texture,
|
| 243 |
+
reflection_color_texture: reflection_color_texture,
|
| 244 |
+
reflection_color: reflection_color,
|
| 245 |
+
normal_map_texture: normal_map_texture,
|
| 246 |
+
normal_map_strength: normal_map_strength,
|
| 247 |
+
geometry_normal_roughness_strength: geometry_normal_roughness_strength,
|
| 248 |
+
flip_tangent_u: flip_tangent_u,
|
| 249 |
+
flip_tangent_v: flip_tangent_v,
|
| 250 |
+
enable_opacity: enable_opacity,
|
| 251 |
+
cutout_opacity: cutout_opacity,
|
| 252 |
+
cutout_opacity_texture: cutout_opacity_texture,
|
| 253 |
+
cutout_opacity_mono_source: cutout_opacity_mono_source,
|
| 254 |
+
opacity_threshold: opacity_threshold,
|
| 255 |
+
project_uvw: project_uvw,
|
| 256 |
+
world_or_object: world_or_object,
|
| 257 |
+
uv_space_index: uv_space_index,
|
| 258 |
+
texture_translate: texture_translate,
|
| 259 |
+
texture_rotate: texture_rotate,
|
| 260 |
+
texture_scale: texture_scale
|
| 261 |
+
);
|
blender/simready_usd/materials/OmniGlass_Opacity.mdl
ADDED
|
@@ -0,0 +1,487 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/***************************************************************************************************
|
| 2 |
+
* Copyright 2020 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* Redistribution and use in source and binary forms, with or without
|
| 5 |
+
* modification, are permitted provided that the following conditions
|
| 6 |
+
* are met:
|
| 7 |
+
* * Redistributions of source code must retain the above copyright
|
| 8 |
+
* notice, this list of conditions and the following disclaimer.
|
| 9 |
+
* * Redistributions in binary form must reproduce the above copyright
|
| 10 |
+
* notice, this list of conditions and the following disclaimer in the
|
| 11 |
+
* documentation and/or other materials provided with the distribution.
|
| 12 |
+
* * Neither the name of NVIDIA CORPORATION nor the names of its
|
| 13 |
+
* contributors may be used to endorse or promote products derived
|
| 14 |
+
* from this software without specific prior written permission.
|
| 15 |
+
*
|
| 16 |
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
|
| 17 |
+
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
| 18 |
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
| 19 |
+
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
| 20 |
+
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
| 21 |
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
| 22 |
+
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
| 23 |
+
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
| 24 |
+
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 25 |
+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 26 |
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 27 |
+
**************************************************************************************************/
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
mdl 1.4;
|
| 31 |
+
|
| 32 |
+
import ::tex::*;
|
| 33 |
+
import ::base::*;
|
| 34 |
+
import ::math::*;
|
| 35 |
+
import ::anno::*;
|
| 36 |
+
import ::df::*;
|
| 37 |
+
import ::state::*;
|
| 38 |
+
import OmniPBRBase::*;
|
| 39 |
+
|
| 40 |
+
const string COPYRIGHT =
|
| 41 |
+
" Copyright 1986, 2020 NVIDIA Corporation. All rights reserved.\n"
|
| 42 |
+
" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n"
|
| 43 |
+
" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n"
|
| 44 |
+
" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n"
|
| 45 |
+
" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n"
|
| 46 |
+
" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n"
|
| 47 |
+
" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n"
|
| 48 |
+
" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n"
|
| 49 |
+
" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n"
|
| 50 |
+
" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n"
|
| 51 |
+
" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n";
|
| 52 |
+
|
| 53 |
+
export annotation distill_off();
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
float get_float(
|
| 57 |
+
uniform texture_2d t,
|
| 58 |
+
float f,
|
| 59 |
+
base::texture_coordinate_info uvw,
|
| 60 |
+
uniform base::mono_mode mono_source = base::mono_maximum
|
| 61 |
+
)
|
| 62 |
+
{
|
| 63 |
+
return tex::texture_isvalid(t) ?
|
| 64 |
+
base::file_texture(
|
| 65 |
+
t,
|
| 66 |
+
color(0.f, 0.f, 0.f),
|
| 67 |
+
color(1.f, 1.f, 1.f),
|
| 68 |
+
mono_source,
|
| 69 |
+
uvw,
|
| 70 |
+
float2(0.f, 1.f),
|
| 71 |
+
float2(0.f, 1.f),
|
| 72 |
+
tex::wrap_repeat,
|
| 73 |
+
tex::wrap_repeat,
|
| 74 |
+
false
|
| 75 |
+
).mono :
|
| 76 |
+
f;
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
color get_color(
|
| 80 |
+
uniform texture_2d t,
|
| 81 |
+
color c,
|
| 82 |
+
base::texture_coordinate_info uvw
|
| 83 |
+
)
|
| 84 |
+
{
|
| 85 |
+
return tex::texture_isvalid(t) ?
|
| 86 |
+
base::file_texture(
|
| 87 |
+
t,
|
| 88 |
+
color(0.f, 0.f, 0.f),
|
| 89 |
+
color(1.f, 1.f, 1.f),
|
| 90 |
+
base::mono_alpha,
|
| 91 |
+
uvw,
|
| 92 |
+
float2(0.f, 1.f),
|
| 93 |
+
float2(0.f, 1.f),
|
| 94 |
+
tex::wrap_repeat,
|
| 95 |
+
tex::wrap_repeat,
|
| 96 |
+
false
|
| 97 |
+
).tint :
|
| 98 |
+
c;
|
| 99 |
+
}
|
| 100 |
+
|
| 101 |
+
float apply_roughness_influence(
|
| 102 |
+
uniform texture_2d roughness_texture,
|
| 103 |
+
float constant_roughness,
|
| 104 |
+
float roughness_influence,
|
| 105 |
+
base::texture_coordinate_info uvw
|
| 106 |
+
)
|
| 107 |
+
{
|
| 108 |
+
return math::lerp(
|
| 109 |
+
constant_roughness,
|
| 110 |
+
get_float(roughness_texture, constant_roughness, uvw),
|
| 111 |
+
roughness_influence
|
| 112 |
+
);
|
| 113 |
+
}
|
| 114 |
+
|
| 115 |
+
uniform float4x4 rotation_translation_scale(
|
| 116 |
+
uniform float3 rotation = float3(0.)
|
| 117 |
+
[[
|
| 118 |
+
anno::description("Rotation applied to every UVW coordinate")
|
| 119 |
+
]],
|
| 120 |
+
uniform float3 translation = float3(0.)
|
| 121 |
+
[[
|
| 122 |
+
anno::description("Offset applied to every UVW coordinate")
|
| 123 |
+
]],
|
| 124 |
+
uniform float3 scaling = float3(1.)
|
| 125 |
+
[[
|
| 126 |
+
anno::description("Scale applied to every UVW coordinate")
|
| 127 |
+
]]
|
| 128 |
+
)
|
| 129 |
+
[[
|
| 130 |
+
anno::description("Construct transformation matrix from Euler rotation, translation and scale"),
|
| 131 |
+
anno::hidden()
|
| 132 |
+
]]
|
| 133 |
+
{
|
| 134 |
+
float4x4 scale = float4x4(
|
| 135 |
+
scaling.x , 0. , 0. , 0.,
|
| 136 |
+
0. , scaling.y , 0. , 0.,
|
| 137 |
+
0. , 0. , scaling.z , 0.,
|
| 138 |
+
translation.x, translation.y, translation.z, 1.
|
| 139 |
+
);
|
| 140 |
+
|
| 141 |
+
float3 s = math::sin(rotation);
|
| 142 |
+
float3 c = math::cos(rotation);
|
| 143 |
+
float4x4 rotate = float4x4(
|
| 144 |
+
c.y*c.z, -c.x*s.z + s.x*s.y*c.z, s.x*s.z + c.x*s.y*c.z, 0.0,
|
| 145 |
+
c.y*s.z, c.x*c.z + s.x*s.y*s.z, -s.x*c.z + c.x*s.y*s.z, 0.0,
|
| 146 |
+
-s.y , s.x*c.y , c.x*c.y , 0.0,
|
| 147 |
+
0. , 0. , 0. , 1.
|
| 148 |
+
);
|
| 149 |
+
|
| 150 |
+
return scale*rotate;
|
| 151 |
+
}
|
| 152 |
+
|
| 153 |
+
|
| 154 |
+
export material OmniGlass_Opacity
|
| 155 |
+
(
|
| 156 |
+
color absorption_coeff = color(0.f, 0.f, 0.f) // hiding this parameter as it does not exist in the new material
|
| 157 |
+
[[
|
| 158 |
+
anno::hidden(),
|
| 159 |
+
anno::unused()
|
| 160 |
+
]],
|
| 161 |
+
uniform bool use_glass_color_texture = false
|
| 162 |
+
[[
|
| 163 |
+
anno::hidden(),
|
| 164 |
+
anno::unused()
|
| 165 |
+
]],
|
| 166 |
+
uniform color glass_color = color(1.f, 1.f, 1.f)
|
| 167 |
+
[[
|
| 168 |
+
anno::display_name("Glass Color"),
|
| 169 |
+
anno::description("Sets the color of the glass"),
|
| 170 |
+
anno::hard_range(color(0.0), color(1.0)),
|
| 171 |
+
anno::in_group("Color")
|
| 172 |
+
]],
|
| 173 |
+
uniform texture_2d glass_color_texture = texture_2d()
|
| 174 |
+
[[
|
| 175 |
+
anno::display_name("Glass Color Texture"),
|
| 176 |
+
anno::description("Specifies the texture to be used for the glass color of the material"),
|
| 177 |
+
anno::in_group("Color")
|
| 178 |
+
]],
|
| 179 |
+
float frosting_roughness = 0.f
|
| 180 |
+
[[
|
| 181 |
+
anno::display_name("Glass Roughness"),
|
| 182 |
+
anno::description("Sets the roughness of the glass material "),
|
| 183 |
+
anno::hard_range(0.0, 1.0),
|
| 184 |
+
anno::in_group("Roughness")
|
| 185 |
+
]],
|
| 186 |
+
uniform float glass_ior = 1.491f
|
| 187 |
+
[[
|
| 188 |
+
anno::display_name("Glass IOR"),
|
| 189 |
+
anno::description("Sets IOR of the glass material "),
|
| 190 |
+
anno::soft_range(1.0f, 4.0f),
|
| 191 |
+
anno::in_group("Refraction")
|
| 192 |
+
]],
|
| 193 |
+
uniform bool thin_walled = false
|
| 194 |
+
[[
|
| 195 |
+
anno::display_name("Thin Walled"),
|
| 196 |
+
anno::description("When enabled, the material is considered thin-walled. Use this, when you have glass surfaces that are modeled with a single plane"),
|
| 197 |
+
anno::in_group("Refraction")
|
| 198 |
+
]],
|
| 199 |
+
uniform float depth = 0.001f
|
| 200 |
+
[[
|
| 201 |
+
anno::description("Controls how much light is absorbed through the surface"),
|
| 202 |
+
anno::display_name("Volume Absorption Scale"),
|
| 203 |
+
anno::in_group("Color"),
|
| 204 |
+
anno::soft_range(0.f, 1.f),
|
| 205 |
+
anno::hard_range(0.f, 1000.f)
|
| 206 |
+
]],
|
| 207 |
+
float roughness_texture_influence = 1.f
|
| 208 |
+
[[
|
| 209 |
+
anno::display_name("Roughness Texture Influence"),
|
| 210 |
+
anno::in_group("Roughness"),
|
| 211 |
+
anno::hard_range(0.0f, 1.0f)
|
| 212 |
+
]],
|
| 213 |
+
uniform texture_2d roughness_texture = texture_2d()
|
| 214 |
+
[[
|
| 215 |
+
anno::description("The roughness texture"),
|
| 216 |
+
anno::display_name("Roughness Texture"),
|
| 217 |
+
anno::in_group("Roughness"),
|
| 218 |
+
anno::usage("")
|
| 219 |
+
]],
|
| 220 |
+
uniform texture_2d reflection_color_texture = texture_2d()
|
| 221 |
+
[[
|
| 222 |
+
anno::description("The reflection color texture"),
|
| 223 |
+
anno::display_name("Reflection Color Texture"),
|
| 224 |
+
anno::in_group("Reflection")
|
| 225 |
+
]],
|
| 226 |
+
uniform color reflection_color = color(1.f, 1.f, 1.f)
|
| 227 |
+
[[
|
| 228 |
+
anno::display_name("Reflection Color"),
|
| 229 |
+
anno::in_group("Reflection")
|
| 230 |
+
]],
|
| 231 |
+
uniform texture_2d normal_map_texture = texture_2d()
|
| 232 |
+
[[
|
| 233 |
+
anno::description("The normal map texture"),
|
| 234 |
+
anno::display_name("Normal Map Texture"),
|
| 235 |
+
anno::in_group("Normal"),
|
| 236 |
+
anno::usage("")
|
| 237 |
+
]],
|
| 238 |
+
uniform float normal_map_strength = 1.0
|
| 239 |
+
[[
|
| 240 |
+
anno::description("Determines the degree of bumpiness"),
|
| 241 |
+
anno::display_name("Normal Map Strength"),
|
| 242 |
+
anno::in_group("Normal"),
|
| 243 |
+
anno::usage(""),
|
| 244 |
+
anno::soft_range(0.f, 1.f)
|
| 245 |
+
]],
|
| 246 |
+
uniform float geometry_normal_roughness_strength = 1.f
|
| 247 |
+
[[
|
| 248 |
+
anno::hard_range(0.f, 1.f),
|
| 249 |
+
anno::display_name("Normal map to roughness weight"),
|
| 250 |
+
anno::description("Enables and weights roughness induced by normal maps"),
|
| 251 |
+
anno::in_group("Normal")
|
| 252 |
+
]],
|
| 253 |
+
uniform bool flip_tangent_u = false
|
| 254 |
+
[[
|
| 255 |
+
anno::display_name("Normal Map Flip U Tangent"),
|
| 256 |
+
anno::in_group("Normal")
|
| 257 |
+
]],
|
| 258 |
+
uniform bool flip_tangent_v = true
|
| 259 |
+
[[
|
| 260 |
+
anno::display_name("Normal Map Flip V Tangent"),
|
| 261 |
+
anno::in_group("Normal")
|
| 262 |
+
]],
|
| 263 |
+
|
| 264 |
+
// Cutout Opacity
|
| 265 |
+
uniform bool enable_opacity = true
|
| 266 |
+
[[
|
| 267 |
+
anno::display_name("Enable Opacity"),
|
| 268 |
+
anno::description("Enables the use of cutout opacity"),
|
| 269 |
+
anno::in_group("Opacity")
|
| 270 |
+
]],
|
| 271 |
+
uniform float cutout_opacity = 1.0f
|
| 272 |
+
[[
|
| 273 |
+
anno::hard_range(0.0, 1.0),
|
| 274 |
+
anno::display_name("Opacity Amount"),
|
| 275 |
+
anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"),
|
| 276 |
+
anno::in_group("Opacity")
|
| 277 |
+
]],
|
| 278 |
+
uniform texture_2d cutout_opacity_texture = texture_2d()
|
| 279 |
+
[[
|
| 280 |
+
anno::description("The opacity map"),
|
| 281 |
+
anno::display_name("Opacity Map"),
|
| 282 |
+
anno::in_group("Opacity")
|
| 283 |
+
]],
|
| 284 |
+
uniform base::mono_mode cutout_opacity_mono_source = base::mono_alpha
|
| 285 |
+
[[
|
| 286 |
+
anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"),
|
| 287 |
+
anno::display_name("Opacity Mono Source"),
|
| 288 |
+
anno::in_group("Opacity"),
|
| 289 |
+
anno::usage("")
|
| 290 |
+
]],
|
| 291 |
+
uniform float opacity_threshold = 0.f
|
| 292 |
+
[[
|
| 293 |
+
anno::hard_range(0.0, 1.0),
|
| 294 |
+
anno::display_name("Opacity Threshold"),
|
| 295 |
+
anno::description("If negative, disable cutout_opacity; if 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"),
|
| 296 |
+
anno::in_group("Opacity")
|
| 297 |
+
]],
|
| 298 |
+
|
| 299 |
+
// UV Projection Group
|
| 300 |
+
uniform bool project_uvw = false
|
| 301 |
+
[[
|
| 302 |
+
anno::display_name("Enable Project UVW Coordinates"),
|
| 303 |
+
anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"),
|
| 304 |
+
anno::in_group("UV")
|
| 305 |
+
]],
|
| 306 |
+
uniform bool world_or_object = false
|
| 307 |
+
[[
|
| 308 |
+
anno::display_name("Enable World Space"),
|
| 309 |
+
anno::description("When set to 'true' uses world space for projection, when 'false' object space is used"),
|
| 310 |
+
anno::in_group("UV")
|
| 311 |
+
]],
|
| 312 |
+
|
| 313 |
+
// UV Space Selector
|
| 314 |
+
uniform int uv_space_index = 0
|
| 315 |
+
[[
|
| 316 |
+
anno::display_name("UV Space Index"),
|
| 317 |
+
anno::description("Choose the UV Space Index to be used"),
|
| 318 |
+
anno::in_group("UV"),
|
| 319 |
+
anno::hard_range(0, 3)
|
| 320 |
+
]],
|
| 321 |
+
uniform float2 texture_translate = float2(0.0f)
|
| 322 |
+
[[
|
| 323 |
+
anno::display_name("Texture Translate"),
|
| 324 |
+
anno::description("Controls the position of the texture."),
|
| 325 |
+
anno::in_group("UV")
|
| 326 |
+
]],
|
| 327 |
+
uniform float texture_rotate = 0.f
|
| 328 |
+
[[
|
| 329 |
+
anno::display_name("Texture Rotate"),
|
| 330 |
+
anno::description("Rotates angle of the texture in degrees."),
|
| 331 |
+
anno::in_group("UV")
|
| 332 |
+
]],
|
| 333 |
+
uniform float2 texture_scale = float2(1.0f)
|
| 334 |
+
[[
|
| 335 |
+
anno::display_name("Texture Scale"),
|
| 336 |
+
anno::description("Larger numbers increase the size."),
|
| 337 |
+
anno::in_group("UV")
|
| 338 |
+
]]
|
| 339 |
+
)
|
| 340 |
+
[[
|
| 341 |
+
anno::copyright_notice(COPYRIGHT),
|
| 342 |
+
anno::author("NVIDIA CORPORATION"),
|
| 343 |
+
anno::display_name("Omni Glass Opacity"),
|
| 344 |
+
anno::version( 1, 0, 0),
|
| 345 |
+
anno::description("Omni Glass Opacity Material"),
|
| 346 |
+
anno::in_group("Base"),
|
| 347 |
+
anno::key_words(string[]("omni", "omniverse", "glass", "transparent", "window", "transparency", "workflow")),
|
| 348 |
+
distill_off()
|
| 349 |
+
]]
|
| 350 |
+
= let {
|
| 351 |
+
// Material Properties
|
| 352 |
+
bool local_thin_walled = (tex::texture_isvalid(cutout_opacity_texture) || cutout_opacity != 1.f) ? true : thin_walled;
|
| 353 |
+
color local_glass_ior = glass_ior;
|
| 354 |
+
|
| 355 |
+
|
| 356 |
+
// UVW Properties
|
| 357 |
+
// Generating the texture coordinates for the texture lookups
|
| 358 |
+
base::texture_coordinate_system the_system = world_or_object ?
|
| 359 |
+
base::texture_coordinate_world :
|
| 360 |
+
base::texture_coordinate_object;
|
| 361 |
+
|
| 362 |
+
base::texture_coordinate_info uvw = project_uvw ?
|
| 363 |
+
base::coordinate_projection(
|
| 364 |
+
coordinate_system: the_system,
|
| 365 |
+
texture_space: uv_space_index,
|
| 366 |
+
projection_type: base::projection_cubic
|
| 367 |
+
) :
|
| 368 |
+
base::coordinate_source(
|
| 369 |
+
coordinate_system: base::texture_coordinate_uvw,
|
| 370 |
+
texture_space: uv_space_index
|
| 371 |
+
);
|
| 372 |
+
|
| 373 |
+
base::texture_coordinate_info transformed_uvw = base::transform_coordinate(
|
| 374 |
+
transform: rotation_translation_scale(
|
| 375 |
+
scaling: float3(texture_scale.x, texture_scale.y, 1.0),
|
| 376 |
+
rotation: float3(0.0, 0.0, texture_rotate/180.*math::PI),
|
| 377 |
+
translation: float3(texture_translate.x, texture_translate.y, 0.0)
|
| 378 |
+
),
|
| 379 |
+
coordinate: uvw
|
| 380 |
+
);
|
| 381 |
+
|
| 382 |
+
|
| 383 |
+
// Opacity Properties
|
| 384 |
+
float opacity_value = get_float(cutout_opacity_texture, cutout_opacity, transformed_uvw, cutout_opacity_mono_source);
|
| 385 |
+
|
| 386 |
+
// The opacity_threshold is interpreted as follows:
|
| 387 |
+
// 1. opacity_threshold > 0: binary opacity masking mode
|
| 388 |
+
// i.e.: if opacity_value > opacity_threshold we remap opacity_value to 1.0, otherwise to 0.0
|
| 389 |
+
// 2. opacity_threshold == 0: fractional opacity mode. Leaves the opacity_value untouched,
|
| 390 |
+
// allowing the renderer to use fractional cutout_opacity values, if it supports this feature
|
| 391 |
+
//
|
| 392 |
+
// NOTE: when the renderer does not enable 'fractional cutout opacity' it interprets
|
| 393 |
+
// cutout_opacity values of 1.0 as opaque and anything below as fully transparent
|
| 394 |
+
float local_cutout_opacity = enable_opacity ?
|
| 395 |
+
((opacity_threshold == 0.0) ?
|
| 396 |
+
opacity_value :
|
| 397 |
+
((opacity_value >= opacity_threshold) ? 1.0 : 0)
|
| 398 |
+
) :
|
| 399 |
+
1.0;
|
| 400 |
+
|
| 401 |
+
|
| 402 |
+
// Surface Properties
|
| 403 |
+
color local_reflection_color = get_color(reflection_color_texture, reflection_color, transformed_uvw);
|
| 404 |
+
color local_transmission_color = get_color(glass_color_texture, glass_color, transformed_uvw);
|
| 405 |
+
|
| 406 |
+
OmniPBRBase::NormalData defaultData(state::normal(), float2(0.f));
|
| 407 |
+
OmniPBRBase::NormalData normal_data = tex::texture_isvalid(normal_map_texture) ?
|
| 408 |
+
OmniPBRBase::tangent_space_normal_roughness_texture(
|
| 409 |
+
normal_map_texture,
|
| 410 |
+
normal_map_strength,
|
| 411 |
+
flip_tangent_u,
|
| 412 |
+
flip_tangent_v,
|
| 413 |
+
transformed_uvw,
|
| 414 |
+
float2(0.f, 1.f),
|
| 415 |
+
float2(0.f, 1.f),
|
| 416 |
+
tex::wrap_repeat,
|
| 417 |
+
tex::wrap_repeat,
|
| 418 |
+
false,
|
| 419 |
+
1.f,
|
| 420 |
+
0.f,
|
| 421 |
+
0.f,
|
| 422 |
+
int2(0),
|
| 423 |
+
tex::wrap_repeat,
|
| 424 |
+
30.f
|
| 425 |
+
) :
|
| 426 |
+
defaultData;
|
| 427 |
+
|
| 428 |
+
float local_roughness = apply_roughness_influence(
|
| 429 |
+
roughness_texture,
|
| 430 |
+
frosting_roughness,
|
| 431 |
+
roughness_texture_influence,
|
| 432 |
+
transformed_uvw
|
| 433 |
+
);
|
| 434 |
+
float2 local_roughness_squared(
|
| 435 |
+
(local_roughness * local_roughness +
|
| 436 |
+
geometry_normal_roughness_strength * normal_data.roughness.x * normal_data.roughness.x),
|
| 437 |
+
(local_roughness * local_roughness +
|
| 438 |
+
geometry_normal_roughness_strength * normal_data.roughness.y * normal_data.roughness.y)
|
| 439 |
+
);
|
| 440 |
+
|
| 441 |
+
float3 the_normal = normal_data.normal;
|
| 442 |
+
|
| 443 |
+
bsdf ggx_1 = ::df::microfacet_ggx_smith_bsdf(
|
| 444 |
+
roughness_u: local_roughness_squared.x,
|
| 445 |
+
roughness_v: local_roughness_squared.y,
|
| 446 |
+
tint: local_reflection_color,
|
| 447 |
+
tangent_u: ::state::texture_tangent_u(0),
|
| 448 |
+
mode: ::df::scatter_reflect
|
| 449 |
+
);
|
| 450 |
+
|
| 451 |
+
bsdf ggx_2 = ::df::microfacet_ggx_smith_bsdf(
|
| 452 |
+
roughness_u: local_roughness_squared.x,
|
| 453 |
+
roughness_v: local_roughness_squared.y,
|
| 454 |
+
tint: local_transmission_color,
|
| 455 |
+
tangent_u: ::state::texture_tangent_u(0),
|
| 456 |
+
mode: ::df::scatter_transmit
|
| 457 |
+
);
|
| 458 |
+
|
| 459 |
+
material_surface local_surface(
|
| 460 |
+
::df::fresnel_layer(
|
| 461 |
+
ior: glass_ior,
|
| 462 |
+
weight: 1.f,
|
| 463 |
+
layer: ggx_1,
|
| 464 |
+
base: ggx_2,
|
| 465 |
+
normal: the_normal
|
| 466 |
+
),
|
| 467 |
+
material_emission()
|
| 468 |
+
);
|
| 469 |
+
|
| 470 |
+
|
| 471 |
+
// Volume Properties
|
| 472 |
+
color local_volume_absorption = depth;
|
| 473 |
+
color local_volume_scattering = color(0.f, 0.f, 0.f);
|
| 474 |
+
|
| 475 |
+
material_volume local_volume(vdf(), local_volume_absorption, local_volume_scattering);
|
| 476 |
+
|
| 477 |
+
|
| 478 |
+
// Geometry Properties
|
| 479 |
+
material_geometry local_geometry(float3(0.f), local_cutout_opacity, the_normal);
|
| 480 |
+
|
| 481 |
+
} in material(
|
| 482 |
+
thin_walled: local_thin_walled,
|
| 483 |
+
surface: local_surface,
|
| 484 |
+
ior: local_glass_ior,
|
| 485 |
+
volume: local_volume,
|
| 486 |
+
geometry: local_geometry
|
| 487 |
+
);
|
blender/simready_usd/materials/OmniPBRBase.mdl
ADDED
|
@@ -0,0 +1,493 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/***************************************************************************************************
|
| 2 |
+
* Copyright 2022 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* Redistribution and use in source and binary forms, with or without
|
| 5 |
+
* modification, are permitted provided that the following conditions
|
| 6 |
+
* are met:
|
| 7 |
+
* * Redistributions of source code must retain the above copyright
|
| 8 |
+
* notice, this list of conditions and the following disclaimer.
|
| 9 |
+
* * Redistributions in binary form must reproduce the above copyright
|
| 10 |
+
* notice, this list of conditions and the following disclaimer in the
|
| 11 |
+
* documentation and/or other materials provided with the distribution.
|
| 12 |
+
* * Neither the name of NVIDIA CORPORATION nor the names of its
|
| 13 |
+
* contributors may be used to endorse or promote products derived
|
| 14 |
+
* from this software without specific prior written permission.
|
| 15 |
+
*
|
| 16 |
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
|
| 17 |
+
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
| 18 |
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
| 19 |
+
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
| 20 |
+
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
| 21 |
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
| 22 |
+
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
| 23 |
+
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
| 24 |
+
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 25 |
+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 26 |
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 27 |
+
**************************************************************************************************/
|
| 28 |
+
|
| 29 |
+
mdl 1.7;
|
| 30 |
+
|
| 31 |
+
import ::df::*;
|
| 32 |
+
import ::state::*;
|
| 33 |
+
import ::math::*;
|
| 34 |
+
import ::base::*;
|
| 35 |
+
import ::tex::*;
|
| 36 |
+
import ::anno::*;
|
| 37 |
+
import ::anno::*;
|
| 38 |
+
|
| 39 |
+
export float3 HemiOctahedronToUnitVector( float2 Oct ) [[
|
| 40 |
+
anno::hidden()
|
| 41 |
+
]]
|
| 42 |
+
{
|
| 43 |
+
Oct = float2( Oct.x + Oct.y, Oct.x - Oct.y ) * 0.5;
|
| 44 |
+
float3 N = float3( Oct.x, Oct.y, 1.0 - math::dot( float2(1.0), math::abs(Oct) ) );
|
| 45 |
+
return math::normalize(N);
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
export struct NormalData [[
|
| 49 |
+
anno::hidden()
|
| 50 |
+
]]
|
| 51 |
+
{
|
| 52 |
+
float3 normal;
|
| 53 |
+
float2 roughness;
|
| 54 |
+
};
|
| 55 |
+
|
| 56 |
+
export NormalData tangent_space_normal_roughness_texture(
|
| 57 |
+
uniform texture_2d texture
|
| 58 |
+
[[
|
| 59 |
+
anno::description("The input texture"),
|
| 60 |
+
anno::usage("normal")
|
| 61 |
+
]],
|
| 62 |
+
uniform float factor = 1.0f
|
| 63 |
+
[[ anno::description("Determines the degree of bumpiness") ]],
|
| 64 |
+
uniform bool flip_tangent_u = false
|
| 65 |
+
[[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]],
|
| 66 |
+
uniform bool flip_tangent_v = false
|
| 67 |
+
[[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]],
|
| 68 |
+
base::texture_coordinate_info uvw = base::texture_coordinate_info()
|
| 69 |
+
[[ anno::description("Parameterization to be used for texture mapping. Defaults to texture channel 0.") ]],
|
| 70 |
+
uniform float2 crop_u = float2( 0.0, 1.0)
|
| 71 |
+
[[ anno::description("Restricts the texture access to sub-domain of the texture in the u direction") ]],
|
| 72 |
+
uniform float2 crop_v = float2( 0.0, 1.0)
|
| 73 |
+
[[ anno::description("Restricts the texture access to sub-domain of the texture in the v direction") ]],
|
| 74 |
+
uniform tex::wrap_mode wrap_u = tex::wrap_repeat
|
| 75 |
+
[[ anno::description("Wrapping mode in the u direction") ]],
|
| 76 |
+
uniform tex::wrap_mode wrap_v = tex::wrap_repeat
|
| 77 |
+
[[ anno::description("Wrapping mode in the v direction") ]],
|
| 78 |
+
uniform bool clip = false
|
| 79 |
+
[[
|
| 80 |
+
anno::description("deprecated, usewrap_mode=tex::wrap_clip. Defines wrap_clamp behavior. If true, lookup outside [0,1] results in no bump"),
|
| 81 |
+
anno::hidden()
|
| 82 |
+
]],
|
| 83 |
+
uniform float scale = 1.
|
| 84 |
+
[[
|
| 85 |
+
anno::description("Scales the value red from the texture file. Can be used to adapt to different normal map formats"),
|
| 86 |
+
anno::unused()
|
| 87 |
+
]],
|
| 88 |
+
uniform float offset = 0.
|
| 89 |
+
[[
|
| 90 |
+
anno::description("Offset applied to the value red from the texture file. Can be used to adapt to different normal map formats"),
|
| 91 |
+
anno::unused()
|
| 92 |
+
]],
|
| 93 |
+
uniform float animation_start_time = 0.
|
| 94 |
+
[[ anno::description("When to start playing first frame of the animation ") ]],
|
| 95 |
+
uniform int2 animation_crop = int2(0, 0)
|
| 96 |
+
[[ anno::description("If the texture is an animation, the range of frames to be played can be specified.") ]],
|
| 97 |
+
uniform tex::wrap_mode animation_wrap = tex::wrap_repeat
|
| 98 |
+
[[ anno::description("Defines what to do outside of regular animation time") ]],
|
| 99 |
+
uniform float animation_fps = 30
|
| 100 |
+
[[ anno::description("Framerate to use for animation playback") ]]
|
| 101 |
+
)
|
| 102 |
+
[[
|
| 103 |
+
anno::description("Interprets the color values of a bitmap as a vector in tangent space"),
|
| 104 |
+
anno::hidden(),
|
| 105 |
+
anno::noinline()
|
| 106 |
+
]]
|
| 107 |
+
{
|
| 108 |
+
NormalData normalData;
|
| 109 |
+
normalData.roughness = float2(0);
|
| 110 |
+
normalData.normal = state::normal();
|
| 111 |
+
|
| 112 |
+
float frame = 0.0;
|
| 113 |
+
if(animation_crop != int2(0,0)) //only if we have an animation
|
| 114 |
+
{
|
| 115 |
+
frame = (::state::animation_time()-animation_start_time) * animation_fps ; //start playing at first frame of the animation
|
| 116 |
+
switch ( animation_wrap) {
|
| 117 |
+
case tex::wrap_repeat:
|
| 118 |
+
frame=frame>0? math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.x:
|
| 119 |
+
math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.y;
|
| 120 |
+
break;
|
| 121 |
+
case tex::wrap_mirrored_repeat:
|
| 122 |
+
float animation_crop_2y = 2.0*animation_crop.y;
|
| 123 |
+
frame=frame>0? math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop.x:
|
| 124 |
+
math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop_2y-animation_crop.x;
|
| 125 |
+
if(frame>animation_crop.y)
|
| 126 |
+
frame = animation_crop_2y-frame;
|
| 127 |
+
break;
|
| 128 |
+
case tex::wrap_clamp:
|
| 129 |
+
frame = math::clamp( frame+animation_crop.x, animation_crop.x, animation_crop.y);
|
| 130 |
+
break;
|
| 131 |
+
case tex::wrap_clip:
|
| 132 |
+
frame += animation_crop.x;
|
| 133 |
+
if(frame < animation_crop.x || frame > animation_crop.y) return normalData;
|
| 134 |
+
break;
|
| 135 |
+
}
|
| 136 |
+
}
|
| 137 |
+
|
| 138 |
+
if (tex::width(texture) == 0 || tex::height(texture) == 0 || // avoid division by zero in texremapu for invalid resource
|
| 139 |
+
factor == 0.0f)
|
| 140 |
+
return normalData;
|
| 141 |
+
{
|
| 142 |
+
if (clip) {
|
| 143 |
+
if (wrap_u == tex::wrap_clamp && (uvw.position.x < 0. || uvw.position.x > 1.)) {
|
| 144 |
+
return normalData;
|
| 145 |
+
}
|
| 146 |
+
if (wrap_v == tex::wrap_clamp && (uvw.position.y < 0. || uvw.position.y > 1.)) {
|
| 147 |
+
return normalData;
|
| 148 |
+
}
|
| 149 |
+
}
|
| 150 |
+
if (wrap_u == tex::wrap_clip && (uvw.position.x < 0. || uvw.position.x > 1.)) {
|
| 151 |
+
return normalData;
|
| 152 |
+
}
|
| 153 |
+
if (wrap_v == tex::wrap_clip && (uvw.position.y < 0. || uvw.position.y > 1.)) {
|
| 154 |
+
return normalData;
|
| 155 |
+
}
|
| 156 |
+
}
|
| 157 |
+
bool pixel_flip_u = flip_tangent_u;
|
| 158 |
+
bool pixel_flip_v = flip_tangent_v;
|
| 159 |
+
//if we mirror repeat a tangent space texture, tangent space needs to be flipped for every other tile
|
| 160 |
+
if (wrap_u == tex::wrap_mirrored_repeat) {
|
| 161 |
+
if( uvw.position.x > 0. && int(uvw.position.x) % 2 == 1)
|
| 162 |
+
pixel_flip_u = ! pixel_flip_u;
|
| 163 |
+
else if( uvw.position.x < 0. && int(uvw.position.x) % 2 == 0)
|
| 164 |
+
pixel_flip_u = ! pixel_flip_u;
|
| 165 |
+
}
|
| 166 |
+
if (wrap_v == tex::wrap_mirrored_repeat) {
|
| 167 |
+
if( uvw.position.y > 0. && int(uvw.position.y) % 2 == 1)
|
| 168 |
+
pixel_flip_v = ! pixel_flip_v;
|
| 169 |
+
else if( uvw.position.y < 0. && int(uvw.position.y) % 2 == 0)
|
| 170 |
+
pixel_flip_v = ! pixel_flip_v;
|
| 171 |
+
}
|
| 172 |
+
|
| 173 |
+
float3 transformed_tangent_u = uvw.tangent_u;
|
| 174 |
+
float3 transformed_tangent_v = uvw.tangent_v;
|
| 175 |
+
|
| 176 |
+
if (pixel_flip_u)
|
| 177 |
+
transformed_tangent_u=-transformed_tangent_u;
|
| 178 |
+
if (pixel_flip_v)
|
| 179 |
+
transformed_tangent_v=-transformed_tangent_v;
|
| 180 |
+
|
| 181 |
+
float3 tangent_space_normal;
|
| 182 |
+
float4 normal_raw = tex::lookup_float4(texture,float2(uvw.position.x,uvw.position.y), wrap_u, wrap_v, crop_u, crop_v, frame);
|
| 183 |
+
if(normal_raw.x > 1.5)
|
| 184 |
+
{
|
| 185 |
+
// octahedron packed by OV
|
| 186 |
+
normal_raw.x -= 2.0;
|
| 187 |
+
normal_raw.x -= 0.5;
|
| 188 |
+
normal_raw.y -= 0.5;
|
| 189 |
+
tangent_space_normal = HemiOctahedronToUnitVector(float2(normal_raw.x, normal_raw.y) * 2.0);
|
| 190 |
+
normalData.roughness = float2(normal_raw.z, normal_raw.w);
|
| 191 |
+
}
|
| 192 |
+
else
|
| 193 |
+
{
|
| 194 |
+
// regular
|
| 195 |
+
tangent_space_normal = (float3(normal_raw.x, normal_raw.y, normal_raw.z) - float3(0.5)) * 2.0;
|
| 196 |
+
normalData.roughness = float2(0);
|
| 197 |
+
}
|
| 198 |
+
|
| 199 |
+
normalData.normal = math::normalize(
|
| 200 |
+
transformed_tangent_u * tangent_space_normal.x * factor +
|
| 201 |
+
transformed_tangent_v * tangent_space_normal.y * factor +
|
| 202 |
+
state::normal() * tangent_space_normal.z);
|
| 203 |
+
|
| 204 |
+
return normalData;
|
| 205 |
+
}
|
| 206 |
+
|
| 207 |
+
|
| 208 |
+
export material OmniPBRBase(
|
| 209 |
+
|
| 210 |
+
|
| 211 |
+
// Albdeo //
|
| 212 |
+
|
| 213 |
+
color diffuse_reflection_color = color(0.2) [[
|
| 214 |
+
anno::display_name("Albedo Color"),
|
| 215 |
+
anno::description("This is the albedo base color"),
|
| 216 |
+
anno::in_group("Albedo")
|
| 217 |
+
]],
|
| 218 |
+
color diffuse_tint = color(1.0) [[
|
| 219 |
+
anno::display_name("Albedo Tint"),
|
| 220 |
+
anno::description("When enabled, this color value is multiplied over the final albedo color"),
|
| 221 |
+
anno::in_group("Albedo")
|
| 222 |
+
]],
|
| 223 |
+
|
| 224 |
+
|
| 225 |
+
// Reflecitivity //
|
| 226 |
+
|
| 227 |
+
float specular_reflection_roughness = float(0.0) [[
|
| 228 |
+
anno::display_name("Roughness"),
|
| 229 |
+
anno::description("Higher roughness values lead to more blurry reflections"),
|
| 230 |
+
anno::in_group("Reflectivity"),
|
| 231 |
+
anno::hard_range(0.0, 1.0)
|
| 232 |
+
]],
|
| 233 |
+
float2 specular_reflection_aniso_roughness = float2(0.0, 0.0) [[
|
| 234 |
+
anno::display_name("Aniso roughness"),
|
| 235 |
+
anno::description("Higher roughness values lead to more blurry reflections"),
|
| 236 |
+
anno::in_group("Reflectivity"),
|
| 237 |
+
anno::hidden()
|
| 238 |
+
]],
|
| 239 |
+
float metalness = float(0.0) [[
|
| 240 |
+
anno::display_name("Metalness"),
|
| 241 |
+
anno::description("Bias towards pure specular reflection"),
|
| 242 |
+
anno::in_group("Reflectivity"),
|
| 243 |
+
anno::hard_range(0.0, 1.0)
|
| 244 |
+
]],
|
| 245 |
+
float specular_level = float(0.5) [[
|
| 246 |
+
anno::display_name("Specular"),
|
| 247 |
+
anno::description("The specular level (intensity) of the material"),
|
| 248 |
+
anno::in_group("Reflectivity"),
|
| 249 |
+
anno::soft_range(0.0, 1.0)
|
| 250 |
+
]],
|
| 251 |
+
|
| 252 |
+
|
| 253 |
+
// Emission //
|
| 254 |
+
|
| 255 |
+
uniform bool enable_emission = false [[
|
| 256 |
+
anno::display_name("Enable Emission"),
|
| 257 |
+
anno::description("Enables the emission of light from the material"),
|
| 258 |
+
anno::in_group("Emissive")
|
| 259 |
+
]],
|
| 260 |
+
color emission_color = color(1.0,0.1,0.1) [[
|
| 261 |
+
anno::display_name("Emissive Color"),
|
| 262 |
+
anno::description("The emission color"),
|
| 263 |
+
anno::in_group("Emissive"),
|
| 264 |
+
anno::enable_if("enable_emission == true")
|
| 265 |
+
]],
|
| 266 |
+
float emission_intensity = float(40.0) [[
|
| 267 |
+
anno::display_name("Emissive Intensity"),
|
| 268 |
+
anno::description("Intensity of the emission"),
|
| 269 |
+
anno::in_group("Emissive"),
|
| 270 |
+
anno::soft_range(0.0, 1000.0),
|
| 271 |
+
anno::enable_if("enable_emission == true")
|
| 272 |
+
]],
|
| 273 |
+
|
| 274 |
+
|
| 275 |
+
// Geometry Opacity //
|
| 276 |
+
|
| 277 |
+
uniform bool enable_opacity = false [[
|
| 278 |
+
anno::display_name("Enable Opacity"),
|
| 279 |
+
anno::description("Enables the use of cutout opacity"),
|
| 280 |
+
anno::in_group("Opacity")
|
| 281 |
+
]],
|
| 282 |
+
float geometry_opacity = float(1.0) [[
|
| 283 |
+
anno::display_name("Opacity Amount"),
|
| 284 |
+
anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"),
|
| 285 |
+
anno::in_group("Opacity"),
|
| 286 |
+
anno::hard_range(0.0, 1.0)
|
| 287 |
+
]],
|
| 288 |
+
uniform float geometry_opacity_threshold = 0.f
|
| 289 |
+
[[
|
| 290 |
+
anno::display_name("Opacity Threshold"),
|
| 291 |
+
anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"),
|
| 292 |
+
anno::in_group("Opacity"),
|
| 293 |
+
anno::hard_range(0.0, 1.0)
|
| 294 |
+
]],
|
| 295 |
+
|
| 296 |
+
|
| 297 |
+
// Clearcoat //
|
| 298 |
+
|
| 299 |
+
uniform bool enable_coat = false [[
|
| 300 |
+
anno::display_name("Enable Clearcoat Layer"),
|
| 301 |
+
anno::description("Adds a coat layer on top of the material when enabled"),
|
| 302 |
+
anno::in_group("Clearcoat")
|
| 303 |
+
]],
|
| 304 |
+
float coat_weight = float(1.0) [[
|
| 305 |
+
anno::display_name("Clearcoat Weight"),
|
| 306 |
+
anno::description("Sets the weight for coat layer"),
|
| 307 |
+
anno::in_group("Clearcoat"),
|
| 308 |
+
anno::hard_range(0.0, 1.0)
|
| 309 |
+
]],
|
| 310 |
+
color coat_color = color(1.0) [[
|
| 311 |
+
anno::display_name("Clearcoat Tint"),
|
| 312 |
+
anno::description("Clearcoat is tinted and affects the underlying material"),
|
| 313 |
+
anno::in_group("Clearcoat")
|
| 314 |
+
]],
|
| 315 |
+
float coat_transparency = float(1.0) [[
|
| 316 |
+
anno::display_name("Clearcoat Transparency"),
|
| 317 |
+
anno::description("Adjusts the transparency of the coat. Can be turned into a fully opaque coat covering the underlying layer"),
|
| 318 |
+
anno::in_group("Clearcoat"),
|
| 319 |
+
anno::hard_range(0.0, 1.0)
|
| 320 |
+
]],
|
| 321 |
+
float coat_roughness = float(0.0) [[
|
| 322 |
+
anno::display_name("Clearcoat Roughness"),
|
| 323 |
+
anno::description("Higher roughness values lead to more blurry reflections"),
|
| 324 |
+
anno::in_group("Clearcoat"),
|
| 325 |
+
anno::hard_range(0.0, 1.0)
|
| 326 |
+
]],
|
| 327 |
+
float2 coat_aniso_roughness = float2(0.0, 0.0) [[
|
| 328 |
+
anno::display_name("Clearcoat aniso roughness"),
|
| 329 |
+
anno::description("Higher roughness values lead to more blurry reflections"),
|
| 330 |
+
anno::in_group("Clearcoat"),
|
| 331 |
+
anno::hidden()
|
| 332 |
+
]],
|
| 333 |
+
float coat_ior = float(1.56) [[
|
| 334 |
+
anno::display_name("Clearcoat IOR"),
|
| 335 |
+
anno::description("Sets the Index of refraction for the coat layer"),
|
| 336 |
+
anno::in_group("Clearcoat"),
|
| 337 |
+
anno::soft_range(0.0, 4.0)
|
| 338 |
+
]],
|
| 339 |
+
float3 clearcoat_geometry_normal = state::normal() [[
|
| 340 |
+
anno::display_name("Clearcoat Normal"),
|
| 341 |
+
anno::in_group("Clearcoat"),
|
| 342 |
+
anno::usage("normal")
|
| 343 |
+
]],
|
| 344 |
+
|
| 345 |
+
|
| 346 |
+
// Geometry //
|
| 347 |
+
|
| 348 |
+
uniform float round_edges_radius = float(0.0) [[
|
| 349 |
+
anno::display_name("Round Edge Radius"),
|
| 350 |
+
anno::description("Influence radius around the edges in meters"),
|
| 351 |
+
anno::in_group("Geometry"),
|
| 352 |
+
anno::soft_range(0.0, 1.0)
|
| 353 |
+
]],
|
| 354 |
+
uniform float round_edges_roundness = float(1.0) [[
|
| 355 |
+
anno::display_name("Round Edge Roundness"),
|
| 356 |
+
anno::description("Determines how round the edge will look"),
|
| 357 |
+
anno::in_group("Geometry"),
|
| 358 |
+
anno::hard_range(0.0, 1.0)
|
| 359 |
+
]],
|
| 360 |
+
uniform bool round_edges_across_materials = false [[
|
| 361 |
+
anno::display_name("Round Edge Across Materials"),
|
| 362 |
+
anno::description("Normal smoothing happens only between facets of equal material, \n"
|
| 363 |
+
"\t\tunless this parameter is set true, in which case the smoothing \n"
|
| 364 |
+
"\t\thappens between facets irrespective of their materials"),
|
| 365 |
+
anno::in_group("Geometry")
|
| 366 |
+
]],
|
| 367 |
+
float3 geometry_normal = state::normal() [[
|
| 368 |
+
anno::display_name("Geometry Normal"),
|
| 369 |
+
anno::in_group("Geometry"),
|
| 370 |
+
anno::usage("normal")
|
| 371 |
+
]]
|
| 372 |
+
|
| 373 |
+
)
|
| 374 |
+
[[
|
| 375 |
+
anno::display_name("OmniPBR Base"),
|
| 376 |
+
anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."),
|
| 377 |
+
anno::in_group("Omni Materials"),
|
| 378 |
+
anno::version( 2, 1, 1),
|
| 379 |
+
anno::author("NVIDIA CORPORATION"),
|
| 380 |
+
anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic"))
|
| 381 |
+
]]
|
| 382 |
+
= let{
|
| 383 |
+
|
| 384 |
+
// Diffuse Bsdf //
|
| 385 |
+
|
| 386 |
+
color tinted_diffuse_color = diffuse_reflection_color * diffuse_tint;
|
| 387 |
+
|
| 388 |
+
color base_color = tinted_diffuse_color;
|
| 389 |
+
|
| 390 |
+
bsdf diffuse_bsdf = df::weighted_layer(
|
| 391 |
+
weight: 1.0,
|
| 392 |
+
layer: df::diffuse_reflection_bsdf(
|
| 393 |
+
tint: base_color,
|
| 394 |
+
roughness: float(0.0)
|
| 395 |
+
),
|
| 396 |
+
base: bsdf(),
|
| 397 |
+
normal: geometry_normal
|
| 398 |
+
);
|
| 399 |
+
|
| 400 |
+
// Glossy Reflection Bsdf //
|
| 401 |
+
|
| 402 |
+
float roughness_u = math::clamp(specular_reflection_roughness * specular_reflection_roughness
|
| 403 |
+
+ specular_reflection_aniso_roughness.x * specular_reflection_aniso_roughness.x, 0, 1);
|
| 404 |
+
float roughness_v = math::clamp(specular_reflection_roughness * specular_reflection_roughness
|
| 405 |
+
+ specular_reflection_aniso_roughness.y * specular_reflection_aniso_roughness.y, 0, 1);
|
| 406 |
+
bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf(
|
| 407 |
+
roughness_u: roughness_u,
|
| 408 |
+
roughness_v: roughness_v,
|
| 409 |
+
tint: color(1.0),
|
| 410 |
+
mode: df::scatter_reflect
|
| 411 |
+
);
|
| 412 |
+
|
| 413 |
+
bsdf custom_curve_layer_bsdf = df::custom_curve_layer(
|
| 414 |
+
normal_reflectivity: 0.08,
|
| 415 |
+
grazing_reflectivity: 1.0,
|
| 416 |
+
exponent: 5.0,
|
| 417 |
+
weight: specular_level,
|
| 418 |
+
layer: ggx_smith_bsdf,
|
| 419 |
+
base: diffuse_bsdf,
|
| 420 |
+
normal: geometry_normal
|
| 421 |
+
);
|
| 422 |
+
|
| 423 |
+
bsdf directional_factor_bsdf = df::tint(base_color, ggx_smith_bsdf);
|
| 424 |
+
|
| 425 |
+
bsdf omni_PBR_bsdf = df::weighted_layer(
|
| 426 |
+
weight: metalness,
|
| 427 |
+
layer: directional_factor_bsdf,
|
| 428 |
+
base: custom_curve_layer_bsdf,
|
| 429 |
+
normal: geometry_normal
|
| 430 |
+
);
|
| 431 |
+
|
| 432 |
+
// Clear Coat //
|
| 433 |
+
|
| 434 |
+
float coat_roughness_u = math::clamp(coat_roughness * coat_roughness
|
| 435 |
+
+ coat_aniso_roughness.x * coat_aniso_roughness.x, 0, 1);
|
| 436 |
+
float coat_roughness_v = math::clamp(coat_roughness * coat_roughness
|
| 437 |
+
+ coat_aniso_roughness.y * coat_aniso_roughness.y, 0, 1);
|
| 438 |
+
bsdf coat_bsdf = df::microfacet_ggx_smith_bsdf(
|
| 439 |
+
roughness_u: coat_roughness_u,
|
| 440 |
+
roughness_v: coat_roughness_v,
|
| 441 |
+
tint: color(1.0),
|
| 442 |
+
mode: df::scatter_reflect
|
| 443 |
+
);
|
| 444 |
+
|
| 445 |
+
bsdf opaque_coat = df::weighted_layer(
|
| 446 |
+
weight: coat_transparency,
|
| 447 |
+
layer: ::df::tint(
|
| 448 |
+
tint: coat_color,
|
| 449 |
+
base: omni_PBR_bsdf
|
| 450 |
+
),
|
| 451 |
+
base: ::df::diffuse_reflection_bsdf(
|
| 452 |
+
tint: coat_color
|
| 453 |
+
)
|
| 454 |
+
);
|
| 455 |
+
|
| 456 |
+
bsdf omni_PBR_coated_bsdf = df::fresnel_layer(
|
| 457 |
+
ior: coat_ior,
|
| 458 |
+
weight: coat_weight,
|
| 459 |
+
layer: coat_bsdf,
|
| 460 |
+
base: opaque_coat,
|
| 461 |
+
normal: clearcoat_geometry_normal
|
| 462 |
+
);
|
| 463 |
+
|
| 464 |
+
bsdf final_bsdf = enable_coat ? omni_PBR_coated_bsdf : omni_PBR_bsdf;
|
| 465 |
+
|
| 466 |
+
color emission_value = enable_emission ? emission_color * color(emission_intensity) : color(0.0);
|
| 467 |
+
|
| 468 |
+
float opacity_value = geometry_opacity;
|
| 469 |
+
float cutout_opacity = enable_opacity ? ((geometry_opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= geometry_opacity_threshold) ? 1.0 : 0)) : 1.0;
|
| 470 |
+
|
| 471 |
+
material_emission emission = material_emission(
|
| 472 |
+
df::diffuse_edf(),
|
| 473 |
+
intensity: emission_value
|
| 474 |
+
);
|
| 475 |
+
|
| 476 |
+
material_surface surface = material_surface(
|
| 477 |
+
scattering: final_bsdf,
|
| 478 |
+
emission: emission
|
| 479 |
+
);
|
| 480 |
+
|
| 481 |
+
material_geometry geometry = material_geometry(
|
| 482 |
+
normal: state::rounded_corner_normal(
|
| 483 |
+
radius: round_edges_radius,
|
| 484 |
+
across_materials: round_edges_across_materials,
|
| 485 |
+
roundness: round_edges_roundness
|
| 486 |
+
),
|
| 487 |
+
cutout_opacity: cutout_opacity
|
| 488 |
+
);
|
| 489 |
+
|
| 490 |
+
} in material(
|
| 491 |
+
surface: surface,
|
| 492 |
+
geometry: geometry
|
| 493 |
+
);
|
blender/simready_usd/textures/blender_basecolor_texture0png.png
ADDED
|
Git LFS Details
|
blender/simready_usd/textures/blender_metallic_texture0metallicpng.png
ADDED
|
Git LFS Details
|
blender/simready_usd/textures/blender_normal_texture0normalpng.png
ADDED
|
Git LFS Details
|
blender/simready_usd/textures/blender_roughness_texture0roughnesspng.png
ADDED
|
Git LFS Details
|
blender/simready_usd/textures/library/brushed_normal_f2cfd7448132.png
ADDED
|
Git LFS Details
|
blender/simready_usd/textures/library/brushed_roughness_e609a5e8bb77.png
ADDED
|
Git LFS Details
|