Datasets:

Modalities:
Image
Size:
< 1K
Libraries:
Datasets
License:
sanghee-lge commited on
Commit
c071e51
·
verified ·
1 Parent(s): 862606e

Add SimReady package: refrigerator_lrfs28xbs

Browse files
Files changed (32) hide show
  1. .gitattributes +1 -0
  2. refrigerator_lrfs28xbs/.metadata/com.nvidia.simready.conformance.Package@1.0.0.json +35 -0
  3. refrigerator_lrfs28xbs/.metadata/com.nvidia.simready.packaging.bom.json +215 -0
  4. refrigerator_lrfs28xbs/.metadata/refrigerator_lrfs28xbs_benchmark.json +2344 -0
  5. refrigerator_lrfs28xbs/.metadata/refrigerator_lrfs28xbs_validation.json +176 -0
  6. refrigerator_lrfs28xbs/com.nvidia.simready.packaging.json +31 -0
  7. refrigerator_lrfs28xbs/simready_usd/.thumbs/256x256/refrigerator_lrfs28xbs.usd.png +3 -0
  8. refrigerator_lrfs28xbs/simready_usd/.thumbs/256x256/refrigerator_lrfs28xbs.usd_light.png +3 -0
  9. refrigerator_lrfs28xbs/simready_usd/materials/OmniGlass.mdl +238 -0
  10. refrigerator_lrfs28xbs/simready_usd/materials/OmniGlass_Opacity.mdl +464 -0
  11. refrigerator_lrfs28xbs/simready_usd/materials/OmniPBR.mdl +396 -0
  12. refrigerator_lrfs28xbs/simready_usd/materials/OmniPBRBase.mdl +470 -0
  13. refrigerator_lrfs28xbs/simready_usd/materials/OmniPBR_ClearCoat.mdl +711 -0
  14. refrigerator_lrfs28xbs/simready_usd/materials/mdl/pbr.mdl +1004 -0
  15. refrigerator_lrfs28xbs/simready_usd/refrigerator_lrfs28xbs.usd +3 -0
  16. refrigerator_lrfs28xbs/simready_usd/textures/Image_0.jpg +3 -0
  17. refrigerator_lrfs28xbs/simready_usd/textures/Image_10.jpg +3 -0
  18. refrigerator_lrfs28xbs/simready_usd/textures/Image_11.jpg +3 -0
  19. refrigerator_lrfs28xbs/simready_usd/textures/Image_13.jpg +3 -0
  20. refrigerator_lrfs28xbs/simready_usd/textures/Image_14.jpg +3 -0
  21. refrigerator_lrfs28xbs/simready_usd/textures/Image_16.jpg +3 -0
  22. refrigerator_lrfs28xbs/simready_usd/textures/Image_17.jpg +3 -0
  23. refrigerator_lrfs28xbs/simready_usd/textures/Image_18.jpg +3 -0
  24. refrigerator_lrfs28xbs/simready_usd/textures/Image_1_tint.png +3 -0
  25. refrigerator_lrfs28xbs/simready_usd/textures/Image_20.jpg +3 -0
  26. refrigerator_lrfs28xbs/simready_usd/textures/Image_22_tint.png +3 -0
  27. refrigerator_lrfs28xbs/simready_usd/textures/Image_23_tint.png +3 -0
  28. refrigerator_lrfs28xbs/simready_usd/textures/Image_24_tint.png +3 -0
  29. refrigerator_lrfs28xbs/simready_usd/textures/Image_25.jpg +3 -0
  30. refrigerator_lrfs28xbs/simready_usd/textures/Image_26.jpg +3 -0
  31. refrigerator_lrfs28xbs/simready_usd/textures/Image_7.jpg +3 -0
  32. refrigerator_lrfs28xbs/simready_usd/textures/Image_8.jpg +3 -0
.gitattributes CHANGED
@@ -90,3 +90,4 @@ laptop_16z90tl/simready_usd/laptop_16z90tl.usd filter=lfs diff=lfs merge=lfs -te
90
  styler_sc5mar4g/simready_usd/styler_sc5mar4g.usd filter=lfs diff=lfs merge=lfs -text
91
  laundry_wke100hwa/simready_usd/laundry_wke100hwa.usd filter=lfs diff=lfs merge=lfs -text
92
  refrigerator_lf31s6360s/simready_usd/refrigerator_lf31s6360s.usd filter=lfs diff=lfs merge=lfs -text
 
 
90
  styler_sc5mar4g/simready_usd/styler_sc5mar4g.usd filter=lfs diff=lfs merge=lfs -text
91
  laundry_wke100hwa/simready_usd/laundry_wke100hwa.usd filter=lfs diff=lfs merge=lfs -text
92
  refrigerator_lf31s6360s/simready_usd/refrigerator_lf31s6360s.usd filter=lfs diff=lfs merge=lfs -text
