Junpill commited on
Commit
bec6238
·
verified ·
1 Parent(s): c836b5a

Add SimReady package: safety_goggles

Browse files
Files changed (28) hide show
  1. .gitattributes +1 -0
  2. safety_goggles/.metadata/com.nvidia.simready.conformance.Package@1.0.0.json +35 -0
  3. safety_goggles/.metadata/com.nvidia.simready.packaging.bom.json +186 -0
  4. safety_goggles/.metadata/safety_goggles_benchmark.json +1295 -0
  5. safety_goggles/.metadata/safety_goggles_validation.json +178 -0
  6. safety_goggles/com.nvidia.simready.packaging.json +31 -0
  7. safety_goggles/simready_usd/.simready/validation.json +176 -0
  8. safety_goggles/simready_usd/.thumbs/256x256/safety_goggles.usd.png +3 -0
  9. safety_goggles/simready_usd/.thumbs/256x256/safety_goggles.usd_light.png +3 -0
  10. safety_goggles/simready_usd/.thumbs/256x256/safety_goggles.usd_transparent.png +3 -0
  11. safety_goggles/simready_usd/materials/OmniGlass.mdl +238 -0
  12. safety_goggles/simready_usd/materials/OmniGlass_Opacity.mdl +464 -0
  13. safety_goggles/simready_usd/materials/OmniPBR.mdl +396 -0
  14. safety_goggles/simready_usd/materials/OmniPBRBase.mdl +470 -0
  15. safety_goggles/simready_usd/materials/OmniPBR_ClearCoat.mdl +711 -0
  16. safety_goggles/simready_usd/safety_goggles.usd +3 -0
  17. safety_goggles/simready_usd/textures/T_Fabric_Polyester_BaseColor.png +3 -0
  18. safety_goggles/simready_usd/textures/T_Fabric_Polyester_Normal.png +3 -0
  19. safety_goggles/simready_usd/textures/T_Fabric_Polyester_OcclusionRoughnessMetallic.png +3 -0
  20. safety_goggles/simready_usd/textures/T_Plastic_Abs_BaseColor.png +3 -0
  21. safety_goggles/simready_usd/textures/T_Plastic_Abs_Normal.png +3 -0
  22. safety_goggles/simready_usd/textures/T_Plastic_Abs_OcclusionRoughnessMetallic.png +3 -0
  23. safety_goggles/simready_usd/textures/T_Plastic_Pc_BaseColor.png +3 -0
  24. safety_goggles/simready_usd/textures/T_Plastic_Pc_Normal.png +3 -0
  25. safety_goggles/simready_usd/textures/T_Plastic_Pc_Roughness.png +3 -0
  26. safety_goggles/simready_usd/textures/T_Plastic_Pp_BaseColor.png +3 -0
  27. safety_goggles/simready_usd/textures/T_Plastic_Pp_Normal.png +3 -0
  28. safety_goggles/simready_usd/textures/T_Plastic_Pp_OcclusionRoughnessMetallic.png +3 -0
.gitattributes CHANGED
@@ -187,3 +187,4 @@ respirator/simready_usd/respirator.usd filter=lfs diff=lfs merge=lfs -text
187
  roller_conveyor/simready_usd/roller_conveyor.usd filter=lfs diff=lfs merge=lfs -text
188
  safety_barrier/simready_usd/safety_barrier.usd filter=lfs diff=lfs merge=lfs -text
189
  safety_cone/simready_usd/safety_cone.usd filter=lfs diff=lfs merge=lfs -text
 
 
187
  roller_conveyor/simready_usd/roller_conveyor.usd filter=lfs diff=lfs merge=lfs -text
188
  safety_barrier/simready_usd/safety_barrier.usd filter=lfs diff=lfs merge=lfs -text
189
  safety_cone/simready_usd/safety_cone.usd filter=lfs diff=lfs merge=lfs -text
