Upload 19 files
Browse fileschore: add test model
- .gitattributes +1 -0
- air_fryer/.metadata/com.nvidia.simready.conformance.Package-Candidate@1.3.0.json +31 -0
- air_fryer/.metadata/com.nvidia.simready.conformance.Package@1.0.0.json +31 -0
- air_fryer/.metadata/com.nvidia.simready.packaging.bom.json +103 -0
- air_fryer/.metadata/com.nvidia.simready.root_usds.json +6 -0
- air_fryer/air_fryer/content/.simready/catalog/features/FET900_air_fryer.PhysX.1-0-0.json +26 -0
- air_fryer/air_fryer/content/.simready/catalog/profiles/FET900_air_fryer.PhysX.1-0-0.toml +2 -0
- air_fryer/air_fryer/content/.thumbs/256x256/air_fryer.usdc.png +3 -0
- air_fryer/air_fryer/content/air_fryer.usdc +0 -0
- air_fryer/air_fryer/content/assets/LICENSE.txt +20 -0
- air_fryer/air_fryer/content/assets/SOURCES.md +3 -0
- air_fryer/air_fryer/content/assets/control_icons.png +3 -0
- air_fryer/air_fryer/content/materials/LICENSE.txt +27 -0
- air_fryer/air_fryer/content/materials/UsdPreviewSurface.mdl +642 -0
- air_fryer/air_fryer/content/materials/UsdPreviewSurfaceLib.mdl +183 -0
- air_fryer/air_fryer/content/payloads/air_fryer_base.usdc +0 -0
- air_fryer/air_fryer/content/payloads/air_fryer_meshes.usdc +3 -0
- air_fryer/air_fryer/content/payloads/air_fryer_physics.usdc +0 -0
- air_fryer/air_fryer/content/runnables/physics/physx.usda +300 -0
- air_fryer/com.nvidia.simready.packaging.json +31 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
air_fryer/air_fryer/content/payloads/air_fryer_meshes.usdc filter=lfs diff=lfs merge=lfs -text
|
air_fryer/.metadata/com.nvidia.simready.conformance.Package-Candidate@1.3.0.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format_version": "1.0",
|
| 3 |
+
"profile": "Package-Candidate",
|
| 4 |
+
"profile_version": "1.3.0",
|
| 5 |
+
"timestamp": "2026-11-22T10:00:18",
|
| 6 |
+
"assets": [
|
| 7 |
+
{
|
| 8 |
+
"asset": "air_fryer/content/air_fryer.usdc",
|
| 9 |
+
"features": [
|
| 10 |
+
{
|
| 11 |
+
"CAP031_SelfContainedPackage.0-1-0": {
|
| 12 |
+
"version": "0-1-0",
|
| 13 |
+
"passed": true,
|
| 14 |
+
"failing_requirements": [],
|
| 15 |
+
"dependencies": []
|
| 16 |
+
}
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"CAP033_SimReadyPackage.0-4-0": {
|
| 20 |
+
"version": "0-4-0",
|
| 21 |
+
"passed": true,
|
| 22 |
+
"failing_requirements": [],
|
| 23 |
+
"dependencies": [
|
| 24 |
+
"CAP031_SelfContainedPackage.0-1-0"
|
| 25 |
+
]
|
| 26 |
+
}
|
| 27 |
+
}
|
| 28 |
+
]
|
| 29 |
+
}
|
| 30 |
+
]
|
| 31 |
+
}
|
air_fryer/.metadata/com.nvidia.simready.conformance.Package@1.0.0.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format_version": "1.0",
|
| 3 |
+
"profile": "Package",
|
| 4 |
+
"profile_version": "1.0.0",
|
| 5 |
+
"timestamp": "2026-11-22T10:00:18",
|
| 6 |
+
"assets": [
|
| 7 |
+
{
|
| 8 |
+
"asset": "com.nvidia.simready.packaging.json",
|
| 9 |
+
"features": [
|
| 10 |
+
{
|
| 11 |
+
"CAP030_PackagingCore.0-1-0": {
|
| 12 |
+
"version": "0-1-0",
|
| 13 |
+
"passed": true,
|
| 14 |
+
"failing_requirements": [],
|
| 15 |
+
"dependencies": []
|
| 16 |
+
}
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"CAP032_PackagingIntrospection.0-1-0": {
|
| 20 |
+
"version": "0-1-0",
|
| 21 |
+
"passed": true,
|
| 22 |
+
"failing_requirements": [],
|
| 23 |
+
"dependencies": [
|
| 24 |
+
"CAP030_PackagingCore.0-1-0"
|
| 25 |
+
]
|
| 26 |
+
}
|
| 27 |
+
}
|
| 28 |
+
]
|
| 29 |
+
}
|
| 30 |
+
]
|
| 31 |
+
}
|
air_fryer/.metadata/com.nvidia.simready.packaging.bom.json
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format_version": "1.0",
|
| 3 |
+
"items": [
|
| 4 |
+
{
|
| 5 |
+
"relative_path": "air_fryer/content/.simready/catalog/features/FET900_air_fryer.PhysX.1-0-0.json",
|
| 6 |
+
"size": 695,
|
| 7 |
+
"hash": {
|
| 8 |
+
"sha256": "17b988cabb874b1490c680427c9beecfdc9a492af1833f151f1957f536e92cbf"
|
| 9 |
+
}
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"relative_path": "air_fryer/content/.simready/catalog/profiles/FET900_air_fryer.PhysX.1-0-0.toml",
|
| 13 |
+
"size": 100,
|
| 14 |
+
"hash": {
|
| 15 |
+
"sha256": "6ff47ccb56e6253a59f566c3eb2c583ed3c3893d73dda9869727da68eda37ea1"
|
| 16 |
+
}
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"relative_path": "air_fryer/content/.thumbs/256x256/air_fryer.usdc.png",
|
| 20 |
+
"size": 68665,
|
| 21 |
+
"hash": {
|
| 22 |
+
"sha256": "9c84d9ce5003287455854106efd5737202d4aa4de055de6d2f5af07548c8f997"
|
| 23 |
+
}
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"relative_path": "air_fryer/content/air_fryer.usdc",
|
| 27 |
+
"size": 2020,
|
| 28 |
+
"hash": {
|
| 29 |
+
"sha256": "9954dfb19cc61f2fee3a2ba03f65c0bb0e0c82cd6c9e550b39bcaad949747212"
|
| 30 |
+
}
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"relative_path": "air_fryer/content/assets/LICENSE.txt",
|
| 34 |
+
"size": 992,
|
| 35 |
+
"hash": {
|
| 36 |
+
"sha256": "3bae6305bcaa6d10219b999f65c342034c2d40b1c0e8567fa08605e73ccba829"
|
| 37 |
+
}
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"relative_path": "air_fryer/content/assets/SOURCES.md",
|
| 41 |
+
"size": 274,
|
| 42 |
+
"hash": {
|
| 43 |
+
"sha256": "a189da225326eb354fd9992757dfba36c651a8228cc2f957788f99854779e211"
|
| 44 |
+
}
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"relative_path": "air_fryer/content/assets/control_icons.png",
|
| 48 |
+
"size": 17436,
|
| 49 |
+
"hash": {
|
| 50 |
+
"sha256": "7b09b415c6a4de7fe4526950b53af3ca6aff688bf35b28c6c000e9f73be84162"
|
| 51 |
+
}
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"relative_path": "air_fryer/content/materials/LICENSE.txt",
|
| 55 |
+
"size": 1609,
|
| 56 |
+
"hash": {
|
| 57 |
+
"sha256": "1b747b30601ff92b8f35f9d031ca637c21536bb0731b4ff6a8ae9c63c1591050"
|
| 58 |
+
}
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"relative_path": "air_fryer/content/materials/UsdPreviewSurface.mdl",
|
| 62 |
+
"size": 16564,
|
| 63 |
+
"hash": {
|
| 64 |
+
"sha256": "1034f38b0cebc2f5dc2dd8452ef1364a58e65da4366feb6d769a8cb68c772689"
|
| 65 |
+
}
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"relative_path": "air_fryer/content/materials/UsdPreviewSurfaceLib.mdl",
|
| 69 |
+
"size": 4303,
|
| 70 |
+
"hash": {
|
| 71 |
+
"sha256": "7a08fdd81ca404b428922bd28e1e3ff015fe60035fbe2ffff268f656f90eadaf"
|
| 72 |
+
}
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"relative_path": "air_fryer/content/payloads/air_fryer_base.usdc",
|
| 76 |
+
"size": 797,
|
| 77 |
+
"hash": {
|
| 78 |
+
"sha256": "8cb260b099cb3069882780d0d723aae9711472eb54b0fd089327aac8beede3ff"
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"relative_path": "air_fryer/content/payloads/air_fryer_meshes.usdc",
|
| 83 |
+
"size": 446033,
|
| 84 |
+
"hash": {
|
| 85 |
+
"sha256": "b4bf6957305b8b0b3c0bc166e797b6f87ee6b3e3a36af78fd870ae95aeefce9f"
|
| 86 |
+
}
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"relative_path": "air_fryer/content/payloads/air_fryer_physics.usdc",
|
| 90 |
+
"size": 4876,
|
| 91 |
+
"hash": {
|
| 92 |
+
"sha256": "2b916f46d706276801743dcf51f8be06fc586ad4da359acd24427871fb15e621"
|
| 93 |
+
}
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"relative_path": "air_fryer/content/runnables/physics/physx.usda",
|
| 97 |
+
"size": 8298,
|
| 98 |
+
"hash": {
|
| 99 |
+
"sha256": "5ec42549b62ddbe4c4b386cac01a69344577c53c941894e938efc2193436245b"
|
| 100 |
+
}
|
| 101 |
+
}
|
| 102 |
+
]
|
| 103 |
+
}
|
air_fryer/.metadata/com.nvidia.simready.root_usds.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format_version": "1.0",
|
| 3 |
+
"entries": [
|
| 4 |
+
"air_fryer/content/air_fryer.usdc"
|
| 5 |
+
]
|
| 6 |
+
}
|
air_fryer/air_fryer/content/.simready/catalog/features/FET900_air_fryer.PhysX.1-0-0.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"id": "FET900_air_fryer.PhysX.1-0-0",
|
| 3 |
+
"display_name": "air_fryer",
|
| 4 |
+
"dependencies": [
|
| 5 |
+
"FET004_Multibody.PhysX.0-4-0"
|
| 6 |
+
],
|
| 7 |
+
"additional_requirements": [
|
| 8 |
+
"JT.001",
|
| 9 |
+
"com.nvidia.usd.JT.002",
|
| 10 |
+
"com.nvidia.usd.JT.003",
|
| 11 |
+
"com.nvidia.usd.JT.ART.002",
|
| 12 |
+
"JT.ART.003",
|
| 13 |
+
"com.nvidia.usd.JT.ART.004",
|
| 14 |
+
"RB.MB.001",
|
| 15 |
+
"RB.011",
|
| 16 |
+
"RB.012"
|
| 17 |
+
],
|
| 18 |
+
"adapters": [
|
| 19 |
+
"skill:simready-foundation-conform-fet-004-physx"
|
| 20 |
+
],
|
| 21 |
+
"runtime_tests": [
|
| 22 |
+
"theopenreality.air_fryer:air_fryer_handle_finger_clearance",
|
| 23 |
+
"theopenreality.air_fryer:air_fryer_loaded_drawer_cycle",
|
| 24 |
+
"theopenreality.air_fryer:air_fryer_open_basket_contains_payload"
|
| 25 |
+
]
|
| 26 |
+
}
|
air_fryer/air_fryer/content/.simready/catalog/profiles/FET900_air_fryer.PhysX.1-0-0.toml
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
["TheOpenReality-air_fryer"]
|
| 2 |
+
"1.0.0" = {features = [{selector = "FET900_air_fryer.PhysX.1-0-0"}]}
|
air_fryer/air_fryer/content/.thumbs/256x256/air_fryer.usdc.png
ADDED
|
|
Git LFS Details
|
air_fryer/air_fryer/content/air_fryer.usdc
ADDED
|
Binary file (2.02 kB). View file
|
|
|
air_fryer/air_fryer/content/assets/LICENSE.txt
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Pictogrammers Free License
|
| 2 |
+
--------------------------
|
| 3 |
+
|
| 4 |
+
This icon collection is released as free, open source, and GPL friendly by
|
| 5 |
+
the [Pictogrammers](http://pictogrammers.com/) icon group. You may use it
|
| 6 |
+
for commercial projects, open source projects, or anything really.
|
| 7 |
+
|
| 8 |
+
# Icons: Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0)
|
| 9 |
+
Some of the icons are redistributed under the Apache 2.0 license. All other
|
| 10 |
+
icons are either redistributed under their respective licenses or are
|
| 11 |
+
distributed under the Apache 2.0 license.
|
| 12 |
+
|
| 13 |
+
# Fonts: Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0)
|
| 14 |
+
All web and desktop fonts are distributed under the Apache 2.0 license. Web
|
| 15 |
+
and desktop fonts contain some icons that are redistributed under the Apache
|
| 16 |
+
2.0 license. All other icons are either redistributed under their respective
|
| 17 |
+
licenses or are distributed under the Apache 2.0 license.
|
| 18 |
+
|
| 19 |
+
# Code: MIT (https://opensource.org/licenses/MIT)
|
| 20 |
+
The MIT license applies to all non-font and non-icon files.
|
air_fryer/air_fryer/content/assets/SOURCES.md
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 图标来源
|
| 2 |
+
|
| 3 |
+
图标取自 Pictogrammers Contributors 的 Material Design Icons(`mdi`),通过 Iconify 获取。图案的尺寸、配色、朝向和组合由各模型指定。[图标目录](https://pictogrammers.com/library/mdi/) · [上游许可说明](LICENSE.txt)
|
air_fryer/air_fryer/content/assets/control_icons.png
ADDED
|
|
Git LFS Details
|
air_fryer/air_fryer/content/materials/LICENSE.txt
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
UsdPreviewSurface.mdl and UsdPreviewSurfaceLib.mdl
|
| 2 |
+
Copyright (c) 1986-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
| 3 |
+
SPDX-License-Identifier: BSD-3-Clause
|
| 4 |
+
|
| 5 |
+
Redistribution and use in source and binary forms, with or without
|
| 6 |
+
modification, are permitted provided that the following conditions are met:
|
| 7 |
+
|
| 8 |
+
1. Redistributions of source code must retain the above copyright notice,
|
| 9 |
+
this list of conditions and the following disclaimer.
|
| 10 |
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
| 11 |
+
this list of conditions and the following disclaimer in the documentation
|
| 12 |
+
and/or other materials provided with the distribution.
|
| 13 |
+
3. Neither the name of the copyright holder nor the names of its
|
| 14 |
+
contributors may be used to endorse or promote products derived from
|
| 15 |
+
this software without specific prior written permission.
|
| 16 |
+
|
| 17 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
| 18 |
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
| 19 |
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
| 20 |
+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
| 21 |
+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
| 22 |
+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
| 23 |
+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
| 24 |
+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
| 25 |
+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
| 26 |
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
| 27 |
+
POSSIBILITY OF SUCH DAMAGE.
|
air_fryer/air_fryer/content/materials/UsdPreviewSurface.mdl
ADDED
|
@@ -0,0 +1,642 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* SPDX-FileCopyrightText: Copyright (c) 1986-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
| 3 |
+
* SPDX-License-Identifier: BSD-3-Clause
|
| 4 |
+
*/
|
| 5 |
+
|
| 6 |
+
// Revision 5
|
| 7 |
+
mdl 1.8;
|
| 8 |
+
|
| 9 |
+
import ::df::*;
|
| 10 |
+
import ::base::*;
|
| 11 |
+
import ::math::*;
|
| 12 |
+
import ::state::*;
|
| 13 |
+
import ::anno::*;
|
| 14 |
+
import ::tex::*;
|
| 15 |
+
import ::limits::*;
|
| 16 |
+
|
| 17 |
+
import UsdPreviewSurfaceLib::*;
|
| 18 |
+
|
| 19 |
+
using UsdPreviewSurfaceLib import usd_wrap_mode;
|
| 20 |
+
using UsdPreviewSurfaceLib import usd_opacity_mode;
|
| 21 |
+
using UsdPreviewSurfaceLib import usd_to_mdl_wrap_mode;
|
| 22 |
+
|
| 23 |
+
using ::scene import data_lookup_float, data_lookup_float2, data_lookup_float3, data_lookup_float4, data_lookup_int;
|
| 24 |
+
|
| 25 |
+
// rename and/or add function/material outputs for UsdShade representation
|
| 26 |
+
annotation function_outputNames(string[<N>] s);
|
| 27 |
+
|
| 28 |
+
// specify name for UsdShade representation
|
| 29 |
+
annotation port_usdName(string s);
|
| 30 |
+
|
| 31 |
+
// specify type name for UsdShade representation
|
| 32 |
+
annotation port_usdType(string s);
|
| 33 |
+
|
| 34 |
+
annotation not_connectable();
|
| 35 |
+
|
| 36 |
+
annotation colorspace_parameter(string s);
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
export float
|
| 40 |
+
[[
|
| 41 |
+
function_outputNames(string[]("result"))
|
| 42 |
+
]]
|
| 43 |
+
UsdPrimvarReader_float
|
| 44 |
+
(
|
| 45 |
+
uniform string varname = ""
|
| 46 |
+
[[
|
| 47 |
+
not_connectable()
|
| 48 |
+
]],
|
| 49 |
+
|
| 50 |
+
float fallback = 0.0f
|
| 51 |
+
)
|
| 52 |
+
{
|
| 53 |
+
return data_lookup_float(varname, fallback);
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
export float2
|
| 58 |
+
[[
|
| 59 |
+
function_outputNames(string[]("result"))
|
| 60 |
+
]]
|
| 61 |
+
UsdPrimvarReader_float2
|
| 62 |
+
(
|
| 63 |
+
uniform string varname = ""
|
| 64 |
+
[[
|
| 65 |
+
not_connectable()
|
| 66 |
+
]],
|
| 67 |
+
|
| 68 |
+
float2 fallback = float2(0.0f, 0.0f)
|
| 69 |
+
)
|
| 70 |
+
{
|
| 71 |
+
return data_lookup_float2(varname, fallback);
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
export float3
|
| 76 |
+
[[
|
| 77 |
+
function_outputNames(string[]("result"))
|
| 78 |
+
]]
|
| 79 |
+
UsdPrimvarReader_float3
|
| 80 |
+
(
|
| 81 |
+
uniform string varname = ""
|
| 82 |
+
[[
|
| 83 |
+
not_connectable()
|
| 84 |
+
]],
|
| 85 |
+
|
| 86 |
+
float3 fallback = float3(0.0f, 0.0f, 0.0f)
|
| 87 |
+
)
|
| 88 |
+
{
|
| 89 |
+
return data_lookup_float3(varname, fallback);
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
export float4
|
| 94 |
+
[[
|
| 95 |
+
function_outputNames(string[]("result"))
|
| 96 |
+
]]
|
| 97 |
+
UsdPrimvarReader_float4
|
| 98 |
+
(
|
| 99 |
+
uniform string varname = ""
|
| 100 |
+
[[
|
| 101 |
+
not_connectable()
|
| 102 |
+
]],
|
| 103 |
+
|
| 104 |
+
float4 fallback = float4(0.0f, 0.0f, 0.0f, 0.0f)
|
| 105 |
+
)
|
| 106 |
+
{
|
| 107 |
+
return data_lookup_float4(varname, fallback);
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
|
| 111 |
+
export int
|
| 112 |
+
[[
|
| 113 |
+
function_outputNames(string[]("result"))
|
| 114 |
+
]]
|
| 115 |
+
UsdPrimvarReader_int
|
| 116 |
+
(
|
| 117 |
+
uniform string varname = ""
|
| 118 |
+
[[
|
| 119 |
+
not_connectable()
|
| 120 |
+
]],
|
| 121 |
+
|
| 122 |
+
int fallback = 0
|
| 123 |
+
)
|
| 124 |
+
{
|
| 125 |
+
return data_lookup_int(varname, fallback);
|
| 126 |
+
}
|
| 127 |
+
|
| 128 |
+
|
| 129 |
+
export float3
|
| 130 |
+
[[
|
| 131 |
+
function_outputNames(string[]("result")),
|
| 132 |
+
port_usdType("normal3f")
|
| 133 |
+
]]
|
| 134 |
+
UsdPrimvarReader_normal
|
| 135 |
+
(
|
| 136 |
+
uniform string varname = ""
|
| 137 |
+
[[
|
| 138 |
+
not_connectable()
|
| 139 |
+
]],
|
| 140 |
+
|
| 141 |
+
float3 fallback = float3(0.0f, 0.0f, 0.0f)
|
| 142 |
+
[[
|
| 143 |
+
port_usdType("normal3f")
|
| 144 |
+
]]
|
| 145 |
+
)
|
| 146 |
+
{
|
| 147 |
+
return data_lookup_float3(varname, fallback);
|
| 148 |
+
}
|
| 149 |
+
|
| 150 |
+
|
| 151 |
+
export float3
|
| 152 |
+
[[
|
| 153 |
+
function_outputNames(string[]("result")),
|
| 154 |
+
port_usdType("point3f")
|
| 155 |
+
]]
|
| 156 |
+
UsdPrimvarReader_point
|
| 157 |
+
(
|
| 158 |
+
uniform string varname = ""
|
| 159 |
+
[[
|
| 160 |
+
not_connectable()
|
| 161 |
+
]],
|
| 162 |
+
|
| 163 |
+
float3 fallback = float3(0.0f, 0.0f, 0.0f)
|
| 164 |
+
[[
|
| 165 |
+
port_usdType("point3f")
|
| 166 |
+
]]
|
| 167 |
+
)
|
| 168 |
+
{
|
| 169 |
+
return data_lookup_float3(varname, fallback);
|
| 170 |
+
}
|
| 171 |
+
|
| 172 |
+
|
| 173 |
+
export float3
|
| 174 |
+
[[
|
| 175 |
+
function_outputNames(string[]("result")),
|
| 176 |
+
port_usdType("vector3f")
|
| 177 |
+
]]
|
| 178 |
+
UsdPrimvarReader_vector
|
| 179 |
+
(
|
| 180 |
+
uniform string varname = ""
|
| 181 |
+
[[
|
| 182 |
+
not_connectable()
|
| 183 |
+
]],
|
| 184 |
+
|
| 185 |
+
float3 fallback = float3(0.0f, 0.0f, 0.0f)
|
| 186 |
+
[[
|
| 187 |
+
port_usdType("vector3f")
|
| 188 |
+
]]
|
| 189 |
+
)
|
| 190 |
+
{
|
| 191 |
+
return data_lookup_float3(varname, fallback);
|
| 192 |
+
}
|
| 193 |
+
|
| 194 |
+
|
| 195 |
+
export string
|
| 196 |
+
[[
|
| 197 |
+
function_outputNames(string[]("result"))
|
| 198 |
+
]]
|
| 199 |
+
UsdPrimvarReader_string
|
| 200 |
+
(
|
| 201 |
+
uniform string varname = ""
|
| 202 |
+
[[
|
| 203 |
+
anno::unused(),
|
| 204 |
+
not_connectable()
|
| 205 |
+
]],
|
| 206 |
+
|
| 207 |
+
string fallback = ""
|
| 208 |
+
)
|
| 209 |
+
{
|
| 210 |
+
return fallback;
|
| 211 |
+
}
|
| 212 |
+
|
| 213 |
+
|
| 214 |
+
export double4x4
|
| 215 |
+
[[
|
| 216 |
+
function_outputNames(string[]("result"))
|
| 217 |
+
]]
|
| 218 |
+
UsdPrimvarReader_matrix
|
| 219 |
+
(
|
| 220 |
+
uniform string varname = ""
|
| 221 |
+
[[
|
| 222 |
+
anno::unused(),
|
| 223 |
+
not_connectable()
|
| 224 |
+
]],
|
| 225 |
+
|
| 226 |
+
double4x4 fallback = double4x4(1)
|
| 227 |
+
)
|
| 228 |
+
{
|
| 229 |
+
return fallback;
|
| 230 |
+
}
|
| 231 |
+
|
| 232 |
+
|
| 233 |
+
export float2
|
| 234 |
+
[[
|
| 235 |
+
function_outputNames(string[]("result"))
|
| 236 |
+
]]
|
| 237 |
+
UsdTransform2d
|
| 238 |
+
(
|
| 239 |
+
//should be 'in' per spec, but this is a reserverd word in the language.
|
| 240 |
+
float2 st = float2(0.0f)
|
| 241 |
+
[[
|
| 242 |
+
port_usdName("in")
|
| 243 |
+
]],
|
| 244 |
+
|
| 245 |
+
uniform float rotation = 0.0f
|
| 246 |
+
[[
|
| 247 |
+
anno::soft_range(-360.0f, 360.0f),
|
| 248 |
+
not_connectable()
|
| 249 |
+
]],
|
| 250 |
+
|
| 251 |
+
uniform float2 scale = float2(1.0f)
|
| 252 |
+
[[
|
| 253 |
+
anno::hard_range(float2(0.0f), float2(limits::FLOAT_MAX)),
|
| 254 |
+
not_connectable()
|
| 255 |
+
]],
|
| 256 |
+
|
| 257 |
+
uniform float2 translation = float2(0.0f)
|
| 258 |
+
[[
|
| 259 |
+
not_connectable()
|
| 260 |
+
]]
|
| 261 |
+
)
|
| 262 |
+
{
|
| 263 |
+
// scale
|
| 264 |
+
base::texture_coordinate_info coordinate(float3(
|
| 265 |
+
st.x * scale.x,
|
| 266 |
+
st.y * scale.y,
|
| 267 |
+
0.0f)
|
| 268 |
+
);
|
| 269 |
+
|
| 270 |
+
float3 offset(0.5f);
|
| 271 |
+
|
| 272 |
+
// rotation happens around 0.5f in base::rotation_translation_scale
|
| 273 |
+
// we want it around 0.f, so offset;
|
| 274 |
+
coordinate.position += offset;
|
| 275 |
+
|
| 276 |
+
// rotate
|
| 277 |
+
float4x4 R = base::rotation_translation_scale(
|
| 278 |
+
// rotation is counter-clockwise
|
| 279 |
+
rotation: float3(
|
| 280 |
+
0.0f,
|
| 281 |
+
0.0f,
|
| 282 |
+
math::radians(-rotation)),
|
| 283 |
+
);
|
| 284 |
+
coordinate = base::transform_coordinate(R, coordinate);
|
| 285 |
+
|
| 286 |
+
// remove offset
|
| 287 |
+
coordinate.position -= offset;
|
| 288 |
+
|
| 289 |
+
float2 st_out(coordinate.position.x,
|
| 290 |
+
coordinate.position.y);
|
| 291 |
+
|
| 292 |
+
// translate
|
| 293 |
+
st_out += translation;
|
| 294 |
+
|
| 295 |
+
return st_out;
|
| 296 |
+
}
|
| 297 |
+
|
| 298 |
+
|
| 299 |
+
export struct TextureReturnOut
|
| 300 |
+
{
|
| 301 |
+
float r;
|
| 302 |
+
float g;
|
| 303 |
+
float b;
|
| 304 |
+
float a;
|
| 305 |
+
float3 rgb;
|
| 306 |
+
};
|
| 307 |
+
|
| 308 |
+
|
| 309 |
+
export TextureReturnOut
|
| 310 |
+
[[
|
| 311 |
+
anno::node_output_port_default(anno::node_port_fields_only)
|
| 312 |
+
]]
|
| 313 |
+
UsdUVTexture
|
| 314 |
+
(
|
| 315 |
+
uniform texture_2d file = texture_2d()
|
| 316 |
+
[[
|
| 317 |
+
colorspace_parameter("sourceColorSpace"),
|
| 318 |
+
not_connectable()
|
| 319 |
+
]],
|
| 320 |
+
|
| 321 |
+
float2 st = float2(0.0f),
|
| 322 |
+
|
| 323 |
+
uniform usd_wrap_mode wrapS = ::UsdPreviewSurfaceLib::useMetadata
|
| 324 |
+
[[
|
| 325 |
+
port_usdType("token"),
|
| 326 |
+
not_connectable()
|
| 327 |
+
]],
|
| 328 |
+
|
| 329 |
+
uniform usd_wrap_mode wrapT = ::UsdPreviewSurfaceLib::useMetadata
|
| 330 |
+
[[
|
| 331 |
+
port_usdType("token"),
|
| 332 |
+
not_connectable()
|
| 333 |
+
]],
|
| 334 |
+
|
| 335 |
+
float4 fallback = float4(0.0f, 0.0f, 0.0f, 1.0f),
|
| 336 |
+
|
| 337 |
+
float4 scale = float4(1.0f)
|
| 338 |
+
[[
|
| 339 |
+
not_connectable()
|
| 340 |
+
]],
|
| 341 |
+
|
| 342 |
+
float4 bias = float4(0.0f)
|
| 343 |
+
[[
|
| 344 |
+
not_connectable()
|
| 345 |
+
]],
|
| 346 |
+
|
| 347 |
+
uniform string sourceColorSpace = "auto"
|
| 348 |
+
[[
|
| 349 |
+
port_usdType("token"),
|
| 350 |
+
anno::unused()
|
| 351 |
+
]]
|
| 352 |
+
)
|
| 353 |
+
{
|
| 354 |
+
TextureReturnOut texOut;
|
| 355 |
+
|
| 356 |
+
if (tex::texture_isvalid(file))
|
| 357 |
+
{
|
| 358 |
+
base::texture_coordinate_info uvw(float3(st.x, st.y, 0.0f), float3(0.0f), float3(0.0f));
|
| 359 |
+
|
| 360 |
+
::tex::wrap_mode mdlWrapS = usd_to_mdl_wrap_mode(wrapS);
|
| 361 |
+
::tex::wrap_mode mdlWrapT = usd_to_mdl_wrap_mode(wrapT);
|
| 362 |
+
|
| 363 |
+
base::texture_return texRet = base::file_texture(file, color(0.0f), color(1.0f), base::mono_alpha, uvw,
|
| 364 |
+
float2(0.f, 1.f), float2(0.f, 1.f), mdlWrapS, mdlWrapT, false);
|
| 365 |
+
|
| 366 |
+
float3 tint = texRet.tint;
|
| 367 |
+
|
| 368 |
+
float4 f = float4(tint.x, tint.y, tint.z, texRet.mono) * scale + bias;
|
| 369 |
+
|
| 370 |
+
texOut.rgb = float3(f[0], f[1], f[2]);
|
| 371 |
+
texOut.r = f[0];
|
| 372 |
+
texOut.g = f[1];
|
| 373 |
+
texOut.b = f[2];
|
| 374 |
+
texOut.a = f[3];
|
| 375 |
+
}
|
| 376 |
+
else
|
| 377 |
+
{
|
| 378 |
+
texOut.rgb = float3(fallback[0], fallback[1], fallback[2]);
|
| 379 |
+
texOut.r = fallback[0];
|
| 380 |
+
texOut.g = fallback[1];
|
| 381 |
+
texOut.b = fallback[2];
|
| 382 |
+
texOut.a = fallback[3];
|
| 383 |
+
}
|
| 384 |
+
|
| 385 |
+
return texOut;
|
| 386 |
+
}
|
| 387 |
+
|
| 388 |
+
|
| 389 |
+
export material
|
| 390 |
+
[[
|
| 391 |
+
function_outputNames(string[]("surface","displacement"))
|
| 392 |
+
]]
|
| 393 |
+
UsdPreviewSurface
|
| 394 |
+
(
|
| 395 |
+
float3 diffuseColor = float3(0.18)
|
| 396 |
+
[[
|
| 397 |
+
port_usdType("color3f")
|
| 398 |
+
]],
|
| 399 |
+
|
| 400 |
+
float3 emissiveColor = float3(0.0)
|
| 401 |
+
[[
|
| 402 |
+
port_usdType("color3f")
|
| 403 |
+
]],
|
| 404 |
+
|
| 405 |
+
// OM-44796, OM-108436: Scale emissive textures such that their value is the same as the exposed
|
| 406 |
+
// pixel value with our default camera exposure settings.
|
| 407 |
+
uniform float emissiveScale = 1133.6
|
| 408 |
+
[[
|
| 409 |
+
anno::hidden()
|
| 410 |
+
]],
|
| 411 |
+
|
| 412 |
+
uniform int useSpecularWorkflow = 0
|
| 413 |
+
[[
|
| 414 |
+
anno::hard_range(0, 1),
|
| 415 |
+
not_connectable()
|
| 416 |
+
]],
|
| 417 |
+
|
| 418 |
+
float3 specularColor = float3(0.0)
|
| 419 |
+
[[
|
| 420 |
+
port_usdType("color3f")
|
| 421 |
+
]],
|
| 422 |
+
|
| 423 |
+
float metallic = 0.0
|
| 424 |
+
[[
|
| 425 |
+
anno::hard_range(0.0f, 1.0f)
|
| 426 |
+
]],
|
| 427 |
+
|
| 428 |
+
float roughness = 0.5
|
| 429 |
+
[[
|
| 430 |
+
anno::hard_range(0.0f, 1.0f)
|
| 431 |
+
]],
|
| 432 |
+
|
| 433 |
+
float clearcoat = 0.0
|
| 434 |
+
[[
|
| 435 |
+
anno::hard_range(0.0f, 1.0f)
|
| 436 |
+
]],
|
| 437 |
+
|
| 438 |
+
float clearcoatRoughness = 0.01
|
| 439 |
+
[[
|
| 440 |
+
anno::hard_range(0.0f, 1.0f)
|
| 441 |
+
]],
|
| 442 |
+
|
| 443 |
+
// Renderer specialization overrides, not part of the UsdPreviewSurface specification. The RTX
|
| 444 |
+
// renderer recognizes these names across all of its material templates to skip the any-hit shader
|
| 445 |
+
// / the translucent pass for surfaces it knows are opaque (rtx.materialdb MaterialInstance.cpp).
|
| 446 |
+
// They default to on so that the module implements the specification on its own when it is loaded
|
| 447 |
+
// outside Omniverse; the hydra material sets them explicitly.
|
| 448 |
+
uniform bool enable_opacity = true
|
| 449 |
+
[[
|
| 450 |
+
anno::hidden(),
|
| 451 |
+
not_connectable()
|
| 452 |
+
]],
|
| 453 |
+
|
| 454 |
+
uniform bool enable_specular_transmission = true
|
| 455 |
+
[[
|
| 456 |
+
anno::hidden(),
|
| 457 |
+
not_connectable()
|
| 458 |
+
]],
|
| 459 |
+
|
| 460 |
+
float opacity = 1.0
|
| 461 |
+
[[
|
| 462 |
+
anno::hard_range(0.0f, 1.0f)
|
| 463 |
+
]],
|
| 464 |
+
|
| 465 |
+
// USD 25.11 opacityMode: "transparent" (default) or "presence". Interpreted below in `cutout_opacity`.
|
| 466 |
+
// Do NOT add anno::unused()/anno::hidden(): Kit's property panel treats both as "hidden" and drops
|
| 467 |
+
// the parameter to the raw string editor, losing the "transparent"/"presence" dropdown.
|
| 468 |
+
// https://openusd.org/25.11/spec_usdpreviewsurface.html
|
| 469 |
+
uniform usd_opacity_mode opacityMode = ::UsdPreviewSurfaceLib::transparent
|
| 470 |
+
[[
|
| 471 |
+
port_usdType("token"),
|
| 472 |
+
not_connectable()
|
| 473 |
+
]],
|
| 474 |
+
|
| 475 |
+
uniform float opacityThreshold = 0.0
|
| 476 |
+
[[
|
| 477 |
+
anno::hard_range(0.0f, 1.0f),
|
| 478 |
+
not_connectable()
|
| 479 |
+
]],
|
| 480 |
+
|
| 481 |
+
uniform float ior = 1.5
|
| 482 |
+
[[
|
| 483 |
+
anno::soft_range(1.0f, 5.0f),
|
| 484 |
+
anno::hard_range(0.0f, limits::FLOAT_MAX)
|
| 485 |
+
]],
|
| 486 |
+
|
| 487 |
+
float3 normal = float3(0.0, 0.0, 1.0)
|
| 488 |
+
[[
|
| 489 |
+
anno::hard_range(float3(-1.0f), float3(1.0f)),
|
| 490 |
+
port_usdType("normal3f")
|
| 491 |
+
]],
|
| 492 |
+
|
| 493 |
+
float displacement = 0.0,
|
| 494 |
+
|
| 495 |
+
float occlusion = 1.0
|
| 496 |
+
[[
|
| 497 |
+
anno::hard_range(0.0f, 1.0f),
|
| 498 |
+
anno::unused()
|
| 499 |
+
]]
|
| 500 |
+
)
|
| 501 |
+
= let {
|
| 502 |
+
// logics are based on UsdPreviewSurface specification and Pixar's OSL implementation:
|
| 503 |
+
// https://openusd.org/release/spec_usdpreviewsurface.html
|
| 504 |
+
// https://github.com/PixarAnimationStudios/USD/blob/release/third_party/renderman-24/shaders/UsdPreviewSurfaceParameters.osl
|
| 505 |
+
|
| 506 |
+
|
| 507 |
+
// OM-44796: scale emission such that its value is the same as the exposed pixel value with our
|
| 508 |
+
// default camera exposure settings.
|
| 509 |
+
// scale by inverse of rendering camera exposure * PI (nits) matches HdStrom
|
| 510 |
+
color emissive_color_nits = color(emissiveColor) * math::PI * emissiveScale;
|
| 511 |
+
|
| 512 |
+
bool spec_workflow = (useSpecularWorkflow == 1);
|
| 513 |
+
|
| 514 |
+
color diff_color_metal = color(diffuseColor) * color(1.0 - metallic);
|
| 515 |
+
color diff_color = spec_workflow ? color(diffuseColor) : diff_color_metal;
|
| 516 |
+
|
| 517 |
+
float ior_reflectivity = (1.0 - ior) / (1.0 + ior);
|
| 518 |
+
float ior_reflectivity2 = ior_reflectivity * ior_reflectivity;
|
| 519 |
+
|
| 520 |
+
color spec_color_face_metal = math::lerp(color(ior_reflectivity2), color(diffuseColor), metallic);
|
| 521 |
+
color spec_color_edge_metal = math::lerp(color(1.0), color(diffuseColor), metallic);
|
| 522 |
+
// probably the `specularColor` for spec workflow should be scaled by `ior_reflectivity2`,
|
| 523 |
+
// however the USD spec defines it non-scaled. this may cause that the specular is too
|
| 524 |
+
// bright when the `specularColor` is close to 1.0.
|
| 525 |
+
color spec_color_face = spec_workflow ? color(specularColor) : spec_color_face_metal;
|
| 526 |
+
color spec_color_edge = spec_workflow ? color(1.0) : spec_color_edge_metal;
|
| 527 |
+
|
| 528 |
+
// `opacityThreshold > 0` makes the surface a hard mask: everything at or above the threshold is
|
| 529 |
+
// fully visible, so `opacity` never means translucency there.
|
| 530 |
+
float opacity_adjusted = (!enable_specular_transmission || opacityThreshold > 0.0) ?
|
| 531 |
+
1.0 :
|
| 532 |
+
math::lerp(opacity, 1.0, metallic); // full opaque when metallic
|
| 533 |
+
|
| 534 |
+
// cutout handling, per the UsdPreviewSurface specification:
|
| 535 |
+
// - opacityThreshold > 0 : hard geometric cutout (mode-independent) - discard where opacity < opacityThreshold,
|
| 536 |
+
// everything at or above the threshold is fully visible.
|
| 537 |
+
// - opacityThreshold == 0: no masking, so `opacity` is translucency and `opacityMode` decides only how
|
| 538 |
+
// *zero* opacity reads. "transparent" keeps a lighting response, the way perfectly
|
| 539 |
+
// clear glass keeps its specular; "presence" punches out the fully transparent
|
| 540 |
+
// areas so that they receive no lighting at all. Partially transparent areas stay
|
| 541 |
+
// translucent in both modes - specular transmission (above) handles those.
|
| 542 |
+
// https://openusd.org/25.11/spec_usdpreviewsurface.html
|
| 543 |
+
float cutout_opacity = (!enable_opacity) ?
|
| 544 |
+
1.0 :
|
| 545 |
+
(opacityThreshold > 0.0 ?
|
| 546 |
+
(opacity < opacityThreshold ? 0.0 : 1.0) :
|
| 547 |
+
(opacityMode == ::UsdPreviewSurfaceLib::presence ?
|
| 548 |
+
(opacity > 0.0 ? 1.0 : 0.0) :
|
| 549 |
+
1.0));
|
| 550 |
+
|
| 551 |
+
|
| 552 |
+
// normal
|
| 553 |
+
//
|
| 554 |
+
// Always use st idx 0, for normal mapping. It is probably good enough, but it's limiting.
|
| 555 |
+
// However, in order to make it more extensible we'd need to add a parameter to control which
|
| 556 |
+
// st index to use for the mapping which would go against the UsdPreviewSurface specification.
|
| 557 |
+
// If we must have control over this, we could do so via a specifically named primvar
|
| 558 |
+
// that we would lookup here.
|
| 559 |
+
base::texture_coordinate_info uvw = base::texture_coordinate_info();
|
| 560 |
+
|
| 561 |
+
float3 shading_normal = ((normal == float3(0.0, 0.0, 1.0)) || (normal == float3(1.0, 1.0, 1.0))) ?
|
| 562 |
+
state::normal() :
|
| 563 |
+
math::normalize(
|
| 564 |
+
uvw.tangent_u * normal.x +
|
| 565 |
+
uvw.tangent_v * normal.y +
|
| 566 |
+
state::normal() * normal.z
|
| 567 |
+
);
|
| 568 |
+
|
| 569 |
+
|
| 570 |
+
// BSDFs
|
| 571 |
+
bsdf diff_bsdf = df::diffuse_reflection_bsdf(
|
| 572 |
+
tint: diff_color
|
| 573 |
+
);
|
| 574 |
+
|
| 575 |
+
bsdf spec_bsdf = df::microfacet_ggx_smith_bsdf(
|
| 576 |
+
roughness_u: roughness * roughness,
|
| 577 |
+
mode: df::scatter_reflect
|
| 578 |
+
);
|
| 579 |
+
|
| 580 |
+
bsdf coat_bsdf = df::microfacet_ggx_smith_bsdf(
|
| 581 |
+
roughness_u: clearcoatRoughness * clearcoatRoughness,
|
| 582 |
+
mode: df::scatter_reflect
|
| 583 |
+
);
|
| 584 |
+
|
| 585 |
+
// USD spec defines transmission roughensss is 0.0 always
|
| 586 |
+
bsdf transm_bsdf = df::specular_bsdf(
|
| 587 |
+
tint: color(1.0),
|
| 588 |
+
mode: df::scatter_transmit
|
| 589 |
+
);
|
| 590 |
+
|
| 591 |
+
|
| 592 |
+
// layering
|
| 593 |
+
//
|
| 594 |
+
// by the USD spec, the opacity is a blend factor between diffuse and transmission.
|
| 595 |
+
// specular and clearcoat must be visible on fully transparent surface.
|
| 596 |
+
bsdf mix_diff_transm = df::weighted_layer(
|
| 597 |
+
weight: opacity_adjusted,
|
| 598 |
+
layer: diff_bsdf,
|
| 599 |
+
base: transm_bsdf
|
| 600 |
+
);
|
| 601 |
+
|
| 602 |
+
bsdf spec_over_diff = df::color_custom_curve_layer(
|
| 603 |
+
normal_reflectivity: spec_color_face,
|
| 604 |
+
grazing_reflectivity: spec_color_edge,
|
| 605 |
+
exponent: 5.0,
|
| 606 |
+
weight: color(1.0),
|
| 607 |
+
layer: spec_bsdf,
|
| 608 |
+
base: mix_diff_transm
|
| 609 |
+
);
|
| 610 |
+
|
| 611 |
+
bsdf coat_over_spec = df::custom_curve_layer(
|
| 612 |
+
normal_reflectivity: ior_reflectivity2,
|
| 613 |
+
grazing_reflectivity: 1.0,
|
| 614 |
+
exponent: 5.0,
|
| 615 |
+
weight: clearcoat,
|
| 616 |
+
layer: coat_bsdf,
|
| 617 |
+
base: spec_over_diff
|
| 618 |
+
);
|
| 619 |
+
|
| 620 |
+
|
| 621 |
+
// construct shader
|
| 622 |
+
material_emission emission = material_emission(
|
| 623 |
+
df::diffuse_edf(),
|
| 624 |
+
intensity: emissive_color_nits
|
| 625 |
+
);
|
| 626 |
+
material_surface surface = material_surface(
|
| 627 |
+
emission: emission,
|
| 628 |
+
scattering: coat_over_spec
|
| 629 |
+
);
|
| 630 |
+
material_geometry geometry = material_geometry(
|
| 631 |
+
displacement: state::normal() * displacement,
|
| 632 |
+
normal: shading_normal,
|
| 633 |
+
cutout_opacity: cutout_opacity
|
| 634 |
+
);
|
| 635 |
+
}
|
| 636 |
+
in material(
|
| 637 |
+
ior: color(ior),
|
| 638 |
+
thin_walled: false,
|
| 639 |
+
surface: surface,
|
| 640 |
+
backface: surface,
|
| 641 |
+
geometry: geometry
|
| 642 |
+
);
|
air_fryer/air_fryer/content/materials/UsdPreviewSurfaceLib.mdl
ADDED
|
@@ -0,0 +1,183 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* SPDX-FileCopyrightText: Copyright (c) 1986-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
| 3 |
+
* SPDX-License-Identifier: BSD-3-Clause
|
| 4 |
+
*/
|
| 5 |
+
|
| 6 |
+
mdl 1.8;
|
| 7 |
+
|
| 8 |
+
import ::base::*;
|
| 9 |
+
import ::math::*;
|
| 10 |
+
import ::tex::*;
|
| 11 |
+
|
| 12 |
+
using ::tex import wrap_mode;
|
| 13 |
+
|
| 14 |
+
// The wrap modes defined by the UsdPreviewSurface specification
|
| 15 |
+
export enum usd_wrap_mode
|
| 16 |
+
{
|
| 17 |
+
black,
|
| 18 |
+
clamp,
|
| 19 |
+
repeat,
|
| 20 |
+
mirror,
|
| 21 |
+
useMetadata
|
| 22 |
+
};
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
// map UsdPreviewSurface wrap mode to corresponding MDL wrap mode.
|
| 26 |
+
export uniform wrap_mode usd_to_mdl_wrap_mode(uniform usd_wrap_mode usd)
|
| 27 |
+
{
|
| 28 |
+
if (usd == clamp)
|
| 29 |
+
{
|
| 30 |
+
return ::tex::wrap_clamp;
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
if (usd == repeat)
|
| 34 |
+
{
|
| 35 |
+
return ::tex::wrap_repeat;
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
if (usd == mirror)
|
| 39 |
+
{
|
| 40 |
+
return ::tex::wrap_mirrored_repeat;
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
// black and useMetadata
|
| 44 |
+
return ::tex::wrap_clip;
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
// The opacity interpretation modes defined by the UsdPreviewSurface specification.
|
| 49 |
+
// Enumerator names match the USD token values so they round-trip through Sdr and the
|
| 50 |
+
// material property panel (which presents them as a "transparent"/"presence" dropdown).
|
| 51 |
+
export enum usd_opacity_mode
|
| 52 |
+
{
|
| 53 |
+
transparent,
|
| 54 |
+
presence
|
| 55 |
+
};
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
// output channel selector for texture lookup
|
| 59 |
+
export enum texture_channel_select
|
| 60 |
+
{
|
| 61 |
+
r,
|
| 62 |
+
g,
|
| 63 |
+
b,
|
| 64 |
+
a,
|
| 65 |
+
rgb
|
| 66 |
+
};
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
// flag to indicate which type of node
|
| 70 |
+
// is connected to a port on UsdPreviewSurface
|
| 71 |
+
export enum connection_type
|
| 72 |
+
{
|
| 73 |
+
none,
|
| 74 |
+
texture,
|
| 75 |
+
primvar
|
| 76 |
+
};
|
| 77 |
+
|
| 78 |
+
|
| 79 |
+
// convert float4 to float using channel to drive conversion
|
| 80 |
+
export float float4_to_float
|
| 81 |
+
(
|
| 82 |
+
float4 f,
|
| 83 |
+
uniform texture_channel_select channel
|
| 84 |
+
)
|
| 85 |
+
{
|
| 86 |
+
return (channel != rgb) ? f[channel] : math::luminance(float3(f[0], f[1], f[2]));
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
// convert float4 to float3 using channel to drive conversion
|
| 91 |
+
export float3 float4_to_float3
|
| 92 |
+
(
|
| 93 |
+
float4 f,
|
| 94 |
+
uniform texture_channel_select channel
|
| 95 |
+
)
|
| 96 |
+
{
|
| 97 |
+
return (channel == rgb) ? float3(f[0], f[1], f[2]) : float3(f[channel], 0.0f, 0.0f);
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
// Lighter weight versions of UsdUvTexture that
|
| 102 |
+
// 1. return a [float|float3] vs TextureReturnOut
|
| 103 |
+
// 2. use uv-set st0
|
| 104 |
+
|
| 105 |
+
export float float_from_texture
|
| 106 |
+
(
|
| 107 |
+
uniform texture_2d file,
|
| 108 |
+
uniform usd_wrap_mode wrapS,
|
| 109 |
+
uniform usd_wrap_mode wrapT,
|
| 110 |
+
uniform float4 fallback,
|
| 111 |
+
uniform float4 scale,
|
| 112 |
+
uniform float4 bias,
|
| 113 |
+
uniform texture_channel_select channel
|
| 114 |
+
)
|
| 115 |
+
{
|
| 116 |
+
float4 texVal = fallback;
|
| 117 |
+
if (tex::texture_isvalid(file))
|
| 118 |
+
{
|
| 119 |
+
base::texture_coordinate_info uvw;
|
| 120 |
+
|
| 121 |
+
::tex::wrap_mode mdlWrapS = usd_to_mdl_wrap_mode(wrapS);
|
| 122 |
+
::tex::wrap_mode mdlWrapT = usd_to_mdl_wrap_mode(wrapT);
|
| 123 |
+
|
| 124 |
+
base::texture_return texRet =
|
| 125 |
+
base::file_texture(
|
| 126 |
+
file,
|
| 127 |
+
color(0.0f),
|
| 128 |
+
color(1.0f),
|
| 129 |
+
base::mono_alpha,
|
| 130 |
+
uvw,
|
| 131 |
+
float2(0.f, 1.f),
|
| 132 |
+
float2(0.f, 1.f),
|
| 133 |
+
mdlWrapS,
|
| 134 |
+
mdlWrapT,
|
| 135 |
+
false
|
| 136 |
+
);
|
| 137 |
+
|
| 138 |
+
float3 tint = texRet.tint;
|
| 139 |
+
texVal = float4(tint.x, tint.y, tint.z, texRet.mono) * scale + bias;
|
| 140 |
+
}
|
| 141 |
+
|
| 142 |
+
return float4_to_float(texVal, channel);
|
| 143 |
+
}
|
| 144 |
+
|
| 145 |
+
export float3 float3_from_texture
|
| 146 |
+
(
|
| 147 |
+
uniform texture_2d file,
|
| 148 |
+
uniform usd_wrap_mode wrapS,
|
| 149 |
+
uniform usd_wrap_mode wrapT,
|
| 150 |
+
uniform float4 fallback,
|
| 151 |
+
uniform float4 scale,
|
| 152 |
+
uniform float4 bias,
|
| 153 |
+
uniform texture_channel_select channel
|
| 154 |
+
)
|
| 155 |
+
{
|
| 156 |
+
float4 texVal = fallback;
|
| 157 |
+
if (tex::texture_isvalid(file))
|
| 158 |
+
{
|
| 159 |
+
base::texture_coordinate_info uvw;
|
| 160 |
+
|
| 161 |
+
::tex::wrap_mode mdlWrapS = usd_to_mdl_wrap_mode(wrapS);
|
| 162 |
+
::tex::wrap_mode mdlWrapT = usd_to_mdl_wrap_mode(wrapT);
|
| 163 |
+
|
| 164 |
+
base::texture_return texRet =
|
| 165 |
+
base::file_texture(
|
| 166 |
+
file,
|
| 167 |
+
color(0.0f),
|
| 168 |
+
color(1.0f),
|
| 169 |
+
base::mono_alpha,
|
| 170 |
+
uvw,
|
| 171 |
+
float2(0.f, 1.f),
|
| 172 |
+
float2(0.f, 1.f),
|
| 173 |
+
mdlWrapS,
|
| 174 |
+
mdlWrapT,
|
| 175 |
+
false
|
| 176 |
+
);
|
| 177 |
+
|
| 178 |
+
float3 tint = texRet.tint;
|
| 179 |
+
texVal = float4(tint.x, tint.y, tint.z, texRet.mono) * scale + bias;
|
| 180 |
+
}
|
| 181 |
+
|
| 182 |
+
return float4_to_float3(texVal, channel);
|
| 183 |
+
}
|
air_fryer/air_fryer/content/payloads/air_fryer_base.usdc
ADDED
|
Binary file (797 Bytes). View file
|
|
|
air_fryer/air_fryer/content/payloads/air_fryer_meshes.usdc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b4bf6957305b8b0b3c0bc166e797b6f87ee6b3e3a36af78fd870ae95aeefce9f
|
| 3 |
+
size 446033
|
air_fryer/air_fryer/content/payloads/air_fryer_physics.usdc
ADDED
|
Binary file (4.88 kB). View file
|
|
|
air_fryer/air_fryer/content/runnables/physics/physx.usda
ADDED
|
@@ -0,0 +1,300 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#usda 1.0
|
| 2 |
+
(
|
| 3 |
+
defaultPrim = "AirFryer"
|
| 4 |
+
kilogramsPerUnit = 1
|
| 5 |
+
metersPerUnit = 1
|
| 6 |
+
upAxis = "Z"
|
| 7 |
+
)
|
| 8 |
+
|
| 9 |
+
over "AirFryer"
|
| 10 |
+
{
|
| 11 |
+
over "Chassis" (
|
| 12 |
+
prepend apiSchemas = ["PhysxArticulationAPI"]
|
| 13 |
+
)
|
| 14 |
+
{
|
| 15 |
+
bool physxArticulation:enabledSelfCollisions = 0
|
| 16 |
+
|
| 17 |
+
over "CollisionFloor" (
|
| 18 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 19 |
+
)
|
| 20 |
+
{
|
| 21 |
+
float physxCollision:contactOffset = 0.00002
|
| 22 |
+
float physxCollision:restOffset = 0
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
over "CollisionLeft" (
|
| 26 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 27 |
+
)
|
| 28 |
+
{
|
| 29 |
+
float physxCollision:contactOffset = 0.00002
|
| 30 |
+
float physxCollision:restOffset = 0
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
over "CollisionRight" (
|
| 34 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 35 |
+
)
|
| 36 |
+
{
|
| 37 |
+
float physxCollision:contactOffset = 0.00002
|
| 38 |
+
float physxCollision:restOffset = 0
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
over "CollisionBack" (
|
| 42 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 43 |
+
)
|
| 44 |
+
{
|
| 45 |
+
float physxCollision:contactOffset = 0.00002
|
| 46 |
+
float physxCollision:restOffset = 0
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
over "CollisionUpper" (
|
| 50 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 51 |
+
)
|
| 52 |
+
{
|
| 53 |
+
float physxCollision:contactOffset = 0.00002
|
| 54 |
+
float physxCollision:restOffset = 0
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
over "CollisionFoot0" (
|
| 58 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 59 |
+
)
|
| 60 |
+
{
|
| 61 |
+
float physxCollision:contactOffset = 0.00002
|
| 62 |
+
float physxCollision:restOffset = 0
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
over "CollisionFoot1" (
|
| 66 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 67 |
+
)
|
| 68 |
+
{
|
| 69 |
+
float physxCollision:contactOffset = 0.00002
|
| 70 |
+
float physxCollision:restOffset = 0
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
over "CollisionFoot2" (
|
| 74 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 75 |
+
)
|
| 76 |
+
{
|
| 77 |
+
float physxCollision:contactOffset = 0.00002
|
| 78 |
+
float physxCollision:restOffset = 0
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
over "CollisionFoot3" (
|
| 82 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 83 |
+
)
|
| 84 |
+
{
|
| 85 |
+
float physxCollision:contactOffset = 0.00002
|
| 86 |
+
float physxCollision:restOffset = 0
|
| 87 |
+
}
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
over "Drawer"
|
| 91 |
+
{
|
| 92 |
+
over "PanCollision"
|
| 93 |
+
{
|
| 94 |
+
over "Floor" (
|
| 95 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 96 |
+
)
|
| 97 |
+
{
|
| 98 |
+
float physxCollision:contactOffset = 0.00002
|
| 99 |
+
float physxCollision:restOffset = 0
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
over "Left" (
|
| 103 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 104 |
+
)
|
| 105 |
+
{
|
| 106 |
+
float physxCollision:contactOffset = 0.00002
|
| 107 |
+
float physxCollision:restOffset = 0
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
over "Right" (
|
| 111 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 112 |
+
)
|
| 113 |
+
{
|
| 114 |
+
float physxCollision:contactOffset = 0.00002
|
| 115 |
+
float physxCollision:restOffset = 0
|
| 116 |
+
}
|
| 117 |
+
|
| 118 |
+
over "Front" (
|
| 119 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 120 |
+
)
|
| 121 |
+
{
|
| 122 |
+
float physxCollision:contactOffset = 0.00002
|
| 123 |
+
float physxCollision:restOffset = 0
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
over "Back" (
|
| 127 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 128 |
+
)
|
| 129 |
+
{
|
| 130 |
+
float physxCollision:contactOffset = 0.00002
|
| 131 |
+
float physxCollision:restOffset = 0
|
| 132 |
+
}
|
| 133 |
+
}
|
| 134 |
+
|
| 135 |
+
over "CrisperCollision"
|
| 136 |
+
{
|
| 137 |
+
over "Row0" (
|
| 138 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 139 |
+
)
|
| 140 |
+
{
|
| 141 |
+
float physxCollision:contactOffset = 0.00002
|
| 142 |
+
float physxCollision:restOffset = 0
|
| 143 |
+
}
|
| 144 |
+
|
| 145 |
+
over "Row1" (
|
| 146 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 147 |
+
)
|
| 148 |
+
{
|
| 149 |
+
float physxCollision:contactOffset = 0.00002
|
| 150 |
+
float physxCollision:restOffset = 0
|
| 151 |
+
}
|
| 152 |
+
|
| 153 |
+
over "Row2" (
|
| 154 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 155 |
+
)
|
| 156 |
+
{
|
| 157 |
+
float physxCollision:contactOffset = 0.00002
|
| 158 |
+
float physxCollision:restOffset = 0
|
| 159 |
+
}
|
| 160 |
+
|
| 161 |
+
over "Row3" (
|
| 162 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 163 |
+
)
|
| 164 |
+
{
|
| 165 |
+
float physxCollision:contactOffset = 0.00002
|
| 166 |
+
float physxCollision:restOffset = 0
|
| 167 |
+
}
|
| 168 |
+
|
| 169 |
+
over "Row4" (
|
| 170 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 171 |
+
)
|
| 172 |
+
{
|
| 173 |
+
float physxCollision:contactOffset = 0.00002
|
| 174 |
+
float physxCollision:restOffset = 0
|
| 175 |
+
}
|
| 176 |
+
|
| 177 |
+
over "Row5" (
|
| 178 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 179 |
+
)
|
| 180 |
+
{
|
| 181 |
+
float physxCollision:contactOffset = 0.00002
|
| 182 |
+
float physxCollision:restOffset = 0
|
| 183 |
+
}
|
| 184 |
+
|
| 185 |
+
over "Row6" (
|
| 186 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 187 |
+
)
|
| 188 |
+
{
|
| 189 |
+
float physxCollision:contactOffset = 0.00002
|
| 190 |
+
float physxCollision:restOffset = 0
|
| 191 |
+
}
|
| 192 |
+
|
| 193 |
+
over "Row7" (
|
| 194 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 195 |
+
)
|
| 196 |
+
{
|
| 197 |
+
float physxCollision:contactOffset = 0.00002
|
| 198 |
+
float physxCollision:restOffset = 0
|
| 199 |
+
}
|
| 200 |
+
|
| 201 |
+
over "Row8" (
|
| 202 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 203 |
+
)
|
| 204 |
+
{
|
| 205 |
+
float physxCollision:contactOffset = 0.00002
|
| 206 |
+
float physxCollision:restOffset = 0
|
| 207 |
+
}
|
| 208 |
+
|
| 209 |
+
over "Row9" (
|
| 210 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 211 |
+
)
|
| 212 |
+
{
|
| 213 |
+
float physxCollision:contactOffset = 0.00002
|
| 214 |
+
float physxCollision:restOffset = 0
|
| 215 |
+
}
|
| 216 |
+
|
| 217 |
+
over "Spine0" (
|
| 218 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 219 |
+
)
|
| 220 |
+
{
|
| 221 |
+
float physxCollision:contactOffset = 0.00002
|
| 222 |
+
float physxCollision:restOffset = 0
|
| 223 |
+
}
|
| 224 |
+
|
| 225 |
+
over "Spine1" (
|
| 226 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 227 |
+
)
|
| 228 |
+
{
|
| 229 |
+
float physxCollision:contactOffset = 0.00002
|
| 230 |
+
float physxCollision:restOffset = 0
|
| 231 |
+
}
|
| 232 |
+
|
| 233 |
+
over "Spine2" (
|
| 234 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 235 |
+
)
|
| 236 |
+
{
|
| 237 |
+
float physxCollision:contactOffset = 0.00002
|
| 238 |
+
float physxCollision:restOffset = 0
|
| 239 |
+
}
|
| 240 |
+
|
| 241 |
+
over "Spine3" (
|
| 242 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 243 |
+
)
|
| 244 |
+
{
|
| 245 |
+
float physxCollision:contactOffset = 0.00002
|
| 246 |
+
float physxCollision:restOffset = 0
|
| 247 |
+
}
|
| 248 |
+
|
| 249 |
+
over "Spine4" (
|
| 250 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 251 |
+
)
|
| 252 |
+
{
|
| 253 |
+
float physxCollision:contactOffset = 0.00002
|
| 254 |
+
float physxCollision:restOffset = 0
|
| 255 |
+
}
|
| 256 |
+
}
|
| 257 |
+
|
| 258 |
+
over "FasciaCollision" (
|
| 259 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 260 |
+
)
|
| 261 |
+
{
|
| 262 |
+
float physxCollision:contactOffset = 0.00002
|
| 263 |
+
float physxCollision:restOffset = 0
|
| 264 |
+
}
|
| 265 |
+
|
| 266 |
+
over "HandleUpperCollision" (
|
| 267 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 268 |
+
)
|
| 269 |
+
{
|
| 270 |
+
float physxCollision:contactOffset = 0.00002
|
| 271 |
+
float physxCollision:restOffset = 0
|
| 272 |
+
}
|
| 273 |
+
|
| 274 |
+
over "HandleLowerCollision" (
|
| 275 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 276 |
+
)
|
| 277 |
+
{
|
| 278 |
+
float physxCollision:contactOffset = 0.00002
|
| 279 |
+
float physxCollision:restOffset = 0
|
| 280 |
+
}
|
| 281 |
+
|
| 282 |
+
over "HandleGripCollision" (
|
| 283 |
+
prepend apiSchemas = ["PhysxCollisionAPI"]
|
| 284 |
+
)
|
| 285 |
+
{
|
| 286 |
+
float physxCollision:contactOffset = 0.00002
|
| 287 |
+
float physxCollision:restOffset = 0
|
| 288 |
+
}
|
| 289 |
+
}
|
| 290 |
+
|
| 291 |
+
over "Joints"
|
| 292 |
+
{
|
| 293 |
+
over "DrawerSlide" (
|
| 294 |
+
prepend apiSchemas = ["PhysxJointAPI"]
|
| 295 |
+
)
|
| 296 |
+
{
|
| 297 |
+
}
|
| 298 |
+
}
|
| 299 |
+
}
|
| 300 |
+
|
air_fryer/com.nvidia.simready.packaging.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format_version": "1.0",
|
| 3 |
+
"package_id": "air_fryer.1.0.0",
|
| 4 |
+
"license": "CC-BY-NC-ND-4.0",
|
| 5 |
+
"metadata": [
|
| 6 |
+
{
|
| 7 |
+
"name": "com.nvidia.simready.conformance.Package-Candidate@1.3.0.json",
|
| 8 |
+
"hash": {
|
| 9 |
+
"sha256": "103fd71bf9b91c2a9da7ac471eb7171160f6e9bf9be0f5a6b88ad5ff359de0a1"
|
| 10 |
+
}
|
| 11 |
+
},
|
| 12 |
+
{
|
| 13 |
+
"name": "com.nvidia.simready.packaging.bom.json",
|
| 14 |
+
"hash": {
|
| 15 |
+
"sha256": "ced6bfdfdc1099bd8c9b274d78feddca0c050e5625c2049703fef79d31a01159"
|
| 16 |
+
}
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"name": "com.nvidia.simready.root_usds.json",
|
| 20 |
+
"hash": {
|
| 21 |
+
"sha256": "db2132e7c3bd2b0912c6a1644fe6aa11b61ec9837f65358dbfa82c62dd4a378f"
|
| 22 |
+
}
|
| 23 |
+
}
|
| 24 |
+
],
|
| 25 |
+
"content_hash": {
|
| 26 |
+
"sha256": "be08f8451e960870a7bec3785a9b13e560161d2e7a5ea4a591031010bc43700c"
|
| 27 |
+
},
|
| 28 |
+
"package_hash": {
|
| 29 |
+
"sha256": "05b4c81e4c1f7c9dc7efaf394223cd766325437bd680ad832bfe3c1f89f334cc"
|
| 30 |
+
}
|
| 31 |
+
}
|