93
+ refrigerator_lrfs28xbs/simready_usd/refrigerator_lrfs28xbs.usd filter=lfs diff=lfs merge=lfs -text
refrigerator_lrfs28xbs/.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-15T07:37:00",
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
+ }
refrigerator_lrfs28xbs/.metadata/com.nvidia.simready.packaging.bom.json ADDED
@@ -0,0 +1,215 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "format_version": "1.0",
3
+ "items": [
4
+ {
5
+ "relative_path": "simready_usd/.thumbs/256x256/refrigerator_lrfs28xbs.usd.png",
6
+ "size": 21454,
7
+ "hash": {
8
+ "sha256-flat-1mb": "0cfd174343499a218a054303ffa85779a637670a9c7efa9220042967ad365542",
9
+ "sha256": "c892137a9b97aff7b3557f6f5023d6a39ff4eb96b12ccaf74b2c24087bc5bfd1"
10
+ }
11
+ },
12
+ {
13
+ "relative_path": "simready_usd/.thumbs/256x256/refrigerator_lrfs28xbs.usd_light.png",
14
+ "size": 20232,
15
+ "hash": {
16
+ "sha256-flat-1mb": "cabc138c90336ac7829549491df76e715b5f08a593edad8a46ff54699104f855",
17
+ "sha256": "164fbd175b1c1ab2bed98096c48be7e3895cc72793fdd9893e7824a371dcdf51"
18
+ }
19
+ },
20
+ {
21
+ "relative_path": "simready_usd/materials/OmniGlass.mdl",
22
+ "size": 8343,
23
+ "hash": {
24
+ "sha256-flat-1mb": "602da1a0f52acf2dfeaeb4b485e9d4bf9e841d5c27bafed8d564cb7730cf4c1d",
25
+ "sha256": "cc3d21e95997fb16d9435982c4f0a14f3438b1705d2e2b3d3e75454e5b329d61"
26
+ }
27
+ },
28
+ {
29
+ "relative_path": "simready_usd/materials/OmniGlass_Opacity.mdl",
30
+ "size": 15617,
31
+ "hash": {
32
+ "sha256-flat-1mb": "b8d79fd5520d9ccd50c81a2693fd2a76bdc83b3be7837dddb2d4da3969feade4",
33
+ "sha256": "bf0d1b1477fbfc59783914c4cd5f1ddd7fc6b982d941f9b287ef46dca0ad75ab"
34
+ }
35
+ },
36
+ {
37
+ "relative_path": "simready_usd/materials/OmniPBR.mdl",
38
+ "size": 13989,
39
+ "hash": {
40
+ "sha256-flat-1mb": "4d0f54d47017bfbe22cc483cb02c4fe7e2254ddd1119cd618cbaea553639d52c",
41
+ "sha256": "d384fc800f120e3cad1b7ca8837f9c554f9c34343d194813fca27caa493001f2"
42
+ }
43
+ },
44
+ {
45
+ "relative_path": "simready_usd/materials/OmniPBRBase.mdl",
46
+ "size": 17274,
47
+ "hash": {
48
+ "sha256-flat-1mb": "4b54e7fb8bc92191512851b3acc6fc6fa9863f80d98ffece8f0cb9b99f5f4535",
49
+ "sha256": "701f37299b44106842bdbe025de52eedec391e35b038f61c4ed4d25bd98e7db1"
50
+ }
51
+ },
52
+ {
53
+ "relative_path": "simready_usd/materials/OmniPBR_ClearCoat.mdl",
54
+ "size": 27453,
55
+ "hash": {
56
+ "sha256-flat-1mb": "0e35217542eb4ece0205fc09f74eb71aaa6bfb75b3b861d64693d317282df424",
57
+ "sha256": "687fce3f0693146b91495f04407a7c38c78f6b9262b63621f44b4b1f09110469"
58
+ }
59
+ },
60
+ {
61
+ "relative_path": "simready_usd/materials/mdl/pbr.mdl",
62
+ "size": 42240,
63
+ "hash": {
64
+ "sha256-flat-1mb": "0ea567c192a18e6835ba556207f797ebe90850414ac832952c61c571cff22a0d",
65
+ "sha256": "eeed10b53c18d789f94a24a3a6b996c49668ae2d5b6a909bae3420f2beb16fc8"
66
+ }
67
+ },
68
+ {
69
+ "relative_path": "simready_usd/refrigerator_lrfs28xbs.usd",
70
+ "size": 15787868,
71
+ "hash": {
72
+ "sha256-flat-1mb": "b1012a9df78ad5941bb2ab8fa003bad5a5042792025f6178a5029cf7313ef4d2",
73
+ "sha256": "7639bf71396a2a0a6251d598b35d9ed0d53f89e48357dc76f5b844020dc4a7bd",
74
+ "sha256-first1m": "471b579ba980c9d096c0d8c0d068a685c1a15a252dbe28439b123ea0a1383a32"
75
+ }
76
+ },
77
+ {
78
+ "relative_path": "simready_usd/textures/Image_0.jpg",
79
+ "size": 111755,
80
+ "hash": {
81
+ "sha256-flat-1mb": "b9a57f6b338fe7a39a12e9b47bfb9658195f6df4abd9a3084790e16cac32f8b6",
82
+ "sha256": "28b6d45ae2f0692dc0249c5c9bbc3510632e1b11320ca3af79bfcc1f90c9e923"
83
+ }
84
+ },
85
+ {
86
+ "relative_path": "simready_usd/textures/Image_10.jpg",
87
+ "size": 13884,
88
+ "hash": {
89
+ "sha256-flat-1mb": "b4796263e8a73c475d58f08ecaee50c52f6fad5426c44f47158ca830e31f011e",
90
+ "sha256": "95b20fdbace9fe06f33b01fe9892831d885aed40bf33d489f7c0d30b73abea82"
91
+ }
92
+ },
93
+ {
94
+ "relative_path": "simready_usd/textures/Image_11.jpg",
95
+ "size": 26548,
96
+ "hash": {
97
+ "sha256-flat-1mb": "4eeb839031c6a9ff165f20367038fa4363fde9e44565c29af60dd69fc2262204",
98
+ "sha256": "0b416ccc07fc4cb8c47e6e93d8d48ad1503bae82fa432feb69b2e1629b583fe6"
99
+ }
100
+ },
101
+ {
102
+ "relative_path": "simready_usd/textures/Image_13.jpg",
103
+ "size": 41082,
104
+ "hash": {
105
+ "sha256-flat-1mb": "198609232783a82297cdc69d8763e04d0491e638e36b3e49961ee303c4ab43e0",
106
+ "sha256": "841e225528f38e717ede7b15ab72c19decebe08c94ffbc142b153ddd11627fdd"
107
+ }
108
+ },
109
+ {
110
+ "relative_path": "simready_usd/textures/Image_14.jpg",
111
+ "size": 21555,
112
+ "hash": {
113
+ "sha256-flat-1mb": "2d3fd806bfebd181abdb8cdb1667c5f24a6ccf06b7ef1066957e44f7a6231537",
114
+ "sha256": "3e821924e41de060e0f1bfc7a66ea56d79944b92a752423edee927b275443963"
115
+ }
116
+ },
117
+ {
118
+ "relative_path": "simready_usd/textures/Image_16.jpg",
119
+ "size": 28940,
120
+ "hash": {
121
+ "sha256-flat-1mb": "2d6e6008810243f9546176b0ee560b73cd94c6da65648ba9496588db17dc8965",
122
+ "sha256": "b846e9e513ea6a30f0969e668e97250c1a12b15f580bee1d31943cee12e4bc8f"
123
+ }
124
+ },
125
+ {
126
+ "relative_path": "simready_usd/textures/Image_17.jpg",
127
+ "size": 6230,
128
+ "hash": {
129
+ "sha256-flat-1mb": "4326cebba3bd078f38f9979def53cabace5c2c6afdf855eabea98e0e0a504cad",
130
+ "sha256": "3804bff37cab4baf1c5584c9c2afabdf1ca16f29aa0535e9bf80c7e54dd2e1de"
131
+ }
132
+ },
133
+ {
134
+ "relative_path": "simready_usd/textures/Image_18.jpg",
135
+ "size": 2089,
136
+ "hash": {
137
+ "sha256-flat-1mb": "77624c54ba63492e75ea7d60131a514621987762367d110ccb485ddd067d9a66",
138
+ "sha256": "04b4cd517e6637949aa8a5a8a780da87bc87cd6ae7ef17b53ff15bb49d7d16dc"
139
+ }
140
+ },
141
+ {
142
+ "relative_path": "simready_usd/textures/Image_1_tint.png",
143
+ "size": 67965,
144
+ "hash": {
145
+ "sha256-flat-1mb": "e48ee8054b395ab35b1e287a6b4036ee2dfbd0d173f0580708424022712923a5",
146
+ "sha256": "804616da9569012abb2bf13a5042afc7ecbaa71acbd2fe49da5578aae57262d1"
147
+ }
148
+ },
149
+ {
150
+ "relative_path": "simready_usd/textures/Image_20.jpg",
151
+ "size": 2479,
152
+ "hash": {
153
+ "sha256-flat-1mb": "039af3b93c23f7063e68a2ffeace54026170e00f38cd61ce47b1d54ec88018d8",
154
+ "sha256": "ab2644517e58b4887ac256bee54f20cb6d4a1515f06607c816546f391820d03a"
155
+ }
156
+ },
157
+ {
158
+ "relative_path": "simready_usd/textures/Image_22_tint.png",
159
+ "size": 15788,
160
+ "hash": {
161
+ "sha256-flat-1mb": "ef2983fb8c1dd2a28c000859c0fe608d40194b6a92fa16ea1bbaf409b21ff5ae",
162
+ "sha256": "355563e07282f2ace0d3a469d0e1bce758c027ea0b18e5e8b95ba707ca68d5be"
163
+ }
164
+ },
165
+ {
166
+ "relative_path": "simready_usd/textures/Image_23_tint.png",
167
+ "size": 30977,
168
+ "hash": {
169
+ "sha256-flat-1mb": "b8f29d62244c4e79cba08e2aa58c44769d643642a2c82026dbc63f64922c05cb",
170
+ "sha256": "04ef35c8f2d5ee27ab2d73959b5cc9729dffab15b057a1ea09b13c61e61c3d6f"
171
+ }
172
+ },
173
+ {
174
+ "relative_path": "simready_usd/textures/Image_24_tint.png",
175
+ "size": 1559152,
176
+ "hash": {
177
+ "sha256-flat-1mb": "c6f75f2ee1a36ca750671fd656069c6fd3c94a86c78c73cb9c300cfa0a3e0152",
178
+ "sha256": "5733b3834252b366bea0c615789733952b585a10581dbaa2a4cb7ad4731b115f",
179
+ "sha256-first1m": "77d4940669238e18761f0de8fd8a11066522af3128ba790cd30309225c5792e3"
180
+ }
181
+ },
182
+ {
183
+ "relative_path": "simready_usd/textures/Image_25.jpg",
184
+ "size": 70136,
185
+ "hash": {
186
+ "sha256-flat-1mb": "9c5811b0704ff0cdfc0d567c9938bf816665bc42c7fe30927478a6939fe85908",
187
+ "sha256": "f9541644fdf0e73e96772430b554af2066aa9327656158d6be543699a02a77b1"
188
+ }
189
+ },
190
+ {
191
+ "relative_path": "simready_usd/textures/Image_26.jpg",
192
+ "size": 70339,
193
+ "hash": {
194
+ "sha256-flat-1mb": "47e7fb4afbd35e2188863de0dd22802faf4814b05886398d64b24b9a1a86ad93",
195
+ "sha256": "cd1291e97a115bf1e80753c6e471ef73839d5550d897e2d3f378c2829b2e18dc"
196
+ }
197
+ },
198
+ {
199
+ "relative_path": "simready_usd/textures/Image_7.jpg",
200
+ "size": 94945,
201
+ "hash": {
202
+ "sha256-flat-1mb": "c406f4c6f3b68ca838081b99a8203ed0cecc75bbf7644800d020122d4cd6853f",
203
+ "sha256": "4158b68720ae6fb2faf812a21b35a9e11a6ba3fde06fdaa18e4a0d46ac5a9eae"
204
+ }
205
+ },
206
+ {
207
+ "relative_path": "simready_usd/textures/Image_8.jpg",
208
+ "size": 10378,
209
+ "hash": {
210
+ "sha256-flat-1mb": "407ee718faf950fdafc3ead2bd6f9edfe97ae18bb140c18f8ee00727476729ba",
211
+ "sha256": "e20427938533714732fda6230435cf4848ea039f1bfd87618206d8b40cc54cf6"
212
+ }
213
+ }
214
+ ]
215
+ }
refrigerator_lrfs28xbs/.metadata/refrigerator_lrfs28xbs_benchmark.json ADDED
@@ -0,0 +1,2344 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": "1.0",
3
+ "asset": "refrigerator_lrfs28xbs",
4
+ "run_timestamp": "2026-10-15T07:36:59Z",
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": 8.332,
14
+ "message": "",
15
+ "metrics": {
16
+ "_timing_capture_frame_total_s": {
17
+ "value": 1.282,
18
+ "unit": null
19
+ },
20
+ "_timing_capture_frame_count": {
21
+ "value": 16,
22
+ "unit": null
23
+ },
24
+ "_timing_capture_frame_avg_ms": {
25
+ "value": 80.16,
26
+ "unit": null
27
+ },
28
+ "_timing_encode_video_total_s": {
29
+ "value": 0.862,
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": 5.8e-05,
46
+ "unit": null
47
+ },
48
+ "culling_xz_mean_diff": {
49
+ "value": 1.3e-05,
50
+ "unit": null
51
+ },
52
+ "culling_xz_worst_angle": {
53
+ "value": 135.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 \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/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 \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/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 \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/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 \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/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": "6.1.0.0",
133
+ "status": "pass",
134
+ "passed": true,
135
+ "duration": 5.416,
136
+ "message": "",
137
+ "metrics": {
138
+ "_timing_capture_frame_total_s": {
139
+ "value": 1.335,
140
+ "unit": null
141
+ },
142
+ "_timing_capture_frame_count": {
143
+ "value": 16,
144
+ "unit": null
145
+ },
146
+ "_timing_capture_frame_avg_ms": {
147
+ "value": 83.42,
148
+ "unit": null
149
+ },
150
+ "_timing_encode_video_total_s": {
151
+ "value": 0.826,
152
+ "unit": null
153
+ },
154
+ "_timing_encode_video_count": {
155
+ "value": 2,
156
+ "unit": null
157
+ },
158
+ "_render_blank_retry_count": {
159
+ "value": 0,
160
+ "unit": null
161
+ },
162
+ "_render_blank_retry_unrecovered": {
163
+ "value": 0,
164
+ "unit": null
165
+ },
166
+ "culling_xz_max_diff": {
167
+ "value": 9.8e-05,
168
+ "unit": null
169
+ },
170
+ "culling_xz_mean_diff": {
171
+ "value": 1.7e-05,
172
+ "unit": null
173
+ },
174
+ "culling_xz_worst_angle": {
175
+ "value": 135.0,
176
+ "unit": null
177
+ },
178
+ "culling_xz_passed": {
179
+ "value": 1,
180
+ "unit": null
181
+ }
182
+ },
183
+ "kit_logs": [
184
+ {
185
+ "level": "error",
186
+ "channel": "omni.kit.app._impl",
187
+ "message": "[py stderr]: Traceback (most recent call last):"
188
+ },
189
+ {
190
+ "level": "error",
191
+ "channel": "omni.kit.app._impl",
192
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/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"
193
+ },
194
+ {
195
+ "level": "error",
196
+ "channel": "omni.kit.app._impl",
197
+ "message": "[py stderr]: self.__drawable_changed_fn(texture[\"rp_resource\"], presentation_key)"
198
+ },
199
+ {
200
+ "level": "error",
201
+ "channel": "omni.kit.app._impl",
202
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/widget.py\", line 516, in __set_image_data"
203
+ },
204
+ {
205
+ "level": "error",
206
+ "channel": "omni.kit.app._impl",
207
+ "message": "[py stderr]: vp_api._sync_viewport_api(camera, canvas_size, vp_api.time, view, projection, force_update=True) # noqa PLW0212"
208
+ },
209
+ {
210
+ "level": "error",
211
+ "channel": "omni.kit.app._impl",
212
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
213
+ },
214
+ {
215
+ "level": "error",
216
+ "channel": "omni.kit.app._impl",
217
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 546, in _sync_viewport_api"
218
+ },
219
+ {
220
+ "level": "error",
221
+ "channel": "omni.kit.app._impl",
222
+ "message": "[py stderr]: self.__projection = self._conform_projection(policy, camera, image_aspect, canvas_aspect, projection)"
223
+ },
224
+ {
225
+ "level": "error",
226
+ "channel": "omni.kit.app._impl",
227
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
228
+ },
229
+ {
230
+ "level": "error",
231
+ "channel": "omni.kit.app._impl",
232
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 476, in _conform_projection"
233
+ },
234
+ {
235
+ "level": "error",
236
+ "channel": "omni.kit.app._impl",
237
+ "message": "[py stderr]: gf_camera = camera.GetCamera(self.__time)"
238
+ },
239
+ {
240
+ "level": "error",
241
+ "channel": "omni.kit.app._impl",
242
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^"
243
+ },
244
+ {
245
+ "level": "error",
246
+ "channel": "omni.kit.app._impl",
247
+ "message": "[py stderr]: AttributeError: 'NoneType' object has no attribute 'GetCamera'"
248
+ }
249
+ ]
250
+ },
251
+ {
252
+ "test_name": "ground_drop",
253
+ "engine": "isaac_sim",
254
+ "engine_version": "6.1.0.0",
255
+ "status": "pass",
256
+ "passed": true,
257
+ "duration": 20.804,
258
+ "message": "",
259
+ "metrics": {
260
+ "ground_drop_initial_z_min": {
261
+ "value": 2.6669,
262
+ "unit": null
263
+ },
264
+ "ground_drop_bbox_height": {
265
+ "value": 1.7779,
266
+ "unit": null
267
+ },
268
+ "ground_drop_effective_fall": {
269
+ "value": 2.5669,
270
+ "unit": null
271
+ },
272
+ "_timing_capture_frame_total_s": {
273
+ "value": 5.728,
274
+ "unit": null
275
+ },
276
+ "_timing_capture_frame_count": {
277
+ "value": 49,
278
+ "unit": null
279
+ },
280
+ "_timing_capture_frame_avg_ms": {
281
+ "value": 116.9,
282
+ "unit": null
283
+ },
284
+ "_timing_encode_video_total_s": {
285
+ "value": 1.119,
286
+ "unit": null
287
+ },
288
+ "_timing_encode_video_count": {
289
+ "value": 1,
290
+ "unit": null
291
+ },
292
+ "_render_blank_retry_count": {
293
+ "value": 0,
294
+ "unit": null
295
+ },
296
+ "_render_blank_retry_unrecovered": {
297
+ "value": 0,
298
+ "unit": null
299
+ },
300
+ "ground_drop_touched": {
301
+ "value": 1,
302
+ "unit": null
303
+ },
304
+ "ground_drop_penetrated": {
305
+ "value": 0,
306
+ "unit": null
307
+ },
308
+ "ground_drop_stable": {
309
+ "value": 1,
310
+ "unit": null
311
+ },
312
+ "ground_drop_passed": {
313
+ "value": 1,
314
+ "unit": null
315
+ },
316
+ "ground_drop_touch_time": {
317
+ "value": 0.713,
318
+ "unit": null
319
+ },
320
+ "ground_drop_rest_time": {
321
+ "value": 2.742,
322
+ "unit": null
323
+ }
324
+ },
325
+ "kit_logs": []
326
+ },
327
+ {
328
+ "test_name": "joint_movement",
329
+ "engine": "isaac_sim",
330
+ "engine_version": "6.1.0.0",
331
+ "status": "pass",
332
+ "passed": true,
333
+ "duration": 40.539,
334
+ "message": "",
335
+ "metrics": {
336
+ "_timing_capture_frame_total_s": {
337
+ "value": 5.801,
338
+ "unit": null
339
+ },
340
+ "_timing_capture_frame_count": {
341
+ "value": 45,
342
+ "unit": null
343
+ },
344
+ "_timing_capture_frame_avg_ms": {
345
+ "value": 128.91,
346
+ "unit": null
347
+ },
348
+ "_timing_encode_video_total_s": {
349
+ "value": 1.111,
350
+ "unit": null
351
+ },
352
+ "_timing_encode_video_count": {
353
+ "value": 1,
354
+ "unit": null
355
+ },
356
+ "_render_blank_retry_count": {
357
+ "value": 0,
358
+ "unit": null
359
+ },
360
+ "_render_blank_retry_unrecovered": {
361
+ "value": 0,
362
+ "unit": null
363
+ },
364
+ "jm_joint_LeftDoor_joint_rot_deg": {
365
+ "value": 150.0,
366
+ "unit": null
367
+ },
368
+ "jm_joint_LeftDoor_joint_trans_pct": {
369
+ "value": 81.0,
370
+ "unit": null
371
+ },
372
+ "jm_joint_LeftDoor_joint_bbox_m": {
373
+ "value": 1.2151,
374
+ "unit": null
375
+ },
376
+ "jm_joint_LeftDoor_joint_pct_of_travel": {
377
+ "value": 100.0,
378
+ "unit": null
379
+ },
380
+ "jm_joint_RightDoor_joint_rot_deg": {
381
+ "value": 150.0,
382
+ "unit": null
383
+ },
384
+ "jm_joint_RightDoor_joint_trans_pct": {
385
+ "value": 80.89,
386
+ "unit": null
387
+ },
388
+ "jm_joint_RightDoor_joint_bbox_m": {
389
+ "value": 1.2244,
390
+ "unit": null
391
+ },
392
+ "jm_joint_RightDoor_joint_pct_of_travel": {
393
+ "value": 100.0,
394
+ "unit": null
395
+ },
396
+ "jm_joint_FreezerDrawer_joint_rot_deg": {
397
+ "value": 0.0,
398
+ "unit": null
399
+ },
400
+ "jm_joint_FreezerDrawer_joint_trans_pct": {
401
+ "value": 23.88,
402
+ "unit": null
403
+ },
404
+ "jm_joint_FreezerDrawer_joint_bbox_m": {
405
+ "value": 1.3221,
406
+ "unit": null
407
+ },
408
+ "jm_joint_FreezerDrawer_joint_pct_of_travel": {
409
+ "value": 85.3,
410
+ "unit": null
411
+ },
412
+ "jm_joint_LowerCrisper_joint_rot_deg": {
413
+ "value": 0.0,
414
+ "unit": null
415
+ },
416
+ "jm_joint_LowerCrisper_joint_trans_pct": {
417
+ "value": 35.25,
418
+ "unit": null
419
+ },
420
+ "jm_joint_LowerCrisper_joint_bbox_m": {
421
+ "value": 0.9418,
422
+ "unit": null
423
+ },
424
+ "jm_joint_LowerCrisper_joint_pct_of_travel": {
425
+ "value": 83.8,
426
+ "unit": null
427
+ },
428
+ "jm_joint_UpperCrisper_joint_rot_deg": {
429
+ "value": 0.001,
430
+ "unit": null
431
+ },
432
+ "jm_joint_UpperCrisper_joint_trans_pct": {
433
+ "value": 35.91,
434
+ "unit": null
435
+ },
436
+ "jm_joint_UpperCrisper_joint_bbox_m": {
437
+ "value": 0.9121,
438
+ "unit": null
439
+ },
440
+ "jm_joint_UpperCrisper_joint_pct_of_travel": {
441
+ "value": 100.0,
442
+ "unit": null
443
+ },
444
+ "jm_joint_UpperLeftCrisper_joint_rot_deg": {
445
+ "value": 0.0,
446
+ "unit": null
447
+ },
448
+ "jm_joint_UpperLeftCrisper_joint_trans_pct": {
449
+ "value": 40.71,
450
+ "unit": null
451
+ },
452
+ "jm_joint_UpperLeftCrisper_joint_bbox_m": {
453
+ "value": 0.6151,
454
+ "unit": null
455
+ },
456
+ "jm_joint_UpperLeftCrisper_joint_pct_of_travel": {
457
+ "value": 100.0,
458
+ "unit": null
459
+ },
460
+ "jm_joint_UpperRightCrisper_joint_rot_deg": {
461
+ "value": 0.001,
462
+ "unit": null
463
+ },
464
+ "jm_joint_UpperRightCrisper_joint_trans_pct": {
465
+ "value": 40.67,
466
+ "unit": null
467
+ },
468
+ "jm_joint_UpperRightCrisper_joint_bbox_m": {
469
+ "value": 0.6157,
470
+ "unit": null
471
+ },
472
+ "jm_joint_UpperRightCrisper_joint_pct_of_travel": {
473
+ "value": 100.0,
474
+ "unit": null
475
+ },
476
+ "jm_joints_total": {
477
+ "value": 7,
478
+ "unit": null
479
+ },
480
+ "jm_joints_passed": {
481
+ "value": 7,
482
+ "unit": null
483
+ },
484
+ "jm_joints_failed": {
485
+ "value": 0,
486
+ "unit": null
487
+ },
488
+ "jm_joint_LeftDoor_joint_status": {
489
+ "value": "passed",
490
+ "unit": null
491
+ },
492
+ "jm_joint_RightDoor_joint_status": {
493
+ "value": "passed",
494
+ "unit": null
495
+ },
496
+ "jm_joint_FreezerDrawer_joint_status": {
497
+ "value": "passed",
498
+ "unit": null
499
+ },
500
+ "jm_joint_LowerCrisper_joint_status": {
501
+ "value": "passed",
502
+ "unit": null
503
+ },
504
+ "jm_joint_UpperCrisper_joint_status": {
505
+ "value": "passed",
506
+ "unit": null
507
+ },
508
+ "jm_joint_UpperLeftCrisper_joint_status": {
509
+ "value": "passed",
510
+ "unit": null
511
+ },
512
+ "jm_joint_UpperRightCrisper_joint_status": {
513
+ "value": "passed",
514
+ "unit": null
515
+ }
516
+ },
517
+ "kit_logs": [
518
+ {
519
+ "level": "error",
520
+ "channel": "omni.kit.app._impl",
521
+ "message": "[py stderr]: Traceback (most recent call last):"
522
+ },
523
+ {
524
+ "level": "error",
525
+ "channel": "omni.kit.app._impl",
526
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/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"
527
+ },
528
+ {
529
+ "level": "error",
530
+ "channel": "omni.kit.app._impl",
531
+ "message": "[py stderr]: self.__drawable_changed_fn(texture[\"rp_resource\"], presentation_key)"
532
+ },
533
+ {
534
+ "level": "error",
535
+ "channel": "omni.kit.app._impl",
536
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/widget.py\", line 516, in __set_image_data"
537
+ },
538
+ {
539
+ "level": "error",
540
+ "channel": "omni.kit.app._impl",
541
+ "message": "[py stderr]: vp_api._sync_viewport_api(camera, canvas_size, vp_api.time, view, projection, force_update=True) # noqa PLW0212"
542
+ },
543
+ {
544
+ "level": "error",
545
+ "channel": "omni.kit.app._impl",
546
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
547
+ },
548
+ {
549
+ "level": "error",
550
+ "channel": "omni.kit.app._impl",
551
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 546, in _sync_viewport_api"
552
+ },
553
+ {
554
+ "level": "error",
555
+ "channel": "omni.kit.app._impl",
556
+ "message": "[py stderr]: self.__projection = self._conform_projection(policy, camera, image_aspect, canvas_aspect, projection)"
557
+ },
558
+ {
559
+ "level": "error",
560
+ "channel": "omni.kit.app._impl",
561
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
562
+ },
563
+ {
564
+ "level": "error",
565
+ "channel": "omni.kit.app._impl",
566
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 476, in _conform_projection"
567
+ },
568
+ {
569
+ "level": "error",
570
+ "channel": "omni.kit.app._impl",
571
+ "message": "[py stderr]: gf_camera = camera.GetCamera(self.__time)"
572
+ },
573
+ {
574
+ "level": "error",
575
+ "channel": "omni.kit.app._impl",
576
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^"
577
+ },
578
+ {
579
+ "level": "error",
580
+ "channel": "omni.kit.app._impl",
581
+ "message": "[py stderr]: AttributeError: 'NoneType' object has no attribute 'GetCamera'"
582
+ }
583
+ ]
584
+ },
585
+ {
586
+ "test_name": "light_response",
587
+ "engine": "isaac_sim",
588
+ "engine_version": "6.1.0.0",
589
+ "status": "pass",
590
+ "passed": true,
591
+ "duration": 7.646,
592
+ "message": "",
593
+ "metrics": {
594
+ "_timing_capture_frame_total_s": {
595
+ "value": 2.295,
596
+ "unit": null
597
+ },
598
+ "_timing_capture_frame_count": {
599
+ "value": 30,
600
+ "unit": null
601
+ },
602
+ "_timing_capture_frame_avg_ms": {
603
+ "value": 76.49,
604
+ "unit": null
605
+ },
606
+ "_timing_encode_video_total_s": {
607
+ "value": 0.833,
608
+ "unit": null
609
+ },
610
+ "_timing_encode_video_count": {
611
+ "value": 1,
612
+ "unit": null
613
+ },
614
+ "_render_blank_retry_count": {
615
+ "value": 0,
616
+ "unit": null
617
+ },
618
+ "_render_blank_retry_unrecovered": {
619
+ "value": 0,
620
+ "unit": null
621
+ },
622
+ "light_response_variation_ratio": {
623
+ "value": 0.551724,
624
+ "unit": null
625
+ },
626
+ "light_response_blank_ratio": {
627
+ "value": 0.0,
628
+ "unit": null
629
+ },
630
+ "light_response_blank_frames": {
631
+ "value": 0,
632
+ "unit": null
633
+ },
634
+ "light_response_total_frames": {
635
+ "value": 30,
636
+ "unit": null
637
+ },
638
+ "light_response_total_pairs": {
639
+ "value": 29,
640
+ "unit": null
641
+ },
642
+ "light_response_different_pairs": {
643
+ "value": 16,
644
+ "unit": null
645
+ },
646
+ "light_response_passed": {
647
+ "value": 1,
648
+ "unit": null
649
+ },
650
+ "light_response_max_pair_change": {
651
+ "value": 0.759961,
652
+ "unit": null
653
+ },
654
+ "light_response_min_pair_change": {
655
+ "value": 0.001835,
656
+ "unit": null
657
+ }
658
+ },
659
+ "kit_logs": [
660
+ {
661
+ "level": "error",
662
+ "channel": "omni.kit.app._impl",
663
+ "message": "[py stderr]: Traceback (most recent call last):"
664
+ },
665
+ {
666
+ "level": "error",
667
+ "channel": "omni.kit.app._impl",
668
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/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"
669
+ },
670
+ {
671
+ "level": "error",
672
+ "channel": "omni.kit.app._impl",
673
+ "message": "[py stderr]: self.__drawable_changed_fn(texture[\"rp_resource\"], presentation_key)"
674
+ },
675
+ {
676
+ "level": "error",
677
+ "channel": "omni.kit.app._impl",
678
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/widget.py\", line 516, in __set_image_data"
679
+ },
680
+ {
681
+ "level": "error",
682
+ "channel": "omni.kit.app._impl",
683
+ "message": "[py stderr]: vp_api._sync_viewport_api(camera, canvas_size, vp_api.time, view, projection, force_update=True) # noqa PLW0212"
684
+ },
685
+ {
686
+ "level": "error",
687
+ "channel": "omni.kit.app._impl",
688
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
689
+ },
690
+ {
691
+ "level": "error",
692
+ "channel": "omni.kit.app._impl",
693
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 546, in _sync_viewport_api"
694
+ },
695
+ {
696
+ "level": "error",
697
+ "channel": "omni.kit.app._impl",
698
+ "message": "[py stderr]: self.__projection = self._conform_projection(policy, camera, image_aspect, canvas_aspect, projection)"
699
+ },
700
+ {
701
+ "level": "error",
702
+ "channel": "omni.kit.app._impl",
703
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
704
+ },
705
+ {
706
+ "level": "error",
707
+ "channel": "omni.kit.app._impl",
708
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 476, in _conform_projection"
709
+ },
710
+ {
711
+ "level": "error",
712
+ "channel": "omni.kit.app._impl",
713
+ "message": "[py stderr]: gf_camera = camera.GetCamera(self.__time)"
714
+ },
715
+ {
716
+ "level": "error",
717
+ "channel": "omni.kit.app._impl",
718
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^"
719
+ },
720
+ {
721
+ "level": "error",
722
+ "channel": "omni.kit.app._impl",
723
+ "message": "[py stderr]: AttributeError: 'NoneType' object has no attribute 'GetCamera'"
724
+ }
725
+ ]
726
+ },
727
+ {
728
+ "test_name": "light_response",
729
+ "engine": "isaac_sim_newton",
730
+ "engine_version": "6.1.0.0",
731
+ "status": "pass",
732
+ "passed": true,
733
+ "duration": 7.572,
734
+ "message": "",
735
+ "metrics": {
736
+ "_timing_capture_frame_total_s": {
737
+ "value": 2.329,
738
+ "unit": null
739
+ },
740
+ "_timing_capture_frame_count": {
741
+ "value": 30,
742
+ "unit": null
743
+ },
744
+ "_timing_capture_frame_avg_ms": {
745
+ "value": 77.62,
746
+ "unit": null
747
+ },
748
+ "_timing_encode_video_total_s": {
749
+ "value": 0.721,
750
+ "unit": null
751
+ },
752
+ "_timing_encode_video_count": {
753
+ "value": 1,
754
+ "unit": null
755
+ },
756
+ "_render_blank_retry_count": {
757
+ "value": 0,
758
+ "unit": null
759
+ },
760
+ "_render_blank_retry_unrecovered": {
761
+ "value": 0,
762
+ "unit": null
763
+ },
764
+ "light_response_variation_ratio": {
765
+ "value": 0.551724,
766
+ "unit": null
767
+ },
768
+ "light_response_blank_ratio": {
769
+ "value": 0.0,
770
+ "unit": null
771
+ },
772
+ "light_response_blank_frames": {
773
+ "value": 0,
774
+ "unit": null
775
+ },
776
+ "light_response_total_frames": {
777
+ "value": 30,
778
+ "unit": null
779
+ },
780
+ "light_response_total_pairs": {
781
+ "value": 29,
782
+ "unit": null
783
+ },
784
+ "light_response_different_pairs": {
785
+ "value": 16,
786
+ "unit": null
787
+ },
788
+ "light_response_passed": {
789
+ "value": 1,
790
+ "unit": null
791
+ },
792
+ "light_response_max_pair_change": {
793
+ "value": 0.761276,
794
+ "unit": null
795
+ },
796
+ "light_response_min_pair_change": {
797
+ "value": 0.001946,
798
+ "unit": null
799
+ }
800
+ },
801
+ "kit_logs": [
802
+ {
803
+ "level": "error",
804
+ "channel": "omni.kit.app._impl",
805
+ "message": "[py stderr]: Traceback (most recent call last):"
806
+ },
807
+ {
808
+ "level": "error",
809
+ "channel": "omni.kit.app._impl",
810
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/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"
811
+ },
812
+ {
813
+ "level": "error",
814
+ "channel": "omni.kit.app._impl",
815
+ "message": "[py stderr]: self.__drawable_changed_fn(texture[\"rp_resource\"], presentation_key)"
816
+ },
817
+ {
818
+ "level": "error",
819
+ "channel": "omni.kit.app._impl",
820
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/widget.py\", line 516, in __set_image_data"
821
+ },
822
+ {
823
+ "level": "error",
824
+ "channel": "omni.kit.app._impl",
825
+ "message": "[py stderr]: vp_api._sync_viewport_api(camera, canvas_size, vp_api.time, view, projection, force_update=True) # noqa PLW0212"
826
+ },
827
+ {
828
+ "level": "error",
829
+ "channel": "omni.kit.app._impl",
830
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
831
+ },
832
+ {
833
+ "level": "error",
834
+ "channel": "omni.kit.app._impl",
835
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 546, in _sync_viewport_api"
836
+ },
837
+ {
838
+ "level": "error",
839
+ "channel": "omni.kit.app._impl",
840
+ "message": "[py stderr]: self.__projection = self._conform_projection(policy, camera, image_aspect, canvas_aspect, projection)"
841
+ },
842
+ {
843
+ "level": "error",
844
+ "channel": "omni.kit.app._impl",
845
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
846
+ },
847
+ {
848
+ "level": "error",
849
+ "channel": "omni.kit.app._impl",
850
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 476, in _conform_projection"
851
+ },
852
+ {
853
+ "level": "error",
854
+ "channel": "omni.kit.app._impl",
855
+ "message": "[py stderr]: gf_camera = camera.GetCamera(self.__time)"
856
+ },
857
+ {
858
+ "level": "error",
859
+ "channel": "omni.kit.app._impl",
860
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^"
861
+ },
862
+ {
863
+ "level": "error",
864
+ "channel": "omni.kit.app._impl",
865
+ "message": "[py stderr]: AttributeError: 'NoneType' object has no attribute 'GetCamera'"
866
+ }
867
+ ]
868
+ },
869
+ {
870
+ "test_name": "normals_xz",
871
+ "engine": "isaac_sim",
872
+ "engine_version": "6.1.0.0",
873
+ "status": "pass",
874
+ "passed": true,
875
+ "duration": 2.994,
876
+ "message": "",
877
+ "metrics": {
878
+ "_timing_capture_frame_total_s": {
879
+ "value": 0.561,
880
+ "unit": null
881
+ },
882
+ "_timing_capture_frame_count": {
883
+ "value": 8,
884
+ "unit": null
885
+ },
886
+ "_timing_capture_frame_avg_ms": {
887
+ "value": 70.06,
888
+ "unit": null
889
+ },
890
+ "_timing_encode_video_total_s": {
891
+ "value": 0.418,
892
+ "unit": null
893
+ },
894
+ "_timing_encode_video_count": {
895
+ "value": 1,
896
+ "unit": null
897
+ },
898
+ "_render_blank_retry_count": {
899
+ "value": 0,
900
+ "unit": null
901
+ },
902
+ "_render_blank_retry_unrecovered": {
903
+ "value": 0,
904
+ "unit": null
905
+ },
906
+ "normals_xz_avg_dark": {
907
+ "value": 0.000847,
908
+ "unit": null
909
+ },
910
+ "normals_xz_max_dark": {
911
+ "value": 0.006299,
912
+ "unit": null
913
+ },
914
+ "normals_xz_problem_frames": {
915
+ "value": 0,
916
+ "unit": null
917
+ },
918
+ "normals_xz_passed": {
919
+ "value": 1,
920
+ "unit": null
921
+ }
922
+ },
923
+ "kit_logs": [
924
+ {
925
+ "level": "error",
926
+ "channel": "omni.kit.app._impl",
927
+ "message": "[py stderr]: Traceback (most recent call last):"
928
+ },
929
+ {
930
+ "level": "error",
931
+ "channel": "omni.kit.app._impl",
932
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/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"
933
+ },
934
+ {
935
+ "level": "error",
936
+ "channel": "omni.kit.app._impl",
937
+ "message": "[py stderr]: self.__drawable_changed_fn(texture[\"rp_resource\"], presentation_key)"
938
+ },
939
+ {
940
+ "level": "error",
941
+ "channel": "omni.kit.app._impl",
942
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/widget.py\", line 516, in __set_image_data"
943
+ },
944
+ {
945
+ "level": "error",
946
+ "channel": "omni.kit.app._impl",
947
+ "message": "[py stderr]: vp_api._sync_viewport_api(camera, canvas_size, vp_api.time, view, projection, force_update=True) # noqa PLW0212"
948
+ },
949
+ {
950
+ "level": "error",
951
+ "channel": "omni.kit.app._impl",
952
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
953
+ },
954
+ {
955
+ "level": "error",
956
+ "channel": "omni.kit.app._impl",
957
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 546, in _sync_viewport_api"
958
+ },
959
+ {
960
+ "level": "error",
961
+ "channel": "omni.kit.app._impl",
962
+ "message": "[py stderr]: self.__projection = self._conform_projection(policy, camera, image_aspect, canvas_aspect, projection)"
963
+ },
964
+ {
965
+ "level": "error",
966
+ "channel": "omni.kit.app._impl",
967
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
968
+ },
969
+ {
970
+ "level": "error",
971
+ "channel": "omni.kit.app._impl",
972
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 476, in _conform_projection"
973
+ },
974
+ {
975
+ "level": "error",
976
+ "channel": "omni.kit.app._impl",
977
+ "message": "[py stderr]: gf_camera = camera.GetCamera(self.__time)"
978
+ },
979
+ {
980
+ "level": "error",
981
+ "channel": "omni.kit.app._impl",
982
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^"
983
+ },
984
+ {
985
+ "level": "error",
986
+ "channel": "omni.kit.app._impl",
987
+ "message": "[py stderr]: AttributeError: 'NoneType' object has no attribute 'GetCamera'"
988
+ }
989
+ ]
990
+ },
991
+ {
992
+ "test_name": "normals_xz",
993
+ "engine": "isaac_sim_newton",
994
+ "engine_version": "6.1.0.0",
995
+ "status": "pass",
996
+ "passed": true,
997
+ "duration": 3.315,
998
+ "message": "",
999
+ "metrics": {
1000
+ "_timing_capture_frame_total_s": {
1001
+ "value": 0.675,
1002
+ "unit": null
1003
+ },
1004
+ "_timing_capture_frame_count": {
1005
+ "value": 8,
1006
+ "unit": null
1007
+ },
1008
+ "_timing_capture_frame_avg_ms": {
1009
+ "value": 84.32,
1010
+ "unit": null
1011
+ },
1012
+ "_timing_encode_video_total_s": {
1013
+ "value": 0.381,
1014
+ "unit": null
1015
+ },
1016
+ "_timing_encode_video_count": {
1017
+ "value": 1,
1018
+ "unit": null
1019
+ },
1020
+ "_render_blank_retry_count": {
1021
+ "value": 0,
1022
+ "unit": null
1023
+ },
1024
+ "_render_blank_retry_unrecovered": {
1025
+ "value": 0,
1026
+ "unit": null
1027
+ },
1028
+ "normals_xz_avg_dark": {
1029
+ "value": 0.000892,
1030
+ "unit": null
1031
+ },
1032
+ "normals_xz_max_dark": {
1033
+ "value": 0.006467,
1034
+ "unit": null
1035
+ },
1036
+ "normals_xz_problem_frames": {
1037
+ "value": 0,
1038
+ "unit": null
1039
+ },
1040
+ "normals_xz_passed": {
1041
+ "value": 1,
1042
+ "unit": null
1043
+ }
1044
+ },
1045
+ "kit_logs": [
1046
+ {
1047
+ "level": "error",
1048
+ "channel": "omni.kit.app._impl",
1049
+ "message": "[py stderr]: Traceback (most recent call last):"
1050
+ },
1051
+ {
1052
+ "level": "error",
1053
+ "channel": "omni.kit.app._impl",
1054
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/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"
1055
+ },
1056
+ {
1057
+ "level": "error",
1058
+ "channel": "omni.kit.app._impl",
1059
+ "message": "[py stderr]: self.__drawable_changed_fn(texture[\"rp_resource\"], presentation_key)"
1060
+ },
1061
+ {
1062
+ "level": "error",
1063
+ "channel": "omni.kit.app._impl",
1064
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/widget.py\", line 516, in __set_image_data"
1065
+ },
1066
+ {
1067
+ "level": "error",
1068
+ "channel": "omni.kit.app._impl",
1069
+ "message": "[py stderr]: vp_api._sync_viewport_api(camera, canvas_size, vp_api.time, view, projection, force_update=True) # noqa PLW0212"
1070
+ },
1071
+ {
1072
+ "level": "error",
1073
+ "channel": "omni.kit.app._impl",
1074
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
1075
+ },
1076
+ {
1077
+ "level": "error",
1078
+ "channel": "omni.kit.app._impl",
1079
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 546, in _sync_viewport_api"
1080
+ },
1081
+ {
1082
+ "level": "error",
1083
+ "channel": "omni.kit.app._impl",
1084
+ "message": "[py stderr]: self.__projection = self._conform_projection(policy, camera, image_aspect, canvas_aspect, projection)"
1085
+ },
1086
+ {
1087
+ "level": "error",
1088
+ "channel": "omni.kit.app._impl",
1089
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
1090
+ },
1091
+ {
1092
+ "level": "error",
1093
+ "channel": "omni.kit.app._impl",
1094
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 476, in _conform_projection"
1095
+ },
1096
+ {
1097
+ "level": "error",
1098
+ "channel": "omni.kit.app._impl",
1099
+ "message": "[py stderr]: gf_camera = camera.GetCamera(self.__time)"
1100
+ },
1101
+ {
1102
+ "level": "error",
1103
+ "channel": "omni.kit.app._impl",
1104
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^"
1105
+ },
1106
+ {
1107
+ "level": "error",
1108
+ "channel": "omni.kit.app._impl",
1109
+ "message": "[py stderr]: AttributeError: 'NoneType' object has no attribute 'GetCamera'"
1110
+ }
1111
+ ]
1112
+ },
1113
+ {
1114
+ "test_name": "pivot",
1115
+ "engine": "isaac_sim",
1116
+ "engine_version": "6.1.0.0",
1117
+ "status": "pass",
1118
+ "passed": true,
1119
+ "duration": 6.436,
1120
+ "message": "",
1121
+ "metrics": {
1122
+ "_timing_capture_frame_total_s": {
1123
+ "value": 1.897,
1124
+ "unit": null
1125
+ },
1126
+ "_timing_capture_frame_count": {
1127
+ "value": 20,
1128
+ "unit": null
1129
+ },
1130
+ "_timing_capture_frame_avg_ms": {
1131
+ "value": 94.86,
1132
+ "unit": null
1133
+ },
1134
+ "_timing_encode_video_total_s": {
1135
+ "value": 0.905,
1136
+ "unit": null
1137
+ },
1138
+ "_timing_encode_video_count": {
1139
+ "value": 2,
1140
+ "unit": null
1141
+ },
1142
+ "_render_blank_retry_count": {
1143
+ "value": 0,
1144
+ "unit": null
1145
+ },
1146
+ "_render_blank_retry_unrecovered": {
1147
+ "value": 0,
1148
+ "unit": null
1149
+ },
1150
+ "pivot_score": {
1151
+ "value": 0.9,
1152
+ "unit": null
1153
+ },
1154
+ "pivot_pivot_height_pct": {
1155
+ "value": 0.1,
1156
+ "unit": null
1157
+ },
1158
+ "pivot_pivot_at_base": {
1159
+ "value": 1,
1160
+ "unit": null
1161
+ },
1162
+ "pivot_pivot_centered_xy": {
1163
+ "value": 1,
1164
+ "unit": null
1165
+ },
1166
+ "pivot_ground_penetration": {
1167
+ "value": 1,
1168
+ "unit": null
1169
+ },
1170
+ "pivot_orbital_motion": {
1171
+ "value": 0,
1172
+ "unit": null
1173
+ },
1174
+ "pivot_passed": {
1175
+ "value": 1,
1176
+ "unit": null
1177
+ }
1178
+ },
1179
+ "kit_logs": [
1180
+ {
1181
+ "level": "error",
1182
+ "channel": "omni.kit.app._impl",
1183
+ "message": "[py stderr]: Traceback (most recent call last):"
1184
+ },
1185
+ {
1186
+ "level": "error",
1187
+ "channel": "omni.kit.app._impl",
1188
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/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"
1189
+ },
1190
+ {
1191
+ "level": "error",
1192
+ "channel": "omni.kit.app._impl",
1193
+ "message": "[py stderr]: self.__drawable_changed_fn(texture[\"rp_resource\"], presentation_key)"
1194
+ },
1195
+ {
1196
+ "level": "error",
1197
+ "channel": "omni.kit.app._impl",
1198
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/widget.py\", line 516, in __set_image_data"
1199
+ },
1200
+ {
1201
+ "level": "error",
1202
+ "channel": "omni.kit.app._impl",
1203
+ "message": "[py stderr]: vp_api._sync_viewport_api(camera, canvas_size, vp_api.time, view, projection, force_update=True) # noqa PLW0212"
1204
+ },
1205
+ {
1206
+ "level": "error",
1207
+ "channel": "omni.kit.app._impl",
1208
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
1209
+ },
1210
+ {
1211
+ "level": "error",
1212
+ "channel": "omni.kit.app._impl",
1213
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 546, in _sync_viewport_api"
1214
+ },
1215
+ {
1216
+ "level": "error",
1217
+ "channel": "omni.kit.app._impl",
1218
+ "message": "[py stderr]: self.__projection = self._conform_projection(policy, camera, image_aspect, canvas_aspect, projection)"
1219
+ },
1220
+ {
1221
+ "level": "error",
1222
+ "channel": "omni.kit.app._impl",
1223
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
1224
+ },
1225
+ {
1226
+ "level": "error",
1227
+ "channel": "omni.kit.app._impl",
1228
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 476, in _conform_projection"
1229
+ },
1230
+ {
1231
+ "level": "error",
1232
+ "channel": "omni.kit.app._impl",
1233
+ "message": "[py stderr]: gf_camera = camera.GetCamera(self.__time)"
1234
+ },
1235
+ {
1236
+ "level": "error",
1237
+ "channel": "omni.kit.app._impl",
1238
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^"
1239
+ },
1240
+ {
1241
+ "level": "error",
1242
+ "channel": "omni.kit.app._impl",
1243
+ "message": "[py stderr]: AttributeError: 'NoneType' object has no attribute 'GetCamera'"
1244
+ }
1245
+ ]
1246
+ },
1247
+ {
1248
+ "test_name": "pivot",
1249
+ "engine": "isaac_sim_newton",
1250
+ "engine_version": "6.1.0.0",
1251
+ "status": "pass",
1252
+ "passed": true,
1253
+ "duration": 6.672,
1254
+ "message": "",
1255
+ "metrics": {
1256
+ "_timing_capture_frame_total_s": {
1257
+ "value": 1.947,
1258
+ "unit": null
1259
+ },
1260
+ "_timing_capture_frame_count": {
1261
+ "value": 20,
1262
+ "unit": null
1263
+ },
1264
+ "_timing_capture_frame_avg_ms": {
1265
+ "value": 97.33,
1266
+ "unit": null
1267
+ },
1268
+ "_timing_encode_video_total_s": {
1269
+ "value": 0.896,
1270
+ "unit": null
1271
+ },
1272
+ "_timing_encode_video_count": {
1273
+ "value": 2,
1274
+ "unit": null
1275
+ },
1276
+ "_render_blank_retry_count": {
1277
+ "value": 0,
1278
+ "unit": null
1279
+ },
1280
+ "_render_blank_retry_unrecovered": {
1281
+ "value": 0,
1282
+ "unit": null
1283
+ },
1284
+ "pivot_score": {
1285
+ "value": 0.9,
1286
+ "unit": null
1287
+ },
1288
+ "pivot_pivot_height_pct": {
1289
+ "value": 0.1,
1290
+ "unit": null
1291
+ },
1292
+ "pivot_pivot_at_base": {
1293
+ "value": 1,
1294
+ "unit": null
1295
+ },
1296
+ "pivot_pivot_centered_xy": {
1297
+ "value": 1,
1298
+ "unit": null
1299
+ },
1300
+ "pivot_ground_penetration": {
1301
+ "value": 1,
1302
+ "unit": null
1303
+ },
1304
+ "pivot_orbital_motion": {
1305
+ "value": 0,
1306
+ "unit": null
1307
+ },
1308
+ "pivot_passed": {
1309
+ "value": 1,
1310
+ "unit": null
1311
+ }
1312
+ },
1313
+ "kit_logs": [
1314
+ {
1315
+ "level": "error",
1316
+ "channel": "omni.kit.app._impl",
1317
+ "message": "[py stderr]: Traceback (most recent call last):"
1318
+ },
1319
+ {
1320
+ "level": "error",
1321
+ "channel": "omni.kit.app._impl",
1322
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/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"
1323
+ },
1324
+ {
1325
+ "level": "error",
1326
+ "channel": "omni.kit.app._impl",
1327
+ "message": "[py stderr]: self.__drawable_changed_fn(texture[\"rp_resource\"], presentation_key)"
1328
+ },
1329
+ {
1330
+ "level": "error",
1331
+ "channel": "omni.kit.app._impl",
1332
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/widget.py\", line 516, in __set_image_data"
1333
+ },
1334
+ {
1335
+ "level": "error",
1336
+ "channel": "omni.kit.app._impl",
1337
+ "message": "[py stderr]: vp_api._sync_viewport_api(camera, canvas_size, vp_api.time, view, projection, force_update=True) # noqa PLW0212"
1338
+ },
1339
+ {
1340
+ "level": "error",
1341
+ "channel": "omni.kit.app._impl",
1342
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
1343
+ },
1344
+ {
1345
+ "level": "error",
1346
+ "channel": "omni.kit.app._impl",
1347
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 546, in _sync_viewport_api"
1348
+ },
1349
+ {
1350
+ "level": "error",
1351
+ "channel": "omni.kit.app._impl",
1352
+ "message": "[py stderr]: self.__projection = self._conform_projection(policy, camera, image_aspect, canvas_aspect, projection)"
1353
+ },
1354
+ {
1355
+ "level": "error",
1356
+ "channel": "omni.kit.app._impl",
1357
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
1358
+ },
1359
+ {
1360
+ "level": "error",
1361
+ "channel": "omni.kit.app._impl",
1362
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 476, in _conform_projection"
1363
+ },
1364
+ {
1365
+ "level": "error",
1366
+ "channel": "omni.kit.app._impl",
1367
+ "message": "[py stderr]: gf_camera = camera.GetCamera(self.__time)"
1368
+ },
1369
+ {
1370
+ "level": "error",
1371
+ "channel": "omni.kit.app._impl",
1372
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^"
1373
+ },
1374
+ {
1375
+ "level": "error",
1376
+ "channel": "omni.kit.app._impl",
1377
+ "message": "[py stderr]: AttributeError: 'NoneType' object has no attribute 'GetCamera'"
1378
+ }
1379
+ ]
1380
+ },
1381
+ {
1382
+ "test_name": "presence",
1383
+ "engine": "isaac_sim",
1384
+ "engine_version": "6.1.0.0",
1385
+ "status": "pass",
1386
+ "passed": true,
1387
+ "duration": 1.291,
1388
+ "message": "",
1389
+ "metrics": {
1390
+ "_timing_capture_frame_total_s": {
1391
+ "value": 0.13,
1392
+ "unit": null
1393
+ },
1394
+ "_timing_capture_frame_count": {
1395
+ "value": 2,
1396
+ "unit": null
1397
+ },
1398
+ "_timing_capture_frame_avg_ms": {
1399
+ "value": 64.9,
1400
+ "unit": null
1401
+ },
1402
+ "_timing_encode_video_total_s": {
1403
+ "value": 0.0,
1404
+ "unit": null
1405
+ },
1406
+ "_timing_encode_video_count": {
1407
+ "value": 0,
1408
+ "unit": null
1409
+ },
1410
+ "_render_blank_retry_count": {
1411
+ "value": 0,
1412
+ "unit": null
1413
+ },
1414
+ "_render_blank_retry_unrecovered": {
1415
+ "value": 0,
1416
+ "unit": null
1417
+ },
1418
+ "presence_diff_ratio": {
1419
+ "value": 0.296187,
1420
+ "unit": null
1421
+ },
1422
+ "presence_passed": {
1423
+ "value": 1,
1424
+ "unit": null
1425
+ }
1426
+ },
1427
+ "kit_logs": [
1428
+ {
1429
+ "level": "error",
1430
+ "channel": "omni.kit.app._impl",
1431
+ "message": "[py stderr]: Traceback (most recent call last):"
1432
+ },
1433
+ {
1434
+ "level": "error",
1435
+ "channel": "omni.kit.app._impl",
1436
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/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"
1437
+ },
1438
+ {
1439
+ "level": "error",
1440
+ "channel": "omni.kit.app._impl",
1441
+ "message": "[py stderr]: self.__drawable_changed_fn(texture[\"rp_resource\"], presentation_key)"
1442
+ },
1443
+ {
1444
+ "level": "error",
1445
+ "channel": "omni.kit.app._impl",
1446
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/widget.py\", line 516, in __set_image_data"
1447
+ },
1448
+ {
1449
+ "level": "error",
1450
+ "channel": "omni.kit.app._impl",
1451
+ "message": "[py stderr]: vp_api._sync_viewport_api(camera, canvas_size, vp_api.time, view, projection, force_update=True) # noqa PLW0212"
1452
+ },
1453
+ {
1454
+ "level": "error",
1455
+ "channel": "omni.kit.app._impl",
1456
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
1457
+ },
1458
+ {
1459
+ "level": "error",
1460
+ "channel": "omni.kit.app._impl",
1461
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 546, in _sync_viewport_api"
1462
+ },
1463
+ {
1464
+ "level": "error",
1465
+ "channel": "omni.kit.app._impl",
1466
+ "message": "[py stderr]: self.__projection = self._conform_projection(policy, camera, image_aspect, canvas_aspect, projection)"
1467
+ },
1468
+ {
1469
+ "level": "error",
1470
+ "channel": "omni.kit.app._impl",
1471
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
1472
+ },
1473
+ {
1474
+ "level": "error",
1475
+ "channel": "omni.kit.app._impl",
1476
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 476, in _conform_projection"
1477
+ },
1478
+ {
1479
+ "level": "error",
1480
+ "channel": "omni.kit.app._impl",
1481
+ "message": "[py stderr]: gf_camera = camera.GetCamera(self.__time)"
1482
+ },
1483
+ {
1484
+ "level": "error",
1485
+ "channel": "omni.kit.app._impl",
1486
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^"
1487
+ },
1488
+ {
1489
+ "level": "error",
1490
+ "channel": "omni.kit.app._impl",
1491
+ "message": "[py stderr]: AttributeError: 'NoneType' object has no attribute 'GetCamera'"
1492
+ }
1493
+ ]
1494
+ },
1495
+ {
1496
+ "test_name": "presence",
1497
+ "engine": "isaac_sim_newton",
1498
+ "engine_version": "6.1.0.0",
1499
+ "status": "pass",
1500
+ "passed": true,
1501
+ "duration": 1.347,
1502
+ "message": "",
1503
+ "metrics": {
1504
+ "_timing_capture_frame_total_s": {
1505
+ "value": 0.175,
1506
+ "unit": null
1507
+ },
1508
+ "_timing_capture_frame_count": {
1509
+ "value": 2,
1510
+ "unit": null
1511
+ },
1512
+ "_timing_capture_frame_avg_ms": {
1513
+ "value": 87.38,
1514
+ "unit": null
1515
+ },
1516
+ "_timing_encode_video_total_s": {
1517
+ "value": 0.0,
1518
+ "unit": null
1519
+ },
1520
+ "_timing_encode_video_count": {
1521
+ "value": 0,
1522
+ "unit": null
1523
+ },
1524
+ "_render_blank_retry_count": {
1525
+ "value": 0,
1526
+ "unit": null
1527
+ },
1528
+ "_render_blank_retry_unrecovered": {
1529
+ "value": 0,
1530
+ "unit": null
1531
+ },
1532
+ "presence_diff_ratio": {
1533
+ "value": 0.296197,
1534
+ "unit": null
1535
+ },
1536
+ "presence_passed": {
1537
+ "value": 1,
1538
+ "unit": null
1539
+ }
1540
+ },
1541
+ "kit_logs": [
1542
+ {
1543
+ "level": "error",
1544
+ "channel": "omni.kit.app._impl",
1545
+ "message": "[py stderr]: Traceback (most recent call last):"
1546
+ },
1547
+ {
1548
+ "level": "error",
1549
+ "channel": "omni.kit.app._impl",
1550
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/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"
1551
+ },
1552
+ {
1553
+ "level": "error",
1554
+ "channel": "omni.kit.app._impl",
1555
+ "message": "[py stderr]: self.__drawable_changed_fn(texture[\"rp_resource\"], presentation_key)"
1556
+ },
1557
+ {
1558
+ "level": "error",
1559
+ "channel": "omni.kit.app._impl",
1560
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/widget.py\", line 516, in __set_image_data"
1561
+ },
1562
+ {
1563
+ "level": "error",
1564
+ "channel": "omni.kit.app._impl",
1565
+ "message": "[py stderr]: vp_api._sync_viewport_api(camera, canvas_size, vp_api.time, view, projection, force_update=True) # noqa PLW0212"
1566
+ },
1567
+ {
1568
+ "level": "error",
1569
+ "channel": "omni.kit.app._impl",
1570
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
1571
+ },
1572
+ {
1573
+ "level": "error",
1574
+ "channel": "omni.kit.app._impl",
1575
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 546, in _sync_viewport_api"
1576
+ },
1577
+ {
1578
+ "level": "error",
1579
+ "channel": "omni.kit.app._impl",
1580
+ "message": "[py stderr]: self.__projection = self._conform_projection(policy, camera, image_aspect, canvas_aspect, projection)"
1581
+ },
1582
+ {
1583
+ "level": "error",
1584
+ "channel": "omni.kit.app._impl",
1585
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
1586
+ },
1587
+ {
1588
+ "level": "error",
1589
+ "channel": "omni.kit.app._impl",
1590
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 476, in _conform_projection"
1591
+ },
1592
+ {
1593
+ "level": "error",
1594
+ "channel": "omni.kit.app._impl",
1595
+ "message": "[py stderr]: gf_camera = camera.GetCamera(self.__time)"
1596
+ },
1597
+ {
1598
+ "level": "error",
1599
+ "channel": "omni.kit.app._impl",
1600
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^"
1601
+ },
1602
+ {
1603
+ "level": "error",
1604
+ "channel": "omni.kit.app._impl",
1605
+ "message": "[py stderr]: AttributeError: 'NoneType' object has no attribute 'GetCamera'"
1606
+ }
1607
+ ]
1608
+ },
1609
+ {
1610
+ "test_name": "preview_surface_renders",
1611
+ "engine": "isaac_sim",
1612
+ "engine_version": "6.1.0.0",
1613
+ "status": "pass",
1614
+ "passed": true,
1615
+ "duration": 3.378,
1616
+ "message": "",
1617
+ "metrics": {
1618
+ "_timing_capture_frame_total_s": {
1619
+ "value": 0.711,
1620
+ "unit": null
1621
+ },
1622
+ "_timing_capture_frame_count": {
1623
+ "value": 4,
1624
+ "unit": null
1625
+ },
1626
+ "_timing_capture_frame_avg_ms": {
1627
+ "value": 177.84,
1628
+ "unit": null
1629
+ },
1630
+ "_timing_encode_video_total_s": {
1631
+ "value": 0.0,
1632
+ "unit": null
1633
+ },
1634
+ "_timing_encode_video_count": {
1635
+ "value": 0,
1636
+ "unit": null
1637
+ },
1638
+ "_render_blank_retry_count": {
1639
+ "value": 0,
1640
+ "unit": null
1641
+ },
1642
+ "_render_blank_retry_unrecovered": {
1643
+ "value": 0,
1644
+ "unit": null
1645
+ },
1646
+ "universal_surface_materials_with_universal": {
1647
+ "value": 35,
1648
+ "unit": null
1649
+ },
1650
+ "universal_surface_materials_with_mdl": {
1651
+ "value": 35,
1652
+ "unit": null
1653
+ },
1654
+ "universal_surface_materials_with_mtlx": {
1655
+ "value": 0,
1656
+ "unit": null
1657
+ },
1658
+ "universal_surface_materials_total": {
1659
+ "value": 35,
1660
+ "unit": null
1661
+ },
1662
+ "universal_surface_asset_root": {
1663
+ "value": "/World/AssetRoot/Asset",
1664
+ "unit": null
1665
+ },
1666
+ "universal_surface_contexts_present": {
1667
+ "value": "mdl, universal",
1668
+ "unit": null
1669
+ },
1670
+ "universal_surface_render_context_order": {
1671
+ "value": "universal",
1672
+ "unit": null
1673
+ },
1674
+ "universal_surface_silhouette_pixels": {
1675
+ "value": 310129,
1676
+ "unit": null
1677
+ },
1678
+ "universal_surface_uncovered_pixels": {
1679
+ "value": 0,
1680
+ "unit": null
1681
+ },
1682
+ "universal_surface_coverage": {
1683
+ "value": 1.0,
1684
+ "unit": null
1685
+ }
1686
+ },
1687
+ "kit_logs": [
1688
+ {
1689
+ "level": "error",
1690
+ "channel": "omni.kit.app._impl",
1691
+ "message": "[py stderr]: Traceback (most recent call last):"
1692
+ },
1693
+ {
1694
+ "level": "error",
1695
+ "channel": "omni.kit.app._impl",
1696
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/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"
1697
+ },
1698
+ {
1699
+ "level": "error",
1700
+ "channel": "omni.kit.app._impl",
1701
+ "message": "[py stderr]: self.__drawable_changed_fn(texture[\"rp_resource\"], presentation_key)"
1702
+ },
1703
+ {
1704
+ "level": "error",
1705
+ "channel": "omni.kit.app._impl",
1706
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/widget.py\", line 516, in __set_image_data"
1707
+ },
1708
+ {
1709
+ "level": "error",
1710
+ "channel": "omni.kit.app._impl",
1711
+ "message": "[py stderr]: vp_api._sync_viewport_api(camera, canvas_size, vp_api.time, view, projection, force_update=True) # noqa PLW0212"
1712
+ },
1713
+ {
1714
+ "level": "error",
1715
+ "channel": "omni.kit.app._impl",
1716
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
1717
+ },
1718
+ {
1719
+ "level": "error",
1720
+ "channel": "omni.kit.app._impl",
1721
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 546, in _sync_viewport_api"
1722
+ },
1723
+ {
1724
+ "level": "error",
1725
+ "channel": "omni.kit.app._impl",
1726
+ "message": "[py stderr]: self.__projection = self._conform_projection(policy, camera, image_aspect, canvas_aspect, projection)"
1727
+ },
1728
+ {
1729
+ "level": "error",
1730
+ "channel": "omni.kit.app._impl",
1731
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
1732
+ },
1733
+ {
1734
+ "level": "error",
1735
+ "channel": "omni.kit.app._impl",
1736
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 476, in _conform_projection"
1737
+ },
1738
+ {
1739
+ "level": "error",
1740
+ "channel": "omni.kit.app._impl",
1741
+ "message": "[py stderr]: gf_camera = camera.GetCamera(self.__time)"
1742
+ },
1743
+ {
1744
+ "level": "error",
1745
+ "channel": "omni.kit.app._impl",
1746
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^"
1747
+ },
1748
+ {
1749
+ "level": "error",
1750
+ "channel": "omni.kit.app._impl",
1751
+ "message": "[py stderr]: AttributeError: 'NoneType' object has no attribute 'GetCamera'"
1752
+ }
1753
+ ]
1754
+ },
1755
+ {
1756
+ "test_name": "preview_surface_renders",
1757
+ "engine": "isaac_sim_newton",
1758
+ "engine_version": "6.1.0.0",
1759
+ "status": "pass",
1760
+ "passed": true,
1761
+ "duration": 2.561,
1762
+ "message": "",
1763
+ "metrics": {
1764
+ "_timing_capture_frame_total_s": {
1765
+ "value": 0.628,
1766
+ "unit": null
1767
+ },
1768
+ "_timing_capture_frame_count": {
1769
+ "value": 4,
1770
+ "unit": null
1771
+ },
1772
+ "_timing_capture_frame_avg_ms": {
1773
+ "value": 157.07,
1774
+ "unit": null
1775
+ },
1776
+ "_timing_encode_video_total_s": {
1777
+ "value": 0.0,
1778
+ "unit": null
1779
+ },
1780
+ "_timing_encode_video_count": {
1781
+ "value": 0,
1782
+ "unit": null
1783
+ },
1784
+ "_render_blank_retry_count": {
1785
+ "value": 0,
1786
+ "unit": null
1787
+ },
1788
+ "_render_blank_retry_unrecovered": {
1789
+ "value": 0,
1790
+ "unit": null
1791
+ },
1792
+ "universal_surface_materials_with_universal": {
1793
+ "value": 35,
1794
+ "unit": null
1795
+ },
1796
+ "universal_surface_materials_with_mdl": {
1797
+ "value": 35,
1798
+ "unit": null
1799
+ },
1800
+ "universal_surface_materials_with_mtlx": {
1801
+ "value": 0,
1802
+ "unit": null
1803
+ },
1804
+ "universal_surface_materials_total": {
1805
+ "value": 35,
1806
+ "unit": null
1807
+ },
1808
+ "universal_surface_asset_root": {
1809
+ "value": "/World/AssetRoot/Asset",
1810
+ "unit": null
1811
+ },
1812
+ "universal_surface_contexts_present": {
1813
+ "value": "mdl, universal",
1814
+ "unit": null
1815
+ },
1816
+ "universal_surface_render_context_order": {
1817
+ "value": "universal",
1818
+ "unit": null
1819
+ },
1820
+ "universal_surface_silhouette_pixels": {
1821
+ "value": 310138,
1822
+ "unit": null
1823
+ },
1824
+ "universal_surface_uncovered_pixels": {
1825
+ "value": 0,
1826
+ "unit": null
1827
+ },
1828
+ "universal_surface_coverage": {
1829
+ "value": 1.0,
1830
+ "unit": null
1831
+ }
1832
+ },
1833
+ "kit_logs": [
1834
+ {
1835
+ "level": "error",
1836
+ "channel": "omni.kit.app._impl",
1837
+ "message": "[py stderr]: Traceback (most recent call last):"
1838
+ },
1839
+ {
1840
+ "level": "error",
1841
+ "channel": "omni.kit.app._impl",
1842
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/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"
1843
+ },
1844
+ {
1845
+ "level": "error",
1846
+ "channel": "omni.kit.app._impl",
1847
+ "message": "[py stderr]: self.__drawable_changed_fn(texture[\"rp_resource\"], presentation_key)"
1848
+ },
1849
+ {
1850
+ "level": "error",
1851
+ "channel": "omni.kit.app._impl",
1852
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/widget.py\", line 516, in __set_image_data"
1853
+ },
1854
+ {
1855
+ "level": "error",
1856
+ "channel": "omni.kit.app._impl",
1857
+ "message": "[py stderr]: vp_api._sync_viewport_api(camera, canvas_size, vp_api.time, view, projection, force_update=True) # noqa PLW0212"
1858
+ },
1859
+ {
1860
+ "level": "error",
1861
+ "channel": "omni.kit.app._impl",
1862
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
1863
+ },
1864
+ {
1865
+ "level": "error",
1866
+ "channel": "omni.kit.app._impl",
1867
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 546, in _sync_viewport_api"
1868
+ },
1869
+ {
1870
+ "level": "error",
1871
+ "channel": "omni.kit.app._impl",
1872
+ "message": "[py stderr]: self.__projection = self._conform_projection(policy, camera, image_aspect, canvas_aspect, projection)"
1873
+ },
1874
+ {
1875
+ "level": "error",
1876
+ "channel": "omni.kit.app._impl",
1877
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
1878
+ },
1879
+ {
1880
+ "level": "error",
1881
+ "channel": "omni.kit.app._impl",
1882
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 476, in _conform_projection"
1883
+ },
1884
+ {
1885
+ "level": "error",
1886
+ "channel": "omni.kit.app._impl",
1887
+ "message": "[py stderr]: gf_camera = camera.GetCamera(self.__time)"
1888
+ },
1889
+ {
1890
+ "level": "error",
1891
+ "channel": "omni.kit.app._impl",
1892
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^"
1893
+ },
1894
+ {
1895
+ "level": "error",
1896
+ "channel": "omni.kit.app._impl",
1897
+ "message": "[py stderr]: AttributeError: 'NoneType' object has no attribute 'GetCamera'"
1898
+ }
1899
+ ]
1900
+ },
1901
+ {
1902
+ "test_name": "semantic_labels_seg_labelled",
1903
+ "engine": "isaac_sim",
1904
+ "engine_version": "6.1.0.0",
1905
+ "status": "pass",
1906
+ "passed": true,
1907
+ "duration": 1.96,
1908
+ "message": "",
1909
+ "metrics": {
1910
+ "_timing_capture_frame_total_s": {
1911
+ "value": 0.607,
1912
+ "unit": null
1913
+ },
1914
+ "_timing_capture_frame_count": {
1915
+ "value": 1,
1916
+ "unit": null
1917
+ },
1918
+ "_timing_capture_frame_avg_ms": {
1919
+ "value": 607.16,
1920
+ "unit": null
1921
+ },
1922
+ "_timing_encode_video_total_s": {
1923
+ "value": 0.0,
1924
+ "unit": null
1925
+ },
1926
+ "_timing_encode_video_count": {
1927
+ "value": 0,
1928
+ "unit": null
1929
+ },
1930
+ "_render_blank_retry_count": {
1931
+ "value": 0,
1932
+ "unit": null
1933
+ },
1934
+ "_render_blank_retry_unrecovered": {
1935
+ "value": 0,
1936
+ "unit": null
1937
+ },
1938
+ "semantic_labels_on_coverage": {
1939
+ "value": 0.295349,
1940
+ "unit": null
1941
+ },
1942
+ "semantic_labels_labelled_passed": {
1943
+ "value": 1,
1944
+ "unit": null
1945
+ }
1946
+ },
1947
+ "kit_logs": [
1948
+ {
1949
+ "level": "error",
1950
+ "channel": "omni.kit.app._impl",
1951
+ "message": "[py stderr]: Traceback (most recent call last):"
1952
+ },
1953
+ {
1954
+ "level": "error",
1955
+ "channel": "omni.kit.app._impl",
1956
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/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"
1957
+ },
1958
+ {
1959
+ "level": "error",
1960
+ "channel": "omni.kit.app._impl",
1961
+ "message": "[py stderr]: self.__drawable_changed_fn(texture[\"rp_resource\"], presentation_key)"
1962
+ },
1963
+ {
1964
+ "level": "error",
1965
+ "channel": "omni.kit.app._impl",
1966
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/widget.py\", line 516, in __set_image_data"
1967
+ },
1968
+ {
1969
+ "level": "error",
1970
+ "channel": "omni.kit.app._impl",
1971
+ "message": "[py stderr]: vp_api._sync_viewport_api(camera, canvas_size, vp_api.time, view, projection, force_update=True) # noqa PLW0212"
1972
+ },
1973
+ {
1974
+ "level": "error",
1975
+ "channel": "omni.kit.app._impl",
1976
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
1977
+ },
1978
+ {
1979
+ "level": "error",
1980
+ "channel": "omni.kit.app._impl",
1981
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 546, in _sync_viewport_api"
1982
+ },
1983
+ {
1984
+ "level": "error",
1985
+ "channel": "omni.kit.app._impl",
1986
+ "message": "[py stderr]: self.__projection = self._conform_projection(policy, camera, image_aspect, canvas_aspect, projection)"
1987
+ },
1988
+ {
1989
+ "level": "error",
1990
+ "channel": "omni.kit.app._impl",
1991
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
1992
+ },
1993
+ {
1994
+ "level": "error",
1995
+ "channel": "omni.kit.app._impl",
1996
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 476, in _conform_projection"
1997
+ },
1998
+ {
1999
+ "level": "error",
2000
+ "channel": "omni.kit.app._impl",
2001
+ "message": "[py stderr]: gf_camera = camera.GetCamera(self.__time)"
2002
+ },
2003
+ {
2004
+ "level": "error",
2005
+ "channel": "omni.kit.app._impl",
2006
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^"
2007
+ },
2008
+ {
2009
+ "level": "error",
2010
+ "channel": "omni.kit.app._impl",
2011
+ "message": "[py stderr]: AttributeError: 'NoneType' object has no attribute 'GetCamera'"
2012
+ }
2013
+ ]
2014
+ },
2015
+ {
2016
+ "test_name": "semantic_labels_seg_labelled",
2017
+ "engine": "isaac_sim_newton",
2018
+ "engine_version": "6.1.0.0",
2019
+ "status": "pass",
2020
+ "passed": true,
2021
+ "duration": 1.569,
2022
+ "message": "",
2023
+ "metrics": {
2024
+ "_timing_capture_frame_total_s": {
2025
+ "value": 0.313,
2026
+ "unit": null
2027
+ },
2028
+ "_timing_capture_frame_count": {
2029
+ "value": 1,
2030
+ "unit": null
2031
+ },
2032
+ "_timing_capture_frame_avg_ms": {
2033
+ "value": 312.95,
2034
+ "unit": null
2035
+ },
2036
+ "_timing_encode_video_total_s": {
2037
+ "value": 0.0,
2038
+ "unit": null
2039
+ },
2040
+ "_timing_encode_video_count": {
2041
+ "value": 0,
2042
+ "unit": null
2043
+ },
2044
+ "_render_blank_retry_count": {
2045
+ "value": 0,
2046
+ "unit": null
2047
+ },
2048
+ "_render_blank_retry_unrecovered": {
2049
+ "value": 0,
2050
+ "unit": null
2051
+ },
2052
+ "semantic_labels_on_coverage": {
2053
+ "value": 0.295349,
2054
+ "unit": null
2055
+ },
2056
+ "semantic_labels_labelled_passed": {
2057
+ "value": 1,
2058
+ "unit": null
2059
+ }
2060
+ },
2061
+ "kit_logs": [
2062
+ {
2063
+ "level": "error",
2064
+ "channel": "omni.kit.app._impl",
2065
+ "message": "[py stderr]: Traceback (most recent call last):"
2066
+ },
2067
+ {
2068
+ "level": "error",
2069
+ "channel": "omni.kit.app._impl",
2070
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/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"
2071
+ },
2072
+ {
2073
+ "level": "error",
2074
+ "channel": "omni.kit.app._impl",
2075
+ "message": "[py stderr]: self.__drawable_changed_fn(texture[\"rp_resource\"], presentation_key)"
2076
+ },
2077
+ {
2078
+ "level": "error",
2079
+ "channel": "omni.kit.app._impl",
2080
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/widget.py\", line 516, in __set_image_data"
2081
+ },
2082
+ {
2083
+ "level": "error",
2084
+ "channel": "omni.kit.app._impl",
2085
+ "message": "[py stderr]: vp_api._sync_viewport_api(camera, canvas_size, vp_api.time, view, projection, force_update=True) # noqa PLW0212"
2086
+ },
2087
+ {
2088
+ "level": "error",
2089
+ "channel": "omni.kit.app._impl",
2090
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
2091
+ },
2092
+ {
2093
+ "level": "error",
2094
+ "channel": "omni.kit.app._impl",
2095
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 546, in _sync_viewport_api"
2096
+ },
2097
+ {
2098
+ "level": "error",
2099
+ "channel": "omni.kit.app._impl",
2100
+ "message": "[py stderr]: self.__projection = self._conform_projection(policy, camera, image_aspect, canvas_aspect, projection)"
2101
+ },
2102
+ {
2103
+ "level": "error",
2104
+ "channel": "omni.kit.app._impl",
2105
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
2106
+ },
2107
+ {
2108
+ "level": "error",
2109
+ "channel": "omni.kit.app._impl",
2110
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 476, in _conform_projection"
2111
+ },
2112
+ {
2113
+ "level": "error",
2114
+ "channel": "omni.kit.app._impl",
2115
+ "message": "[py stderr]: gf_camera = camera.GetCamera(self.__time)"
2116
+ },
2117
+ {
2118
+ "level": "error",
2119
+ "channel": "omni.kit.app._impl",
2120
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^"
2121
+ },
2122
+ {
2123
+ "level": "error",
2124
+ "channel": "omni.kit.app._impl",
2125
+ "message": "[py stderr]: AttributeError: 'NoneType' object has no attribute 'GetCamera'"
2126
+ }
2127
+ ]
2128
+ },
2129
+ {
2130
+ "test_name": "semantic_labels_seg_stripped",
2131
+ "engine": "isaac_sim",
2132
+ "engine_version": "6.1.0.0",
2133
+ "status": "fail",
2134
+ "passed": false,
2135
+ "duration": 1.337,
2136
+ "message": "The segmentation AOV is still populated after every semantics schema was removed from 8 prim(s): 0.0040 of the frame is segmented, and at most 0.0020 is allowed. Something other than the asset's own labels is driving the segmentation.\n\nHow to fix:\n- Look for semantics on a material bound to the asset but authored outside its subtree; those survive a strip that only walks the asset.\n- Look for labels on scene content other than the asset.\n- Check for a deprecated SemanticsAPI block left behind alongside the modern labels, which some older authoring tools still write.",
2137
+ "metrics": {
2138
+ "semantic_labels_stripped_prims": {
2139
+ "value": 8,
2140
+ "unit": null
2141
+ },
2142
+ "semantic_labels_off_coverage": {
2143
+ "value": 0.003951,
2144
+ "unit": null
2145
+ },
2146
+ "semantic_labels_stripped_passed": {
2147
+ "value": 0,
2148
+ "unit": null
2149
+ }
2150
+ },
2151
+ "kit_logs": []
2152
+ },
2153
+ {
2154
+ "test_name": "semantic_labels_seg_stripped",
2155
+ "engine": "isaac_sim_newton",
2156
+ "engine_version": "6.1.0.0",
2157
+ "status": "fail",
2158
+ "passed": false,
2159
+ "duration": 1.161,
2160
+ "message": "The segmentation AOV is still populated after every semantics schema was removed from 8 prim(s): 0.0040 of the frame is segmented, and at most 0.0020 is allowed. Something other than the asset's own labels is driving the segmentation.\n\nHow to fix:\n- Look for semantics on a material bound to the asset but authored outside its subtree; those survive a strip that only walks the asset.\n- Look for labels on scene content other than the asset.\n- Check for a deprecated SemanticsAPI block left behind alongside the modern labels, which some older authoring tools still write.",
2161
+ "metrics": {
2162
+ "semantic_labels_stripped_prims": {
2163
+ "value": 8,
2164
+ "unit": null
2165
+ },
2166
+ "semantic_labels_off_coverage": {
2167
+ "value": 0.003951,
2168
+ "unit": null
2169
+ },
2170
+ "semantic_labels_stripped_passed": {
2171
+ "value": 0,
2172
+ "unit": null
2173
+ }
2174
+ },
2175
+ "kit_logs": []
2176
+ },
2177
+ {
2178
+ "test_name": "slope_drop",
2179
+ "engine": "isaac_sim",
2180
+ "engine_version": "6.1.0.0",
2181
+ "status": "pass",
2182
+ "passed": true,
2183
+ "duration": 37.24,
2184
+ "message": "",
2185
+ "metrics": {
2186
+ "slope_drop_initial_cx": {
2187
+ "value": 0.0,
2188
+ "unit": null
2189
+ },
2190
+ "slope_drop_initial_cy": {
2191
+ "value": -7.0401,
2192
+ "unit": null
2193
+ },
2194
+ "slope_drop_initial_z_min": {
2195
+ "value": 19.937,
2196
+ "unit": null
2197
+ },
2198
+ "slope_drop_bbox_height": {
2199
+ "value": 1.7779,
2200
+ "unit": null
2201
+ },
2202
+ "_timing_capture_frame_total_s": {
2203
+ "value": 6.649,
2204
+ "unit": null
2205
+ },
2206
+ "_timing_capture_frame_count": {
2207
+ "value": 57,
2208
+ "unit": null
2209
+ },
2210
+ "_timing_capture_frame_avg_ms": {
2211
+ "value": 116.65,
2212
+ "unit": null
2213
+ },
2214
+ "_timing_encode_video_total_s": {
2215
+ "value": 1.413,
2216
+ "unit": null
2217
+ },
2218
+ "_timing_encode_video_count": {
2219
+ "value": 1,
2220
+ "unit": null
2221
+ },
2222
+ "_render_blank_retry_count": {
2223
+ "value": 0,
2224
+ "unit": null
2225
+ },
2226
+ "_render_blank_retry_unrecovered": {
2227
+ "value": 0,
2228
+ "unit": null
2229
+ },
2230
+ "slope_drop_contact_detected": {
2231
+ "value": 1,
2232
+ "unit": null
2233
+ },
2234
+ "slope_drop_horiz_detected": {
2235
+ "value": 1,
2236
+ "unit": null
2237
+ },
2238
+ "slope_drop_penetrated": {
2239
+ "value": 0,
2240
+ "unit": null
2241
+ },
2242
+ "slope_drop_slope_penetrated": {
2243
+ "value": 0,
2244
+ "unit": null
2245
+ },
2246
+ "slope_drop_excessive_separation": {
2247
+ "value": 0,
2248
+ "unit": null
2249
+ },
2250
+ "slope_drop_uphill_motion": {
2251
+ "value": 0,
2252
+ "unit": null
2253
+ },
2254
+ "slope_drop_passed": {
2255
+ "value": 1,
2256
+ "unit": null
2257
+ },
2258
+ "slope_drop_max_clearance": {
2259
+ "value": 0.01,
2260
+ "unit": "m"
2261
+ },
2262
+ "slope_drop_separation_frames": {
2263
+ "value": 0,
2264
+ "unit": null
2265
+ },
2266
+ "slope_drop_left_slope_frame": {
2267
+ "value": 847,
2268
+ "unit": null
2269
+ },
2270
+ "slope_drop_horiz_time": {
2271
+ "value": 0.733,
2272
+ "unit": null
2273
+ }
2274
+ },
2275
+ "kit_logs": [
2276
+ {
2277
+ "level": "error",
2278
+ "channel": "omni.kit.app._impl",
2279
+ "message": "[py stderr]: Traceback (most recent call last):"
2280
+ },
2281
+ {
2282
+ "level": "error",
2283
+ "channel": "omni.kit.app._impl",
2284
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/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"
2285
+ },
2286
+ {
2287
+ "level": "error",
2288
+ "channel": "omni.kit.app._impl",
2289
+ "message": "[py stderr]: self.__drawable_changed_fn(texture[\"rp_resource\"], presentation_key)"
2290
+ },
2291
+ {
2292
+ "level": "error",
2293
+ "channel": "omni.kit.app._impl",
2294
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/widget.py\", line 516, in __set_image_data"
2295
+ },
2296
+ {
2297
+ "level": "error",
2298
+ "channel": "omni.kit.app._impl",
2299
+ "message": "[py stderr]: vp_api._sync_viewport_api(camera, canvas_size, vp_api.time, view, projection, force_update=True) # noqa PLW0212"
2300
+ },
2301
+ {
2302
+ "level": "error",
2303
+ "channel": "omni.kit.app._impl",
2304
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
2305
+ },
2306
+ {
2307
+ "level": "error",
2308
+ "channel": "omni.kit.app._impl",
2309
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 546, in _sync_viewport_api"
2310
+ },
2311
+ {
2312
+ "level": "error",
2313
+ "channel": "omni.kit.app._impl",
2314
+ "message": "[py stderr]: self.__projection = self._conform_projection(policy, camera, image_aspect, canvas_aspect, projection)"
2315
+ },
2316
+ {
2317
+ "level": "error",
2318
+ "channel": "omni.kit.app._impl",
2319
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
2320
+ },
2321
+ {
2322
+ "level": "error",
2323
+ "channel": "omni.kit.app._impl",
2324
+ "message": "[py stderr]: File \"<home>/Workspace/NV/IsaacLab/.venv/lib/python3.12/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.0+00c488ae/omni/kit/widget/viewport/api.py\", line 476, in _conform_projection"
2325
+ },
2326
+ {
2327
+ "level": "error",
2328
+ "channel": "omni.kit.app._impl",
2329
+ "message": "[py stderr]: gf_camera = camera.GetCamera(self.__time)"
2330
+ },
2331
+ {
2332
+ "level": "error",
2333
+ "channel": "omni.kit.app._impl",
2334
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^"
2335
+ },
2336
+ {
2337
+ "level": "error",
2338
+ "channel": "omni.kit.app._impl",
2339
+ "message": "[py stderr]: AttributeError: 'NoneType' object has no attribute 'GetCamera'"
2340
+ }
2341
+ ]
2342
+ }
2343
+ ]
2344
+ }
refrigerator_lrfs28xbs/.metadata/refrigerator_lrfs28xbs_validation.json ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "simready_usd/refrigerator_lrfs28xbs.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', 'com.nvidia.simready.SR.001']",
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', 'com.nvidia.simready.SR.001']",
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', 'com.nvidia.simready.SR.001']",
22
+ "passed": false,
23
+ "version": "0.1.0"
24
+ },
25
+ "FET_000_STANDARD": {
26
+ "blocking_failure": false,
27
+ "dependencies": "[]",
28
+ "optional requirements": "['com.nvidia.simready.SR.001']",
29
+ "passed": false,
30
+ "version": "0.2.0"
31
+ },
32
+ "FET_001_STANDARD": {
33
+ "blocking_failure": false,
34
+ "dependencies": "[]",
35
+ "passed": true,
36
+ "version": "1.0.1"
37
+ },
38
+ "FET_003_MUJOCO": {
39
+ "blocking_failure": false,
40
+ "dependencies": "[]",
41
+ "optional requirements": "['com.nvidia.simready.MUJOCO.COL.001']",
42
+ "passed": false,
43
+ "version": "0.1.0"
44
+ },
45
+ "FET_003_NEWTON": {
46
+ "blocking_failure": false,
47
+ "dependencies": "[]",
48
+ "optional requirements": "['com.nvidia.simready.NEWTON.COL.001']",
49
+ "passed": false,
50
+ "version": "0.1.0"
51
+ },
52
+ "FET_003_PHYSX": {
53
+ "blocking_failure": false,
54
+ "dependencies": "[]",
55
+ "passed": true,
56
+ "version": "0.4.0"
57
+ },
58
+ "FET_003_STANDARD": {
59
+ "blocking_failure": false,
60
+ "dependencies": "[]",
61
+ "passed": true,
62
+ "version": "0.2.0"
63
+ },
64
+ "FET_004_MUJOCO": {
65
+ "blocking_failure": false,
66
+ "dependencies": "[{'FET_003_MUJOCO': {'version': '0.1.0'}}]",
67
+ "optional requirements": "['com.nvidia.simready.MUJOCO.COL.001']",
68
+ "passed": false,
69
+ "version": "0.1.0"
70
+ },
71
+ "FET_004_NEWTON": {
72
+ "blocking_failure": false,
73
+ "dependencies": "[{'FET_003_NEWTON': {'version': '0.1.0'}}]",
74
+ "optional requirements": "['com.nvidia.simready.NEWTON.COL.001']",
75
+ "passed": false,
76
+ "version": "0.1.0"
77
+ },
78
+ "FET_004_PHYSX": {
79
+ "blocking_failure": false,
80
+ "dependencies": "[{'FET_003_PHYSX': {'version': '0.4.0'}}]",
81
+ "passed": true,
82
+ "version": "0.4.0"
83
+ },
84
+ "FET_004_STANDARD": {
85
+ "blocking_failure": false,
86
+ "dependencies": "[{'FET_003_STANDARD': {'version': '0.2.0'}}]",
87
+ "passed": true,
88
+ "version": "0.2.0"
89
+ },
90
+ "FET_005_STANDARD": {
91
+ "blocking_failure": false,
92
+ "dependencies": "[]",
93
+ "optional requirements": "['com.nvidia.simready.GSP.001']",
94
+ "passed": false,
95
+ "version": "0.1.0"
96
+ },
97
+ "FET_006_MDL": {
98
+ "blocking_failure": false,
99
+ "dependencies": "[]",
100
+ "optional requirements": "['com.nvidia.simready.VM.TEX.005']",
101
+ "passed": false,
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']",
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.004']",
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
+ "tier_core": "2026.8.0"
174
+ }
175
+ }
176
+ }
refrigerator_lrfs28xbs/com.nvidia.simready.packaging.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "format_version": "1.0",
3
+ "package_id": "simready.hf.LGElectronics.simready-assets.refrigerator_lrfs28xbs.2026.10.15_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": "c8eb92d05f7878f4850f55512f2c95308505aa890970c2254424bc971b4dc1c9"
10
+ }
11
+ },
12
+ {
13
+ "name": "com.nvidia.simready.packaging.bom.json",
14
+ "hash": {
15
+ "sha256": "572473e4cc65a01929e81ae20514c3680d54c218dc034db47f12fc47f7df5d34"
16
+ }
17
+ },
18
+ {
19
+ "name": "com.nvidia.simready.root_usds.json",
20
+ "hash": {
21
+ "sha256": "ab5347b4f239cb9eede12e521114c5543e6bacb5e4aca2888a56b9101f7d0c93"
22
+ }
23
+ }
24
+ ],
25
+ "content_hash": {
26
+ "sha256": "837864fd15bdfc38768104a0298339936260effae148f005480b13e51d404a86"
27
+ },
28
+ "package_hash": {
29
+ "sha256": "c492ec5baccdae58cb1b4dac992ee8131a88f30b2682b4f4b62b26cc37c926c1"
30
+ }
31
+ }
refrigerator_lrfs28xbs/simready_usd/.thumbs/256x256/refrigerator_lrfs28xbs.usd.png ADDED