190
+ safety_goggles/simready_usd/safety_goggles.usd filter=lfs diff=lfs merge=lfs -text
safety_goggles/.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-10-30T09:44:36",
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
+ }
safety_goggles/.metadata/com.nvidia.simready.packaging.bom.json ADDED
@@ -0,0 +1,186 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "format_version": "1.0",
3
+ "items": [
4
+ {
5
+ "relative_path": "simready_usd/.simready/validation.json",
6
+ "size": 6464,
7
+ "hash": {
8
+ "sha256-flat-1mb": "36cd879a1a18426866fc0ebc7f410c442b85eaae3d55fa5c07c0068a0d267311",
9
+ "sha256": "0738a0ba55297c0eabcfa92d0a08b4930e74ee74a93efdc3a3929a34a79ea7eb"
10
+ }
11
+ },
12
+ {
13
+ "relative_path": "simready_usd/.thumbs/256x256/safety_goggles.usd.png",
14
+ "size": 50363,
15
+ "hash": {
16
+ "sha256-flat-1mb": "3e5666f1affbb72455b583e6e6f814ad3fb798095afed386e99dd4ee7fe9b42b",
17
+ "sha256": "944beb700d2079b41f028f6830aa5a2e8cff8a9f2530d00bb3b07d607223100f"
18
+ }
19
+ },
20
+ {
21
+ "relative_path": "simready_usd/.thumbs/256x256/safety_goggles.usd_light.png",
22
+ "size": 46296,
23
+ "hash": {
24
+ "sha256-flat-1mb": "bfefd0462fc247b3e47a15b3e44e7f8b302fbcf611f8074702af93684fd9b37c",
25
+ "sha256": "a7e179079e79ccdd752755b666b8c99decbacd727e41b26284d7788d3f081fba"
26
+ }
27
+ },
28
+ {
29
+ "relative_path": "simready_usd/.thumbs/256x256/safety_goggles.usd_transparent.png",
30
+ "size": 34037,
31
+ "hash": {
32
+ "sha256-flat-1mb": "62cf0af66db24d9c81cf6e17e05f1d386ca25da66f10d254addf704a744255e3",
33
+ "sha256": "9b45da58f486f7a59e5bbded8931c11efc111156d024611dd127ba66dba3fea0"
34
+ }
35
+ },
36
+ {
37
+ "relative_path": "simready_usd/materials/OmniGlass.mdl",
38
+ "size": 8343,
39
+ "hash": {
40
+ "sha256-flat-1mb": "602da1a0f52acf2dfeaeb4b485e9d4bf9e841d5c27bafed8d564cb7730cf4c1d",
41
+ "sha256": "cc3d21e95997fb16d9435982c4f0a14f3438b1705d2e2b3d3e75454e5b329d61"
42
+ }
43
+ },
44
+ {
45
+ "relative_path": "simready_usd/materials/OmniGlass_Opacity.mdl",
46
+ "size": 15617,
47
+ "hash": {
48
+ "sha256-flat-1mb": "b8d79fd5520d9ccd50c81a2693fd2a76bdc83b3be7837dddb2d4da3969feade4",
49
+ "sha256": "bf0d1b1477fbfc59783914c4cd5f1ddd7fc6b982d941f9b287ef46dca0ad75ab"
50
+ }
51
+ },
52
+ {
53
+ "relative_path": "simready_usd/materials/OmniPBR.mdl",
54
+ "size": 13989,
55
+ "hash": {
56
+ "sha256-flat-1mb": "4d0f54d47017bfbe22cc483cb02c4fe7e2254ddd1119cd618cbaea553639d52c",
57
+ "sha256": "d384fc800f120e3cad1b7ca8837f9c554f9c34343d194813fca27caa493001f2"
58
+ }
59
+ },
60
+ {
61
+ "relative_path": "simready_usd/materials/OmniPBRBase.mdl",
62
+ "size": 17274,
63
+ "hash": {
64
+ "sha256-flat-1mb": "4b54e7fb8bc92191512851b3acc6fc6fa9863f80d98ffece8f0cb9b99f5f4535",
65
+ "sha256": "701f37299b44106842bdbe025de52eedec391e35b038f61c4ed4d25bd98e7db1"
66
+ }
67
+ },
68
+ {
69
+ "relative_path": "simready_usd/materials/OmniPBR_ClearCoat.mdl",
70
+ "size": 27453,
71
+ "hash": {
72
+ "sha256-flat-1mb": "0e35217542eb4ece0205fc09f74eb71aaa6bfb75b3b861d64693d317282df424",
73
+ "sha256": "687fce3f0693146b91495f04407a7c38c78f6b9262b63621f44b4b1f09110469"
74
+ }
75
+ },
76
+ {
77
+ "relative_path": "simready_usd/safety_goggles.usd",
78
+ "size": 1789169,
79
+ "hash": {
80
+ "sha256-flat-1mb": "6c668ff68582bed82350a2f3e8556d902ebc06f35191532099896a66c20a16d2",
81
+ "sha256": "fee690c927db595e09394aee49afcc2105d53e5cbd7096767bb5b9af1f1a1a76",
82
+ "sha256-first1m": "a30714d3059becbe7a4133ad85d09bd30dc210ffecaf2a816cdddd293f53b977"
83
+ }
84
+ },
85
+ {
86
+ "relative_path": "simready_usd/textures/T_Fabric_Polyester_BaseColor.png",
87
+ "size": 349366,
88
+ "hash": {
89
+ "sha256-flat-1mb": "1902df8d52faea74780e46405cb314b6b8a910509bc09699b609c3c63d297775",
90
+ "sha256": "82e98e78fdcc197fa085b6349e4cc2a162b97349bc1bc4cb44c2c95954817b5e"
91
+ }
92
+ },
93
+ {
94
+ "relative_path": "simready_usd/textures/T_Fabric_Polyester_Normal.png",
95
+ "size": 4003253,
96
+ "hash": {
97
+ "sha256-flat-1mb": "0a0e0a3cd8fedb049ef4c6994b3b055294b721c1afe07fc38ae47d703ae0529b",
98
+ "sha256": "08738e0e127dd3da759de48855846bf4723b64acd647a951ecb9d1d56189ea4d",
99
+ "sha256-first1m": "2b8e017d428391eb459a59c66ed6425c8df11b09a99fe2ada3abe88fa233736a"
100
+ }
101
+ },
102
+ {
103
+ "relative_path": "simready_usd/textures/T_Fabric_Polyester_OcclusionRoughnessMetallic.png",
104
+ "size": 178116,
105
+ "hash": {
106
+ "sha256-flat-1mb": "4ae690a6cfeb70e414020f311aaa8114f3793cc457ed487afa3c9d2bce4b18ce",
107
+ "sha256": "8a7ad38bd7c3cc89e1e184d9c83e4e44a47cdd9e472dceaee070a6c1dfa8bfc6"
108
+ }
109
+ },
110
+ {
111
+ "relative_path": "simready_usd/textures/T_Plastic_Abs_BaseColor.png",
112
+ "size": 265390,
113
+ "hash": {
114
+ "sha256-flat-1mb": "686eae5e3583d47966edd22f7c7e0a2a394f355459f32fa3395ef3d6e47bf3a6",
115
+ "sha256": "8c78f111785db27f9e7f8a47bcb0bd399f28ab68a979b5931ffa78f8ec515fc1"
116
+ }
117
+ },
118
+ {
119
+ "relative_path": "simready_usd/textures/T_Plastic_Abs_Normal.png",
120
+ "size": 3097825,
121
+ "hash": {
122
+ "sha256-flat-1mb": "417c78ecf8212a7c0525be07dfaeef80496909ce92744b02002715f9e880b7c1",
123
+ "sha256": "ecc098ffdd44433639281360d6862944491ebdd6e897bbb1fe70d777f2259360",
124
+ "sha256-first1m": "03d79aa209b5bd1e8219d6fb65d5b9616285ba003e2a059870880bb3f5837cbb"
125
+ }
126
+ },
127
+ {
128
+ "relative_path": "simready_usd/textures/T_Plastic_Abs_OcclusionRoughnessMetallic.png",
129
+ "size": 739621,
130
+ "hash": {
131
+ "sha256-flat-1mb": "3d784bd2917c6e9daef691107ddba18b2f53b178ec686d3b00bdd7bce85b5f49",
132
+ "sha256": "1f811bc1c5bb3472e72e13f17c688aacb79667092df00a0f07d69e978f5bc330"
133
+ }
134
+ },
135
+ {
136
+ "relative_path": "simready_usd/textures/T_Plastic_Pc_BaseColor.png",
137
+ "size": 124677,
138
+ "hash": {
139
+ "sha256-flat-1mb": "abfd3679d72c63e7a6aebe73abc17f929048148640431a9fc54997259e04218d",
140
+ "sha256": "ed648abbf9de4e58f5ee670e71691cf8e59f9514e68faafb5424921808a3d08b"
141
+ }
142
+ },
143
+ {
144
+ "relative_path": "simready_usd/textures/T_Plastic_Pc_Normal.png",
145
+ "size": 2075519,
146
+ "hash": {
147
+ "sha256-flat-1mb": "51fd9b11659ffe8c6900f11bff716dd8a85fab807596ac87e6823c341a265c5e",
148
+ "sha256": "9bce3543296635aacff85130b2a1ff9e15458a04821fa6040aae787294a5e2ed",
149
+ "sha256-first1m": "cc42b6e2004162741dccded4cbf47f3293eed5ae189d9d4050a377bebceb530b"
150
+ }
151
+ },
152
+ {
153
+ "relative_path": "simready_usd/textures/T_Plastic_Pc_Roughness.png",
154
+ "size": 285554,
155
+ "hash": {
156
+ "sha256-flat-1mb": "00b385fbc08ebd19718a894ffbd224bc1b51799523c15667056c4f5f2cf25098",
157
+ "sha256": "9fa28d2f07f29d81f7edf25da3a19764b881dabd2ed691f9120f306cb601d2d6"
158
+ }
159
+ },
160
+ {
161
+ "relative_path": "simready_usd/textures/T_Plastic_Pp_BaseColor.png",
162
+ "size": 16905,
163
+ "hash": {
164
+ "sha256-flat-1mb": "873dd54e354e71d8913f4d19cb46ab4f17f89a156056d540765deb47ecd5d4e4",
165
+ "sha256": "b7595a4362efa172d08506bc9bb04331cd92023e3e5158dc8acf2d1119135e28"
166
+ }
167
+ },
168
+ {
169
+ "relative_path": "simready_usd/textures/T_Plastic_Pp_Normal.png",
170
+ "size": 2288237,
171
+ "hash": {
172
+ "sha256-flat-1mb": "020804a4c908efd8bd478b86f92cab5ab9c5e540e4d4b57a8a4c3d559aa19b5e",
173
+ "sha256": "001cb2a11521c66934475805060048fb42b3ca7ab0e80e8ee57e623b3802280e",
174
+ "sha256-first1m": "2e8ce320bf77dcd22aad2a49b621d4752c4dd5dca60edc60ff21ba3181c3118f"
175
+ }
176
+ },
177
+ {
178
+ "relative_path": "simready_usd/textures/T_Plastic_Pp_OcclusionRoughnessMetallic.png",
179
+ "size": 284243,
180
+ "hash": {
181
+ "sha256-flat-1mb": "f7c028c5334a3aa6cd28e02963de42d3ac2fd03d9833a1510a819c8d32901cb0",
182
+ "sha256": "834af0501ced6d17bc73c935f2e10d982df9b8e9b95513ccb4c06f473486a140"
183
+ }
184
+ }
185
+ ]
186
+ }
safety_goggles/.metadata/safety_goggles_benchmark.json ADDED
@@ -0,0 +1,1295 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": "1.0",
3
+ "asset": "safety_goggles",
4
+ "run_timestamp": "2026-10-30T09:44:34Z",
5
+ "passed": false,
6
+ "results": [
7
+ {
8
+ "test_name": "culling_xz",
9
+ "engine": "isaac_sim",
10
+ "engine_version": "6.1.0.0",
11
+ "status": "pass",
12
+ "passed": true,
13
+ "duration": 4.031,
14
+ "message": "",
15
+ "metrics": {
16
+ "_timing_capture_frame_total_s": {
17
+ "value": 1.407,
18
+ "unit": null
19
+ },
20
+ "_timing_capture_frame_count": {
21
+ "value": 16,
22
+ "unit": null
23
+ },
24
+ "_timing_capture_frame_avg_ms": {
25
+ "value": 87.94,
26
+ "unit": null
27
+ },
28
+ "_timing_encode_video_total_s": {
29
+ "value": 0.5,
30
+ "unit": null
31
+ },
32
+ "_timing_encode_video_count": {
33
+ "value": 2,
34
+ "unit": null
35
+ },
36
+ "_render_blank_retry_count": {
37
+ "value": 0,
38
+ "unit": null
39
+ },
40
+ "_render_blank_retry_unrecovered": {
41
+ "value": 0,
42
+ "unit": null
43
+ },
44
+ "culling_xz_max_diff": {
45
+ "value": 0.042233,
46
+ "unit": null
47
+ },
48
+ "culling_xz_mean_diff": {
49
+ "value": 0.018154,
50
+ "unit": null
51
+ },
52
+ "culling_xz_worst_angle": {
53
+ "value": 315.0,
54
+ "unit": null
55
+ },
56
+ "culling_xz_passed": {
57
+ "value": 1,
58
+ "unit": null
59
+ }
60
+ },
61
+ "kit_logs": [
62
+ {
63
+ "level": "error",
64
+ "channel": "omni.kit.app._impl",
65
+ "message": "[py stderr]: Traceback (most recent call last):"
66
+ },
67
+ {
68
+ "level": "error",
69
+ "channel": "omni.kit.app._impl",
70
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/impl/texture.py\", line 377, in on_drawable_changed"
71
+ },
72
+ {
73
+ "level": "error",
74
+ "channel": "omni.kit.app._impl",
75
+ "message": "[py stderr]: self.__drawable_changed_fn(texture[\"rp_resource\"], presentation_key)"
76
+ },
77
+ {
78
+ "level": "error",
79
+ "channel": "omni.kit.app._impl",
80
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/widget.py\", line 516, in __set_image_data"
81
+ },
82
+ {
83
+ "level": "error",
84
+ "channel": "omni.kit.app._impl",
85
+ "message": "[py stderr]: vp_api._sync_viewport_api(camera, canvas_size, vp_api.time, view, projection, force_update=True) # noqa PLW0212"
86
+ },
87
+ {
88
+ "level": "error",
89
+ "channel": "omni.kit.app._impl",
90
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
91
+ },
92
+ {
93
+ "level": "error",
94
+ "channel": "omni.kit.app._impl",
95
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 546, in _sync_viewport_api"
96
+ },
97
+ {
98
+ "level": "error",
99
+ "channel": "omni.kit.app._impl",
100
+ "message": "[py stderr]: self.__projection = self._conform_projection(policy, camera, image_aspect, canvas_aspect, projection)"
101
+ },
102
+ {
103
+ "level": "error",
104
+ "channel": "omni.kit.app._impl",
105
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
106
+ },
107
+ {
108
+ "level": "error",
109
+ "channel": "omni.kit.app._impl",
110
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 476, in _conform_projection"
111
+ },
112
+ {
113
+ "level": "error",
114
+ "channel": "omni.kit.app._impl",
115
+ "message": "[py stderr]: gf_camera = camera.GetCamera(self.__time)"
116
+ },
117
+ {
118
+ "level": "error",
119
+ "channel": "omni.kit.app._impl",
120
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^"
121
+ },
122
+ {
123
+ "level": "error",
124
+ "channel": "omni.kit.app._impl",
125
+ "message": "[py stderr]: AttributeError: 'NoneType' object has no attribute 'GetCamera'"
126
+ }
127
+ ]
128
+ },
129
+ {
130
+ "test_name": "culling_xz",
131
+ "engine": "isaac_sim_newton",
132
+ "engine_version": "",
133
+ "status": "fail",
134
+ "passed": false,
135
+ "duration": 9.538,
136
+ "message": "Engine session kit_152380_4 crashed before the test could complete (retries exhausted).",
137
+ "metrics": {},
138
+ "kit_logs": []
139
+ },
140
+ {
141
+ "test_name": "ground_drop",
142
+ "engine": "isaac_sim",
143
+ "engine_version": "",
144
+ "status": "fail",
145
+ "passed": false,
146
+ "duration": 558.144,
147
+ "message": "Engine session kit_152380_14 crashed before the test could complete (retries exhausted).",
148
+ "metrics": {},
149
+ "kit_logs": []
150
+ },
151
+ {
152
+ "test_name": "light_response",
153
+ "engine": "isaac_sim",
154
+ "engine_version": "6.1.0.0",
155
+ "status": "pass",
156
+ "passed": true,
157
+ "duration": 7.609,
158
+ "message": "",
159
+ "metrics": {
160
+ "_timing_capture_frame_total_s": {
161
+ "value": 2.388,
162
+ "unit": null
163
+ },
164
+ "_timing_capture_frame_count": {
165
+ "value": 30,
166
+ "unit": null
167
+ },
168
+ "_timing_capture_frame_avg_ms": {
169
+ "value": 79.6,
170
+ "unit": null
171
+ },
172
+ "_timing_encode_video_total_s": {
173
+ "value": 0.469,
174
+ "unit": null
175
+ },
176
+ "_timing_encode_video_count": {
177
+ "value": 1,
178
+ "unit": null
179
+ },
180
+ "_render_blank_retry_count": {
181
+ "value": 0,
182
+ "unit": null
183
+ },
184
+ "_render_blank_retry_unrecovered": {
185
+ "value": 0,
186
+ "unit": null
187
+ },
188
+ "light_response_variation_ratio": {
189
+ "value": 0.344828,
190
+ "unit": null
191
+ },
192
+ "light_response_blank_ratio": {
193
+ "value": 0.0,
194
+ "unit": null
195
+ },
196
+ "light_response_blank_frames": {
197
+ "value": 0,
198
+ "unit": null
199
+ },
200
+ "light_response_total_frames": {
201
+ "value": 30,
202
+ "unit": null
203
+ },
204
+ "light_response_total_pairs": {
205
+ "value": 29,
206
+ "unit": null
207
+ },
208
+ "light_response_different_pairs": {
209
+ "value": 10,
210
+ "unit": null
211
+ },
212
+ "light_response_passed": {
213
+ "value": 1,
214
+ "unit": null
215
+ },
216
+ "light_response_max_pair_change": {
217
+ "value": 0.726501,
218
+ "unit": null
219
+ },
220
+ "light_response_min_pair_change": {
221
+ "value": 0.012712,
222
+ "unit": null
223
+ }
224
+ },
225
+ "kit_logs": []
226
+ },
227
+ {
228
+ "test_name": "light_response",
229
+ "engine": "isaac_sim_newton",
230
+ "engine_version": "",
231
+ "status": "fail",
232
+ "passed": false,
233
+ "duration": 184.233,
234
+ "message": "Engine session kit_152380_7 crashed before the test could complete (retries exhausted).",
235
+ "metrics": {},
236
+ "kit_logs": []
237
+ },
238
+ {
239
+ "test_name": "mdl_renders",
240
+ "engine": "isaac_sim",
241
+ "engine_version": "6.1.0.0",
242
+ "status": "pass",
243
+ "passed": true,
244
+ "duration": 3.422,
245
+ "message": "",
246
+ "metrics": {
247
+ "_timing_capture_frame_total_s": {
248
+ "value": 0.64,
249
+ "unit": null
250
+ },
251
+ "_timing_capture_frame_count": {
252
+ "value": 4,
253
+ "unit": null
254
+ },
255
+ "_timing_capture_frame_avg_ms": {
256
+ "value": 160.0,
257
+ "unit": null
258
+ },
259
+ "_timing_encode_video_total_s": {
260
+ "value": 0.0,
261
+ "unit": null
262
+ },
263
+ "_timing_encode_video_count": {
264
+ "value": 0,
265
+ "unit": null
266
+ },
267
+ "_render_blank_retry_count": {
268
+ "value": 0,
269
+ "unit": null
270
+ },
271
+ "_render_blank_retry_unrecovered": {
272
+ "value": 0,
273
+ "unit": null
274
+ },
275
+ "mdl_surface_materials_with_universal": {
276
+ "value": 4,
277
+ "unit": null
278
+ },
279
+ "mdl_surface_materials_with_mdl": {
280
+ "value": 4,
281
+ "unit": null
282
+ },
283
+ "mdl_surface_materials_with_mtlx": {
284
+ "value": 0,
285
+ "unit": null
286
+ },
287
+ "mdl_surface_materials_total": {
288
+ "value": 4,
289
+ "unit": null
290
+ },
291
+ "mdl_surface_asset_root": {
292
+ "value": "/World/AssetRoot/Asset",
293
+ "unit": null
294
+ },
295
+ "mdl_surface_contexts_present": {
296
+ "value": "mdl, universal",
297
+ "unit": null
298
+ },
299
+ "mdl_surface_render_context_order": {
300
+ "value": "mdl",
301
+ "unit": null
302
+ },
303
+ "mdl_surface_silhouette_pixels": {
304
+ "value": 104054,
305
+ "unit": null
306
+ },
307
+ "mdl_surface_uncovered_pixels": {
308
+ "value": 0,
309
+ "unit": null
310
+ },
311
+ "mdl_surface_coverage": {
312
+ "value": 1.0,
313
+ "unit": null
314
+ }
315
+ },
316
+ "kit_logs": [
317
+ {
318
+ "level": "error",
319
+ "channel": "omni.kit.app._impl",
320
+ "message": "[py stderr]: Traceback (most recent call last):"
321
+ },
322
+ {
323
+ "level": "error",
324
+ "channel": "omni.kit.app._impl",
325
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/impl/texture.py\", line 377, in on_drawable_changed"
326
+ },
327
+ {
328
+ "level": "error",
329
+ "channel": "omni.kit.app._impl",
330
+ "message": "[py stderr]: self.__drawable_changed_fn(texture[\"rp_resource\"], presentation_key)"
331
+ },
332
+ {
333
+ "level": "error",
334
+ "channel": "omni.kit.app._impl",
335
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/widget.py\", line 516, in __set_image_data"
336
+ },
337
+ {
338
+ "level": "error",
339
+ "channel": "omni.kit.app._impl",
340
+ "message": "[py stderr]: vp_api._sync_viewport_api(camera, canvas_size, vp_api.time, view, projection, force_update=True) # noqa PLW0212"
341
+ },
342
+ {
343
+ "level": "error",
344
+ "channel": "omni.kit.app._impl",
345
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
346
+ },
347
+ {
348
+ "level": "error",
349
+ "channel": "omni.kit.app._impl",
350
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 546, in _sync_viewport_api"
351
+ },
352
+ {
353
+ "level": "error",
354
+ "channel": "omni.kit.app._impl",
355
+ "message": "[py stderr]: self.__projection = self._conform_projection(policy, camera, image_aspect, canvas_aspect, projection)"
356
+ },
357
+ {
358
+ "level": "error",
359
+ "channel": "omni.kit.app._impl",
360
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
361
+ },
362
+ {
363
+ "level": "error",
364
+ "channel": "omni.kit.app._impl",
365
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 476, in _conform_projection"
366
+ },
367
+ {
368
+ "level": "error",
369
+ "channel": "omni.kit.app._impl",
370
+ "message": "[py stderr]: gf_camera = camera.GetCamera(self.__time)"
371
+ },
372
+ {
373
+ "level": "error",
374
+ "channel": "omni.kit.app._impl",
375
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^"
376
+ },
377
+ {
378
+ "level": "error",
379
+ "channel": "omni.kit.app._impl",
380
+ "message": "[py stderr]: AttributeError: 'NoneType' object has no attribute 'GetCamera'"
381
+ }
382
+ ]
383
+ },
384
+ {
385
+ "test_name": "mdl_renders",
386
+ "engine": "isaac_sim_newton",
387
+ "engine_version": "",
388
+ "status": "fail",
389
+ "passed": false,
390
+ "duration": 125.32499999999999,
391
+ "message": "Engine session kit_152380_29 crashed before the test could complete (retries exhausted).",
392
+ "metrics": {},
393
+ "kit_logs": []
394
+ },
395
+ {
396
+ "test_name": "normals_xz",
397
+ "engine": "isaac_sim",
398
+ "engine_version": "6.1.0.0",
399
+ "status": "pass",
400
+ "passed": true,
401
+ "duration": 4.125,
402
+ "message": "",
403
+ "metrics": {
404
+ "_timing_capture_frame_total_s": {
405
+ "value": 2.516,
406
+ "unit": null
407
+ },
408
+ "_timing_capture_frame_count": {
409
+ "value": 8,
410
+ "unit": null
411
+ },
412
+ "_timing_capture_frame_avg_ms": {
413
+ "value": 314.5,
414
+ "unit": null
415
+ },
416
+ "_timing_encode_video_total_s": {
417
+ "value": 0.187,
418
+ "unit": null
419
+ },
420
+ "_timing_encode_video_count": {
421
+ "value": 1,
422
+ "unit": null
423
+ },
424
+ "_render_blank_retry_count": {
425
+ "value": 3,
426
+ "unit": null
427
+ },
428
+ "_render_blank_retry_unrecovered": {
429
+ "value": 3,
430
+ "unit": null
431
+ },
432
+ "_render_blank_retry[normals_xz_002.png]": {
433
+ "value": "attempts=6 recovered=False",
434
+ "unit": null
435
+ },
436
+ "_render_blank_retry[normals_xz_004.png]": {
437
+ "value": "attempts=6 recovered=False",
438
+ "unit": null
439
+ },
440
+ "_render_blank_retry[normals_xz_008.png]": {
441
+ "value": "attempts=6 recovered=False",
442
+ "unit": null
443
+ },
444
+ "normals_xz_avg_dark": {
445
+ "value": 0.000544,
446
+ "unit": null
447
+ },
448
+ "normals_xz_max_dark": {
449
+ "value": 0.003471,
450
+ "unit": null
451
+ },
452
+ "normals_xz_problem_frames": {
453
+ "value": 0,
454
+ "unit": null
455
+ },
456
+ "normals_xz_passed": {
457
+ "value": 1,
458
+ "unit": null
459
+ }
460
+ },
461
+ "kit_logs": [
462
+ {
463
+ "level": "error",
464
+ "channel": "omni.kit.app._impl",
465
+ "message": "[py stderr]: Traceback (most recent call last):"
466
+ },
467
+ {
468
+ "level": "error",
469
+ "channel": "omni.kit.app._impl",
470
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/impl/texture.py\", line 377, in on_drawable_changed"
471
+ },
472
+ {
473
+ "level": "error",
474
+ "channel": "omni.kit.app._impl",
475
+ "message": "[py stderr]: self.__drawable_changed_fn(texture[\"rp_resource\"], presentation_key)"
476
+ },
477
+ {
478
+ "level": "error",
479
+ "channel": "omni.kit.app._impl",
480
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/widget.py\", line 516, in __set_image_data"
481
+ },
482
+ {
483
+ "level": "error",
484
+ "channel": "omni.kit.app._impl",
485
+ "message": "[py stderr]: vp_api._sync_viewport_api(camera, canvas_size, vp_api.time, view, projection, force_update=True) # noqa PLW0212"
486
+ },
487
+ {
488
+ "level": "error",
489
+ "channel": "omni.kit.app._impl",
490
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
491
+ },
492
+ {
493
+ "level": "error",
494
+ "channel": "omni.kit.app._impl",
495
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 546, in _sync_viewport_api"
496
+ },
497
+ {
498
+ "level": "error",
499
+ "channel": "omni.kit.app._impl",
500
+ "message": "[py stderr]: self.__projection = self._conform_projection(policy, camera, image_aspect, canvas_aspect, projection)"
501
+ },
502
+ {
503
+ "level": "error",
504
+ "channel": "omni.kit.app._impl",
505
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
506
+ },
507
+ {
508
+ "level": "error",
509
+ "channel": "omni.kit.app._impl",
510
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 476, in _conform_projection"
511
+ },
512
+ {
513
+ "level": "error",
514
+ "channel": "omni.kit.app._impl",
515
+ "message": "[py stderr]: gf_camera = camera.GetCamera(self.__time)"
516
+ },
517
+ {
518
+ "level": "error",
519
+ "channel": "omni.kit.app._impl",
520
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^"
521
+ },
522
+ {
523
+ "level": "error",
524
+ "channel": "omni.kit.app._impl",
525
+ "message": "[py stderr]: AttributeError: 'NoneType' object has no attribute 'GetCamera'"
526
+ }
527
+ ]
528
+ },
529
+ {
530
+ "test_name": "normals_xz",
531
+ "engine": "isaac_sim_newton",
532
+ "engine_version": "",
533
+ "status": "fail",
534
+ "passed": false,
535
+ "duration": 58.117,
536
+ "message": "Engine session kit_152380_11 crashed before the test could complete (retries exhausted).",
537
+ "metrics": {},
538
+ "kit_logs": []
539
+ },
540
+ {
541
+ "test_name": "pivot",
542
+ "engine": "isaac_sim",
543
+ "engine_version": "6.1.0.0",
544
+ "status": "pass",
545
+ "passed": true,
546
+ "duration": 5.453,
547
+ "message": "",
548
+ "metrics": {
549
+ "_timing_capture_frame_total_s": {
550
+ "value": 1.904,
551
+ "unit": null
552
+ },
553
+ "_timing_capture_frame_count": {
554
+ "value": 20,
555
+ "unit": null
556
+ },
557
+ "_timing_capture_frame_avg_ms": {
558
+ "value": 95.2,
559
+ "unit": null
560
+ },
561
+ "_timing_encode_video_total_s": {
562
+ "value": 0.468,
563
+ "unit": null
564
+ },
565
+ "_timing_encode_video_count": {
566
+ "value": 2,
567
+ "unit": null
568
+ },
569
+ "_render_blank_retry_count": {
570
+ "value": 0,
571
+ "unit": null
572
+ },
573
+ "_render_blank_retry_unrecovered": {
574
+ "value": 0,
575
+ "unit": null
576
+ },
577
+ "pivot_score": {
578
+ "value": 0.7,
579
+ "unit": null
580
+ },
581
+ "pivot_pivot_height_pct": {
582
+ "value": -0.5,
583
+ "unit": null
584
+ },
585
+ "pivot_pivot_at_base": {
586
+ "value": 1,
587
+ "unit": null
588
+ },
589
+ "pivot_pivot_centered_xy": {
590
+ "value": 0,
591
+ "unit": null
592
+ },
593
+ "pivot_ground_penetration": {
594
+ "value": 1,
595
+ "unit": null
596
+ },
597
+ "pivot_orbital_motion": {
598
+ "value": 1,
599
+ "unit": null
600
+ },
601
+ "pivot_passed": {
602
+ "value": 1,
603
+ "unit": null
604
+ }
605
+ },
606
+ "kit_logs": [
607
+ {
608
+ "level": "error",
609
+ "channel": "omni.kit.app._impl",
610
+ "message": "[py stderr]: Traceback (most recent call last):"
611
+ },
612
+ {
613
+ "level": "error",
614
+ "channel": "omni.kit.app._impl",
615
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/impl/texture.py\", line 377, in on_drawable_changed"
616
+ },
617
+ {
618
+ "level": "error",
619
+ "channel": "omni.kit.app._impl",
620
+ "message": "[py stderr]: self.__drawable_changed_fn(texture[\"rp_resource\"], presentation_key)"
621
+ },
622
+ {
623
+ "level": "error",
624
+ "channel": "omni.kit.app._impl",
625
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/widget.py\", line 516, in __set_image_data"
626
+ },
627
+ {
628
+ "level": "error",
629
+ "channel": "omni.kit.app._impl",
630
+ "message": "[py stderr]: vp_api._sync_viewport_api(camera, canvas_size, vp_api.time, view, projection, force_update=True) # noqa PLW0212"
631
+ },
632
+ {
633
+ "level": "error",
634
+ "channel": "omni.kit.app._impl",
635
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
636
+ },
637
+ {
638
+ "level": "error",
639
+ "channel": "omni.kit.app._impl",
640
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 546, in _sync_viewport_api"
641
+ },
642
+ {
643
+ "level": "error",
644
+ "channel": "omni.kit.app._impl",
645
+ "message": "[py stderr]: self.__projection = self._conform_projection(policy, camera, image_aspect, canvas_aspect, projection)"
646
+ },
647
+ {
648
+ "level": "error",
649
+ "channel": "omni.kit.app._impl",
650
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
651
+ },
652
+ {
653
+ "level": "error",
654
+ "channel": "omni.kit.app._impl",
655
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 476, in _conform_projection"
656
+ },
657
+ {
658
+ "level": "error",
659
+ "channel": "omni.kit.app._impl",
660
+ "message": "[py stderr]: gf_camera = camera.GetCamera(self.__time)"
661
+ },
662
+ {
663
+ "level": "error",
664
+ "channel": "omni.kit.app._impl",
665
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^"
666
+ },
667
+ {
668
+ "level": "error",
669
+ "channel": "omni.kit.app._impl",
670
+ "message": "[py stderr]: AttributeError: 'NoneType' object has no attribute 'GetCamera'"
671
+ }
672
+ ]
673
+ },
674
+ {
675
+ "test_name": "pivot",
676
+ "engine": "isaac_sim_newton",
677
+ "engine_version": "",
678
+ "status": "fail",
679
+ "passed": false,
680
+ "duration": 67.166,
681
+ "message": "Engine session kit_152380_15 crashed before the test could complete (retries exhausted).",
682
+ "metrics": {},
683
+ "kit_logs": []
684
+ },
685
+ {
686
+ "test_name": "presence",
687
+ "engine": "isaac_sim",
688
+ "engine_version": "6.1.0.0",
689
+ "status": "pass",
690
+ "passed": true,
691
+ "duration": 0.719,
692
+ "message": "",
693
+ "metrics": {
694
+ "_timing_capture_frame_total_s": {
695
+ "value": 0.141,
696
+ "unit": null
697
+ },
698
+ "_timing_capture_frame_count": {
699
+ "value": 2,
700
+ "unit": null
701
+ },
702
+ "_timing_capture_frame_avg_ms": {
703
+ "value": 70.5,
704
+ "unit": null
705
+ },
706
+ "_timing_encode_video_total_s": {
707
+ "value": 0.0,
708
+ "unit": null
709
+ },
710
+ "_timing_encode_video_count": {
711
+ "value": 0,
712
+ "unit": null
713
+ },
714
+ "_render_blank_retry_count": {
715
+ "value": 0,
716
+ "unit": null
717
+ },
718
+ "_render_blank_retry_unrecovered": {
719
+ "value": 0,
720
+ "unit": null
721
+ },
722
+ "presence_diff_ratio": {
723
+ "value": 0.099545,
724
+ "unit": null
725
+ },
726
+ "presence_passed": {
727
+ "value": 1,
728
+ "unit": null
729
+ }
730
+ },
731
+ "kit_logs": [
732
+ {
733
+ "level": "error",
734
+ "channel": "omni.kit.app._impl",
735
+ "message": "[py stderr]: Traceback (most recent call last):"
736
+ },
737
+ {
738
+ "level": "error",
739
+ "channel": "omni.kit.app._impl",
740
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/impl/texture.py\", line 377, in on_drawable_changed"
741
+ },
742
+ {
743
+ "level": "error",
744
+ "channel": "omni.kit.app._impl",
745
+ "message": "[py stderr]: self.__drawable_changed_fn(texture[\"rp_resource\"], presentation_key)"
746
+ },
747
+ {
748
+ "level": "error",
749
+ "channel": "omni.kit.app._impl",
750
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/widget.py\", line 516, in __set_image_data"
751
+ },
752
+ {
753
+ "level": "error",
754
+ "channel": "omni.kit.app._impl",
755
+ "message": "[py stderr]: vp_api._sync_viewport_api(camera, canvas_size, vp_api.time, view, projection, force_update=True) # noqa PLW0212"
756
+ },
757
+ {
758
+ "level": "error",
759
+ "channel": "omni.kit.app._impl",
760
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
761
+ },
762
+ {
763
+ "level": "error",
764
+ "channel": "omni.kit.app._impl",
765
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 546, in _sync_viewport_api"
766
+ },
767
+ {
768
+ "level": "error",
769
+ "channel": "omni.kit.app._impl",
770
+ "message": "[py stderr]: self.__projection = self._conform_projection(policy, camera, image_aspect, canvas_aspect, projection)"
771
+ },
772
+ {
773
+ "level": "error",
774
+ "channel": "omni.kit.app._impl",
775
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
776
+ },
777
+ {
778
+ "level": "error",
779
+ "channel": "omni.kit.app._impl",
780
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 476, in _conform_projection"
781
+ },
782
+ {
783
+ "level": "error",
784
+ "channel": "omni.kit.app._impl",
785
+ "message": "[py stderr]: gf_camera = camera.GetCamera(self.__time)"
786
+ },
787
+ {
788
+ "level": "error",
789
+ "channel": "omni.kit.app._impl",
790
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^"
791
+ },
792
+ {
793
+ "level": "error",
794
+ "channel": "omni.kit.app._impl",
795
+ "message": "[py stderr]: AttributeError: 'NoneType' object has no attribute 'GetCamera'"
796
+ }
797
+ ]
798
+ },
799
+ {
800
+ "test_name": "presence",
801
+ "engine": "isaac_sim_newton",
802
+ "engine_version": "",
803
+ "status": "fail",
804
+ "passed": false,
805
+ "duration": 9.318,
806
+ "message": "Engine session kit_152380_18 crashed before the test could complete (retries exhausted).",
807
+ "metrics": {},
808
+ "kit_logs": []
809
+ },
810
+ {
811
+ "test_name": "preview_surface_renders",
812
+ "engine": "isaac_sim",
813
+ "engine_version": "6.1.0.0",
814
+ "status": "pass",
815
+ "passed": true,
816
+ "duration": 2.219,
817
+ "message": "",
818
+ "metrics": {
819
+ "_timing_capture_frame_total_s": {
820
+ "value": 0.64,
821
+ "unit": null
822
+ },
823
+ "_timing_capture_frame_count": {
824
+ "value": 4,
825
+ "unit": null
826
+ },
827
+ "_timing_capture_frame_avg_ms": {
828
+ "value": 160.0,
829
+ "unit": null
830
+ },
831
+ "_timing_encode_video_total_s": {
832
+ "value": 0.0,
833
+ "unit": null
834
+ },
835
+ "_timing_encode_video_count": {
836
+ "value": 0,
837
+ "unit": null
838
+ },
839
+ "_render_blank_retry_count": {
840
+ "value": 0,
841
+ "unit": null
842
+ },
843
+ "_render_blank_retry_unrecovered": {
844
+ "value": 0,
845
+ "unit": null
846
+ },
847
+ "universal_surface_materials_with_universal": {
848
+ "value": 4,
849
+ "unit": null
850
+ },
851
+ "universal_surface_materials_with_mdl": {
852
+ "value": 4,
853
+ "unit": null
854
+ },
855
+ "universal_surface_materials_with_mtlx": {
856
+ "value": 0,
857
+ "unit": null
858
+ },
859
+ "universal_surface_materials_total": {
860
+ "value": 4,
861
+ "unit": null
862
+ },
863
+ "universal_surface_asset_root": {
864
+ "value": "/World/AssetRoot/Asset",
865
+ "unit": null
866
+ },
867
+ "universal_surface_contexts_present": {
868
+ "value": "mdl, universal",
869
+ "unit": null
870
+ },
871
+ "universal_surface_render_context_order": {
872
+ "value": "universal",
873
+ "unit": null
874
+ },
875
+ "universal_surface_silhouette_pixels": {
876
+ "value": 103188,
877
+ "unit": null
878
+ },
879
+ "universal_surface_uncovered_pixels": {
880
+ "value": 0,
881
+ "unit": null
882
+ },
883
+ "universal_surface_coverage": {
884
+ "value": 1.0,
885
+ "unit": null
886
+ }
887
+ },
888
+ "kit_logs": [
889
+ {
890
+ "level": "error",
891
+ "channel": "omni.kit.app._impl",
892
+ "message": "[py stderr]: Traceback (most recent call last):"
893
+ },
894
+ {
895
+ "level": "error",
896
+ "channel": "omni.kit.app._impl",
897
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/impl/texture.py\", line 377, in on_drawable_changed"
898
+ },
899
+ {
900
+ "level": "error",
901
+ "channel": "omni.kit.app._impl",
902
+ "message": "[py stderr]: self.__drawable_changed_fn(texture[\"rp_resource\"], presentation_key)"
903
+ },
904
+ {
905
+ "level": "error",
906
+ "channel": "omni.kit.app._impl",
907
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/widget.py\", line 516, in __set_image_data"
908
+ },
909
+ {
910
+ "level": "error",
911
+ "channel": "omni.kit.app._impl",
912
+ "message": "[py stderr]: vp_api._sync_viewport_api(camera, canvas_size, vp_api.time, view, projection, force_update=True) # noqa PLW0212"
913
+ },
914
+ {
915
+ "level": "error",
916
+ "channel": "omni.kit.app._impl",
917
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
918
+ },
919
+ {
920
+ "level": "error",
921
+ "channel": "omni.kit.app._impl",
922
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 546, in _sync_viewport_api"
923
+ },
924
+ {
925
+ "level": "error",
926
+ "channel": "omni.kit.app._impl",
927
+ "message": "[py stderr]: self.__projection = self._conform_projection(policy, camera, image_aspect, canvas_aspect, projection)"
928
+ },
929
+ {
930
+ "level": "error",
931
+ "channel": "omni.kit.app._impl",
932
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
933
+ },
934
+ {
935
+ "level": "error",
936
+ "channel": "omni.kit.app._impl",
937
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 476, in _conform_projection"
938
+ },
939
+ {
940
+ "level": "error",
941
+ "channel": "omni.kit.app._impl",
942
+ "message": "[py stderr]: gf_camera = camera.GetCamera(self.__time)"
943
+ },
944
+ {
945
+ "level": "error",
946
+ "channel": "omni.kit.app._impl",
947
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^"
948
+ },
949
+ {
950
+ "level": "error",
951
+ "channel": "omni.kit.app._impl",
952
+ "message": "[py stderr]: AttributeError: 'NoneType' object has no attribute 'GetCamera'"
953
+ }
954
+ ]
955
+ },
956
+ {
957
+ "test_name": "preview_surface_renders",
958
+ "engine": "isaac_sim_newton",
959
+ "engine_version": "",
960
+ "status": "fail",
961
+ "passed": false,
962
+ "duration": 135.219,
963
+ "message": "Engine session kit_152380_22 crashed before the test could complete (retries exhausted).",
964
+ "metrics": {},
965
+ "kit_logs": []
966
+ },
967
+ {
968
+ "test_name": "semantic_labels_seg_labelled",
969
+ "engine": "isaac_sim",
970
+ "engine_version": "6.1.0.0",
971
+ "status": "pass",
972
+ "passed": true,
973
+ "duration": 1.015,
974
+ "message": "",
975
+ "metrics": {
976
+ "_timing_capture_frame_total_s": {
977
+ "value": 0.219,
978
+ "unit": null
979
+ },
980
+ "_timing_capture_frame_count": {
981
+ "value": 1,
982
+ "unit": null
983
+ },
984
+ "_timing_capture_frame_avg_ms": {
985
+ "value": 219.0,
986
+ "unit": null
987
+ },
988
+ "_timing_encode_video_total_s": {
989
+ "value": 0.0,
990
+ "unit": null
991
+ },
992
+ "_timing_encode_video_count": {
993
+ "value": 0,
994
+ "unit": null
995
+ },
996
+ "_render_blank_retry_count": {
997
+ "value": 0,
998
+ "unit": null
999
+ },
1000
+ "_render_blank_retry_unrecovered": {
1001
+ "value": 0,
1002
+ "unit": null
1003
+ },
1004
+ "semantic_labels_on_coverage": {
1005
+ "value": 0.098494,
1006
+ "unit": null
1007
+ },
1008
+ "semantic_labels_labelled_passed": {
1009
+ "value": 1,
1010
+ "unit": null
1011
+ }
1012
+ },
1013
+ "kit_logs": [
1014
+ {
1015
+ "level": "error",
1016
+ "channel": "omni.kit.app._impl",
1017
+ "message": "[py stderr]: Traceback (most recent call last):"
1018
+ },
1019
+ {
1020
+ "level": "error",
1021
+ "channel": "omni.kit.app._impl",
1022
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/impl/texture.py\", line 377, in on_drawable_changed"
1023
+ },
1024
+ {
1025
+ "level": "error",
1026
+ "channel": "omni.kit.app._impl",
1027
+ "message": "[py stderr]: self.__drawable_changed_fn(texture[\"rp_resource\"], presentation_key)"
1028
+ },
1029
+ {
1030
+ "level": "error",
1031
+ "channel": "omni.kit.app._impl",
1032
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/widget.py\", line 516, in __set_image_data"
1033
+ },
1034
+ {
1035
+ "level": "error",
1036
+ "channel": "omni.kit.app._impl",
1037
+ "message": "[py stderr]: vp_api._sync_viewport_api(camera, canvas_size, vp_api.time, view, projection, force_update=True) # noqa PLW0212"
1038
+ },
1039
+ {
1040
+ "level": "error",
1041
+ "channel": "omni.kit.app._impl",
1042
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
1043
+ },
1044
+ {
1045
+ "level": "error",
1046
+ "channel": "omni.kit.app._impl",
1047
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 546, in _sync_viewport_api"
1048
+ },
1049
+ {
1050
+ "level": "error",
1051
+ "channel": "omni.kit.app._impl",
1052
+ "message": "[py stderr]: self.__projection = self._conform_projection(policy, camera, image_aspect, canvas_aspect, projection)"
1053
+ },
1054
+ {
1055
+ "level": "error",
1056
+ "channel": "omni.kit.app._impl",
1057
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
1058
+ },
1059
+ {
1060
+ "level": "error",
1061
+ "channel": "omni.kit.app._impl",
1062
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 476, in _conform_projection"
1063
+ },
1064
+ {
1065
+ "level": "error",
1066
+ "channel": "omni.kit.app._impl",
1067
+ "message": "[py stderr]: gf_camera = camera.GetCamera(self.__time)"
1068
+ },
1069
+ {
1070
+ "level": "error",
1071
+ "channel": "omni.kit.app._impl",
1072
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^"
1073
+ },
1074
+ {
1075
+ "level": "error",
1076
+ "channel": "omni.kit.app._impl",
1077
+ "message": "[py stderr]: AttributeError: 'NoneType' object has no attribute 'GetCamera'"
1078
+ }
1079
+ ]
1080
+ },
1081
+ {
1082
+ "test_name": "semantic_labels_seg_labelled",
1083
+ "engine": "isaac_sim_newton",
1084
+ "engine_version": "",
1085
+ "status": "fail",
1086
+ "passed": false,
1087
+ "duration": 9.896,
1088
+ "message": "Engine session kit_152380_26 crashed before the test could complete (retries exhausted).",
1089
+ "metrics": {},
1090
+ "kit_logs": []
1091
+ },
1092
+ {
1093
+ "test_name": "semantic_labels_seg_stripped",
1094
+ "engine": "isaac_sim",
1095
+ "engine_version": "6.1.0.0",
1096
+ "status": "pass",
1097
+ "passed": true,
1098
+ "duration": 0.828,
1099
+ "message": "",
1100
+ "metrics": {
1101
+ "semantic_labels_stripped_prims": {
1102
+ "value": 5,
1103
+ "unit": null
1104
+ },
1105
+ "semantic_labels_off_coverage": {
1106
+ "value": 0.0,
1107
+ "unit": null
1108
+ },
1109
+ "semantic_labels_stripped_passed": {
1110
+ "value": 1,
1111
+ "unit": null
1112
+ }
1113
+ },
1114
+ "kit_logs": []
1115
+ },
1116
+ {
1117
+ "test_name": "semantic_labels_seg_stripped",
1118
+ "engine": "isaac_sim_newton",
1119
+ "engine_version": "",
1120
+ "status": "fail",
1121
+ "passed": false,
1122
+ "duration": 60.837,
1123
+ "message": "Engine session kit_152380_31 crashed before the test could complete (retries exhausted).",
1124
+ "metrics": {},
1125
+ "kit_logs": []
1126
+ },
1127
+ {
1128
+ "test_name": "slope_drop",
1129
+ "engine": "isaac_sim",
1130
+ "engine_version": "6.1.0.0",
1131
+ "status": "pass",
1132
+ "passed": true,
1133
+ "duration": 23.891,
1134
+ "message": "",
1135
+ "metrics": {
1136
+ "slope_drop_initial_cx": {
1137
+ "value": 0.0,
1138
+ "unit": null
1139
+ },
1140
+ "slope_drop_initial_cy": {
1141
+ "value": -0.7947,
1142
+ "unit": null
1143
+ },
1144
+ "slope_drop_initial_z_min": {
1145
+ "value": 2.1466,
1146
+ "unit": null
1147
+ },
1148
+ "slope_drop_bbox_height": {
1149
+ "value": 0.099,
1150
+ "unit": null
1151
+ },
1152
+ "_timing_capture_frame_total_s": {
1153
+ "value": 6.953,
1154
+ "unit": null
1155
+ },
1156
+ "_timing_capture_frame_count": {
1157
+ "value": 51,
1158
+ "unit": null
1159
+ },
1160
+ "_timing_capture_frame_avg_ms": {
1161
+ "value": 136.33,
1162
+ "unit": null
1163
+ },
1164
+ "_timing_encode_video_total_s": {
1165
+ "value": 1.031,
1166
+ "unit": null
1167
+ },
1168
+ "_timing_encode_video_count": {
1169
+ "value": 1,
1170
+ "unit": null
1171
+ },
1172
+ "_render_blank_retry_count": {
1173
+ "value": 0,
1174
+ "unit": null
1175
+ },
1176
+ "_render_blank_retry_unrecovered": {
1177
+ "value": 0,
1178
+ "unit": null
1179
+ },
1180
+ "slope_drop_contact_detected": {
1181
+ "value": 1,
1182
+ "unit": null
1183
+ },
1184
+ "slope_drop_horiz_detected": {
1185
+ "value": 1,
1186
+ "unit": null
1187
+ },
1188
+ "slope_drop_penetrated": {
1189
+ "value": 0,
1190
+ "unit": null
1191
+ },
1192
+ "slope_drop_slope_penetrated": {
1193
+ "value": 0,
1194
+ "unit": null
1195
+ },
1196
+ "slope_drop_excessive_separation": {
1197
+ "value": 0,
1198
+ "unit": null
1199
+ },
1200
+ "slope_drop_uphill_motion": {
1201
+ "value": 1,
1202
+ "unit": null
1203
+ },
1204
+ "slope_drop_passed": {
1205
+ "value": 1,
1206
+ "unit": null
1207
+ },
1208
+ "slope_drop_max_clearance": {
1209
+ "value": 0.0185,
1210
+ "unit": "m"
1211
+ },
1212
+ "slope_drop_separation_frames": {
1213
+ "value": 0,
1214
+ "unit": null
1215
+ },
1216
+ "slope_drop_horiz_time": {
1217
+ "value": 0.346,
1218
+ "unit": null
1219
+ }
1220
+ },
1221
+ "kit_logs": [
1222
+ {
1223
+ "level": "error",
1224
+ "channel": "omni.physx.plugin",
1225
+ "message": "Physics scenes stepping is not the same, step subscription will be send with later step, per scene step is not yet supported."
1226
+ },
1227
+ {
1228
+ "level": "error",
1229
+ "channel": "omni.kit.app._impl",
1230
+ "message": "[py stderr]: Traceback (most recent call last):"
1231
+ },
1232
+ {
1233
+ "level": "error",
1234
+ "channel": "omni.kit.app._impl",
1235
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/impl/texture.py\", line 377, in on_drawable_changed"
1236
+ },
1237
+ {
1238
+ "level": "error",
1239
+ "channel": "omni.kit.app._impl",
1240
+ "message": "[py stderr]: self.__drawable_changed_fn(texture[\"rp_resource\"], presentation_key)"
1241
+ },
1242
+ {
1243
+ "level": "error",
1244
+ "channel": "omni.kit.app._impl",
1245
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/widget.py\", line 516, in __set_image_data"
1246
+ },
1247
+ {
1248
+ "level": "error",
1249
+ "channel": "omni.kit.app._impl",
1250
+ "message": "[py stderr]: vp_api._sync_viewport_api(camera, canvas_size, vp_api.time, view, projection, force_update=True) # noqa PLW0212"
1251
+ },
1252
+ {
1253
+ "level": "error",
1254
+ "channel": "omni.kit.app._impl",
1255
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
1256
+ },
1257
+ {
1258
+ "level": "error",
1259
+ "channel": "omni.kit.app._impl",
1260
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 546, in _sync_viewport_api"
1261
+ },
1262
+ {
1263
+ "level": "error",
1264
+ "channel": "omni.kit.app._impl",
1265
+ "message": "[py stderr]: self.__projection = self._conform_projection(policy, camera, image_aspect, canvas_aspect, projection)"
1266
+ },
1267
+ {
1268
+ "level": "error",
1269
+ "channel": "omni.kit.app._impl",
1270
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
1271
+ },
1272
+ {
1273
+ "level": "error",
1274
+ "channel": "omni.kit.app._impl",
1275
+ "message": "[py stderr]: File \"../sri/.venv-isaac/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 476, in _conform_projection"
1276
+ },
1277
+ {
1278
+ "level": "error",
1279
+ "channel": "omni.kit.app._impl",
1280
+ "message": "[py stderr]: gf_camera = camera.GetCamera(self.__time)"
1281
+ },
1282
+ {
1283
+ "level": "error",
1284
+ "channel": "omni.kit.app._impl",
1285
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^"
1286
+ },
1287
+ {
1288
+ "level": "error",
1289
+ "channel": "omni.kit.app._impl",
1290
+ "message": "[py stderr]: AttributeError: 'NoneType' object has no attribute 'GetCamera'"
1291
+ }
1292
+ ]
1293
+ }
1294
+ ]
1295
+ }
safety_goggles/.metadata/safety_goggles_validation.json ADDED
@@ -0,0 +1,178 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "simready_usd/safety_goggles.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', 'com.nvidia.simready.RB.MB.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', 'com.nvidia.simready.RB.MB.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
+ "optional requirements": "['com.nvidia.simready.RB.MB.001']",
81
+ "passed": false,
82
+ "version": "0.4.0"
83
+ },
84
+ "FET_004_STANDARD": {
85
+ "blocking_failure": false,
86
+ "dependencies": "[{'FET_003_STANDARD': {'version': '0.2.0'}}]",
87
+ "optional requirements": "['com.nvidia.simready.RB.MB.001']",
88
+ "passed": false,
89
+ "version": "0.2.0"
90
+ },
91
+ "FET_005_STANDARD": {
92
+ "blocking_failure": false,
93
+ "dependencies": "[]",
94
+ "optional requirements": "['com.nvidia.simready.GSP.001', 'com.nvidia.simready.PMT.001']",
95
+ "passed": false,
96
+ "version": "0.1.0"
97
+ },
98
+ "FET_006_MDL": {
99
+ "blocking_failure": false,
100
+ "dependencies": "[]",
101
+ "passed": true,
102
+ "version": "0.2.0"
103
+ },
104
+ "FET_006_OPENPBR": {
105
+ "blocking_failure": false,
106
+ "dependencies": "[]",
107
+ "optional requirements": "['com.nvidia.simready.VM.PBR.001', 'com.nvidia.simready.VM.PBR.003']",
108
+ "passed": false,
109
+ "version": "0.1.0"
110
+ },
111
+ "FET_006_STANDARD": {
112
+ "blocking_failure": false,
113
+ "dependencies": "[]",
114
+ "passed": true,
115
+ "version": "0.2.0"
116
+ },
117
+ "FET_007_STANDARD": {
118
+ "blocking_failure": false,
119
+ "dependencies": "[]",
120
+ "optional requirements": "['com.nvidia.simready.NVM.001', 'com.nvidia.simready.NVM.002', 'com.nvidia.simready.NVM.003']",
121
+ "passed": false,
122
+ "version": "0.2.0"
123
+ },
124
+ "FET_010_STANDARD": {
125
+ "blocking_failure": false,
126
+ "dependencies": "[]",
127
+ "optional requirements": "['com.nvidia.simready.DISP.001']",
128
+ "passed": false,
129
+ "version": "0.1.0"
130
+ },
131
+ "FET_011_RTX": {
132
+ "blocking_failure": false,
133
+ "dependencies": "[{'FET_011_STANDARD': {'version': '0.2.0'}}]",
134
+ "passed": true,
135
+ "version": "0.1.0"
136
+ },
137
+ "FET_011_STANDARD": {
138
+ "blocking_failure": false,
139
+ "dependencies": "[]",
140
+ "passed": true,
141
+ "version": "0.2.0"
142
+ },
143
+ "FET_031_STANDARD": {
144
+ "blocking_failure": false,
145
+ "dependencies": "[]",
146
+ "passed": true,
147
+ "version": "0.1.0"
148
+ },
149
+ "FET_033_STANDARD": {
150
+ "blocking_failure": false,
151
+ "dependencies": "[{'FET_031_STANDARD': {'version': '0.1.0'}}]",
152
+ "passed": true,
153
+ "version": "0.4.0"
154
+ },
155
+ "FET_046_STANDARD": {
156
+ "blocking_failure": false,
157
+ "dependencies": "[{'FET_011_STANDARD': {'version': '0.2.0'}}]",
158
+ "passed": true,
159
+ "version": "0.1.0"
160
+ },
161
+ "FET_100_ISAAC": {
162
+ "blocking_failure": false,
163
+ "dependencies": "[{'FET_003_PHYSX': {'version': '0.4.0'}}]",
164
+ "optional requirements": "['com.nvidia.simready.ISA.001']",
165
+ "passed": false,
166
+ "version": "0.4.0"
167
+ }
168
+ },
169
+ "profile_id": "Robotics-Prop",
170
+ "profile_version": "4.0.0",
171
+ "simready_validate_version": "2026.8.0",
172
+ "tier_versions": {
173
+ "sensors": "2026.8.0",
174
+ "tier_aif": "2026.8.0",
175
+ "tier_core": "2026.8.0"
176
+ }
177
+ }
178
+ }
safety_goggles/com.nvidia.simready.packaging.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "format_version": "1.0",
3
+ "package_id": "simready.hf.NdotLight.SimReady_Assets.safety_goggles.2026.10.30_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": "992c794cedf671679d284e834fae063e4687a99440aa66f6590d46d443215c69"
10
+ }
11
+ },
12
+ {
13
+ "name": "com.nvidia.simready.packaging.bom.json",
14
+ "hash": {
15
+ "sha256": "4682a8d8acf89e91663bec42b767ea675093bb47a058a180b97ab7d9955c6910"
16
+ }
17
+ },
18
+ {
19
+ "name": "com.nvidia.simready.root_usds.json",
20
+ "hash": {
21
+ "sha256": "aecc5a1214f5a1f03dbbe1c5453dcd9bbff07cbbb65bf1294bc980bde9940653"
22
+ }
23
+ }
24
+ ],
25
+ "content_hash": {
26
+ "sha256": "5dc0c15baf6f568311057e6d9d1bc9e2236b82180db422873d0a78711b3e6b17"
27
+ },
28
+ "package_hash": {
29
+ "sha256": "0d37397ee9e0bb6aa7f3c828e5385daa0305d514b53179f434e6d001d21a6269"
30
+ }
31
+ }
safety_goggles/simready_usd/.simready/validation.json ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "SimReady_Metadata": {
3
+ "validation": {
4
+ "profile": "Robotics-Prop",
5
+ "profile_version": "4.0.0",
6
+ "validated_features": {
7
+ "2026-10-30": {
8
+ "FET_000_MUJOCO": {
9
+ "blocking_failure": false,
10
+ "dependencies": "[{'FET_000_STANDARD': {'version': '0.1.0'}}]",
11
+ "optional requirements": "['com.nvidia.simready.RV.007']",
12
+ "passed": false,
13
+ "version": "0.1.0"
14
+ },
15
+ "FET_000_NEWTON": {
16
+ "blocking_failure": false,
17
+ "dependencies": "[{'FET_000_STANDARD': {'version': '0.1.0'}}]",
18
+ "optional requirements": "['com.nvidia.simready.RV.004']",
19
+ "passed": false,
20
+ "version": "0.1.0"
21
+ },
22
+ "FET_000_PHYSX": {
23
+ "blocking_failure": false,
24
+ "dependencies": "[{'FET_000_STANDARD': {'version': '0.1.0'}}]",
25
+ "optional requirements": "['com.nvidia.simready.RV.001']",
26
+ "passed": false,
27
+ "version": "0.1.0"
28
+ },
29
+ "FET_000_STANDARD": {
30
+ "blocking_failure": false,
31
+ "dependencies": "[]",
32
+ "passed": true,
33
+ "version": "0.2.0"
34
+ },
35
+ "FET_001_STANDARD": {
36
+ "blocking_failure": false,
37
+ "dependencies": "[]",
38
+ "passed": true,
39
+ "version": "1.0.1"
40
+ },
41
+ "FET_003_MUJOCO": {
42
+ "blocking_failure": false,
43
+ "dependencies": "[]",
44
+ "optional requirements": "['com.nvidia.simready.MUJOCO.COL.001']",
45
+ "passed": false,
46
+ "version": "0.1.0"
47
+ },
48
+ "FET_003_NEWTON": {
49
+ "blocking_failure": false,
50
+ "dependencies": "[]",
51
+ "optional requirements": "['com.nvidia.simready.NEWTON.COL.001']",
52
+ "passed": false,
53
+ "version": "0.1.0"
54
+ },
55
+ "FET_003_PHYSX": {
56
+ "blocking_failure": false,
57
+ "dependencies": "[]",
58
+ "passed": true,
59
+ "version": "0.4.0"
60
+ },
61
+ "FET_003_STANDARD": {
62
+ "blocking_failure": false,
63
+ "dependencies": "[]",
64
+ "passed": true,
65
+ "version": "0.2.0"
66
+ },
67
+ "FET_004_MUJOCO": {
68
+ "blocking_failure": false,
69
+ "dependencies": "[{'FET_003_MUJOCO': {'version': '0.1.0'}}]",
70
+ "optional requirements": "['com.nvidia.simready.MUJOCO.COL.001', 'com.nvidia.simready.RB.MB.001']",
71
+ "passed": false,
72
+ "version": "0.1.0"
73
+ },
74
+ "FET_004_NEWTON": {
75
+ "blocking_failure": false,
76
+ "dependencies": "[{'FET_003_NEWTON': {'version': '0.1.0'}}]",
77
+ "optional requirements": "['com.nvidia.simready.NEWTON.COL.001', 'com.nvidia.simready.RB.MB.001']",
78
+ "passed": false,
79
+ "version": "0.1.0"
80
+ },
81
+ "FET_004_PHYSX": {
82
+ "blocking_failure": false,
83
+ "dependencies": "[{'FET_003_PHYSX': {'version': '0.4.0'}}]",
84
+ "optional requirements": "['com.nvidia.simready.RB.MB.001']",
85
+ "passed": false,
86
+ "version": "0.4.0"
87
+ },
88
+ "FET_004_STANDARD": {
89
+ "blocking_failure": false,
90
+ "dependencies": "[{'FET_003_STANDARD': {'version': '0.2.0'}}]",
91
+ "optional requirements": "['com.nvidia.simready.RB.MB.001']",
92
+ "passed": false,
93
+ "version": "0.2.0"
94
+ },
95
+ "FET_005_STANDARD": {
96
+ "blocking_failure": false,
97
+ "dependencies": "[]",
98
+ "optional requirements": "['com.nvidia.simready.GSP.001', 'com.nvidia.simready.PMT.001']",
99
+ "passed": false,
100
+ "version": "0.1.0"
101
+ },
102
+ "FET_006_MDL": {
103
+ "blocking_failure": false,
104
+ "dependencies": "[]",
105
+ "passed": true,
106
+ "version": "0.2.0"
107
+ },
108
+ "FET_006_OPENPBR": {
109
+ "blocking_failure": false,
110
+ "dependencies": "[]",
111
+ "optional requirements": "['com.nvidia.simready.VM.PBR.001', 'com.nvidia.simready.VM.PBR.003']",
112
+ "passed": false,
113
+ "version": "0.1.0"
114
+ },
115
+ "FET_006_STANDARD": {
116
+ "blocking_failure": false,
117
+ "dependencies": "[]",
118
+ "passed": true,
119
+ "version": "0.2.0"
120
+ },
121
+ "FET_007_STANDARD": {
122
+ "blocking_failure": false,
123
+ "dependencies": "[]",
124
+ "optional requirements": "['com.nvidia.simready.NVM.001', 'com.nvidia.simready.NVM.002', 'com.nvidia.simready.NVM.003']",
125
+ "passed": false,
126
+ "version": "0.2.0"
127
+ },
128
+ "FET_010_STANDARD": {
129
+ "blocking_failure": false,
130
+ "dependencies": "[]",
131
+ "optional requirements": "['com.nvidia.simready.DISP.001']",
132
+ "passed": false,
133
+ "version": "0.1.0"
134
+ },
135
+ "FET_011_RTX": {
136
+ "blocking_failure": false,
137
+ "dependencies": "[{'FET_011_STANDARD': {'version': '0.2.0'}}]",
138
+ "passed": true,
139
+ "version": "0.1.0"
140
+ },
141
+ "FET_011_STANDARD": {
142
+ "blocking_failure": false,
143
+ "dependencies": "[]",
144
+ "passed": true,
145
+ "version": "0.2.0"
146
+ },
147
+ "FET_031_STANDARD": {
148
+ "blocking_failure": false,
149
+ "dependencies": "[]",
150
+ "passed": true,
151
+ "version": "0.1.0"
152
+ },
153
+ "FET_033_STANDARD": {
154
+ "blocking_failure": false,
155
+ "dependencies": "[{'FET_031_STANDARD': {'version': '0.1.0'}}]",
156
+ "passed": true,
157
+ "version": "0.4.0"
158
+ },
159
+ "FET_046_STANDARD": {
160
+ "blocking_failure": false,
161
+ "dependencies": "[{'FET_011_STANDARD': {'version': '0.2.0'}}]",
162
+ "passed": true,
163
+ "version": "0.1.0"
164
+ },
165
+ "FET_100_ISAAC": {
166
+ "blocking_failure": false,
167
+ "dependencies": "[{'FET_003_PHYSX': {'version': '0.4.0'}}]",
168
+ "optional requirements": "['com.nvidia.simready.ISA.001']",
169
+ "passed": false,
170
+ "version": "0.4.0"
171
+ }
172
+ }
173
+ }
174
+ }
175
+ }
176
+ }
safety_goggles/simready_usd/.thumbs/256x256/safety_goggles.usd.png ADDED