Git LFS Details

  • SHA256: c892137a9b97aff7b3557f6f5023d6a39ff4eb96b12ccaf74b2c24087bc5bfd1
  • Pointer size: 130 Bytes
  • Size of remote file: 21.5 kB
refrigerator_lrfs28xbs/simready_usd/.thumbs/256x256/refrigerator_lrfs28xbs.usd_light.png ADDED

Git LFS Details

  • SHA256: 164fbd175b1c1ab2bed98096c48be7e3895cc72793fdd9893e7824a371dcdf51
  • Pointer size: 130 Bytes
  • Size of remote file: 20.2 kB
refrigerator_lrfs28xbs/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
+ );
refrigerator_lrfs28xbs/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
+ );
refrigerator_lrfs28xbs/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
+ );
refrigerator_lrfs28xbs/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
+ );
refrigerator_lrfs28xbs/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
+ );
refrigerator_lrfs28xbs/simready_usd/materials/mdl/pbr.mdl ADDED
@@ -0,0 +1,1004 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.8;
7
+
8
+ import ::anno::*;
9
+ import ::base::*;
10
+ import ::df::*;
11
+ import ::math::*;
12
+ import ::state::*;
13
+ import ::tex::*;
14
+ import ::scene::*;
15
+ import ::limits::*;
16
+
17
+ export enum gltf_alpha_mode {
18
+ opaque,
19
+ mask,
20
+ blend
21
+ };
22
+
23
+ export enum gltf_wrapping_mode {
24
+ clamp_to_edge = 33071,
25
+ mirrored_repeat = 33648,
26
+ repeat = 10497
27
+ };
28
+
29
+ export struct gltf_texture_lookup_value
30
+ {
31
+ bool valid = false;
32
+ float4 value = float4(0.0, 0.0, 0.0, 1.0);
33
+ };
34
+
35
+ export struct gltf_normal_texture_lookup_value
36
+ {
37
+ bool valid = false;
38
+ float3 value = float3(0.0);
39
+ };
40
+
41
+ float compute_opacity(gltf_alpha_mode mode, float alpha, float cutoff) {
42
+ switch (mode) {
43
+ case mask:
44
+ return alpha < cutoff ? 0.0 : 1.0;
45
+ case blend:
46
+ return alpha;
47
+ case opaque:
48
+ return 1.0;
49
+ }
50
+ }
51
+
52
+ float4 gltf_prepare_tex_float4(gltf_texture_lookup_value sample, float4 default_value = float4(1.0)) {
53
+ return sample.valid ? sample.value : default_value;
54
+ }
55
+
56
+ float3 gltf_prepare_tex_float3(gltf_texture_lookup_value sample, float3 default_value = float3(1.0)) {
57
+ return sample.valid ? float3(sample.value.x, sample.value.y, sample.value.z) : default_value;
58
+ }
59
+
60
+ float3 gltf_prepare_normal(gltf_normal_texture_lookup_value sample) {
61
+ return sample.valid ? sample.value : state::normal();
62
+ }
63
+
64
+ float gltf_prepare_occlusion(gltf_texture_lookup_value sample, float occlusion_strength) {
65
+ float occulusion = sample.valid ? sample.value.x : 1.0;
66
+ return math::lerp(1.0, occulusion, occlusion_strength);
67
+ }
68
+
69
+ color gltf_perpare_emission(gltf_texture_lookup_value sample, color emissive_factor) {
70
+ return emissive_factor * color(gltf_prepare_tex_float3(sample));
71
+ }
72
+
73
+ ::tex::wrap_mode convert_wrap_mode(gltf_wrapping_mode mode)
74
+ {
75
+ if (mode == clamp_to_edge)
76
+ return ::tex::wrap_clamp;
77
+ if (mode == mirrored_repeat)
78
+ return ::tex::wrap_mirrored_repeat;
79
+
80
+ return ::tex::wrap_repeat;
81
+ }
82
+
83
+ float2 khr_texture_transform_apply(
84
+ float2 coord,
85
+ float2 offset,
86
+ float rotation,
87
+ float2 scale
88
+ )
89
+ {
90
+ // MDL expects the texture coordinate origin at the bottom left (gltf at top left)
91
+ // Assuming the renderer follows the MDL specification in which case the coordinates
92
+ // have been flipped either while loading the glTF geometry or while setting up the state.
93
+
94
+ // Undo the flipping for the transformation to get into the original glTF texture space.
95
+ coord = float2(coord.x, 1.0f - coord.y);
96
+
97
+ // first scale
98
+ coord = coord * scale;
99
+ // then rotate
100
+ float cos_rotation = ::math::cos(rotation);
101
+ float sin_rotation = ::math::sin(rotation);
102
+ coord = float2(cos_rotation * coord.x + sin_rotation * coord.y, cos_rotation * coord.y - sin_rotation * coord.x);
103
+ // then translate
104
+ coord = coord + offset;
105
+
106
+ // flip back
107
+ coord = float2(coord.x, 1.0f - coord.y);
108
+ return coord;
109
+ }
110
+
111
+ export gltf_texture_lookup_value gltf_texture_lookup(
112
+ uniform texture_2d texture = texture_2d()
113
+ [[
114
+ anno::in_group("Source"),
115
+ anno::display_name("Texture"),
116
+ anno::description("Texture File")
117
+ ]],
118
+ uniform int tex_coord_index = 0
119
+ [[
120
+ anno::in_group("Source"),
121
+ anno::display_name("Coordinate Set"),
122
+ anno::description("Texture coordinate set (UV-Set). KHR_texture_transform overrides the textureInfo texCoord value if supplied."),
123
+ anno::enable_if("::tex::texture_isvalid(texture)")
124
+ ]],
125
+
126
+ uniform float2 offset = float2(0.0f, 0.0)
127
+ [[
128
+ anno::in_group("Texture Transform"),
129
+ anno::display_name("Offset"),
130
+ anno::description("The offset of the UV coordinate origin as a factor of the texture dimensions."),
131
+ anno::enable_if("::tex::texture_isvalid(texture)")
132
+ ]],
133
+ uniform float rotation = 0.0
134
+ [[
135
+ anno::hard_range(0.0, 2.0 * ::math::PI),
136
+ anno::in_group("Texture Transform"),
137
+ anno::display_name("Rotation"),
138
+ anno::description("Rotate the UVs by this many radians counter-clockwise around the origin. This is equivalent to a similar rotation of the image clockwise."),
139
+ anno::enable_if("::tex::texture_isvalid(texture)")
140
+ ]],
141
+ uniform float2 scale = float2(1.0f, 1.0f)
142
+ [[
143
+ anno::in_group("Texture Transform"),
144
+ anno::display_name("Scale"),
145
+ anno::description("The scale factor applied to the components of the UV coordinates."),
146
+ anno::enable_if("::tex::texture_isvalid(texture)")
147
+ ]],
148
+
149
+ uniform gltf_wrapping_mode wrap_s = repeat
150
+ [[
151
+ anno::in_group("Sampler"),
152
+ anno::display_name("Wrap S"),
153
+ anno::description("S (U) wrapping mode."),
154
+ anno::enable_if("::tex::texture_isvalid(texture)")
155
+ ]],
156
+ uniform gltf_wrapping_mode wrap_t = repeat
157
+ [[
158
+ anno::in_group("Sampler"),
159
+ anno::display_name("Wrap T"),
160
+ anno::description("T (V) wrapping mode."),
161
+ anno::enable_if("::tex::texture_isvalid(texture)")
162
+ ]]
163
+ )
164
+ [[
165
+ anno::author("NVIDIA Corporation"),
166
+ anno::display_name("GLTF Texture Lookup"),
167
+ anno::description("Function to read a color or color with alpha channel texture.")
168
+ ]]
169
+ {
170
+ gltf_texture_lookup_value tex_ret;
171
+ if (!tex::texture_isvalid(texture))
172
+ return tex_ret;
173
+
174
+ float3 tex_coord3 = state::texture_coordinate(tex_coord_index);
175
+ float2 tex_coord = khr_texture_transform_apply(
176
+ coord: float2(tex_coord3.x, tex_coord3.y),
177
+ offset: offset,
178
+ rotation: rotation,
179
+ scale: scale);
180
+
181
+ tex_ret.value = tex::lookup_float4(
182
+ tex: texture,
183
+ coord: tex_coord,
184
+ wrap_u: convert_wrap_mode(wrap_s),
185
+ wrap_v: convert_wrap_mode(wrap_t));
186
+ tex_ret.valid = true;
187
+ return tex_ret;
188
+ }
189
+
190
+ export gltf_normal_texture_lookup_value gltf_normal_texture_lookup(
191
+ uniform texture_2d texture = texture_2d()
192
+ [[
193
+ anno::in_group("Source"),
194
+ anno::display_name("Texture"),
195
+ anno::description("Texture File")
196
+ ]],
197
+ uniform float normal_scale_factor = 1.0
198
+ [[
199
+ anno::hard_range(0.0, 1.0),
200
+ anno::in_group("Source"),
201
+ anno::display_name("Normal Scale Factor"),
202
+ anno::description("Strength of the base layer normal mapping."),
203
+ anno::enable_if("::tex::texture_isvalid(texture)")
204
+ ]],
205
+ uniform int tex_coord_index = 0
206
+ [[
207
+ anno::in_group("Source"),
208
+ anno::display_name("Coordinate Set"),
209
+ anno::description("Texture coordinate set (UV-Set). KHR_texture_transform overrides the textureInfo texCoord value if supplied."),
210
+ anno::enable_if("::tex::texture_isvalid(texture) && normal_scale_factor>0.0")
211
+ ]],
212
+ uniform int tex_tangent_index = 0
213
+ [[
214
+ anno::hidden(),
215
+ anno::in_group("Source"),
216
+ anno::display_name("Coordinate Set"),
217
+ anno::description("Tangent to be to construct the tangent frame."),
218
+ anno::enable_if("::tex::texture_isvalid(texture) && normal_scale_factor>0.0")
219
+ ]],
220
+
221
+ uniform float2 offset = float2(0.0f, 0.0)
222
+ [[
223
+ anno::in_group("Texture Transform"),
224
+ anno::display_name("Offset"),
225
+ anno::description("The offset of the UV coordinate origin as a factor of the texture dimensions."),
226
+ anno::enable_if("::tex::texture_isvalid(texture) && normal_scale_factor>0.0")
227
+ ]],
228
+ uniform float rotation = 0.0
229
+ [[
230
+ anno::hard_range(0.0, 2.0 * ::math::PI),
231
+ anno::in_group("Texture Transform"),
232
+ anno::display_name("Rotation"),
233
+ anno::description("Rotate the UVs by this many radians counter-clockwise around the origin. This is equivalent to a similar rotation of the image clockwise."),
234
+ anno::enable_if("::tex::texture_isvalid(texture) && normal_scale_factor>0.0")
235
+ ]],
236
+ uniform float2 scale = float2(1.0f, 1.0f)
237
+ [[
238
+ anno::in_group("Texture Transform"),
239
+ anno::display_name("Scale"),
240
+ anno::description("The scale factor applied to the components of the UV coordinates."),
241
+ anno::enable_if("::tex::texture_isvalid(texture) && normal_scale_factor>0.0")
242
+ ]],
243
+
244
+ uniform gltf_wrapping_mode wrap_s = repeat
245
+ [[
246
+ anno::in_group("Sampler"),
247
+ anno::display_name("Wrap S"),
248
+ anno::description("S (U) wrapping mode."),
249
+ anno::enable_if("::tex::texture_isvalid(texture) && normal_scale_factor>0.0")
250
+ ]],
251
+ uniform gltf_wrapping_mode wrap_t = repeat
252
+ [[
253
+ anno::in_group("Sampler"),
254
+ anno::display_name("Wrap T"),
255
+ anno::description("T (V) wrapping mode."),
256
+ anno::enable_if("::tex::texture_isvalid(texture) && normal_scale_factor>0.0")
257
+ ]]
258
+ )
259
+ [[
260
+ anno::author("NVIDIA Corporation"),
261
+ anno::display_name("GLTF Normal Texture Lookup"),
262
+ anno::description("Function to read a normal texture.")
263
+ ]]
264
+ {
265
+ gltf_normal_texture_lookup_value tex_ret;
266
+ if (!::tex::texture_isvalid(texture))
267
+ return tex_ret;
268
+
269
+ tex_ret.value = base::tangent_space_normal_texture(
270
+ texture: texture,
271
+ factor: normal_scale_factor,
272
+ uvw: base::transform_coordinate(
273
+ transform: base::rotation_translation_scale(
274
+ rotation: float3(0, 0, rotation),
275
+ translation: float3(offset.x, offset.y, 0),
276
+ scaling: float3(scale.x, scale.y, 1)
277
+ ),
278
+ coordinate: base::texture_coordinate_info(
279
+ position: state::texture_coordinate(tex_coord_index),
280
+ tangent_u: state::texture_tangent_u(tex_tangent_index),
281
+ tangent_v: state::texture_tangent_v(tex_tangent_index)
282
+ )
283
+ ),
284
+ wrap_u: convert_wrap_mode(wrap_s),
285
+ wrap_v: convert_wrap_mode(wrap_t));
286
+ tex_ret.valid = true;
287
+ return tex_ret;
288
+ }
289
+
290
+ export material gltf_material(
291
+ // base color
292
+ uniform color base_color_factor = color(1.0)
293
+ [[
294
+ anno::in_group("Metallic Roughness"),
295
+ anno::display_name("Base Color Factor"),
296
+ anno::description("The base color of the material. Multiplied to the 'Base Color Texture' if available.")
297
+ ]],
298
+
299
+ gltf_texture_lookup_value base_color_texture = gltf_texture_lookup()
300
+ [[
301
+ anno::in_group("Metallic Roughness"),
302
+ anno::display_name("Base Color Texture"),
303
+ anno::description("The base color of the material. Influenced by the 'Base Color Factor'.")
304
+ ]],
305
+
306
+ // KHR_materials_specular
307
+ uniform float specular_factor = 1.0
308
+ [[
309
+ anno::hard_range(0.0, 1.0),
310
+ anno::in_group("Specular"),
311
+ anno::display_name("Specular Factor"),
312
+ anno::description("The strength of the specular reflection. Multiplied to the 'Specular Texture' if available.")
313
+ ]],
314
+ gltf_texture_lookup_value specular_texture = gltf_texture_lookup()
315
+ [[
316
+ anno::in_group("Specular"),
317
+ anno::display_name("Specular Texture"),
318
+ anno::description("A texture that defines the strength of the specular reflection, stored in the alpha (A) channel. This will be multiplied by the 'Specular Factor'.")
319
+ ]],
320
+ uniform color specular_color_factor = color(1.0)
321
+ [[
322
+ anno::in_group("Specular"),
323
+ anno::display_name("Specular Color Factor"),
324
+ anno::description("The F0 color of the specular reflection (linear RGB). Multiplied to the 'Specular Color Texture' if available.")
325
+ ]],
326
+ gltf_texture_lookup_value specular_color_texture = gltf_texture_lookup()
327
+ [[
328
+ anno::in_group("Specular"),
329
+ anno::display_name("Specular Color Texture"),
330
+ anno::description("A texture that defines the F0 color of the specular reflection, stored in the RGB channels and encoded in sRGB. This texture will be multiplied by 'Specular Color Factor'.")
331
+ ]],
332
+
333
+ // metallic roughness
334
+ uniform float metallic_factor = 1.0
335
+ [[
336
+ anno::hard_range(0.0, 1.0),
337
+ anno::in_group("Metallic Roughness"),
338
+ anno::display_name("Metallic Factor"),
339
+ anno::description("The metalness of the material. Select between dielectric (0.0) and metallic (1.0). Multiplied to the 'Metal/Rough Texture' value if available.")
340
+ ]],
341
+
342
+ uniform float roughness_factor = 1.0
343
+ [[
344
+ anno::hard_range(0.0, 1.0),
345
+ anno::in_group("Metallic Roughness"),
346
+ anno::display_name("Roughness Factor"),
347
+ anno::description("The roughness of the material. Select between very glossy (0.0) and dull (1.0). Multiplied to the 'Metal/Rough Texture' value if available.")
348
+ ]],
349
+ gltf_texture_lookup_value metallic_roughness_texture = gltf_texture_lookup()
350
+ [[
351
+ anno::in_group("Metallic Roughness"),
352
+ anno::display_name("Metal/Rough Texture"),
353
+ anno::description("Metallic in the red or blue component and roughness in the green component. Influenced by the 'Metallic Factor' and 'Roughness Factor'."),
354
+ anno::enable_if("metallic_factor>0.0 || roughness_factor>0.0")
355
+ ]],
356
+
357
+ // KHR_materials_anisotropy
358
+ uniform float anisotropy_strength = 0.0
359
+ [[
360
+ anno::hard_range(0.0, 1.0),
361
+ anno::in_group("Anisotropy"),
362
+ anno::display_name("Anisotropy Strength"),
363
+ anno::description("The anisotropy strength. When the anisotropy texture is present, this value is multiplied by the texture's blue channel.")
364
+ ]],
365
+ uniform float anisotropy_rotation = 0.0
366
+ [[
367
+ anno::hard_range(0.0, 2.0 * ::math::PI),
368
+ anno::in_group("Anisotropy"),
369
+ anno::display_name("Anisotropy Rotation"),
370
+ anno::description("The rotation of the anisotropy in tangent, bitangent space, measured in radians counter-clockwise from the tangent. When the anisotropy texture is present, this value provides additional rotation to the vectors in the texture.")
371
+ ]],
372
+ gltf_texture_lookup_value anisotropy_texture = gltf_texture_lookup()
373
+ [[
374
+ anno::in_group("Anisotropy"),
375
+ anno::display_name("Anisotropy Texture"),
376
+ anno::description("The anisotropy texture. Red and green channels represent the anisotropy direction in [− 1, 1] tangent, bitangent space to be rotated by the anisotropy rotation. The blue channel contains strength as [0, 1] to be multiplied by the anisotropy strength.")
377
+ ]],
378
+
379
+ // KHR_materials_ior
380
+ uniform float ior = 1.5
381
+ [[
382
+ anno::hard_range(1.0, 5.0),
383
+ anno::in_group("Metallic Roughness"),
384
+ anno::display_name("IOR"),
385
+ anno::description("The index of refraction.")
386
+ ]],
387
+
388
+ // normal map
389
+ gltf_normal_texture_lookup_value normal_texture = gltf_normal_texture_lookup()
390
+ [[
391
+ anno::in_group("Normal Mapping"),
392
+ anno::display_name("Normal Texture"),
393
+ anno::description("Base layer normal map.")
394
+ ]],
395
+
396
+ // KHR_materials_transmission
397
+ uniform float transmission_factor = 0.0
398
+ [[
399
+ anno::hard_range(0.0, 1.0),
400
+ anno::in_group("Transmission"),
401
+ anno::display_name("Transmission Factor"),
402
+ anno::description("The base percentage of light that is transmitted through the surface. Multiplied to the 'Transmission Texture' if available.")
403
+ ]],
404
+ gltf_texture_lookup_value transmission_texture = gltf_texture_lookup()
405
+ [[
406
+ anno::in_group("Transmission"),
407
+ anno::display_name("Transmission Texture"),
408
+ anno::description("A texture that defines the transmission percentage of the surface, stored in the R channel. Influenced by the 'Transmission Factor'."),
409
+ anno::enable_if("transmission_factor>0")
410
+ ]],
411
+
412
+ // KHR_materials_sheen
413
+ uniform color sheen_color_factor = color(0.0)
414
+ [[
415
+ anno::in_group("Sheen"),
416
+ anno::display_name("Sheen Color Factor"),
417
+ anno::description("The sheen color in linear space. Multiplied to the 'Sheen Color Texture' if available.")
418
+ ]],
419
+ gltf_texture_lookup_value sheen_color_texture = gltf_texture_lookup()
420
+ [[
421
+ anno::in_group("Sheen"),
422
+ anno::display_name("Sheen Color Texture"),
423
+ anno::description("The sheen color (RGB). The sheen color is in sRGB transfer function. Influenced by the 'Sheen Color Factor'.")
424
+ ]],
425
+ uniform float sheen_roughness_factor = 0.0
426
+ [[
427
+ anno::hard_range(0.0, 1.0),
428
+ anno::in_group("Sheen"),
429
+ anno::display_name("Sheen Roughness Factor"),
430
+ anno::description("The sheen roughness. Multiplied to the 'Sheen Roughness Texture' if available.")
431
+ ]],
432
+ gltf_texture_lookup_value sheen_roughness_texture = gltf_texture_lookup()
433
+ [[
434
+ anno::in_group("Sheen"),
435
+ anno::display_name("Sheen Roughness Texture"),
436
+ anno::description("The sheen roughness (Alpha) texture. Influenced by the 'Sheen Roughness Factor'.")
437
+ ]],
438
+
439
+ // KHR_materials_clearcoat
440
+ uniform float clearcoat_factor = 0.0
441
+ [[
442
+ anno::hard_range(0.0, 1.0),
443
+ anno::in_group("Clearcoat"),
444
+ anno::display_name("Clearcoat Factor"),
445
+ anno::description("Strength of the clearcoat. Multiplied to the 'Clearcoat Texture' if available.")
446
+ ]],
447
+ gltf_texture_lookup_value clearcoat_texture = gltf_texture_lookup()
448
+ [[
449
+ anno::in_group("Clearcoat"),
450
+ anno::display_name("Clearcoat Texture"),
451
+ anno::description("Strength of the clearcoat. Influenced by the 'Clearcoat Factor'."),
452
+ anno::enable_if("clearcoat_factor>0")
453
+ ]],
454
+ uniform float clearcoat_roughness_factor = 0.0
455
+ [[
456
+ anno::hard_range(0.0, 1.0),
457
+ anno::in_group("Clearcoat"),
458
+ anno::display_name("Clearcoat Roughness Factor"),
459
+ anno::description("The clearcoat layer roughness. Multiplied to the 'Clearcoat Roughness Texture' if available."),
460
+ anno::enable_if("clearcoat_factor>0.0")
461
+ ]],
462
+ gltf_texture_lookup_value clearcoat_roughness_texture = gltf_texture_lookup()
463
+ [[
464
+ anno::in_group("Clearcoat"),
465
+ anno::display_name("Clearcoat Roughness Texture"),
466
+ anno::description("The clearcoat layer roughness texture. Influenced by the 'Clearcoat Roughness Texture'."),
467
+ anno::enable_if("clearcoat_factor>0.0 && clearcoat_roughness_factor>0.0")
468
+ ]],
469
+ gltf_normal_texture_lookup_value clearcoat_normal_texture = gltf_normal_texture_lookup()
470
+ [[
471
+ anno::in_group("Clearcoat"),
472
+ anno::display_name("Clearcoat Normal"),
473
+ anno::description("The clearcoat normal map texture."),
474
+ anno::enable_if("clearcoat_factor>0.0")
475
+ ]],
476
+
477
+ // KHR_materials_iridescence
478
+ uniform float iridescence_factor = 0.0
479
+ [[
480
+ anno::hard_range(0.0, 1.0),
481
+ anno::in_group("Iridescence"),
482
+ anno::display_name("Iridescence Factor"),
483
+ anno::description("Strength of the iridescence. Multiplied to the 'Iridescence Texture' if available.")
484
+ ]],
485
+ gltf_texture_lookup_value iridescence_texture = gltf_texture_lookup()
486
+ [[
487
+ anno::in_group("Iridescence"),
488
+ anno::display_name("Iridescence Texture"),
489
+ anno::description("Strength of the iridescence. Uses only the red channel, assuming linear space. Influenced by the 'Iridescence Factor'."),
490
+ anno::enable_if("iridescence_factor>0")
491
+ ]],
492
+ uniform float iridescence_ior = 1.3
493
+ [[
494
+ anno::soft_range(1.0, 5.0),
495
+ anno::in_group("Iridescence"),
496
+ anno::display_name("Iridescence IOR"),
497
+ anno::description("The index of refraction of the dielectric thin-film layer.")
498
+ ]],
499
+ uniform float iridescence_thickness_minimum = 100
500
+ [[
501
+ anno::soft_range(0.0, 600.0),
502
+ anno::in_group("Iridescence"),
503
+ anno::display_name("Iridescence Thickness Minimum"),
504
+ anno::description("The minimum thickness of the thin-film layer given in nanometers.")
505
+ ]],
506
+ uniform float iridescence_thickness_maximum = 400
507
+ [[
508
+ anno::soft_range(0.0, 1000.0),
509
+ anno::in_group("Iridescence"),
510
+ anno::display_name("Iridescence Thickness Maximum"),
511
+ anno::description("The maximum thickness of the thin-film layer given in nanometers. Used as thickness if no 'Iridescence Thickness Texture' if available.")
512
+ ]],
513
+ gltf_texture_lookup_value iridescence_thickness_texture = gltf_texture_lookup()
514
+ [[
515
+ anno::in_group("Iridescence"),
516
+ anno::display_name("Iridescence Thickness Texture"),
517
+ anno::description("The thickness texture of the thin-film layer. Uses only the red channel, assuming linear space. Used to blend between 'Iridescence Thickness Minimum' and 'Iridescence Thickness Maximum'."),
518
+ anno::enable_if("iridescence_factor>0")
519
+ ]],
520
+
521
+ // emission
522
+ uniform color emissive_factor = color(0.0)
523
+ [[
524
+ anno::in_group("Emission"),
525
+ anno::display_name("Emissive Factor"),
526
+ anno::description("The emissive color of the material. Multiplied to the 'Emissive Texture' if available.")
527
+ ]],
528
+ gltf_texture_lookup_value emissive_texture = gltf_texture_lookup()
529
+ [[
530
+ anno::in_group("Emission"),
531
+ anno::display_name("Emissive Texture"),
532
+ anno::description("The emissive map texture. Influenced by the 'Emissive Factor'."),
533
+ anno::enable_if("::math::average(emissive_factor)>0.0")
534
+ ]],
535
+ // KHR_materials_emissive_strength
536
+ uniform float emissive_strength = 1.0
537
+ [[
538
+ anno::soft_range(0.0, 10000),
539
+ anno::in_group("Emission"),
540
+ anno::display_name("Emissive Strength"),
541
+ anno::description("The maximum strength of the emissive texture. Multiplied to the 'Emissive Factor'."),
542
+ anno::enable_if("::math::average(emissive_factor)>0.0")
543
+ ]],
544
+
545
+ // KHR_materials_volume
546
+ uniform bool thin_walled = true
547
+ [[
548
+ anno::in_group("Volume"),
549
+ anno::display_name("Thin-walled"),
550
+ anno::description("If true the material is thin-walled. Otherwise the material is a volume boundary. The doubleSided property has no effect on volume boundaries. Note, the thickness parameters are ignored since ray-tracing is used to compute the traveled distance within the volume.")
551
+ ]],
552
+ uniform float attenuation_distance = 0.0
553
+ [[
554
+ anno::soft_range(0.0, ::limits::FLOAT_MAX),
555
+ anno::in_group("Volume"),
556
+ anno::display_name("Attenuation Distance"),
557
+ anno::description("Density of the medium given as the average distance that light travels in the medium before interacting with a particle. The value is given in world space. A value 0.0 disables it")
558
+ ]],
559
+ uniform color attenuation_color = color(1.0)
560
+ [[
561
+ anno::in_group("Volume"),
562
+ anno::display_name("Attenuation Color"),
563
+ anno::description("The color that white light turns into due to absorption when reaching the attenuation distance.")
564
+ ]],
565
+
566
+ // ambient occlusion
567
+ gltf_texture_lookup_value occlusion_texture = gltf_texture_lookup()
568
+ [[
569
+ anno::in_group("Occlusion"),
570
+ anno::display_name("Occlusion Texture"),
571
+ anno::description("The occlusion map texture. Influenced by the 'Occlusion Strength'.")
572
+ ]],
573
+ uniform float occlusion_strength = 1.0
574
+ [[
575
+ anno::hard_range(0.0, 1.0),
576
+ anno::in_group("Occlusion"),
577
+ anno::display_name("Occlusion Strength"),
578
+ anno::description("A scalar multiplier controlling the amount of occlusion applied. Multiplied to the 'Occlusion Texture'.")
579
+ ]],
580
+
581
+ // alpha
582
+ uniform gltf_alpha_mode alpha_mode = opaque
583
+ [[
584
+ anno::in_group("Opacity"),
585
+ anno::display_name("Alpha Mode"),
586
+ anno::description("Select how to interpret the alpha value.")
587
+ ]],
588
+ uniform float base_alpha = 1.0
589
+ [[
590
+ anno::hard_range(0.0, 1.0),
591
+ anno::in_group("Opacity"),
592
+ anno::display_name("Base Alpha"),
593
+ anno::description("Select between transparent (0.0) and opaque (1.0). Multiplied to the base color texture alpha channel if available."),
594
+ anno::enable_if("alpha_mode!=opaque")
595
+ ]],
596
+ // alpha for gltf_alpha_mode::mask
597
+ uniform float alpha_cutoff = 0.5
598
+ [[
599
+ anno::hard_range(0.0, 1.0),
600
+ anno::in_group("Opacity"),
601
+ anno::display_name("Alpha Cutoff"),
602
+ anno::description("Threshold to decide between fully transparent and fully opaque when alpha mode is 'mask'."),
603
+ anno::enable_if("alpha_mode==mask")
604
+ ]],
605
+
606
+ uniform string vertex_color_name = string("displayColor")
607
+ [[
608
+ anno::in_group("Primvar"),
609
+ anno::display_name("Vertex Color Name"),
610
+ anno::description("Name of the vertex color primvar usually COLOR_0(gltf), or displayColor(usd)")
611
+ ]],
612
+
613
+ uniform bool use_vertex_color_alpha = false
614
+ [[
615
+ anno::in_group("Primvar"),
616
+ anno::display_name("Use Opacity Channel From Vertex Color"),
617
+ anno::description("Multipy the Alpha or .w channel from the vertex color with the base alpha value.")
618
+ ]],
619
+
620
+ uniform string vertex_opacity_name = string("displayOpacity")
621
+ [[
622
+ anno::in_group("Primvar"),
623
+ anno::display_name("Vertex Opacity Name"),
624
+ anno::description("Name of the vertex opacity primvar usually the fourth component of COLOR_0(gltf), or displayOpacity(usd)")
625
+ ]]
626
+
627
+ ) [[
628
+ anno::author("NVIDIA Corporation"),
629
+ anno::display_name("GLTF Material - Metallic-Roughness"),
630
+ anno::description("Metallic-Roughness Material that takes the GLTF PBR model and KHR extension parameters as input.")
631
+ ]] = let {
632
+
633
+ // handling GLTF parameters
634
+ // ------------------------------------------------------------------------
635
+
636
+ float4 base_float4 = gltf_prepare_tex_float4(base_color_texture) * ::scene::data_lookup_float4(vertex_color_name, float4(1.0)); // apply vertex color
637
+ color base_color = base_color_factor * color(base_float4.x, base_float4.y, base_float4.z);
638
+
639
+ float alpha = base_alpha * (use_vertex_color_alpha == 1 ? base_float4.w : 1.0) * ((vertex_color_name != vertex_opacity_name) ? ::scene::data_lookup_float(vertex_opacity_name, float(1.0)) : 1.0);
640
+
641
+ float3 metallic_roughness = gltf_prepare_tex_float3(metallic_roughness_texture);
642
+ float metallic = metallic_factor * metallic_roughness.z;
643
+ float roughness = roughness_factor * metallic_roughness.y;
644
+
645
+ float3 normal = gltf_prepare_normal(normal_texture);
646
+ float occlusion = gltf_prepare_occlusion(occlusion_texture, occlusion_strength);
647
+ color emissive_color = gltf_perpare_emission(emissive_texture, emissive_factor * math::max(0.0f, emissive_strength));
648
+
649
+ // KHR_materials_specular
650
+ // ------------------------------------------------------------------------
651
+ color specular_color = color(gltf_prepare_tex_float3(specular_color_texture)) * specular_color_factor;
652
+ float specular = gltf_prepare_tex_float4(specular_texture).w * specular_factor;
653
+
654
+ // KHR_materials_transmission
655
+ // ------------------------------------------------------------------------
656
+ float transmission = gltf_prepare_tex_float4(transmission_texture).x * transmission_factor;
657
+
658
+ // KHR_materials_sheen
659
+ // ------------------------------------------------------------------------
660
+ color sheen_color = color(gltf_prepare_tex_float3(sheen_color_texture)) * sheen_color_factor;
661
+ float sheen_roughness = gltf_prepare_tex_float4(sheen_roughness_texture).w * sheen_roughness_factor;
662
+
663
+ // KHR_materials_clearcoat
664
+ // ------------------------------------------------------------------------
665
+ float clearcoat_blend = gltf_prepare_tex_float3(clearcoat_texture).x * clearcoat_factor;
666
+ float clearcoat_roughness = gltf_prepare_tex_float3(clearcoat_roughness_texture).y * clearcoat_roughness_factor;
667
+ float clearcoat_roughness2 = clearcoat_roughness * clearcoat_roughness;
668
+ float3 clearcoat_normal = gltf_prepare_normal(clearcoat_normal_texture);
669
+ float grazing_refl_coat = math::max((1.0 - clearcoat_roughness), 0.0);
670
+
671
+ // KHR_materials_iridescence
672
+ // ------------------------------------------------------------------------
673
+ float iridescence_strength = gltf_prepare_tex_float3(iridescence_texture).x * iridescence_factor;
674
+ float iridescence_thickness = math::lerp(iridescence_thickness_minimum, iridescence_thickness_maximum, gltf_prepare_tex_float3(iridescence_thickness_texture).x);
675
+
676
+ // KHR_materials_anisotropy
677
+ // ------------------------------------------------------------------------
678
+ float3 anisotropy_tex = gltf_prepare_tex_float3(anisotropy_texture, float3(1.0, 0.5, 1.0));
679
+ float2 anisotropy_tex_dir = float2(anisotropy_tex.x * 2.0 - 1.0, anisotropy_tex.y * 2.0 - 1.0);
680
+ float2 anisotropy_rot = float2(math::cos(anisotropy_rotation), math::sin(anisotropy_rotation));
681
+ float2 anisotropy_dir = float2x2(anisotropy_rot.x, anisotropy_rot.y, -anisotropy_rot.y, anisotropy_rot.x) * math::normalize(anisotropy_tex_dir);
682
+ float3 anisotropy_tangent_u = state::texture_tangent_u(0) * anisotropy_dir.x + state::texture_tangent_v(0) * anisotropy_dir.y;
683
+ float anisotropy = anisotropy_strength * anisotropy_tex.z;
684
+
685
+ // metallic roughness model
686
+ // ------------------------------------------------------------------------
687
+
688
+ // compute final roughness by squaring the "roughness" parameter
689
+ float roughness2 = roughness * roughness;
690
+
691
+ float anisotropy_roughness_u = math::lerp(roughness2, 1.0, anisotropy * anisotropy);
692
+ float anisotropy_roughness_v = roughness2;
693
+
694
+ // reduce the reflectivity at grazing angles to avoid "dark edges"
695
+ // for high roughness due to the layering
696
+ float grazing_refl = math::max((1.0 - roughness), 0.0);
697
+
698
+ // fresnel term based on ior
699
+ float f0 = math::pow((ior - 1.0)/(ior + 1.0), 2.0);
700
+
701
+ // for the dielectric component we layer the glossy component on top of the diffuse one,
702
+ // the glossy layer has no color tint
703
+ bsdf dielectric_component = df::color_custom_curve_layer(
704
+ weight: color(1.0), // roughness is used to weight between diffuse and glossy
705
+ normal_reflectivity: math::min(f0 * specular_color, color(1.0)) * specular,
706
+ grazing_reflectivity: color(grazing_refl * specular),
707
+ layer: df::microfacet_ggx_vcavities_bsdf(
708
+ roughness_u: anisotropy_roughness_u,
709
+ roughness_v: anisotropy_roughness_v,
710
+ tangent_u: anisotropy_tangent_u),
711
+ base: df::weighted_layer(
712
+ weight: transmission,
713
+ base: df::diffuse_reflection_bsdf(tint: base_color * occlusion),
714
+ layer: df::microfacet_ggx_vcavities_bsdf(
715
+ roughness_u: roughness2,
716
+ tint: base_color * occlusion,
717
+ mode: df::scatter_transmit)),
718
+ normal: normal
719
+ );
720
+
721
+ // apply iridescence and make the strength adjustable using a weighted layer
722
+ bsdf dielectric_component_with_thin_film = df::weighted_layer(
723
+ weight: iridescence_strength,
724
+ base: dielectric_component,
725
+ layer: df::thin_film(
726
+ thickness: iridescence_thickness,
727
+ ior: color(iridescence_ior),
728
+ base: dielectric_component
729
+ )
730
+ );
731
+
732
+ // the metallic component doesn't have a diffuse component,
733
+ // its only glossy base_color is applied to tint it
734
+ bsdf metallic_component = df::microfacet_ggx_vcavities_bsdf(
735
+ tint: base_color * occlusion,
736
+ roughness_u: anisotropy_roughness_u,
737
+ roughness_v: anisotropy_roughness_v,
738
+ tangent_u: anisotropy_tangent_u);
739
+
740
+ // apply iridescence and make the strength adjustable using a weighted layer
741
+ // according to KHR_materials_iridescence spec: using dielectric thin film fresnel for metals, too
742
+ color base_color_sqrt = math::min(math::sqrt(math::saturate(base_color * occlusion)), color(0.99f));
743
+ color dielectric_ior = (color(1.0f) + base_color_sqrt) / (color(1.0f) - base_color_sqrt);
744
+ bsdf metallic_component_with_thin_film = df::weighted_layer(
745
+ weight: iridescence_strength,
746
+ base: metallic_component,
747
+ layer: df::thin_film(
748
+ thickness: iridescence_thickness,
749
+ ior: color(iridescence_ior),
750
+ base: df::fresnel_factor(
751
+ ior: dielectric_ior,
752
+ extinction_coefficient: color(0.0f),
753
+ base: df::microfacet_ggx_vcavities_bsdf(roughness_u: roughness2))
754
+ )
755
+ );
756
+
757
+ // apply sheen to the dielectric component
758
+ // add the sheen_color as weight in an outer layer to be able to blend and disable on default
759
+ // otherwise, sheen would be applied and tinted black
760
+ bsdf dielectric_sheen_component = df::color_weighted_layer(
761
+ weight: sheen_color,
762
+ layer: df::sheen_bsdf(
763
+ roughness: sheen_roughness * sheen_roughness,
764
+ tint: color(1.0),
765
+ multiscatter_tint: color(1.0),
766
+ multiscatter: dielectric_component // don't apply thin_film
767
+ ),
768
+ base: dielectric_component_with_thin_film);
769
+
770
+ // final BSDF is a linear blend between dielectric and metallic component
771
+ bsdf dielectric_metal_mix = df::weighted_layer(
772
+ weight: metallic,
773
+ base: dielectric_sheen_component,
774
+ layer: metallic_component_with_thin_film,
775
+ normal: normal);
776
+
777
+ bsdf clearcoated = df::custom_curve_layer(
778
+ weight: clearcoat_blend,
779
+ normal_reflectivity: 0.04,
780
+ grazing_reflectivity: grazing_refl_coat,
781
+ layer: df::microfacet_ggx_vcavities_bsdf(
782
+ mode: df::scatter_reflect,
783
+ roughness_u: clearcoat_roughness2,
784
+ tint: color(1.0)),
785
+ base: df::weighted_layer(
786
+ weight: 1.0,
787
+ layer: dielectric_metal_mix,
788
+ normal: normal),
789
+ normal: clearcoat_normal);
790
+
791
+ } in material(
792
+ thin_walled: thin_walled,
793
+ surface: material_surface(
794
+ scattering: clearcoated,
795
+ emission: material_emission (
796
+ emission: df::diffuse_edf(),
797
+ intensity: emissive_color * ::math::PI
798
+ )
799
+ ),
800
+ volume: material_volume(
801
+ absorption_coefficient: thin_walled ? color(0.0) : (attenuation_distance == 0) ? color(0.0) : -math::log(attenuation_color) / attenuation_distance
802
+ ),
803
+ ior: color(ior),
804
+ geometry: material_geometry(
805
+ cutout_opacity: compute_opacity(alpha_mode, alpha, alpha_cutoff)
806
+ )
807
+ );
808
+
809
+
810
+ export material gltf_material_khr_specular_glossiness(
811
+ // diffuse color
812
+ uniform color diffuse_factor = color(1.0)
813
+ [[
814
+ anno::in_group("PBR Specular Glossiness"),
815
+ anno::display_name("Diffuse Factor"),
816
+ anno::description("The diffuse color of the material. Multiplied to the 'Diffuse Texture' if available.")
817
+ ]],
818
+ gltf_texture_lookup_value diffuse_texture = gltf_texture_lookup()
819
+ [[
820
+ anno::in_group("PBR Specular Glossiness"),
821
+ anno::display_name("Diffuse Texture"),
822
+ anno::description("The diffuse color of the material. Influenced by the 'Diffuse Factor'.")
823
+ ]],
824
+
825
+ // specular glossiness
826
+ uniform color specular_factor = 1.0
827
+ [[
828
+ anno::in_group("PBR Specular Glossiness"),
829
+ anno::display_name("Specular Factor"),
830
+ anno::description("The specular color of the material. Multiplied to the rgb values of the 'Specular/Glossy Texture' if available.")
831
+ ]],
832
+ uniform float glossiness_factor = 1.0
833
+ [[
834
+ anno::hard_range(0.0, 1.0),
835
+ anno::in_group("PBR Specular Glossiness"),
836
+ anno::display_name("Glossiness Factor"),
837
+ anno::description("The glossiness of the material. Select between diffuse (0.0) and nearly specular (1.0). Multiplied to the alpha value of the 'Specular/Glossy Texture' if available.")
838
+ ]],
839
+ gltf_texture_lookup_value specular_glossiness_texture = gltf_texture_lookup()
840
+ [[
841
+ anno::in_group("PBR Specular Glossiness"),
842
+ anno::display_name("Specular/Glossy Texture"),
843
+ anno::description("The specular-glossiness texture. Influenced by the 'Specular Factor' and 'Glossiness Factor'.")
844
+ ]],
845
+
846
+ // normal map
847
+ gltf_normal_texture_lookup_value normal_texture = gltf_normal_texture_lookup()
848
+ [[
849
+ anno::in_group("Normal Mapping"),
850
+ anno::display_name("Normal Texture"),
851
+ anno::description("Base layer normal map.")
852
+ ]],
853
+
854
+ // emission
855
+ uniform color emissive_factor = color(0.0)
856
+ [[
857
+ anno::in_group("Emission"),
858
+ anno::display_name("Emissive Factor"),
859
+ anno::description("The emissive color of the material. Multiplied to the 'Emissive Texture' if available.")
860
+ ]],
861
+ gltf_texture_lookup_value emissive_texture = gltf_texture_lookup()
862
+ [[
863
+ anno::in_group("Emission"),
864
+ anno::display_name("Emissive Texture"),
865
+ anno::description("The emissive map texture. Influenced by the 'Emissive Factor'."),
866
+ anno::enable_if("::math::average(emissive_factor)>0.0")
867
+ ]],
868
+ // KHR_materials_emissive_strength
869
+ uniform float emissive_strength = 1.0
870
+ [[
871
+ anno::soft_range(0.0, 10000),
872
+ anno::in_group("Emission"),
873
+ anno::display_name("Emissive Strength"),
874
+ anno::description("The maximum strength of the emissive texture. Multiplied to the 'Emissive Factor'."),
875
+ anno::enable_if("::math::average(emissive_factor)>0.0")
876
+ ]],
877
+
878
+ // ambient occlusion
879
+ gltf_texture_lookup_value occlusion_texture = gltf_texture_lookup()
880
+ [[
881
+ anno::in_group("Occlusion"),
882
+ anno::display_name("Occlusion Texture"),
883
+ anno::description("The occlusion map texture. Influenced by the 'Occlusion Strength'.")
884
+ ]],
885
+ uniform float occlusion_strength = 1.0
886
+ [[
887
+ anno::hard_range(0.0, 1.0),
888
+ anno::in_group("Occlusion"),
889
+ anno::display_name("Occlusion Strength"),
890
+ anno::description("A scalar multiplier controlling the amount of occlusion applied. Multiplied to the 'Occlusion Texture'.")
891
+ ]],
892
+
893
+ // alpha
894
+ uniform gltf_alpha_mode alpha_mode = opaque
895
+ [[
896
+ anno::in_group("Opacity"),
897
+ anno::display_name("Alpha Mode"),
898
+ anno::description("Select how to interpret the alpha value.")
899
+ ]],
900
+ uniform float base_alpha = 1.0
901
+ [[
902
+ anno::hard_range(0.0, 1.0),
903
+ anno::in_group("Opacity"),
904
+ anno::display_name("Base Alpha"),
905
+ anno::description("Select between transparent (0.0) and opaque (1.0). Multiplied to the base color texture alpha channel if available."),
906
+ anno::enable_if("alpha_mode!=opaque")
907
+ ]],
908
+
909
+ // alpha for gltf_alpha_mode::mask
910
+ uniform float alpha_cutoff = 0.5
911
+ [[
912
+ anno::hard_range(0.0, 1.0),
913
+ anno::in_group("Opacity"),
914
+ anno::display_name("Alpha Cutoff"),
915
+ anno::description("Threshold to decide between fully transparent and fully opaque when alpha mode is 'mask'."),
916
+ anno::enable_if("alpha_mode==mask")
917
+ ]],
918
+
919
+ uniform string vertex_color_name_spec = string("displayColor")
920
+ [[
921
+ anno::in_group("Primvar"),
922
+ anno::display_name("Vertex Color Name"),
923
+ anno::description("Name of the vertex color primvar usually COLOR_0 'gltf', or displayColor 'usd'.")
924
+ ]],
925
+
926
+ uniform bool use_vertex_color_alpha_spec = false
927
+ [[
928
+ anno::in_group("Primvar"),
929
+ anno::display_name("Use Opacity Channel From Vertex Color"),
930
+ anno::description("Multiply the Alpha or .w channel from the vertex color with the base alpha value.")
931
+ ]],
932
+
933
+ uniform string vertex_opacity_name_spec = string("displayOpacity")
934
+ [[
935
+ anno::in_group("Primvar"),
936
+ anno::display_name("Vertex Opacity Name"),
937
+ anno::description("Name of the vertex color primvar usually the .w component of COLOR_0 'gltf', or displayOpacity 'usd'.")
938
+ ]]
939
+
940
+ ) [[
941
+ anno::author("NVIDIA Corporation"),
942
+ anno::display_name("GLTF Material - Specular-Glossiness"),
943
+ anno::description("Specular-Glossiness Material that takes the GLTF KHR extension parameters as input.")
944
+ ]] = let {
945
+
946
+ // handling GLTF parameters
947
+ // ------------------------------------------------------------------------
948
+ float4 diffuse_float4 = gltf_prepare_tex_float4(diffuse_texture) * ::scene::data_lookup_float4(vertex_color_name_spec, float4(1.0)); // apply vertex color
949
+ color diffuse = diffuse_factor * color(diffuse_float4.x, diffuse_float4.y, diffuse_float4.z);
950
+
951
+ float alpha = base_alpha * (use_vertex_color_alpha_spec == 1 ? diffuse_float4.w : 1.0) * ((vertex_color_name_spec != vertex_opacity_name_spec) ? ::scene::data_lookup_float(vertex_opacity_name_spec, float(1.0)) : 1.0);
952
+ //float alpha = base_alpha;
953
+ float4 specular_glossiness = gltf_prepare_tex_float4(specular_glossiness_texture);
954
+ color specular = specular_factor * color(specular_glossiness.x, specular_glossiness.y, specular_glossiness.z);
955
+ float glossiness = glossiness_factor * specular_glossiness.w;
956
+
957
+ float3 normal = gltf_prepare_normal(normal_texture);
958
+ float occlusion = gltf_prepare_occlusion(occlusion_texture, occlusion_strength);
959
+ color emissive_color = gltf_perpare_emission(emissive_texture, emissive_factor * math::max(0.0f, emissive_strength));
960
+
961
+ // specular glossiness model
962
+ // ------------------------------------------------------------------------
963
+
964
+ //color c_diff = diffuse * (1.0 - math::maxvalue(specular));
965
+ float F_0 = math::max_value(specular);
966
+ color F_0_tint = F_0==0.0? color(0.0) : (specular/F_0);
967
+
968
+ float a = (1.0 - glossiness) * (1.0 - glossiness);
969
+
970
+ // diffuse BRDF
971
+ bsdf diffuse_brdf = df::diffuse_reflection_bsdf(
972
+ tint: diffuse * occlusion,
973
+ roughness: 0.0);
974
+
975
+ // specular BRDF
976
+ bsdf specular_brdf = df::microfacet_ggx_smith_bsdf(
977
+ tint: color(occlusion),
978
+ roughness_u: a,
979
+ roughness_v: a,
980
+ tangent_u: state::texture_tangent_u(0));
981
+ bsdf tinted_specular = df::directional_factor(normal_tint: F_0_tint, grazing_tint: color(1.0), exponent: 5.0, base: specular_brdf);
982
+ //- Custom curve for specular/diffuse angular mix
983
+ bsdf diffuse_specular_mix = df::custom_curve_layer(
984
+ normal_reflectivity: F_0,
985
+ grazing_reflectivity: 1.0,
986
+ exponent: 5.0,
987
+ weight: 1.0,
988
+ layer: tinted_specular,
989
+ base: diffuse_brdf,
990
+ normal: normal);
991
+
992
+ } in material(
993
+ surface: material_surface(
994
+ scattering: diffuse_specular_mix,
995
+ emission: material_emission (
996
+ emission: df::diffuse_edf(),
997
+ intensity: emissive_color * ::math::PI
998
+ )
999
+ ),
1000
+ geometry: material_geometry(
1001
+ normal: normal,
1002
+ cutout_opacity: compute_opacity(alpha_mode, alpha, alpha_cutoff)
1003
+ )
1004
+ );
refrigerator_lrfs28xbs/simready_usd/refrigerator_lrfs28xbs.usd ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7639bf71396a2a0a6251d598b35d9ed0d53f89e48357dc76f5b844020dc4a7bd
3
+ size 15787868
refrigerator_lrfs28xbs/simready_usd/textures/Image_0.jpg ADDED

Git LFS Details

  • SHA256: 28b6d45ae2f0692dc0249c5c9bbc3510632e1b11320ca3af79bfcc1f90c9e923
  • Pointer size: 131 Bytes
  • Size of remote file: 112 kB
refrigerator_lrfs28xbs/simready_usd/textures/Image_10.jpg ADDED

Git LFS Details

  • SHA256: 95b20fdbace9fe06f33b01fe9892831d885aed40bf33d489f7c0d30b73abea82
  • Pointer size: 130 Bytes
  • Size of remote file: 13.9 kB
refrigerator_lrfs28xbs/simready_usd/textures/Image_11.jpg ADDED

Git LFS Details

  • SHA256: 0b416ccc07fc4cb8c47e6e93d8d48ad1503bae82fa432feb69b2e1629b583fe6
  • Pointer size: 130 Bytes
  • Size of remote file: 26.5 kB
refrigerator_lrfs28xbs/simready_usd/textures/Image_13.jpg ADDED

Git LFS Details

  • SHA256: 841e225528f38e717ede7b15ab72c19decebe08c94ffbc142b153ddd11627fdd
  • Pointer size: 130 Bytes
  • Size of remote file: 41.1 kB
refrigerator_lrfs28xbs/simready_usd/textures/Image_14.jpg ADDED