Git LFS Details

  • SHA256: 944beb700d2079b41f028f6830aa5a2e8cff8a9f2530d00bb3b07d607223100f
  • Pointer size: 130 Bytes
  • Size of remote file: 50.4 kB
safety_goggles/simready_usd/.thumbs/256x256/safety_goggles.usd_light.png ADDED

Git LFS Details

  • SHA256: a7e179079e79ccdd752755b666b8c99decbacd727e41b26284d7788d3f081fba
  • Pointer size: 130 Bytes
  • Size of remote file: 46.3 kB
safety_goggles/simready_usd/.thumbs/256x256/safety_goggles.usd_transparent.png ADDED

Git LFS Details

  • SHA256: 9b45da58f486f7a59e5bbded8931c11efc111156d024611dd127ba66dba3fea0
  • Pointer size: 130 Bytes
  • Size of remote file: 34 kB
safety_goggles/simready_usd/materials/OmniGlass.mdl ADDED
@@ -0,0 +1,238 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * SPDX-FileCopyrightText: Copyright (c) 2020-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3
+ * SPDX-License-Identifier: BSD-3-Clause
4
+ */
5
+
6
+ mdl 1.7;
7
+ import ::anno::*;
8
+ import ::base::*;
9
+ import ::tex::*;
10
+
11
+ using OmniGlass_Opacity import OmniGlass_Opacity;
12
+ export annotation distill_off();
13
+
14
+
15
+ export material OmniGlass
16
+ (
17
+ color absorption_coeff = color(0.f, 0.f, 0.f) // hiding this parameter as it does not exist in the new material
18
+ [[
19
+ anno::hidden(),
20
+ anno::unused()
21
+ ]],
22
+ uniform bool use_glass_color_texture = false
23
+ [[
24
+ anno::hidden(),
25
+ anno::unused()
26
+ ]],
27
+ uniform color glass_color = color(1.f, 1.f, 1.f)
28
+ [[
29
+ anno::display_name("Glass Color"),
30
+ anno::description("Sets the color of the glass"),
31
+ anno::hard_range(color(0.0), color(1.0)),
32
+ anno::in_group("Color")
33
+ ]],
34
+ uniform texture_2d glass_color_texture = texture_2d()
35
+ [[
36
+ anno::display_name("Glass Color Texture"),
37
+ anno::description("Specifies the texture to be used for the glass color of the material"),
38
+ anno::in_group("Color")
39
+ ]],
40
+ float frosting_roughness = 0.f
41
+ [[
42
+ anno::display_name("Glass Roughness"),
43
+ anno::description("Sets the roughness of the glass material "),
44
+ anno::hard_range(0.0, 1.0),
45
+ anno::in_group("Roughness")
46
+ ]],
47
+ uniform float glass_ior = 1.491f
48
+ [[
49
+ anno::display_name("Glass IOR"),
50
+ anno::description("Sets IOR of the glass material "),
51
+ anno::soft_range(1.0f, 4.0f),
52
+ anno::in_group("Refraction")
53
+ ]],
54
+ uniform bool thin_walled = false
55
+ [[
56
+ anno::display_name("Thin Walled"),
57
+ anno::description("When enabled, the material is considered thin-walled. Use this, when you have glass surfaces that are modeled with a single plane"),
58
+ anno::in_group("Refraction")
59
+ ]],
60
+ uniform float depth = 0.001f
61
+ [[
62
+ anno::description("Controls how much light is absorbed through the surface"),
63
+ anno::display_name("Volume Absorption Scale"),
64
+ anno::in_group("Color"),
65
+ anno::soft_range(0.f, 1.f),
66
+ anno::hard_range(0.f, 1000.f)
67
+ ]],
68
+ float roughness_texture_influence = 1.f
69
+ [[
70
+ anno::display_name("Roughness Texture Influence"),
71
+ anno::in_group("Roughness"),
72
+ anno::hard_range(0.0f, 1.0f)
73
+ ]],
74
+ uniform texture_2d roughness_texture = texture_2d()
75
+ [[
76
+ anno::description("The roughness texture"),
77
+ anno::display_name("Roughness Texture"),
78
+ anno::in_group("Roughness"),
79
+ anno::usage("roughness")
80
+ ]],
81
+ uniform texture_2d reflection_color_texture = texture_2d()
82
+ [[
83
+ anno::description("The reflection color texture"),
84
+ anno::display_name("Reflection Color Texture"),
85
+ anno::in_group("Reflection")
86
+ ]],
87
+ uniform color reflection_color = color(1.f, 1.f, 1.f)
88
+ [[
89
+ anno::display_name("Reflection Color"),
90
+ anno::in_group("Reflection")
91
+ ]],
92
+ uniform texture_2d normal_map_texture = texture_2d()
93
+ [[
94
+ anno::description("The normal map texture"),
95
+ anno::display_name("Normal Map Texture"),
96
+ anno::in_group("Normal"),
97
+ anno::usage("normal")
98
+ ]],
99
+ uniform float normal_map_strength = 1.0
100
+ [[
101
+ anno::description("Determines the degree of bumpiness"),
102
+ anno::display_name("Normal Map Strength"),
103
+ anno::in_group("Normal"),
104
+ anno::usage(""),
105
+ anno::soft_range(0.f, 1.f)
106
+ ]],
107
+ uniform float geometry_normal_roughness_strength = 1.f
108
+ [[
109
+ anno::hard_range(0.f, 1.f),
110
+ anno::display_name("Normal map to roughness weight"),
111
+ anno::description("Enables and weights roughness induced by normal maps"),
112
+ anno::in_group("Normal")
113
+ ]],
114
+ uniform bool flip_tangent_u = false
115
+ [[
116
+ anno::display_name("Normal Map Flip U Tangent"),
117
+ anno::in_group("Normal")
118
+ ]],
119
+ uniform bool flip_tangent_v = true
120
+ [[
121
+ anno::display_name("Normal Map Flip V Tangent"),
122
+ anno::in_group("Normal")
123
+ ]],
124
+
125
+ // Cutout Opacity
126
+ uniform bool enable_opacity = false
127
+ [[
128
+ anno::display_name("Enable Opacity"),
129
+ anno::description("Enables the use of cutout opacity"),
130
+ anno::in_group("Opacity")
131
+ ]],
132
+ uniform float cutout_opacity = 1.0f
133
+ [[
134
+ anno::hard_range(0.0, 1.0),
135
+ anno::display_name("Opacity Amount"),
136
+ anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"),
137
+ anno::in_group("Opacity")
138
+ ]],
139
+ uniform texture_2d cutout_opacity_texture = texture_2d()
140
+ [[
141
+ anno::description("The opacity map"),
142
+ anno::display_name("Opacity Map"),
143
+ anno::in_group("Opacity"),
144
+ anno::usage("opacity")
145
+ ]],
146
+ uniform base::mono_mode cutout_opacity_mono_source = base::mono_alpha
147
+ [[
148
+ anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"),
149
+ anno::display_name("Opacity Mono Source"),
150
+ anno::in_group("Opacity"),
151
+ anno::usage("")
152
+ ]],
153
+ uniform float opacity_threshold = 0.f
154
+ [[
155
+ anno::hard_range(0.0, 1.0),
156
+ anno::display_name("Opacity Threshold"),
157
+ 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"),
158
+ anno::in_group("Opacity")
159
+ ]],
160
+
161
+ // UV Projection Group
162
+ uniform bool project_uvw = false
163
+ [[
164
+ anno::display_name("Enable Project UVW Coordinates"),
165
+ anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"),
166
+ anno::in_group("UV")
167
+ ]],
168
+ uniform bool world_or_object = false
169
+ [[
170
+ anno::display_name("Enable World Space"),
171
+ anno::description("When set to 'true' uses world space for projection, when 'false' object space is used"),
172
+ anno::in_group("UV")
173
+ ]],
174
+
175
+ // UV Space Selector
176
+ uniform int uv_space_index = 0
177
+ [[
178
+ anno::display_name("UV Space Index"),
179
+ anno::description("Choose the UV Space Index to be used"),
180
+ anno::in_group("UV"),
181
+ anno::hard_range(0, 3)
182
+ ]],
183
+ uniform float2 texture_translate = float2(0.0f)
184
+ [[
185
+ anno::display_name("Texture Translate"),
186
+ anno::description("Controls the position of the texture."),
187
+ anno::in_group("UV")
188
+ ]],
189
+ uniform float texture_rotate = 0.f
190
+ [[
191
+ anno::display_name("Texture Rotate"),
192
+ anno::description("Rotates angle of the texture in degrees."),
193
+ anno::in_group("UV")
194
+ ]],
195
+ uniform float2 texture_scale = float2(1.0f)
196
+ [[
197
+ anno::display_name("Texture Tiling"),
198
+ anno::description("Controls repetition of the texture."),
199
+ anno::in_group("UV")
200
+ ]]
201
+ )
202
+ [[
203
+ anno::author("NVIDIA CORPORATION"),
204
+ anno::display_name("Omni Glass"),
205
+ anno::version( 1, 0, 0),
206
+ anno::in_group("Base"),
207
+ anno::description("Omni Glass Material V2"),
208
+ anno::key_words(string[]("omni", "omniverse", "glass", "transparent", "window", "transparency", "workflow")),
209
+ distill_off()
210
+ ]]
211
+ = OmniGlass_Opacity(
212
+ glass_color: glass_color,
213
+ glass_color_texture: glass_color_texture,
214
+ frosting_roughness: frosting_roughness,
215
+ glass_ior: glass_ior,
216
+ thin_walled: thin_walled,
217
+ depth: depth,
218
+ roughness_texture_influence: roughness_texture_influence,
219
+ roughness_texture: roughness_texture,
220
+ reflection_color_texture: reflection_color_texture,
221
+ reflection_color: reflection_color,
222
+ normal_map_texture: normal_map_texture,
223
+ normal_map_strength: normal_map_strength,
224
+ geometry_normal_roughness_strength: geometry_normal_roughness_strength,
225
+ flip_tangent_u: flip_tangent_u,
226
+ flip_tangent_v: flip_tangent_v,
227
+ enable_opacity: enable_opacity,
228
+ cutout_opacity: cutout_opacity,
229
+ cutout_opacity_texture: cutout_opacity_texture,
230
+ cutout_opacity_mono_source: cutout_opacity_mono_source,
231
+ opacity_threshold: opacity_threshold,
232
+ project_uvw: project_uvw,
233
+ world_or_object: world_or_object,
234
+ uv_space_index: uv_space_index,
235
+ texture_translate: texture_translate,
236
+ texture_rotate: texture_rotate,
237
+ texture_scale: texture_scale
238
+ );
safety_goggles/simready_usd/materials/OmniGlass_Opacity.mdl ADDED
@@ -0,0 +1,464 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * SPDX-FileCopyrightText: Copyright (c) 2020-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3
+ * SPDX-License-Identifier: BSD-3-Clause
4
+ */
5
+
6
+
7
+ mdl 1.4;
8
+
9
+ import ::tex::*;
10
+ import ::base::*;
11
+ import ::math::*;
12
+ import ::anno::*;
13
+ import ::df::*;
14
+ import ::state::*;
15
+ import OmniPBRBase::*;
16
+
17
+ const string COPYRIGHT =
18
+ " Copyright 1986, 2020 NVIDIA Corporation. All rights reserved.\n"
19
+ " MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n"
20
+ " WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n"
21
+ " THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n"
22
+ " EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n"
23
+ " MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n"
24
+ " COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n"
25
+ " CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n"
26
+ " GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n"
27
+ " AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n"
28
+ " INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n";
29
+
30
+ export annotation distill_off();
31
+
32
+
33
+ float get_float(
34
+ uniform texture_2d t,
35
+ float f,
36
+ base::texture_coordinate_info uvw,
37
+ uniform base::mono_mode mono_source = base::mono_maximum
38
+ )
39
+ {
40
+ return tex::texture_isvalid(t) ?
41
+ base::file_texture(
42
+ t,
43
+ color(0.f, 0.f, 0.f),
44
+ color(1.f, 1.f, 1.f),
45
+ mono_source,
46
+ uvw,
47
+ float2(0.f, 1.f),
48
+ float2(0.f, 1.f),
49
+ tex::wrap_repeat,
50
+ tex::wrap_repeat,
51
+ false
52
+ ).mono :
53
+ f;
54
+ }
55
+
56
+ color get_color(
57
+ uniform texture_2d t,
58
+ color c,
59
+ base::texture_coordinate_info uvw
60
+ )
61
+ {
62
+ return tex::texture_isvalid(t) ?
63
+ base::file_texture(
64
+ t,
65
+ color(0.f, 0.f, 0.f),
66
+ color(1.f, 1.f, 1.f),
67
+ base::mono_alpha,
68
+ uvw,
69
+ float2(0.f, 1.f),
70
+ float2(0.f, 1.f),
71
+ tex::wrap_repeat,
72
+ tex::wrap_repeat,
73
+ false
74
+ ).tint :
75
+ c;
76
+ }
77
+
78
+ float apply_roughness_influence(
79
+ uniform texture_2d roughness_texture,
80
+ float constant_roughness,
81
+ float roughness_influence,
82
+ base::texture_coordinate_info uvw
83
+ )
84
+ {
85
+ return math::lerp(
86
+ constant_roughness,
87
+ get_float(roughness_texture, constant_roughness, uvw),
88
+ roughness_influence
89
+ );
90
+ }
91
+
92
+ uniform float4x4 rotation_translation_scale(
93
+ uniform float3 rotation = float3(0.)
94
+ [[
95
+ anno::description("Rotation applied to every UVW coordinate")
96
+ ]],
97
+ uniform float3 translation = float3(0.)
98
+ [[
99
+ anno::description("Offset applied to every UVW coordinate")
100
+ ]],
101
+ uniform float3 scaling = float3(1.)
102
+ [[
103
+ anno::description("Scale applied to every UVW coordinate")
104
+ ]]
105
+ )
106
+ [[
107
+ anno::description("Construct transformation matrix from Euler rotation, translation and scale"),
108
+ anno::hidden()
109
+ ]]
110
+ {
111
+ float4x4 scale = float4x4(
112
+ scaling.x , 0. , 0. , 0.,
113
+ 0. , scaling.y , 0. , 0.,
114
+ 0. , 0. , scaling.z , 0.,
115
+ translation.x, translation.y, translation.z, 1.
116
+ );
117
+
118
+ float3 s = math::sin(rotation);
119
+ float3 c = math::cos(rotation);
120
+ float4x4 rotate = float4x4(
121
+ 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,
122
+ 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,
123
+ -s.y , s.x*c.y , c.x*c.y , 0.0,
124
+ 0. , 0. , 0. , 1.
125
+ );
126
+
127
+ return scale*rotate;
128
+ }
129
+
130
+
131
+ export material OmniGlass_Opacity
132
+ (
133
+ color absorption_coeff = color(0.f, 0.f, 0.f) // hiding this parameter as it does not exist in the new material
134
+ [[
135
+ anno::hidden(),
136
+ anno::unused()
137
+ ]],
138
+ uniform bool use_glass_color_texture = false
139
+ [[
140
+ anno::hidden(),
141
+ anno::unused()
142
+ ]],
143
+ uniform color glass_color = color(1.f, 1.f, 1.f)
144
+ [[
145
+ anno::display_name("Glass Color"),
146
+ anno::description("Sets the color of the glass"),
147
+ anno::hard_range(color(0.0), color(1.0)),
148
+ anno::in_group("Color")
149
+ ]],
150
+ uniform texture_2d glass_color_texture = texture_2d()
151
+ [[
152
+ anno::display_name("Glass Color Texture"),
153
+ anno::description("Specifies the texture to be used for the glass color of the material"),
154
+ anno::in_group("Color")
155
+ ]],
156
+ float frosting_roughness = 0.f
157
+ [[
158
+ anno::display_name("Glass Roughness"),
159
+ anno::description("Sets the roughness of the glass material "),
160
+ anno::hard_range(0.0, 1.0),
161
+ anno::in_group("Roughness")
162
+ ]],
163
+ uniform float glass_ior = 1.491f
164
+ [[
165
+ anno::display_name("Glass IOR"),
166
+ anno::description("Sets IOR of the glass material "),
167
+ anno::soft_range(1.0f, 4.0f),
168
+ anno::in_group("Refraction")
169
+ ]],
170
+ uniform bool thin_walled = false
171
+ [[
172
+ anno::display_name("Thin Walled"),
173
+ anno::description("When enabled, the material is considered thin-walled. Use this, when you have glass surfaces that are modeled with a single plane"),
174
+ anno::in_group("Refraction")
175
+ ]],
176
+ uniform float depth = 0.001f
177
+ [[
178
+ anno::description("Controls how much light is absorbed through the surface"),
179
+ anno::display_name("Volume Absorption Scale"),
180
+ anno::in_group("Color"),
181
+ anno::soft_range(0.f, 1.f),
182
+ anno::hard_range(0.f, 1000.f)
183
+ ]],
184
+ float roughness_texture_influence = 1.f
185
+ [[
186
+ anno::display_name("Roughness Texture Influence"),
187
+ anno::in_group("Roughness"),
188
+ anno::hard_range(0.0f, 1.0f)
189
+ ]],
190
+ uniform texture_2d roughness_texture = texture_2d()
191
+ [[
192
+ anno::description("The roughness texture"),
193
+ anno::display_name("Roughness Texture"),
194
+ anno::in_group("Roughness"),
195
+ anno::usage("")
196
+ ]],
197
+ uniform texture_2d reflection_color_texture = texture_2d()
198
+ [[
199
+ anno::description("The reflection color texture"),
200
+ anno::display_name("Reflection Color Texture"),
201
+ anno::in_group("Reflection")
202
+ ]],
203
+ uniform color reflection_color = color(1.f, 1.f, 1.f)
204
+ [[
205
+ anno::display_name("Reflection Color"),
206
+ anno::in_group("Reflection")
207
+ ]],
208
+ uniform texture_2d normal_map_texture = texture_2d()
209
+ [[
210
+ anno::description("The normal map texture"),
211
+ anno::display_name("Normal Map Texture"),
212
+ anno::in_group("Normal"),
213
+ anno::usage("")
214
+ ]],
215
+ uniform float normal_map_strength = 1.0
216
+ [[
217
+ anno::description("Determines the degree of bumpiness"),
218
+ anno::display_name("Normal Map Strength"),
219
+ anno::in_group("Normal"),
220
+ anno::usage(""),
221
+ anno::soft_range(0.f, 1.f)
222
+ ]],
223
+ uniform float geometry_normal_roughness_strength = 1.f
224
+ [[
225
+ anno::hard_range(0.f, 1.f),
226
+ anno::display_name("Normal map to roughness weight"),
227
+ anno::description("Enables and weights roughness induced by normal maps"),
228
+ anno::in_group("Normal")
229
+ ]],
230
+ uniform bool flip_tangent_u = false
231
+ [[
232
+ anno::display_name("Normal Map Flip U Tangent"),
233
+ anno::in_group("Normal")
234
+ ]],
235
+ uniform bool flip_tangent_v = true
236
+ [[
237
+ anno::display_name("Normal Map Flip V Tangent"),
238
+ anno::in_group("Normal")
239
+ ]],
240
+
241
+ // Cutout Opacity
242
+ uniform bool enable_opacity = true
243
+ [[
244
+ anno::display_name("Enable Opacity"),
245
+ anno::description("Enables the use of cutout opacity"),
246
+ anno::in_group("Opacity")
247
+ ]],
248
+ uniform float cutout_opacity = 1.0f
249
+ [[
250
+ anno::hard_range(0.0, 1.0),
251
+ anno::display_name("Opacity Amount"),
252
+ anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"),
253
+ anno::in_group("Opacity")
254
+ ]],
255
+ uniform texture_2d cutout_opacity_texture = texture_2d()
256
+ [[
257
+ anno::description("The opacity map"),
258
+ anno::display_name("Opacity Map"),
259
+ anno::in_group("Opacity")
260
+ ]],
261
+ uniform base::mono_mode cutout_opacity_mono_source = base::mono_alpha
262
+ [[
263
+ anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"),
264
+ anno::display_name("Opacity Mono Source"),
265
+ anno::in_group("Opacity"),
266
+ anno::usage("")
267
+ ]],
268
+ uniform float opacity_threshold = 0.f
269
+ [[
270
+ anno::hard_range(0.0, 1.0),
271
+ anno::display_name("Opacity Threshold"),
272
+ 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"),
273
+ anno::in_group("Opacity")
274
+ ]],
275
+
276
+ // UV Projection Group
277
+ uniform bool project_uvw = false
278
+ [[
279
+ anno::display_name("Enable Project UVW Coordinates"),
280
+ anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"),
281
+ anno::in_group("UV")
282
+ ]],
283
+ uniform bool world_or_object = false
284
+ [[
285
+ anno::display_name("Enable World Space"),
286
+ anno::description("When set to 'true' uses world space for projection, when 'false' object space is used"),
287
+ anno::in_group("UV")
288
+ ]],
289
+
290
+ // UV Space Selector
291
+ uniform int uv_space_index = 0
292
+ [[
293
+ anno::display_name("UV Space Index"),
294
+ anno::description("Choose the UV Space Index to be used"),
295
+ anno::in_group("UV"),
296
+ anno::hard_range(0, 3)
297
+ ]],
298
+ uniform float2 texture_translate = float2(0.0f)
299
+ [[
300
+ anno::display_name("Texture Translate"),
301
+ anno::description("Controls the position of the texture."),
302
+ anno::in_group("UV")
303
+ ]],
304
+ uniform float texture_rotate = 0.f
305
+ [[
306
+ anno::display_name("Texture Rotate"),
307
+ anno::description("Rotates angle of the texture in degrees."),
308
+ anno::in_group("UV")
309
+ ]],
310
+ uniform float2 texture_scale = float2(1.0f)
311
+ [[
312
+ anno::display_name("Texture Scale"),
313
+ anno::description("Larger numbers increase the size."),
314
+ anno::in_group("UV")
315
+ ]]
316
+ )
317
+ [[
318
+ anno::copyright_notice(COPYRIGHT),
319
+ anno::author("NVIDIA CORPORATION"),
320
+ anno::display_name("Omni Glass Opacity"),
321
+ anno::version( 1, 0, 0),
322
+ anno::description("Omni Glass Opacity Material"),
323
+ anno::in_group("Base"),
324
+ anno::key_words(string[]("omni", "omniverse", "glass", "transparent", "window", "transparency", "workflow")),
325
+ distill_off()
326
+ ]]
327
+ = let {
328
+ // Material Properties
329
+ bool local_thin_walled = (tex::texture_isvalid(cutout_opacity_texture) || cutout_opacity != 1.f) ? true : thin_walled;
330
+ color local_glass_ior = glass_ior;
331
+
332
+
333
+ // UVW Properties
334
+ // Generating the texture coordinates for the texture lookups
335
+ base::texture_coordinate_system the_system = world_or_object ?
336
+ base::texture_coordinate_world :
337
+ base::texture_coordinate_object;
338
+
339
+ base::texture_coordinate_info uvw = project_uvw ?
340
+ base::coordinate_projection(
341
+ coordinate_system: the_system,
342
+ texture_space: uv_space_index,
343
+ projection_type: base::projection_cubic
344
+ ) :
345
+ base::coordinate_source(
346
+ coordinate_system: base::texture_coordinate_uvw,
347
+ texture_space: uv_space_index
348
+ );
349
+
350
+ base::texture_coordinate_info transformed_uvw = base::transform_coordinate(
351
+ transform: rotation_translation_scale(
352
+ scaling: float3(texture_scale.x, texture_scale.y, 1.0),
353
+ rotation: float3(0.0, 0.0, texture_rotate/180.*math::PI),
354
+ translation: float3(texture_translate.x, texture_translate.y, 0.0)
355
+ ),
356
+ coordinate: uvw
357
+ );
358
+
359
+
360
+ // Opacity Properties
361
+ float opacity_value = get_float(cutout_opacity_texture, cutout_opacity, transformed_uvw, cutout_opacity_mono_source);
362
+
363
+ // The opacity_threshold is interpreted as follows:
364
+ // 1. opacity_threshold > 0: binary opacity masking mode
365
+ // i.e.: if opacity_value > opacity_threshold we remap opacity_value to 1.0, otherwise to 0.0
366
+ // 2. opacity_threshold == 0: fractional opacity mode. Leaves the opacity_value untouched,
367
+ // allowing the renderer to use fractional cutout_opacity values, if it supports this feature
368
+ //
369
+ // NOTE: when the renderer does not enable 'fractional cutout opacity' it interprets
370
+ // cutout_opacity values of 1.0 as opaque and anything below as fully transparent
371
+ float local_cutout_opacity = enable_opacity ?
372
+ ((opacity_threshold == 0.0) ?
373
+ opacity_value :
374
+ ((opacity_value >= opacity_threshold) ? 1.0 : 0)
375
+ ) :
376
+ 1.0;
377
+
378
+
379
+ // Surface Properties
380
+ color local_reflection_color = get_color(reflection_color_texture, reflection_color, transformed_uvw);
381
+ color local_transmission_color = get_color(glass_color_texture, glass_color, transformed_uvw);
382
+
383
+ OmniPBRBase::NormalData defaultData(state::normal(), float2(0.f));
384
+ OmniPBRBase::NormalData normal_data = tex::texture_isvalid(normal_map_texture) ?
385
+ OmniPBRBase::tangent_space_normal_roughness_texture(
386
+ normal_map_texture,
387
+ normal_map_strength,
388
+ flip_tangent_u,
389
+ flip_tangent_v,
390
+ transformed_uvw,
391
+ float2(0.f, 1.f),
392
+ float2(0.f, 1.f),
393
+ tex::wrap_repeat,
394
+ tex::wrap_repeat,
395
+ false,
396
+ 1.f,
397
+ 0.f,
398
+ 0.f,
399
+ int2(0),
400
+ tex::wrap_repeat,
401
+ 30.f
402
+ ) :
403
+ defaultData;
404
+
405
+ float local_roughness = apply_roughness_influence(
406
+ roughness_texture,
407
+ frosting_roughness,
408
+ roughness_texture_influence,
409
+ transformed_uvw
410
+ );
411
+ float2 local_roughness_squared(
412
+ (local_roughness * local_roughness +
413
+ geometry_normal_roughness_strength * normal_data.roughness.x * normal_data.roughness.x),
414
+ (local_roughness * local_roughness +
415
+ geometry_normal_roughness_strength * normal_data.roughness.y * normal_data.roughness.y)
416
+ );
417
+
418
+ float3 the_normal = normal_data.normal;
419
+
420
+ bsdf ggx_1 = ::df::microfacet_ggx_smith_bsdf(
421
+ roughness_u: local_roughness_squared.x,
422
+ roughness_v: local_roughness_squared.y,
423
+ tint: local_reflection_color,
424
+ tangent_u: ::state::texture_tangent_u(0),
425
+ mode: ::df::scatter_reflect
426
+ );
427
+
428
+ bsdf ggx_2 = ::df::microfacet_ggx_smith_bsdf(
429
+ roughness_u: local_roughness_squared.x,
430
+ roughness_v: local_roughness_squared.y,
431
+ tint: local_transmission_color,
432
+ tangent_u: ::state::texture_tangent_u(0),
433
+ mode: ::df::scatter_transmit
434
+ );
435
+
436
+ material_surface local_surface(
437
+ ::df::fresnel_layer(
438
+ ior: glass_ior,
439
+ weight: 1.f,
440
+ layer: ggx_1,
441
+ base: ggx_2,
442
+ normal: the_normal
443
+ ),
444
+ material_emission()
445
+ );
446
+
447
+
448
+ // Volume Properties
449
+ color local_volume_absorption = depth;
450
+ color local_volume_scattering = color(0.f, 0.f, 0.f);
451
+
452
+ material_volume local_volume(vdf(), local_volume_absorption, local_volume_scattering);
453
+
454
+
455
+ // Geometry Properties
456
+ material_geometry local_geometry(float3(0.f), local_cutout_opacity, the_normal);
457
+
458
+ } in material(
459
+ thin_walled: local_thin_walled,
460
+ surface: local_surface,
461
+ ior: local_glass_ior,
462
+ volume: local_volume,
463
+ geometry: local_geometry
464
+ );
safety_goggles/simready_usd/materials/OmniPBR.mdl ADDED
@@ -0,0 +1,396 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * SPDX-FileCopyrightText: Copyright (c) 2022-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3
+ * SPDX-License-Identifier: BSD-3-Clause
4
+ */
5
+
6
+ mdl 1.7;
7
+
8
+ import ::df::*;
9
+ import ::state::*;
10
+ import ::math::*;
11
+ import ::base::*;
12
+ import ::state::*;
13
+ import ::tex::*;
14
+ import ::anno::*;
15
+
16
+ import ::debug::*;
17
+
18
+ import ::nvidia::core_definitions::file_texture;
19
+ import ::nvidia::core_definitions::normalmap_texture;
20
+
21
+ import OmniPBR_ClearCoat::*;
22
+
23
+
24
+ // OmniPBR //
25
+
26
+ export material OmniPBR(
27
+
28
+ // Albdeo //
29
+
30
+ color diffuse_color_constant = color(0.2) [[
31
+ anno::display_name("Albedo Color"),
32
+ anno::description("This is the albedo base color"),
33
+ anno::in_group("Albedo")
34
+ ]],
35
+ uniform texture_2d diffuse_texture = texture_2d() [[
36
+ anno::display_name("Albedo Map"),
37
+ anno::in_group("Albedo")
38
+ ]],
39
+ float albedo_desaturation = float(0.0) [[
40
+ anno::display_name("Albedo Map Desaturation"),
41
+ anno::description("Desaturates the albedo map"),
42
+ anno::in_group("Albedo"),
43
+ anno::soft_range(float(0.0), float(1.0))
44
+ ]],
45
+ float albedo_add = float(0.0) [[
46
+ anno::display_name("Albedo Add"),
47
+ anno::description("Adds a constant value to the diffuse color "),
48
+ anno::in_group("Albedo"),
49
+ anno::soft_range(float(-1.0), float(1.0))
50
+ ]],
51
+ float albedo_brightness = float(1.0) [[
52
+ anno::display_name("Albedo Brightness"),
53
+ anno::description("Multiplier for the diffuse color "),
54
+ anno::in_group("Albedo"),
55
+ anno::soft_range(float(0.0), float(1.0))
56
+ ]],
57
+ color diffuse_tint = color(1.0) [[
58
+ anno::display_name("Color Tint"),
59
+ anno::description("When enabled, this color value is multiplied over the final albedo color"),
60
+ anno::in_group("Albedo")
61
+ ]],
62
+
63
+
64
+ // Reflectivity //
65
+
66
+ float reflection_roughness_constant = float(0.5) [[
67
+ anno::display_name("Roughness Amount"),
68
+ anno::description("Higher roughness values lead to more blurry reflections"),
69
+ anno::in_group("Reflectivity"),
70
+ anno::hard_range(float(0.0), float(1.0))
71
+ ]],
72
+ float reflection_roughness_texture_influence = float(0.0) [[
73
+ anno::display_name("Roughness Map Influence"),
74
+ anno::description("Blends between the constant value and the lookup of the roughness texture"),
75
+ anno::in_group("Reflectivity"),
76
+ anno::hard_range(float(0.0), float(1.0))
77
+ ]],
78
+ uniform texture_2d reflectionroughness_texture = texture_2d() [[
79
+ anno::display_name("Roughness Map"),
80
+ anno::in_group("Reflectivity"),
81
+ anno::usage("roughness")
82
+ ]],
83
+ float metallic_constant = float(0.0) [[
84
+ anno::display_name("Metallic Amount"),
85
+ anno::description("Metallic Material"),
86
+ anno::in_group("Reflectivity"),
87
+ anno::hard_range(float(0.0), float(1.0))
88
+ ]],
89
+ float metallic_texture_influence = float(0.0) [[
90
+ anno::display_name("Metallic Map Influence"),
91
+ anno::description("Blends between the constant value and the lookup of the metallic texture"),
92
+ anno::in_group("Reflectivity"),
93
+ anno::hard_range(float(0.0), float(1.0))
94
+ ]],
95
+ uniform texture_2d metallic_texture = texture_2d() [[
96
+ anno::display_name("Metallic Map"),
97
+ anno::in_group("Reflectivity"),
98
+ anno::usage("metalness")
99
+ ]],
100
+ float specular_level = float(0.5) [[
101
+ anno::display_name("Specular"),
102
+ anno::description("The specular level (intensity) of the material"),
103
+ anno::in_group("Reflectivity"),
104
+ anno::soft_range(float(0.0), float(1.0))
105
+ ]],
106
+
107
+
108
+ // ORM //
109
+
110
+ uniform bool enable_ORM_texture = false [[
111
+ anno::display_name("Enable ORM Texture"),
112
+ anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"),
113
+ anno::in_group("Reflectivity")
114
+ ]],
115
+ uniform texture_2d ORM_texture = texture_2d() [[
116
+ anno::display_name("ORM Map"),
117
+ anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"),
118
+ anno::in_group("Reflectivity"),
119
+ anno::usage("roughness")
120
+ ]],
121
+
122
+
123
+ // AO Group //
124
+
125
+ float ao_to_diffuse = 0.0 [[
126
+ anno::display_name("AO to diffuse"),
127
+ anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"),
128
+ anno::in_group("AO"),
129
+ anno::hard_range(float(0.0), float(1.0))
130
+ ]],
131
+ uniform texture_2d ao_texture = texture_2d() [[
132
+ anno::display_name("Ambient Occlusion Map"),
133
+ anno::description("The ambient occlusion texture for the material"),
134
+ anno::in_group("AO"),
135
+ anno::usage("occlusion")
136
+ ]],
137
+
138
+
139
+ // Emission //
140
+
141
+ uniform bool enable_emission = false [[
142
+ anno::display_name("Enable Emission"),
143
+ anno::description("Enables the emission of light from the material"),
144
+ anno::in_group("Emissive")
145
+ ]],
146
+ color emissive_color = color(1.0,0.1,0.1) [[
147
+ anno::display_name("Emissive Color"),
148
+ anno::description("The emission color"),
149
+ anno::in_group("Emissive"),
150
+ anno::enable_if("enable_emission == true")
151
+ ]],
152
+ uniform texture_2d emissive_color_texture = texture_2d() [[
153
+ anno::display_name("Emissive Color map"),
154
+ anno::in_group("Emissive"),
155
+ anno::description("The emissive color texture"),
156
+ anno::enable_if("enable_emission == true")
157
+ ]],
158
+ uniform texture_2d emissive_mask_texture = texture_2d() [[
159
+ anno::display_name("Emissive Mask map"),
160
+ anno::description("The texture masking the emissive color"),
161
+ anno::in_group("Emissive"),
162
+ anno::enable_if("enable_emission == true"),
163
+ anno::usage("occlusion")
164
+ ]],
165
+ float emissive_intensity = float(40.0) [[
166
+ anno::display_name("Emissive Intensity"),
167
+ anno::description("Intensity of the emission"),
168
+ anno::in_group("Emissive"),
169
+ anno::enable_if("enable_emission == true")
170
+ ]],
171
+
172
+
173
+ // Cutout Opacity //
174
+
175
+ uniform bool enable_opacity = false [[
176
+ anno::display_name("Enable Opacity"),
177
+ anno::description("Enables the use of cutout opacity"),
178
+ anno::in_group("Opacity")
179
+ ]],
180
+ uniform texture_2d opacity_texture = texture_2d() [[
181
+ anno::display_name("Opacity Map"),
182
+ anno::in_group("Opacity"),
183
+ anno::usage("opacity")
184
+ ]],
185
+ float opacity_constant = float(1.0) [[
186
+ anno::display_name("Opacity Amount"),
187
+ anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"),
188
+ anno::in_group("Opacity"),
189
+ anno::hard_range(float(0.0), float(1.0))
190
+ ]],
191
+ uniform bool enable_opacity_texture = false [[
192
+ anno::display_name("Enable Opacity Texture"),
193
+ anno::description("Enables or disables the usage of the opacity texture map"),
194
+ anno::in_group("Opacity")
195
+ ]],
196
+ uniform base::mono_mode opacity_mode = base::mono_average [[
197
+ anno::display_name("Opacity Mono Source"),
198
+ anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"),
199
+ anno::in_group("Opacity")
200
+ ]],
201
+ uniform float opacity_threshold = float(0.0) [[
202
+ anno::hard_range(0.0, 1.0),
203
+ anno::display_name("Opacity Threshold"),
204
+ anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"),
205
+ anno::in_group("Opacity")
206
+ ]],
207
+
208
+
209
+ // Normal //
210
+
211
+ uniform float geometry_normal_roughness_strength = 1.f
212
+ [[
213
+ anno::hard_range(0.0, 1.0),
214
+ anno::display_name("Normal map to roughness weight"),
215
+ anno::description("Enables and weights roughness induced by normal maps"),
216
+ anno::in_group("Normal")
217
+ ]],
218
+ uniform float bump_factor = float(1.0) [[
219
+ anno::display_name("Normal Strength"),
220
+ anno::description("Strength of normal map"),
221
+ anno::in_group("Normal"),
222
+ anno::soft_range(float(0.0), float(1.0))
223
+ ]],
224
+ uniform texture_2d normalmap_texture = texture_2d() [[
225
+ anno::display_name("Normal Map"),
226
+ anno::in_group("Normal"),
227
+ anno::usage("normal")
228
+ ]],
229
+ uniform float detail_bump_factor = float(0.3) [[
230
+ anno::display_name("Detail Normal Strength"),
231
+ anno::in_group("Normal"),
232
+ anno::description("Strength of the detail normal"),
233
+ anno::soft_range(float(0.0), float(1.0))
234
+ ]],
235
+ uniform texture_2d detail_normalmap_texture = texture_2d() [[
236
+ anno::display_name("Detail Normal Map"),
237
+ anno::in_group("Normal"),
238
+ anno::usage("normal")
239
+ ]],
240
+ uniform bool flip_tangent_u = false [[
241
+ anno::display_name("Normal Map Flip U Tangent"),
242
+ anno::in_group("Normal")
243
+ ]],
244
+ uniform bool flip_tangent_v = true [[
245
+ anno::display_name("Normal Map Flip V Tangent"),
246
+ anno::in_group("Normal")
247
+ ]],
248
+
249
+
250
+ // UVW Projection Group //
251
+
252
+ uniform bool project_uvw = false [[
253
+ anno::display_name("Enable Project UVW Coordinates"),
254
+ anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"),
255
+ anno::in_group("UV")
256
+ ]],
257
+ uniform bool world_or_object = false [[
258
+ anno::display_name("Enable World Space"),
259
+ anno::description("When enabled, uses world space for projection, otherwise object space is used"),
260
+ anno::in_group("UV"),
261
+ anno::enable_if("project_uvw == true")
262
+ ]],
263
+ uniform int uv_space_index = 0 [[
264
+ anno::display_name("UV Space Index"),
265
+ anno::description("UV Space Index."),
266
+ anno::in_group("UV"),
267
+ anno::enable_if("project_uvw == true"),
268
+ anno::hard_range(int(0), int(3))
269
+ ]],
270
+
271
+
272
+ // UVW Adjustments Group //
273
+
274
+ uniform float2 texture_translate = float2(0.0) [[
275
+ anno::display_name("Texture Translate"),
276
+ anno::description("Controls position of texture."),
277
+ anno::in_group("UV"),
278
+ anno::enable_if("project_uvw == true")
279
+ ]],
280
+ uniform float texture_rotate = float(0.0) [[
281
+ anno::display_name("Texture Rotate"),
282
+ anno::description("Rotates angle of texture in degrees."),
283
+ anno::in_group("UV"),
284
+ anno::enable_if("project_uvw == true")
285
+ ]],
286
+ uniform float2 texture_scale = float2(1.0) [[
287
+ anno::display_name("Texture Tiling"),
288
+ anno::description("Controls the repetition of the texture."),
289
+ anno::in_group("UV"),
290
+ anno::enable_if("project_uvw == true")
291
+ ]],
292
+ uniform float2 detail_texture_translate = float2(0.0) [[
293
+ anno::display_name("Detail Texture Translate"),
294
+ anno::description("Controls the position of the detail texture."),
295
+ anno::in_group("UV"),
296
+ anno::enable_if("project_uvw == true")
297
+ ]],
298
+ uniform float detail_texture_rotate = float(0.0) [[
299
+ anno::display_name("Detail Texture Rotate"),
300
+ anno::description("Rotates angle of the detail texture in degrees."),
301
+ anno::in_group("UV"),
302
+ anno::enable_if("project_uvw == true")
303
+ ]],
304
+ uniform float2 detail_texture_scale = float2(1.0) [[
305
+ anno::display_name("Detail Texture Tiling"),
306
+ anno::description("Controls the repetition of the detail texture."),
307
+ anno::in_group("UV"),
308
+ anno::enable_if("project_uvw == true")
309
+ ]],
310
+
311
+
312
+ // Geometry //
313
+
314
+ uniform float round_edges_radius = float(0.0) [[
315
+ anno::display_name("Round Edge Radius"),
316
+ anno::description("Influence radius around the edges in meters"),
317
+ anno::in_group("Geometry"),
318
+ anno::soft_range(0.0, 1.0)
319
+ ]],
320
+ uniform float round_edges_roundness = float(1.0) [[
321
+ anno::display_name("Round Edge Roundness"),
322
+ anno::description("Determines how round the edge will look"),
323
+ anno::in_group("Geometry"),
324
+ anno::hard_range(0.0, 1.0)
325
+ ]],
326
+ uniform bool round_edges_across_materials = false [[
327
+ anno::display_name("Round Edge Across Materials"),
328
+ anno::description("Normal smoothing happens only between facets of equal material, \n"
329
+ "\t\tunless this parameter is set true, in which case the smoothing \n"
330
+ "\t\thappens between facets irrespective of their materials"),
331
+ anno::in_group("Geometry")
332
+ ]]
333
+ )
334
+ [[
335
+ anno::display_name("OmniPBR"),
336
+ anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."),
337
+ anno::in_group("Base"),
338
+ anno::version( 2, 1, 2),
339
+ anno::author("NVIDIA CORPORATION"),
340
+ anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic"))
341
+ ]] = let {
342
+
343
+ material base = OmniPBR_ClearCoat::OmniPBR_ClearCoat(
344
+ diffuse_color_constant: diffuse_color_constant,
345
+ diffuse_texture: diffuse_texture,
346
+ albedo_desaturation: albedo_desaturation,
347
+ albedo_add: albedo_add,
348
+ albedo_brightness: albedo_brightness,
349
+ diffuse_tint: diffuse_tint,
350
+ reflection_roughness_constant: reflection_roughness_constant,
351
+ reflection_roughness_texture_influence: reflection_roughness_texture_influence,
352
+ reflectionroughness_texture: reflectionroughness_texture,
353
+ metallic_constant: metallic_constant,
354
+ metallic_texture_influence: metallic_texture_influence,
355
+ metallic_texture: metallic_texture,
356
+ specular_level: specular_level,
357
+ enable_ORM_texture: enable_ORM_texture,
358
+ ORM_texture: ORM_texture,
359
+ ao_to_diffuse: ao_to_diffuse,
360
+ ao_texture: ao_texture,
361
+ enable_emission: enable_emission,
362
+ emissive_color: emissive_color,
363
+ emissive_color_texture: emissive_color_texture,
364
+ emissive_mask_texture: emissive_mask_texture,
365
+ emissive_intensity: emissive_intensity,
366
+ enable_opacity: enable_opacity,
367
+ opacity_texture: opacity_texture,
368
+ opacity_constant: opacity_constant,
369
+ enable_opacity_texture: enable_opacity_texture,
370
+ opacity_mode: opacity_mode,
371
+ opacity_threshold: opacity_threshold,
372
+ geometry_normal_roughness_strength: geometry_normal_roughness_strength,
373
+ bump_factor: bump_factor,
374
+ normalmap_texture: normalmap_texture,
375
+ detail_bump_factor: detail_bump_factor,
376
+ detail_normalmap_texture: detail_normalmap_texture,
377
+ flip_tangent_u: flip_tangent_u,
378
+ flip_tangent_v: flip_tangent_v,
379
+ project_uvw: project_uvw,
380
+ world_or_object: world_or_object,
381
+ uv_space_index: uv_space_index,
382
+ texture_translate: texture_translate,
383
+ texture_rotate: texture_rotate,
384
+ texture_scale: texture_scale,
385
+ detail_texture_translate: detail_texture_translate,
386
+ detail_texture_rotate: detail_texture_rotate,
387
+ detail_texture_scale: detail_texture_scale,
388
+ round_edges_radius: round_edges_radius,
389
+ round_edges_roundness: round_edges_roundness,
390
+ round_edges_across_materials: round_edges_across_materials
391
+ );
392
+
393
+ } in material(
394
+ surface: base.surface,
395
+ geometry: base.geometry
396
+ );
safety_goggles/simready_usd/materials/OmniPBRBase.mdl ADDED
@@ -0,0 +1,470 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * SPDX-FileCopyrightText: Copyright (c) 2022-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3
+ * SPDX-License-Identifier: BSD-3-Clause
4
+ */
5
+
6
+ mdl 1.7;
7
+
8
+ import ::df::*;
9
+ import ::state::*;
10
+ import ::math::*;
11
+ import ::base::*;
12
+ import ::tex::*;
13
+ import ::anno::*;
14
+ import ::anno::*;
15
+
16
+ export float3 HemiOctahedronToUnitVector( float2 Oct ) [[
17
+ anno::hidden()
18
+ ]]
19
+ {
20
+ Oct = float2( Oct.x + Oct.y, Oct.x - Oct.y ) * 0.5;
21
+ float3 N = float3( Oct.x, Oct.y, 1.0 - math::dot( float2(1.0), math::abs(Oct) ) );
22
+ return math::normalize(N);
23
+ }
24
+
25
+ export struct NormalData [[
26
+ anno::hidden()
27
+ ]]
28
+ {
29
+ float3 normal;
30
+ float2 roughness;
31
+ };
32
+
33
+ export NormalData tangent_space_normal_roughness_texture(
34
+ uniform texture_2d texture
35
+ [[
36
+ anno::description("The input texture"),
37
+ anno::usage("normal")
38
+ ]],
39
+ uniform float factor = 1.0f
40
+ [[ anno::description("Determines the degree of bumpiness") ]],
41
+ uniform bool flip_tangent_u = false
42
+ [[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]],
43
+ uniform bool flip_tangent_v = false
44
+ [[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]],
45
+ base::texture_coordinate_info uvw = base::texture_coordinate_info()
46
+ [[ anno::description("Parameterization to be used for texture mapping. Defaults to texture channel 0.") ]],
47
+ uniform float2 crop_u = float2( 0.0, 1.0)
48
+ [[ anno::description("Restricts the texture access to sub-domain of the texture in the u direction") ]],
49
+ uniform float2 crop_v = float2( 0.0, 1.0)
50
+ [[ anno::description("Restricts the texture access to sub-domain of the texture in the v direction") ]],
51
+ uniform tex::wrap_mode wrap_u = tex::wrap_repeat
52
+ [[ anno::description("Wrapping mode in the u direction") ]],
53
+ uniform tex::wrap_mode wrap_v = tex::wrap_repeat
54
+ [[ anno::description("Wrapping mode in the v direction") ]],
55
+ uniform bool clip = false
56
+ [[
57
+ anno::description("deprecated, usewrap_mode=tex::wrap_clip. Defines wrap_clamp behavior. If true, lookup outside [0,1] results in no bump"),
58
+ anno::hidden()
59
+ ]],
60
+ uniform float scale = 1.
61
+ [[
62
+ anno::description("Scales the value red from the texture file. Can be used to adapt to different normal map formats"),
63
+ anno::unused()
64
+ ]],
65
+ uniform float offset = 0.
66
+ [[
67
+ anno::description("Offset applied to the value red from the texture file. Can be used to adapt to different normal map formats"),
68
+ anno::unused()
69
+ ]],
70
+ uniform float animation_start_time = 0.
71
+ [[ anno::description("When to start playing first frame of the animation ") ]],
72
+ uniform int2 animation_crop = int2(0, 0)
73
+ [[ anno::description("If the texture is an animation, the range of frames to be played can be specified.") ]],
74
+ uniform tex::wrap_mode animation_wrap = tex::wrap_repeat
75
+ [[ anno::description("Defines what to do outside of regular animation time") ]],
76
+ uniform float animation_fps = 30
77
+ [[ anno::description("Framerate to use for animation playback") ]]
78
+ )
79
+ [[
80
+ anno::description("Interprets the color values of a bitmap as a vector in tangent space"),
81
+ anno::hidden(),
82
+ anno::noinline()
83
+ ]]
84
+ {
85
+ NormalData normalData;
86
+ normalData.roughness = float2(0);
87
+ normalData.normal = state::normal();
88
+
89
+ float frame = 0.0;
90
+ if(animation_crop != int2(0,0)) //only if we have an animation
91
+ {
92
+ frame = (::state::animation_time()-animation_start_time) * animation_fps ; //start playing at first frame of the animation
93
+ switch ( animation_wrap) {
94
+ case tex::wrap_repeat:
95
+ frame=frame>0? math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.x:
96
+ math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.y;
97
+ break;
98
+ case tex::wrap_mirrored_repeat:
99
+ float animation_crop_2y = 2.0*animation_crop.y;
100
+ frame=frame>0? math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop.x:
101
+ math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop_2y-animation_crop.x;
102
+ if(frame>animation_crop.y)
103
+ frame = animation_crop_2y-frame;
104
+ break;
105
+ case tex::wrap_clamp:
106
+ frame = math::clamp( frame+animation_crop.x, animation_crop.x, animation_crop.y);
107
+ break;
108
+ case tex::wrap_clip:
109
+ frame += animation_crop.x;
110
+ if(frame < animation_crop.x || frame > animation_crop.y) return normalData;
111
+ break;
112
+ }
113
+ }
114
+
115
+ if (tex::width(texture) == 0 || tex::height(texture) == 0 || // avoid division by zero in texremapu for invalid resource
116
+ factor == 0.0f)
117
+ return normalData;
118
+ {
119
+ if (clip) {
120
+ if (wrap_u == tex::wrap_clamp && (uvw.position.x < 0. || uvw.position.x > 1.)) {
121
+ return normalData;
122
+ }
123
+ if (wrap_v == tex::wrap_clamp && (uvw.position.y < 0. || uvw.position.y > 1.)) {
124
+ return normalData;
125
+ }
126
+ }
127
+ if (wrap_u == tex::wrap_clip && (uvw.position.x < 0. || uvw.position.x > 1.)) {
128
+ return normalData;
129
+ }
130
+ if (wrap_v == tex::wrap_clip && (uvw.position.y < 0. || uvw.position.y > 1.)) {
131
+ return normalData;
132
+ }
133
+ }
134
+ bool pixel_flip_u = flip_tangent_u;
135
+ bool pixel_flip_v = flip_tangent_v;
136
+ //if we mirror repeat a tangent space texture, tangent space needs to be flipped for every other tile
137
+ if (wrap_u == tex::wrap_mirrored_repeat) {
138
+ if( uvw.position.x > 0. && int(uvw.position.x) % 2 == 1)
139
+ pixel_flip_u = ! pixel_flip_u;
140
+ else if( uvw.position.x < 0. && int(uvw.position.x) % 2 == 0)
141
+ pixel_flip_u = ! pixel_flip_u;
142
+ }
143
+ if (wrap_v == tex::wrap_mirrored_repeat) {
144
+ if( uvw.position.y > 0. && int(uvw.position.y) % 2 == 1)
145
+ pixel_flip_v = ! pixel_flip_v;
146
+ else if( uvw.position.y < 0. && int(uvw.position.y) % 2 == 0)
147
+ pixel_flip_v = ! pixel_flip_v;
148
+ }
149
+
150
+ float3 transformed_tangent_u = uvw.tangent_u;
151
+ float3 transformed_tangent_v = uvw.tangent_v;
152
+
153
+ if (pixel_flip_u)
154
+ transformed_tangent_u=-transformed_tangent_u;
155
+ if (pixel_flip_v)
156
+ transformed_tangent_v=-transformed_tangent_v;
157
+
158
+ float3 tangent_space_normal;
159
+ float4 normal_raw = tex::lookup_float4(texture,float2(uvw.position.x,uvw.position.y), wrap_u, wrap_v, crop_u, crop_v, frame);
160
+ if(normal_raw.x > 1.5)
161
+ {
162
+ // octahedron packed by OV
163
+ normal_raw.x -= 2.0;
164
+ normal_raw.x -= 0.5;
165
+ normal_raw.y -= 0.5;
166
+ tangent_space_normal = HemiOctahedronToUnitVector(float2(normal_raw.x, normal_raw.y) * 2.0);
167
+ normalData.roughness = float2(normal_raw.z, normal_raw.w);
168
+ }
169
+ else
170
+ {
171
+ // regular
172
+ tangent_space_normal = (float3(normal_raw.x, normal_raw.y, normal_raw.z) - float3(0.5)) * 2.0;
173
+ normalData.roughness = float2(0);
174
+ }
175
+
176
+ normalData.normal = math::normalize(
177
+ transformed_tangent_u * tangent_space_normal.x * factor +
178
+ transformed_tangent_v * tangent_space_normal.y * factor +
179
+ state::normal() * tangent_space_normal.z);
180
+
181
+ return normalData;
182
+ }
183
+
184
+
185
+ export material OmniPBRBase(
186
+
187
+
188
+ // Albdeo //
189
+
190
+ color diffuse_reflection_color = color(0.2) [[
191
+ anno::display_name("Albedo Color"),
192
+ anno::description("This is the albedo base color"),
193
+ anno::in_group("Albedo")
194
+ ]],
195
+ color diffuse_tint = color(1.0) [[
196
+ anno::display_name("Albedo Tint"),
197
+ anno::description("When enabled, this color value is multiplied over the final albedo color"),
198
+ anno::in_group("Albedo")
199
+ ]],
200
+
201
+
202
+ // Reflecitivity //
203
+
204
+ float specular_reflection_roughness = float(0.0) [[
205
+ anno::display_name("Roughness"),
206
+ anno::description("Higher roughness values lead to more blurry reflections"),
207
+ anno::in_group("Reflectivity"),
208
+ anno::hard_range(0.0, 1.0)
209
+ ]],
210
+ float2 specular_reflection_aniso_roughness = float2(0.0, 0.0) [[
211
+ anno::display_name("Aniso roughness"),
212
+ anno::description("Higher roughness values lead to more blurry reflections"),
213
+ anno::in_group("Reflectivity"),
214
+ anno::hidden()
215
+ ]],
216
+ float metalness = float(0.0) [[
217
+ anno::display_name("Metalness"),
218
+ anno::description("Bias towards pure specular reflection"),
219
+ anno::in_group("Reflectivity"),
220
+ anno::hard_range(0.0, 1.0)
221
+ ]],
222
+ float specular_level = float(0.5) [[
223
+ anno::display_name("Specular"),
224
+ anno::description("The specular level (intensity) of the material"),
225
+ anno::in_group("Reflectivity"),
226
+ anno::soft_range(0.0, 1.0)
227
+ ]],
228
+
229
+
230
+ // Emission //
231
+
232
+ uniform bool enable_emission = false [[
233
+ anno::display_name("Enable Emission"),
234
+ anno::description("Enables the emission of light from the material"),
235
+ anno::in_group("Emissive")
236
+ ]],
237
+ color emission_color = color(1.0,0.1,0.1) [[
238
+ anno::display_name("Emissive Color"),
239
+ anno::description("The emission color"),
240
+ anno::in_group("Emissive"),
241
+ anno::enable_if("enable_emission == true")
242
+ ]],
243
+ float emission_intensity = float(40.0) [[
244
+ anno::display_name("Emissive Intensity"),
245
+ anno::description("Intensity of the emission"),
246
+ anno::in_group("Emissive"),
247
+ anno::soft_range(0.0, 1000.0),
248
+ anno::enable_if("enable_emission == true")
249
+ ]],
250
+
251
+
252
+ // Geometry Opacity //
253
+
254
+ uniform bool enable_opacity = false [[
255
+ anno::display_name("Enable Opacity"),
256
+ anno::description("Enables the use of cutout opacity"),
257
+ anno::in_group("Opacity")
258
+ ]],
259
+ float geometry_opacity = float(1.0) [[
260
+ anno::display_name("Opacity Amount"),
261
+ anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"),
262
+ anno::in_group("Opacity"),
263
+ anno::hard_range(0.0, 1.0)
264
+ ]],
265
+ uniform float geometry_opacity_threshold = 0.f
266
+ [[
267
+ anno::display_name("Opacity Threshold"),
268
+ anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"),
269
+ anno::in_group("Opacity"),
270
+ anno::hard_range(0.0, 1.0)
271
+ ]],
272
+
273
+
274
+ // Clearcoat //
275
+
276
+ uniform bool enable_coat = false [[
277
+ anno::display_name("Enable Clearcoat Layer"),
278
+ anno::description("Adds a coat layer on top of the material when enabled"),
279
+ anno::in_group("Clearcoat")
280
+ ]],
281
+ float coat_weight = float(1.0) [[
282
+ anno::display_name("Clearcoat Weight"),
283
+ anno::description("Sets the weight for coat layer"),
284
+ anno::in_group("Clearcoat"),
285
+ anno::hard_range(0.0, 1.0)
286
+ ]],
287
+ color coat_color = color(1.0) [[
288
+ anno::display_name("Clearcoat Tint"),
289
+ anno::description("Clearcoat is tinted and affects the underlying material"),
290
+ anno::in_group("Clearcoat")
291
+ ]],
292
+ float coat_transparency = float(1.0) [[
293
+ anno::display_name("Clearcoat Transparency"),
294
+ anno::description("Adjusts the transparency of the coat. Can be turned into a fully opaque coat covering the underlying layer"),
295
+ anno::in_group("Clearcoat"),
296
+ anno::hard_range(0.0, 1.0)
297
+ ]],
298
+ float coat_roughness = float(0.0) [[
299
+ anno::display_name("Clearcoat Roughness"),
300
+ anno::description("Higher roughness values lead to more blurry reflections"),
301
+ anno::in_group("Clearcoat"),
302
+ anno::hard_range(0.0, 1.0)
303
+ ]],
304
+ float2 coat_aniso_roughness = float2(0.0, 0.0) [[
305
+ anno::display_name("Clearcoat aniso roughness"),
306
+ anno::description("Higher roughness values lead to more blurry reflections"),
307
+ anno::in_group("Clearcoat"),
308
+ anno::hidden()
309
+ ]],
310
+ float coat_ior = float(1.56) [[
311
+ anno::display_name("Clearcoat IOR"),
312
+ anno::description("Sets the Index of refraction for the coat layer"),
313
+ anno::in_group("Clearcoat"),
314
+ anno::soft_range(0.0, 4.0)
315
+ ]],
316
+ float3 clearcoat_geometry_normal = state::normal() [[
317
+ anno::display_name("Clearcoat Normal"),
318
+ anno::in_group("Clearcoat"),
319
+ anno::usage("normal")
320
+ ]],
321
+
322
+
323
+ // Geometry //
324
+
325
+ uniform float round_edges_radius = float(0.0) [[
326
+ anno::display_name("Round Edge Radius"),
327
+ anno::description("Influence radius around the edges in meters"),
328
+ anno::in_group("Geometry"),
329
+ anno::soft_range(0.0, 1.0)
330
+ ]],
331
+ uniform float round_edges_roundness = float(1.0) [[
332
+ anno::display_name("Round Edge Roundness"),
333
+ anno::description("Determines how round the edge will look"),
334
+ anno::in_group("Geometry"),
335
+ anno::hard_range(0.0, 1.0)
336
+ ]],
337
+ uniform bool round_edges_across_materials = false [[
338
+ anno::display_name("Round Edge Across Materials"),
339
+ anno::description("Normal smoothing happens only between facets of equal material, \n"
340
+ "\t\tunless this parameter is set true, in which case the smoothing \n"
341
+ "\t\thappens between facets irrespective of their materials"),
342
+ anno::in_group("Geometry")
343
+ ]],
344
+ float3 geometry_normal = state::normal() [[
345
+ anno::display_name("Geometry Normal"),
346
+ anno::in_group("Geometry"),
347
+ anno::usage("normal")
348
+ ]]
349
+
350
+ )
351
+ [[
352
+ anno::display_name("OmniPBR Base"),
353
+ anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."),
354
+ anno::in_group("Omni Materials"),
355
+ anno::version( 2, 1, 1),
356
+ anno::author("NVIDIA CORPORATION"),
357
+ anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic"))
358
+ ]]
359
+ = let{
360
+
361
+ // Diffuse Bsdf //
362
+
363
+ color tinted_diffuse_color = diffuse_reflection_color * diffuse_tint;
364
+
365
+ color base_color = tinted_diffuse_color;
366
+
367
+ bsdf diffuse_bsdf = df::weighted_layer(
368
+ weight: 1.0,
369
+ layer: df::diffuse_reflection_bsdf(
370
+ tint: base_color,
371
+ roughness: float(0.0)
372
+ ),
373
+ base: bsdf(),
374
+ normal: geometry_normal
375
+ );
376
+
377
+ // Glossy Reflection Bsdf //
378
+
379
+ float roughness_u = math::clamp(specular_reflection_roughness * specular_reflection_roughness
380
+ + specular_reflection_aniso_roughness.x * specular_reflection_aniso_roughness.x, 0, 1);
381
+ float roughness_v = math::clamp(specular_reflection_roughness * specular_reflection_roughness
382
+ + specular_reflection_aniso_roughness.y * specular_reflection_aniso_roughness.y, 0, 1);
383
+ bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf(
384
+ roughness_u: roughness_u,
385
+ roughness_v: roughness_v,
386
+ tint: color(1.0),
387
+ mode: df::scatter_reflect
388
+ );
389
+
390
+ bsdf custom_curve_layer_bsdf = df::custom_curve_layer(
391
+ normal_reflectivity: 0.08,
392
+ grazing_reflectivity: 1.0,
393
+ exponent: 5.0,
394
+ weight: specular_level,
395
+ layer: ggx_smith_bsdf,
396
+ base: diffuse_bsdf,
397
+ normal: geometry_normal
398
+ );
399
+
400
+ bsdf directional_factor_bsdf = df::tint(base_color, ggx_smith_bsdf);
401
+
402
+ bsdf omni_PBR_bsdf = df::weighted_layer(
403
+ weight: metalness,
404
+ layer: directional_factor_bsdf,
405
+ base: custom_curve_layer_bsdf,
406
+ normal: geometry_normal
407
+ );
408
+
409
+ // Clear Coat //
410
+
411
+ float coat_roughness_u = math::clamp(coat_roughness * coat_roughness
412
+ + coat_aniso_roughness.x * coat_aniso_roughness.x, 0, 1);
413
+ float coat_roughness_v = math::clamp(coat_roughness * coat_roughness
414
+ + coat_aniso_roughness.y * coat_aniso_roughness.y, 0, 1);
415
+ bsdf coat_bsdf = df::microfacet_ggx_smith_bsdf(
416
+ roughness_u: coat_roughness_u,
417
+ roughness_v: coat_roughness_v,
418
+ tint: color(1.0),
419
+ mode: df::scatter_reflect
420
+ );
421
+
422
+ bsdf opaque_coat = df::weighted_layer(
423
+ weight: coat_transparency,
424
+ layer: ::df::tint(
425
+ tint: coat_color,
426
+ base: omni_PBR_bsdf
427
+ ),
428
+ base: ::df::diffuse_reflection_bsdf(
429
+ tint: coat_color
430
+ )
431
+ );
432
+
433
+ bsdf omni_PBR_coated_bsdf = df::fresnel_layer(
434
+ ior: coat_ior,
435
+ weight: coat_weight,
436
+ layer: coat_bsdf,
437
+ base: opaque_coat,
438
+ normal: clearcoat_geometry_normal
439
+ );
440
+
441
+ bsdf final_bsdf = enable_coat ? omni_PBR_coated_bsdf : omni_PBR_bsdf;
442
+
443
+ color emission_value = enable_emission ? emission_color * color(emission_intensity) : color(0.0);
444
+
445
+ float opacity_value = geometry_opacity;
446
+ float cutout_opacity = enable_opacity ? ((geometry_opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= geometry_opacity_threshold) ? 1.0 : 0)) : 1.0;
447
+
448
+ material_emission emission = material_emission(
449
+ df::diffuse_edf(),
450
+ intensity: emission_value
451
+ );
452
+
453
+ material_surface surface = material_surface(
454
+ scattering: final_bsdf,
455
+ emission: emission
456
+ );
457
+
458
+ material_geometry geometry = material_geometry(
459
+ normal: state::rounded_corner_normal(
460
+ radius: round_edges_radius,
461
+ across_materials: round_edges_across_materials,
462
+ roundness: round_edges_roundness
463
+ ),
464
+ cutout_opacity: cutout_opacity
465
+ );
466
+
467
+ } in material(
468
+ surface: surface,
469
+ geometry: geometry
470
+ );
safety_goggles/simready_usd/materials/OmniPBR_ClearCoat.mdl ADDED
@@ -0,0 +1,711 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * SPDX-FileCopyrightText: Copyright (c) 2022-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3
+ * SPDX-License-Identifier: BSD-3-Clause
4
+ */
5
+
6
+ mdl 1.7;
7
+
8
+ import ::df::*;
9
+ import ::state::*;
10
+ import ::math::*;
11
+ import ::base::*;
12
+ import ::state::*;
13
+ import ::tex::*;
14
+ import ::anno::*;
15
+
16
+ import ::debug::*;
17
+
18
+ import ::nvidia::core_definitions::file_texture;
19
+ import ::nvidia::core_definitions::normalmap_texture;
20
+
21
+ import OmniPBRBase::*;
22
+
23
+ // Functions //
24
+
25
+
26
+ // Returns a matrix from R,T,S. inputs //
27
+
28
+ uniform float4x4 rotation_translation_scale(
29
+ uniform float3 rotation = float3(0.)
30
+ [[ anno::description("Rotation applied to every UVW coordinate") ]],
31
+ uniform float3 translation = float3(0.)
32
+ [[ anno::description("Offset applied to every UVW coordinate") ]],
33
+ uniform float3 scaling = float3(1.)
34
+ [[ anno::description("Scale applied to every UVW coordinate") ]]
35
+ )
36
+ [[
37
+ anno::description("Construct a transformation matrix from euler rotation, translation and scale"),
38
+ anno::hidden()
39
+ ]]
40
+ {
41
+ float4x4 scale =
42
+ float4x4(scaling.x , 0.0 , 0.0 , 0.0,
43
+ 0.0 , scaling.y , 0.0 , 0.0,
44
+ 0.0 , 0.0 , scaling.z , 0.0,
45
+ translation.x , translation.y , translation.z , 1.0);
46
+
47
+ float3 s = math::sin(rotation);
48
+ float3 c = math::cos(rotation);
49
+
50
+ float4x4 rotate =
51
+ float4x4( 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,
52
+ 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,
53
+ -s.y , s.x*c.y , c.x*c.y , 0.0,
54
+ 0.0 , 0.0 , 0 , 1.0);
55
+
56
+ return scale * rotate;
57
+ }
58
+
59
+ // Returns the normal n in tangent space, given n is in internal space. //
60
+
61
+ float3 transform_internal_to_tangent(float3 n)
62
+ {
63
+ /* flip_tangent_v */
64
+ return
65
+ n.x* float3(state::texture_tangent_u(0).x,-state::texture_tangent_v(0).x,state::normal().x)+
66
+ n.y* float3(state::texture_tangent_u(0).y,-state::texture_tangent_v(0).y,state::normal().y)+
67
+ n.z* float3(state::texture_tangent_u(0).z,-state::texture_tangent_v(0).z,state::normal().z);
68
+ }
69
+
70
+ // Returns the normal n in internal space, given n is in tangent space.
71
+ float3 transform_tangent_to_internal(float3 n)
72
+ {
73
+ return state::texture_tangent_u(0) * n.x -
74
+ state::texture_tangent_v(0) * n.y + /* flip_tangent_v */
75
+ state::normal() * n.z;
76
+ }
77
+
78
+ // Returns a normal by adding a detail normal to a global normal.
79
+ export float3 add_detail_normal(float3 nd = state::normal(), float3 n = state::normal())
80
+ {
81
+ // http://blog.selfshadow.com/publications/blending-in-detail/
82
+ float3 n_t = transform_internal_to_tangent(n);
83
+ float3 nd_t = transform_internal_to_tangent(nd);
84
+ n_t = n_t + float3(0.,0.,1.);
85
+ nd_t = nd_t * float3(-1.,-1.,1.);
86
+ n = n_t * math::dot(n_t, nd_t)/n_t.z - nd_t;
87
+ return math::normalize(transform_tangent_to_internal(n));
88
+ }
89
+
90
+ base::texture_return multiply_colors(
91
+ color color_1 = color(1.0, 1.0, 1.0),
92
+ color color_2 = color(.5, .5, .5),
93
+ float weight = 1.0
94
+ )
95
+ [[
96
+ anno::hidden()
97
+ ]]
98
+ {
99
+ return base::blend_color_layers(
100
+ layers: base::color_layer[](
101
+ base::color_layer(
102
+ layer_color: color_2,
103
+ weight: weight,
104
+ mode: base::color_layer_multiply
105
+ )),
106
+ base: color_1
107
+ );
108
+ }
109
+
110
+
111
+ // OmniPBR Clearcoat //
112
+
113
+ export material OmniPBR_ClearCoat(
114
+
115
+ // Albdeo //
116
+
117
+ color diffuse_color_constant = color(0.2) [[
118
+ anno::display_name("Albedo Color"),
119
+ anno::description("This is the albedo base color"),
120
+ anno::in_group("Albedo")
121
+ ]],
122
+ uniform texture_2d diffuse_texture = texture_2d() [[
123
+ anno::display_name("Albedo Map"),
124
+ anno::in_group("Albedo")
125
+ ]],
126
+ float albedo_desaturation = float(0.0) [[
127
+ anno::display_name("Albedo Map Desaturation"),
128
+ anno::description("Desaturates the albedo map"),
129
+ anno::in_group("Albedo"),
130
+ anno::soft_range(float(0.0), float(1.0))
131
+ ]],
132
+ float albedo_add = float(0.0) [[
133
+ anno::display_name("Albedo Add"),
134
+ anno::description("Adds a constant value to the diffuse color "),
135
+ anno::in_group("Albedo"),
136
+ anno::soft_range(float(-1.0), float(1.0))
137
+ ]],
138
+ float albedo_brightness = float(1.0) [[
139
+ anno::display_name("Albedo Brightness"),
140
+ anno::description("Multiplier for the diffuse color "),
141
+ anno::in_group("Albedo"),
142
+ anno::soft_range(float(0.0), float(1.0))
143
+ ]],
144
+ color diffuse_tint = color(1.0) [[
145
+ anno::display_name("Color Tint"),
146
+ anno::description("When enabled, this color value is multiplied over the final albedo color"),
147
+ anno::in_group("Albedo")
148
+ ]],
149
+
150
+
151
+ // Reflectivity //
152
+
153
+ float reflection_roughness_constant = float(0.5) [[
154
+ anno::display_name("Roughness Amount"),
155
+ anno::description("Higher roughness values lead to more blurry reflections"),
156
+ anno::in_group("Reflectivity"),
157
+ anno::hard_range(float(0.0), float(1.0))
158
+ ]],
159
+ float reflection_roughness_texture_influence = float(0.0) [[
160
+ anno::display_name("Roughness Map Influence"),
161
+ anno::description("Blends between the constant value and the lookup of the roughness texture"),
162
+ anno::in_group("Reflectivity"),
163
+ anno::hard_range(float(0.0), float(1.0))
164
+ ]],
165
+ uniform texture_2d reflectionroughness_texture = texture_2d() [[
166
+ anno::display_name("Roughness Map"),
167
+ anno::in_group("Reflectivity"),
168
+ anno::usage("roughness")
169
+ ]],
170
+ float metallic_constant = float(0.0) [[
171
+ anno::display_name("Metallic Amount"),
172
+ anno::description("Metallic Material"),
173
+ anno::in_group("Reflectivity"),
174
+ anno::hard_range(float(0.0), float(1.0))
175
+ ]],
176
+ float metallic_texture_influence = float(0.0) [[
177
+ anno::display_name("Metallic Map Influence"),
178
+ anno::description("Blends between the constant value and the lookup of the metallic texture"),
179
+ anno::in_group("Reflectivity"),
180
+ anno::hard_range(float(0.0), float(1.0))
181
+ ]],
182
+ uniform texture_2d metallic_texture = texture_2d() [[
183
+ anno::display_name("Metallic Map"),
184
+ anno::in_group("Reflectivity"),
185
+ anno::usage("metalness")
186
+ ]],
187
+ float specular_level = float(0.5) [[
188
+ anno::display_name("Specular"),
189
+ anno::description("The specular level (intensity) of the material"),
190
+ anno::in_group("Reflectivity"),
191
+ anno::soft_range(float(0.0), float(1.0))
192
+ ]],
193
+
194
+
195
+ // ORM //
196
+
197
+ uniform bool enable_ORM_texture = false [[
198
+ anno::display_name("Enable ORM Texture"),
199
+ anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"),
200
+ anno::in_group("Reflectivity")
201
+ ]],
202
+ uniform texture_2d ORM_texture = texture_2d() [[
203
+ anno::display_name("ORM Map"),
204
+ anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"),
205
+ anno::in_group("Reflectivity"),
206
+ anno::usage("roughness")
207
+ ]],
208
+
209
+
210
+ // AO Group //
211
+
212
+ float ao_to_diffuse = 0.0 [[
213
+ anno::display_name("AO to diffuse"),
214
+ anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"),
215
+ anno::in_group("AO"),
216
+ anno::hard_range(float(0.0), float(1.0))
217
+ ]],
218
+ uniform texture_2d ao_texture = texture_2d() [[
219
+ anno::display_name("Ambient Occlusion Map"),
220
+ anno::description("The ambient occlusion texture for the material"),
221
+ anno::in_group("AO"),
222
+ anno::usage("occlusion")
223
+ ]],
224
+
225
+
226
+ // Emission //
227
+
228
+ uniform bool enable_emission = false [[
229
+ anno::display_name("Enable Emission"),
230
+ anno::description("Enables the emission of light from the material"),
231
+ anno::in_group("Emissive")
232
+ ]],
233
+ color emissive_color = color(1.0,0.1,0.1) [[
234
+ anno::display_name("Emissive Color"),
235
+ anno::description("The emission color"),
236
+ anno::in_group("Emissive"),
237
+ anno::enable_if("enable_emission == true")
238
+ ]],
239
+ uniform texture_2d emissive_color_texture = texture_2d() [[
240
+ anno::display_name("Emissive Color map"),
241
+ anno::in_group("Emissive"),
242
+ anno::description("The emissive color texture"),
243
+ anno::enable_if("enable_emission == true")
244
+ ]],
245
+ uniform texture_2d emissive_mask_texture = texture_2d() [[
246
+ anno::display_name("Emissive Mask map"),
247
+ anno::description("The texture masking the emissive color"),
248
+ anno::in_group("Emissive"),
249
+ anno::enable_if("enable_emission == true"),
250
+ anno::usage("occlusion")
251
+ ]],
252
+ float emissive_intensity = float(40.0) [[
253
+ anno::display_name("Emissive Intensity"),
254
+ anno::description("Intensity of the emission"),
255
+ anno::in_group("Emissive"),
256
+ anno::enable_if("enable_emission == true")
257
+ ]],
258
+
259
+
260
+ // Cutout Opacity //
261
+
262
+ uniform bool enable_opacity = false [[
263
+ anno::display_name("Enable Opacity"),
264
+ anno::description("Enables the use of cutout opacity"),
265
+ anno::in_group("Opacity")
266
+ ]],
267
+ uniform texture_2d opacity_texture = texture_2d() [[
268
+ anno::display_name("Opacity Map"),
269
+ anno::in_group("Opacity"),
270
+ anno::usage("opacity")
271
+ ]],
272
+ float opacity_constant = float(1.0) [[
273
+ anno::display_name("Opacity Amount"),
274
+ anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"),
275
+ anno::in_group("Opacity"),
276
+ anno::hard_range(float(0.0), float(1.0))
277
+ ]],
278
+ uniform bool enable_opacity_texture = false [[
279
+ anno::display_name("Enable Opacity Texture"),
280
+ anno::description("Enables or disables the usage of the opacity texture map"),
281
+ anno::in_group("Opacity")
282
+ ]],
283
+ uniform base::mono_mode opacity_mode = base::mono_average [[
284
+ anno::display_name("Opacity Mono Source"),
285
+ anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"),
286
+ anno::in_group("Opacity")
287
+ ]],
288
+ uniform float opacity_threshold = float(0.0) [[
289
+ anno::display_name("Opacity Threshold"),
290
+ anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"),
291
+ anno::in_group("Opacity"),
292
+ anno::hard_range(float(0.0), float(1.0))
293
+ ]],
294
+
295
+
296
+ // Clearcoat //
297
+
298
+ uniform bool enable_clearcoat = false [[
299
+ anno::display_name("Enable Clearcoat Layer"),
300
+ anno::description("Adds a clearcoat layer on top of the material when enabled"),
301
+ anno::in_group("Clearcoat")
302
+ ]],
303
+ float clearcoat_weight = float(1.0) [[
304
+ anno::display_name("Clearcoat Weight"),
305
+ anno::description("Sets the weight for clearcoat layer"),
306
+ anno::in_group("Clearcoat"),
307
+ anno::hard_range(float(0.0), float(1.0))
308
+ ]],
309
+ color clearcoat_tint = color(1.0) [[
310
+ anno::display_name("Clearcoat Tint"),
311
+ anno::description("Clearcoat is tinted and affects the underlying material"),
312
+ anno::in_group("Clearcoat")
313
+ ]],
314
+ float clearcoat_transparency = float(1.0) [[
315
+ anno::display_name("Clearcoat Transparency"),
316
+ anno::description("Adjusts the transparency of the clearcoat. Can be turned into a fully opaque clearcoat covering the underlying layer"),
317
+ anno::in_group("Clearcoat"),
318
+ anno::hard_range(float(0.0), float(1.0))
319
+ ]],
320
+ float clearcoat_reflection_roughness = float(0.0) [[
321
+ anno::display_name("Clearcoat Roughness"),
322
+ anno::description("Higher roughness values lead to more blurry reflections"),
323
+ anno::in_group("Clearcoat"),
324
+ anno::hard_range(float(0.0), float(1.0))
325
+ ]],
326
+ float clearcoat_ior = float(1.56) [[
327
+ anno::display_name("Clearcoat IOR"),
328
+ anno::description("Sets the Index of refraction for the clearcoat layer"),
329
+ anno::in_group("Clearcoat"),
330
+ anno::soft_range(float(0.0), float(4.0))
331
+ ]],
332
+ uniform float clearcoat_bump_factor = float(1.0) [[
333
+ anno::display_name("Clearcoat Normal Map Strength"),
334
+ anno::description("Strength of normal map."),
335
+ anno::in_group("Clearcoat"),
336
+ anno::soft_range(float(0.0), float(1.0))
337
+ ]],
338
+ uniform texture_2d clearcoat_normalmap_texture = texture_2d() [[
339
+ anno::display_name("Clearcoat Normal Map"),
340
+ anno::description("Enables the usage of the normalmap texture"),
341
+ anno::in_group("Clearcoat"),
342
+ anno::usage("normal")
343
+ ]],
344
+ uniform float2 clearcoat_texture_translate = float2(0.0) [[
345
+ anno::display_name("Clearcoat Texture Translate"),
346
+ anno::description("Controls the position of the clearcoat texture"),
347
+ anno::ui_order(1),
348
+ anno::in_group("UV")
349
+ ]],
350
+ uniform float clearcoat_texture_rotate = float(0.0) [[
351
+ anno::display_name("Clearcoat Texture Rotate"),
352
+ anno::description("Rotates angle of the clearcoat texture in degrees"),
353
+ anno::ui_order(2),
354
+ anno::in_group("UV")
355
+ ]],
356
+ uniform float2 clearcoat_texture_scale = float2(1.0) [[
357
+ anno::display_name("Clearcoat Texture Tiling"),
358
+ anno::description("Controls the repetition of the clearcoat texture"),
359
+ anno::ui_order(3),
360
+ anno::in_group("UV")
361
+ ]],
362
+ float clearcoat_flatten = float(1.0) [[
363
+ anno::display_name("Clearcoat Flatten"),
364
+ anno::description("Flattens the clearcoat to even out the underlying bump maps"),
365
+ anno::in_group("Clearcoat"),
366
+ anno::hard_range(float(0.0), float(1.0))
367
+ ]],
368
+
369
+
370
+ // Normal //
371
+
372
+ uniform float geometry_normal_roughness_strength = 1.f
373
+ [[
374
+ anno::hard_range(0.0, 1.0),
375
+ anno::display_name("Normal map to roughness weight"),
376
+ anno::description("Enables and weights roughness induced by normal maps"),
377
+ anno::in_group("Normal")
378
+ ]],
379
+ uniform float bump_factor = float(1.0) [[
380
+ anno::display_name("Normal Strength"),
381
+ anno::description("Strength of normal map"),
382
+ anno::in_group("Normal"),
383
+ anno::soft_range(float(0.0), float(1.0))
384
+ ]],
385
+ uniform texture_2d normalmap_texture = texture_2d() [[
386
+ anno::display_name("Normal Map"),
387
+ anno::in_group("Normal"),
388
+ anno::usage("normal")
389
+ ]],
390
+ uniform float detail_bump_factor = float(0.3) [[
391
+ anno::display_name("Detail Normal Strength"),
392
+ anno::in_group("Normal"),
393
+ anno::description("Strength of the detail normal"),
394
+ anno::soft_range(float(0.0), float(1.0))
395
+ ]],
396
+ uniform texture_2d detail_normalmap_texture = texture_2d() [[
397
+ anno::display_name("Detail Normal Map"),
398
+ anno::in_group("Normal"),
399
+ anno::usage("normal")
400
+ ]],
401
+ uniform bool flip_tangent_u = false [[
402
+ anno::display_name("Normal Map Flip U Tangent"),
403
+ anno::in_group("Normal")
404
+ ]],
405
+ uniform bool flip_tangent_v = true [[
406
+ anno::display_name("Normal Map Flip V Tangent"),
407
+ anno::in_group("Normal")
408
+ ]],
409
+
410
+
411
+ // UVW Projection Group //
412
+
413
+ uniform bool project_uvw = false [[
414
+ anno::display_name("Enable Project UVW Coordinates"),
415
+ anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"),
416
+ anno::in_group("UV")
417
+ ]],
418
+ uniform bool world_or_object = false [[
419
+ anno::display_name("Enable World Space"),
420
+ anno::description("When enabled, uses world space for projection, otherwise object space is used"),
421
+ anno::in_group("UV"),
422
+ anno::enable_if("project_uvw == true")
423
+ ]],
424
+ uniform int uv_space_index = 0 [[
425
+ anno::display_name("UV Space Index"),
426
+ anno::description("UV Space Index"),
427
+ anno::in_group("UV"),
428
+ anno::enable_if("project_uvw == true"),
429
+ anno::hard_range(int(0), int(3))
430
+ ]],
431
+
432
+
433
+ // UVW Adjustments Group //
434
+
435
+ uniform float2 texture_translate = float2(0.0) [[
436
+ anno::display_name("Texture Translate"),
437
+ anno::description("Controls position of texture."),
438
+ anno::in_group("UV"),
439
+ anno::enable_if("project_uvw == true")
440
+ ]],
441
+ uniform float texture_rotate = float(0.0) [[
442
+ anno::display_name("Texture Rotate"),
443
+ anno::description("Rotates angle of texture in degrees."),
444
+ anno::in_group("UV"),
445
+ anno::enable_if("project_uvw == true")
446
+ ]],
447
+ uniform float2 texture_scale = float2(1.0) [[
448
+ anno::display_name("Texture Tiling"),
449
+ anno::description("Controls repetition of the texture."),
450
+ anno::in_group("UV"),
451
+ anno::enable_if("project_uvw == true")
452
+ ]],
453
+ uniform float2 detail_texture_translate = float2(0.0) [[
454
+ anno::display_name("Detail Texture Translate"),
455
+ anno::description("Controls the position of the detail texture."),
456
+ anno::in_group("UV"),
457
+ anno::enable_if("project_uvw == true")
458
+ ]],
459
+ uniform float detail_texture_rotate = float(0.0) [[
460
+ anno::display_name("Detail Texture Rotate"),
461
+ anno::description("Rotates angle of the detail texture in degrees."),
462
+ anno::in_group("UV"),
463
+ anno::enable_if("project_uvw == true")
464
+ ]],
465
+ uniform float2 detail_texture_scale = float2(1.0) [[
466
+ anno::display_name("Detail Texture Tiling"),
467
+ anno::description("Controls repetition of the detail texture."),
468
+ anno::in_group("UV"),
469
+ anno::enable_if("project_uvw == true")
470
+ ]],
471
+
472
+
473
+ // Geometry //
474
+
475
+ uniform float round_edges_radius = float(0.0) [[
476
+ anno::display_name("Round Edge Radius"),
477
+ anno::description("Influence radius around the edges in meters"),
478
+ anno::in_group("Geometry"),
479
+ anno::soft_range(0.0, 1.0)
480
+ ]],
481
+ uniform float round_edges_roundness = float(1.0) [[
482
+ anno::display_name("Round Edge Roundness"),
483
+ anno::description("Determines how round the edge will look"),
484
+ anno::in_group("Geometry"),
485
+ anno::hard_range(0.0, 1.0)
486
+ ]],
487
+ uniform bool round_edges_across_materials = false [[
488
+ anno::display_name("Round Edge Across Materials"),
489
+ anno::description("Normal smoothing happens only between facets of equal material, \n"
490
+ "\t\tunless this parameter is set true, in which case the smoothing \n"
491
+ "\t\thappens between facets irrespective of their materials"),
492
+ anno::in_group("Geometry")
493
+ ]]
494
+ )
495
+ [[
496
+ anno::display_name("OmniPBR ClearCoat "),
497
+ anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."),
498
+ anno::in_group("Base"),
499
+ anno::version( 2, 1, 1),
500
+ anno::author("NVIDIA CORPORATION"),
501
+ anno::key_words(string[]("omni", "PBR", "opacity", "clearcoat", "omniverse", "generic"))
502
+ ]] = let {
503
+
504
+ // UVW lookup and transformation //
505
+ base::texture_coordinate_system the_system = world_or_object ? base::texture_coordinate_world : base::texture_coordinate_object;
506
+
507
+ base::texture_coordinate_info uvw = project_uvw ? base::coordinate_projection(
508
+ coordinate_system: the_system,
509
+ texture_space: uv_space_index,
510
+ projection_type: base::projection_cubic
511
+ ) :
512
+ base::coordinate_source(
513
+ coordinate_system: base::texture_coordinate_uvw,
514
+ texture_space: uv_space_index
515
+ );
516
+
517
+ base::texture_coordinate_info transformed_uvw = base::transform_coordinate(
518
+ transform: rotation_translation_scale(
519
+ scaling: float3(texture_scale.x, texture_scale.y, 1.0),
520
+ rotation: float3(0.0, 0.0, texture_rotate/180.*math::PI ),
521
+ translation: float3(texture_translate.x, texture_translate.y, 0.0)
522
+ ),
523
+ coordinate: uvw
524
+ );
525
+
526
+ base::texture_coordinate_info detail_transformed_uvw = base::transform_coordinate(
527
+ transform: rotation_translation_scale(
528
+ scaling: float3(detail_texture_scale.x, detail_texture_scale.y, 1.0),
529
+ rotation: float3(0.0, 0.0, detail_texture_rotate/180.*math::PI ),
530
+ translation: float3(detail_texture_translate.x, detail_texture_translate.y, 0.0)
531
+ ),
532
+ coordinate: uvw
533
+ );
534
+
535
+ base::texture_coordinate_info clearcoat_transformed_uvw = base::transform_coordinate(
536
+ transform: rotation_translation_scale(
537
+ scaling: float3(clearcoat_texture_scale.x, clearcoat_texture_scale.y, 1.0),
538
+ rotation: float3(0.0, 0.0, clearcoat_texture_rotate/180.*math::PI ),
539
+ translation: float3(clearcoat_texture_translate.x, clearcoat_texture_translate.y, 0.f)
540
+ ),
541
+ coordinate: uvw
542
+ );
543
+
544
+ // Normal calculations //
545
+ OmniPBRBase::NormalData defaultData = OmniPBRBase::NormalData(state::normal(), float2(0));
546
+
547
+ OmniPBRBase::NormalData normal_data = tex::texture_isvalid(normalmap_texture) ?
548
+ OmniPBRBase::tangent_space_normal_roughness_texture(
549
+ texture: normalmap_texture,
550
+ factor: bump_factor,
551
+ uvw: transformed_uvw,
552
+ flip_tangent_u: flip_tangent_u,
553
+ flip_tangent_v: flip_tangent_v // true for dx, false for opengl
554
+ //flip_tangent_v: true
555
+
556
+ ) : defaultData;
557
+ float3 the_normal = normal_data.normal;
558
+
559
+ OmniPBRBase::NormalData detail_normal_data = tex::texture_isvalid(detail_normalmap_texture) ?
560
+ OmniPBRBase::tangent_space_normal_roughness_texture(
561
+ texture: detail_normalmap_texture,
562
+ factor: detail_bump_factor,
563
+ uvw: detail_transformed_uvw,
564
+ flip_tangent_u: flip_tangent_u,
565
+ flip_tangent_v: flip_tangent_v // true for dx, false for opengl
566
+ ) : defaultData;
567
+ float3 detail_normal = detail_normal_data.normal;
568
+
569
+ OmniPBRBase::NormalData clearcoat_normal_data = tex::texture_isvalid(clearcoat_normalmap_texture) ?
570
+ OmniPBRBase::tangent_space_normal_roughness_texture(
571
+ texture: clearcoat_normalmap_texture,
572
+ factor: clearcoat_bump_factor,
573
+ uvw: clearcoat_transformed_uvw,
574
+ flip_tangent_u: flip_tangent_u,
575
+ flip_tangent_v: flip_tangent_v // true for dx, false for opengl
576
+ ) : defaultData;
577
+ float3 clearcoat_normal = clearcoat_normal_data.normal;
578
+
579
+
580
+ float3 diffuse_gloss_normal = tex::texture_isvalid(detail_normalmap_texture) ? add_detail_normal(detail_normal, the_normal) : the_normal;
581
+ float3 flattened_clearcoat_normal = ::math::lerp(diffuse_gloss_normal, ::state::normal(), clearcoat_flatten);
582
+ float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? add_detail_normal(flattened_clearcoat_normal, clearcoat_normal)
583
+ : flattened_clearcoat_normal;
584
+
585
+
586
+ // ORM Handling //
587
+
588
+ float3 ORM_lookup = tex::lookup_float3(
589
+ tex: ORM_texture,
590
+ coord: float2(transformed_uvw.position.x, transformed_uvw.position.y)
591
+ );
592
+
593
+
594
+ float3 roughness_lookup = tex::lookup_float3(
595
+ tex: reflectionroughness_texture,
596
+ coord: float2(transformed_uvw.position.x, transformed_uvw.position.y)
597
+ );
598
+
599
+ float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup.x;
600
+ float reflection_roughness_s = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence);
601
+ float2 reflection_roughness = float2(math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.x * normal_data.roughness.x)),
602
+ math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.y * normal_data.roughness.y)));
603
+
604
+ float2 clearcoat_reflection_roughness2 = float2(math::sqrt(clearcoat_reflection_roughness*clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.x * clearcoat_normal_data.roughness.x)),
605
+ math::sqrt(clearcoat_reflection_roughness*clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.y * clearcoat_normal_data.roughness.y)));
606
+
607
+ // Diffuse Color Lookup and AO //
608
+
609
+ base::texture_return base_lookup = base::file_texture(
610
+ texture: diffuse_texture,
611
+ color_offset: color(albedo_add),
612
+ color_scale: color(albedo_brightness),
613
+ mono_source: base::mono_luminance,
614
+ uvw: transformed_uvw,
615
+ clip: false
616
+ );
617
+
618
+ base::texture_return ao_lookup = base::file_texture(
619
+ texture: ao_texture,
620
+ color_offset: color(0.0, 0.0, 0.0),
621
+ color_scale: color(1.0, 1.0, 1.0),
622
+ mono_source: base::mono_average,
623
+ uvw: transformed_uvw,
624
+ clip: false
625
+ );
626
+
627
+
628
+ color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : ao_lookup.tint;
629
+ color desaturated_base = math::lerp(base_lookup.tint, color(base_lookup.mono), albedo_desaturation);
630
+ color diffuse = tex::texture_isvalid(diffuse_texture)? desaturated_base : diffuse_color_constant;
631
+ color tinted_diffuse = multiply_colors(diffuse, diffuse_tint, 1.0).tint;
632
+
633
+ color base_color = multiply_colors(
634
+ color_1: tinted_diffuse,
635
+ color_2: ao_color,
636
+ weight: ao_to_diffuse
637
+ ).tint;
638
+
639
+
640
+ // Metalness //
641
+
642
+ float3 metallic_lookup = tex::lookup_float3(
643
+ tex: metallic_texture,
644
+ coord: float2(transformed_uvw.position.x, transformed_uvw.position.y)
645
+ );
646
+
647
+ float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup.x;
648
+ float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence);
649
+
650
+
651
+ // Emission //
652
+
653
+ color emission_color_texture = tex::texture_isvalid(emissive_color_texture) ?
654
+ base::file_texture(
655
+ texture: emissive_color_texture,
656
+ color_offset: color(0.0, 0.0, 0.0),
657
+ color_scale: color(1.0, 1.0, 1.0),
658
+ mono_source: base::mono_average,
659
+ uvw: transformed_uvw,
660
+ clip: false
661
+ ).tint : emissive_color;
662
+
663
+ color emission_mask_texture = tex::texture_isvalid(emissive_mask_texture) ?
664
+ base::file_texture(
665
+ texture: emissive_mask_texture,
666
+ color_offset: color(0.0, 0.0, 0.0),
667
+ color_scale: color(1.0, 1.0, 1.0),
668
+ mono_source: base::mono_average,
669
+ uvw: transformed_uvw,
670
+ clip: false
671
+ ).tint : color(1.0);
672
+
673
+ color final_emission_color = enable_emission ? emission_color_texture * emission_mask_texture: color(0.0);
674
+
675
+ // Opacity //
676
+
677
+ float opacity_value = enable_opacity_texture ? base::file_texture(
678
+ texture: opacity_texture,
679
+ mono_source: opacity_mode,
680
+ uvw: transformed_uvw
681
+ ).mono : opacity_constant;
682
+
683
+ float cutout_opacity = enable_opacity ? ((opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= opacity_threshold) ? 1.0 : 0)) : 1.0;
684
+
685
+ material base = OmniPBRBase::OmniPBRBase(
686
+ diffuse_reflection_color: base_color,
687
+ specular_reflection_aniso_roughness: reflection_roughness,
688
+ specular_level: specular_level,
689
+ metalness: metallic,
690
+ enable_emission: enable_emission,
691
+ emission_color: final_emission_color,
692
+ emission_intensity: emissive_intensity,
693
+ enable_coat: enable_clearcoat,
694
+ coat_weight: clearcoat_weight,
695
+ coat_color: clearcoat_tint,
696
+ coat_transparency: clearcoat_transparency,
697
+ coat_aniso_roughness: clearcoat_reflection_roughness2,
698
+ coat_ior: clearcoat_ior,
699
+ enable_opacity: enable_opacity,
700
+ geometry_opacity: cutout_opacity,
701
+ clearcoat_geometry_normal: final_clearcoat_normal,
702
+ round_edges_radius: round_edges_radius,
703
+ round_edges_roundness: round_edges_roundness,
704
+ round_edges_across_materials: round_edges_across_materials,
705
+ geometry_normal: diffuse_gloss_normal
706
+ );
707
+
708
+ } in material(
709
+ surface: base.surface,
710
+ geometry: base.geometry
711
+ );
safety_goggles/simready_usd/safety_goggles.usd ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fee690c927db595e09394aee49afcc2105d53e5cbd7096767bb5b9af1f1a1a76
3
+ size 1789169
safety_goggles/simready_usd/textures/T_Fabric_Polyester_BaseColor.png ADDED