Git LFS Details

  • SHA256: 3e821924e41de060e0f1bfc7a66ea56d79944b92a752423edee927b275443963
  • Pointer size: 130 Bytes
  • Size of remote file: 21.6 kB
refrigerator_lrfs28xbs/simready_usd/textures/Image_16.jpg ADDED

Git LFS Details

  • SHA256: b846e9e513ea6a30f0969e668e97250c1a12b15f580bee1d31943cee12e4bc8f
  • Pointer size: 130 Bytes
  • Size of remote file: 28.9 kB
refrigerator_lrfs28xbs/simready_usd/textures/Image_17.jpg ADDED

Git LFS Details

  • SHA256: 3804bff37cab4baf1c5584c9c2afabdf1ca16f29aa0535e9bf80c7e54dd2e1de
  • Pointer size: 129 Bytes
  • Size of remote file: 6.23 kB
refrigerator_lrfs28xbs/simready_usd/textures/Image_18.jpg ADDED

Git LFS Details

  • SHA256: 04b4cd517e6637949aa8a5a8a780da87bc87cd6ae7ef17b53ff15bb49d7d16dc
  • Pointer size: 129 Bytes
  • Size of remote file: 2.09 kB
refrigerator_lrfs28xbs/simready_usd/textures/Image_1_tint.png ADDED

Git LFS Details

  • SHA256: 804616da9569012abb2bf13a5042afc7ecbaa71acbd2fe49da5578aae57262d1
  • Pointer size: 130 Bytes
  • Size of remote file: 68 kB
refrigerator_lrfs28xbs/simready_usd/textures/Image_20.jpg ADDED

Git LFS Details

  • SHA256: ab2644517e58b4887ac256bee54f20cb6d4a1515f06607c816546f391820d03a
  • Pointer size: 129 Bytes
  • Size of remote file: 2.48 kB
refrigerator_lrfs28xbs/simready_usd/textures/Image_22_tint.png ADDED

Git LFS Details

  • SHA256: 355563e07282f2ace0d3a469d0e1bce758c027ea0b18e5e8b95ba707ca68d5be
  • Pointer size: 130 Bytes
  • Size of remote file: 15.8 kB
refrigerator_lrfs28xbs/simready_usd/textures/Image_23_tint.png ADDED

Git LFS Details

  • SHA256: 04ef35c8f2d5ee27ab2d73959b5cc9729dffab15b057a1ea09b13c61e61c3d6f
  • Pointer size: 130 Bytes
  • Size of remote file: 31 kB
refrigerator_lrfs28xbs/simready_usd/textures/Image_24_tint.png ADDED