Git LFS Details

  • SHA256: 82e98e78fdcc197fa085b6349e4cc2a162b97349bc1bc4cb44c2c95954817b5e
  • Pointer size: 131 Bytes
  • Size of remote file: 349 kB
safety_goggles/simready_usd/textures/T_Fabric_Polyester_Normal.png ADDED

Git LFS Details

  • SHA256: 08738e0e127dd3da759de48855846bf4723b64acd647a951ecb9d1d56189ea4d
  • Pointer size: 132 Bytes
  • Size of remote file: 4 MB
safety_goggles/simready_usd/textures/T_Fabric_Polyester_OcclusionRoughnessMetallic.png ADDED

Git LFS Details

  • SHA256: 8a7ad38bd7c3cc89e1e184d9c83e4e44a47cdd9e472dceaee070a6c1dfa8bfc6
  • Pointer size: 131 Bytes
  • Size of remote file: 178 kB
safety_goggles/simready_usd/textures/T_Plastic_Abs_BaseColor.png ADDED

Git LFS Details

  • SHA256: 8c78f111785db27f9e7f8a47bcb0bd399f28ab68a979b5931ffa78f8ec515fc1
  • Pointer size: 131 Bytes
  • Size of remote file: 265 kB
safety_goggles/simready_usd/textures/T_Plastic_Abs_Normal.png ADDED