Git LFS Details

  • SHA256: 5733b3834252b366bea0c615789733952b585a10581dbaa2a4cb7ad4731b115f
  • Pointer size: 132 Bytes
  • Size of remote file: 1.56 MB
refrigerator_lrfs28xbs/simready_usd/textures/Image_25.jpg ADDED

Git LFS Details

  • SHA256: f9541644fdf0e73e96772430b554af2066aa9327656158d6be543699a02a77b1
  • Pointer size: 130 Bytes
  • Size of remote file: 70.1 kB
refrigerator_lrfs28xbs/simready_usd/textures/Image_26.jpg ADDED

Git LFS Details

  • SHA256: cd1291e97a115bf1e80753c6e471ef73839d5550d897e2d3f378c2829b2e18dc
  • Pointer size: 130 Bytes
  • Size of remote file: 70.3 kB
refrigerator_lrfs28xbs/simready_usd/textures/Image_7.jpg ADDED

Git LFS Details

  • SHA256: 4158b68720ae6fb2faf812a21b35a9e11a6ba3fde06fdaa18e4a0d46ac5a9eae
  • Pointer size: 130 Bytes
  • Size of remote file: 94.9 kB
refrigerator_lrfs28xbs/simready_usd/textures/Image_8.jpg ADDED

Git LFS Details

  • SHA256: e20427938533714732fda6230435cf4848ea039f1bfd87618206d8b40cc54cf6
  • Pointer size: 130 Bytes
  • Size of remote file: 10.4 kB