Git LFS Details

  • SHA256: ecc098ffdd44433639281360d6862944491ebdd6e897bbb1fe70d777f2259360
  • Pointer size: 132 Bytes
  • Size of remote file: 3.1 MB
safety_goggles/simready_usd/textures/T_Plastic_Abs_OcclusionRoughnessMetallic.png ADDED

Git LFS Details

  • SHA256: 1f811bc1c5bb3472e72e13f17c688aacb79667092df00a0f07d69e978f5bc330
  • Pointer size: 131 Bytes
  • Size of remote file: 740 kB
safety_goggles/simready_usd/textures/T_Plastic_Pc_BaseColor.png ADDED

Git LFS Details

  • SHA256: ed648abbf9de4e58f5ee670e71691cf8e59f9514e68faafb5424921808a3d08b
  • Pointer size: 131 Bytes
  • Size of remote file: 125 kB
safety_goggles/simready_usd/textures/T_Plastic_Pc_Normal.png ADDED

Git LFS Details

  • SHA256: 9bce3543296635aacff85130b2a1ff9e15458a04821fa6040aae787294a5e2ed
  • Pointer size: 132 Bytes
  • Size of remote file: 2.08 MB
safety_goggles/simready_usd/textures/T_Plastic_Pc_Roughness.png ADDED

Git LFS Details

  • SHA256: 9fa28d2f07f29d81f7edf25da3a19764b881dabd2ed691f9120f306cb601d2d6
  • Pointer size: 131 Bytes
  • Size of remote file: 286 kB
safety_goggles/simready_usd/textures/T_Plastic_Pp_BaseColor.png ADDED

Git LFS Details

  • SHA256: b7595a4362efa172d08506bc9bb04331cd92023e3e5158dc8acf2d1119135e28
  • Pointer size: 130 Bytes
  • Size of remote file: 16.9 kB
safety_goggles/simready_usd/textures/T_Plastic_Pp_Normal.png ADDED

Git LFS Details

  • SHA256: 001cb2a11521c66934475805060048fb42b3ca7ab0e80e8ee57e623b3802280e
  • Pointer size: 132 Bytes
  • Size of remote file: 2.29 MB
safety_goggles/simready_usd/textures/T_Plastic_Pp_OcclusionRoughnessMetallic.png ADDED

Git LFS Details

  • SHA256: 834af0501ced6d17bc73c935f2e10d982df9b8e9b95513ccb4c06f473486a140
  • Pointer size: 131 Bytes
  • Size of remote file: 284 kB