Delete PowerUPS_9000_415V_1250KVA
#1
by Xela274 - opened
Files changed (26)
- PowerUPS_9000_415V_1250KVA/.metadata/PowerUPS_9000_415V_1250KVA_benchmark.jsonDeleted-510
- PowerUPS_9000_415V_1250KVA/.metadata/PowerUPS_9000_415V_1250KVA_validation.jsonDeleted-62
- PowerUPS_9000_415V_1250KVA/.metadata/com.nvidia.simready.conformance.Package@1.0.0.jsonDeleted-35
- PowerUPS_9000_415V_1250KVA/.metadata/com.nvidia.simready.packaging.bom.jsonDeleted-175
- PowerUPS_9000_415V_1250KVA/com.nvidia.simready.packaging.jsonDeleted-31
- PowerUPS_9000_415V_1250KVA/simready_usd/.simready/validation.jsonDeleted-60
- PowerUPS_9000_415V_1250KVA/simready_usd/.thumbs/256x256/PowerUPS_9000_415V_1250KVA_main.usd.pngDeleted
- PowerUPS_9000_415V_1250KVA/simready_usd/.thumbs/256x256/PowerUPS_9000_415V_1250KVA_main.usd_light.pngDeleted
- PowerUPS_9000_415V_1250KVA/simready_usd/.thumbs/256x256/PowerUPS_9000_415V_1250KVA_main.usd_transparent.pngDeleted
- PowerUPS_9000_415V_1250KVA/simready_usd/PowerUPS_9000_415V_1250KVA_main.jsonDeleted-17
- PowerUPS_9000_415V_1250KVA/simready_usd/PowerUPS_9000_415V_1250KVA_main.usdDeleted
- PowerUPS_9000_415V_1250KVA/simready_usd/layers/PowerUPS_9000_415V_1250KVA_ConnectionPoints.usdaDeleted-103
- PowerUPS_9000_415V_1250KVA/simready_usd/layers/PowerUPS_9000_415V_1250KVA_Properties.jsonDeleted-273
- PowerUPS_9000_415V_1250KVA/simready_usd/layers/PowerUPS_9000_415V_1250KVA_Properties.usdaDeleted-532
- PowerUPS_9000_415V_1250KVA/simready_usd/materials/OmniPBR.mdlDeleted-396
- PowerUPS_9000_415V_1250KVA/simready_usd/materials/OmniPBRBase.mdlDeleted-470
- PowerUPS_9000_415V_1250KVA/simready_usd/materials/OmniPBR_ClearCoat.mdlDeleted-711
- PowerUPS_9000_415V_1250KVA/simready_usd/materials/OmniPBR_ClearCoat_Opacity.mdlDeleted-860
- PowerUPS_9000_415V_1250KVA/simready_usd/materials/OmniPBR_Opacity.mdlDeleted-404
- PowerUPS_9000_415V_1250KVA/simready_usd/materials/Plastic_Thick_Translucent.mdlDeleted-673
- PowerUPS_9000_415V_1250KVA/simready_usd/materials/Plastic_Thick_Translucent_Flakes.mdlDeleted-1025
- PowerUPS_9000_415V_1250KVA/simready_usd/materials/Stainless_Steel_Brushed.mdlDeleted
- PowerUPS_9000_415V_1250KVA/simready_usd/materials/WhiteMode.mdlDeleted-31
- PowerUPS_9000_415V_1250KVA/simready_usd/payloads/external.usdDeleted-3
- PowerUPS_9000_415V_1250KVA/simready_usd/payloads/internal.usdDeleted-3
- PowerUPS_9000_415V_1250KVA/simready_usd/textures/image screen.pngDeleted
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510{
"schema_version": "1.0",
"asset": "PowerUPS_9000_415V_1250KVA",
"run_timestamp": "2026-11-18T07:50:15Z",
"passed": true,
"results": [
{
"test_name": "culling_xz",
"engine": "isaac_sim",
"engine_version": "6.2.0.0",
"status": "pass",
"passed": true,
"duration": 65.891,
"message": "",
"metrics": {
"_timing_capture_frame_total_s": {
"value": 3.485,
"unit": null
},
"_timing_capture_frame_count": {
"value": 16,
"unit": null
},
"_timing_capture_frame_avg_ms": {
"value": 217.81,
"unit": null
},
"_timing_encode_video_total_s": {
"value": 0.829,
"unit": null
},
"_timing_encode_video_count": {
"value": 2,
"unit": null
},
"_render_blank_retry_count": {
"value": 0,
"unit": null
},
"_render_blank_retry_unrecovered": {
"value": 0,
"unit": null
},
"culling_xz_max_diff": {
"value": 0.005893,
"unit": null
},
"culling_xz_mean_diff": {
"value": 0.001922,
"unit": null
},
"culling_xz_worst_angle": {
"value": 315.0,
"unit": null
},
"culling_xz_passed": {
"value": 1,
"unit": null
}
},
"kit_logs": []
},
{
"test_name": "light_response",
"engine": "isaac_sim",
"engine_version": "6.2.0.0",
"status": "pass",
"passed": true,
"duration": 45.109,
"message": "",
"metrics": {
"_timing_capture_frame_total_s": {
"value": 4.628,
"unit": null
},
"_timing_capture_frame_count": {
"value": 30,
"unit": null
},
"_timing_capture_frame_avg_ms": {
"value": 154.27,
"unit": null
},
"_timing_encode_video_total_s": {
"value": 0.922,
"unit": null
},
"_timing_encode_video_count": {
"value": 1,
"unit": null
},
"_render_blank_retry_count": {
"value": 0,
"unit": null
},
"_render_blank_retry_unrecovered": {
"value": 0,
"unit": null
},
"light_response_variation_ratio": {
"value": 0.655172,
"unit": null
},
"light_response_blank_ratio": {
"value": 0.0,
"unit": null
},
"light_response_blank_frames": {
"value": 0,
"unit": null
},
"light_response_total_frames": {
"value": 30,
"unit": null
},
"light_response_total_pairs": {
"value": 29,
"unit": null
},
"light_response_different_pairs": {
"value": 19,
"unit": null
},
"light_response_passed": {
"value": 1,
"unit": null
},
"light_response_max_pair_change": {
"value": 0.722593,
"unit": null
},
"light_response_min_pair_change": {
"value": 0.002724,
"unit": null
}
},
"kit_logs": []
},
{
"test_name": "normals_xz",
"engine": "isaac_sim",
"engine_version": "6.2.0.0",
"status": "pass",
"passed": true,
"duration": 41.485,
"message": "",
"metrics": {
"_timing_capture_frame_total_s": {
"value": 1.282,
"unit": null
},
"_timing_capture_frame_count": {
"value": 8,
"unit": null
},
"_timing_capture_frame_avg_ms": {
"value": 160.25,
"unit": null
},
"_timing_encode_video_total_s": {
"value": 0.312,
"unit": null
},
"_timing_encode_video_count": {
"value": 1,
"unit": null
},
"_render_blank_retry_count": {
"value": 0,
"unit": null
},
"_render_blank_retry_unrecovered": {
"value": 0,
"unit": null
},
"normals_xz_avg_dark": {
"value": 0.000103,
"unit": null
},
"normals_xz_max_dark": {
"value": 0.000716,
"unit": null
},
"normals_xz_problem_frames": {
"value": 0,
"unit": null
},
"normals_xz_passed": {
"value": 1,
"unit": null
}
},
"kit_logs": [
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: Traceback (most recent call last):"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: File \"../iv/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.1+187cf21b/omni/kit/widget/viewport/impl/texture.py\", line 429, in on_drawable_changed"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: self.__drawable_changed_fn(texture[\"rp_resource\"], presentation_key)"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: File \"../iv/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.1+187cf21b/omni/kit/widget/viewport/widget.py\", line 516, in __set_image_data"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: vp_api._sync_viewport_api(camera, canvas_size, vp_api.time, view, projection, force_update=True) # noqa PLW0212"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: File \"../iv/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.1+187cf21b/omni/kit/widget/viewport/api.py\", line 546, in _sync_viewport_api"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: self.__projection = self._conform_projection(policy, camera, image_aspect, canvas_aspect, projection)"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: File \"../iv/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.1+187cf21b/omni/kit/widget/viewport/api.py\", line 476, in _conform_projection"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: gf_camera = camera.GetCamera(self.__time)"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: ^^^^^^^^^^^^^^^^"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: AttributeError: 'NoneType' object has no attribute 'GetCamera'"
}
]
},
{
"test_name": "pivot",
"engine": "isaac_sim",
"engine_version": "6.2.0.0",
"status": "pass",
"passed": true,
"duration": 52.219,
"message": "",
"metrics": {
"_timing_capture_frame_total_s": {
"value": 3.56,
"unit": null
},
"_timing_capture_frame_count": {
"value": 20,
"unit": null
},
"_timing_capture_frame_avg_ms": {
"value": 178.0,
"unit": null
},
"_timing_encode_video_total_s": {
"value": 0.844,
"unit": null
},
"_timing_encode_video_count": {
"value": 2,
"unit": null
},
"_render_blank_retry_count": {
"value": 0,
"unit": null
},
"_render_blank_retry_unrecovered": {
"value": 0,
"unit": null
},
"pivot_score": {
"value": 0.9,
"unit": null
},
"pivot_pivot_height_pct": {
"value": -0.0,
"unit": null
},
"pivot_pivot_at_base": {
"value": 1,
"unit": null
},
"pivot_pivot_centered_xy": {
"value": 1,
"unit": null
},
"pivot_ground_penetration": {
"value": 1,
"unit": null
},
"pivot_orbital_motion": {
"value": 0,
"unit": null
},
"pivot_passed": {
"value": 1,
"unit": null
}
},
"kit_logs": [
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: Traceback (most recent call last):"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: File \"../iv/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.1+187cf21b/omni/kit/widget/viewport/impl/texture.py\", line 429, in on_drawable_changed"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: self.__drawable_changed_fn(texture[\"rp_resource\"], presentation_key)"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: File \"../iv/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.1+187cf21b/omni/kit/widget/viewport/widget.py\", line 516, in __set_image_data"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: vp_api._sync_viewport_api(camera, canvas_size, vp_api.time, view, projection, force_update=True) # noqa PLW0212"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: File \"../iv/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.1+187cf21b/omni/kit/widget/viewport/api.py\", line 546, in _sync_viewport_api"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: self.__projection = self._conform_projection(policy, camera, image_aspect, canvas_aspect, projection)"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: File \"../iv/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.1+187cf21b/omni/kit/widget/viewport/api.py\", line 476, in _conform_projection"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: gf_camera = camera.GetCamera(self.__time)"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: ^^^^^^^^^^^^^^^^"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: AttributeError: 'NoneType' object has no attribute 'GetCamera'"
}
]
},
{
"test_name": "presence",
"engine": "isaac_sim",
"engine_version": "6.2.0.0",
"status": "pass",
"passed": true,
"duration": 43.625,
"message": "",
"metrics": {
"_timing_capture_frame_total_s": {
"value": 0.343,
"unit": null
},
"_timing_capture_frame_count": {
"value": 2,
"unit": null
},
"_timing_capture_frame_avg_ms": {
"value": 171.5,
"unit": null
},
"_timing_encode_video_total_s": {
"value": 0.0,
"unit": null
},
"_timing_encode_video_count": {
"value": 0,
"unit": null
},
"_render_blank_retry_count": {
"value": 0,
"unit": null
},
"_render_blank_retry_unrecovered": {
"value": 0,
"unit": null
},
"presence_diff_ratio": {
"value": 0.288774,
"unit": null
},
"presence_passed": {
"value": 1,
"unit": null
}
},
"kit_logs": [
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: Traceback (most recent call last):"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: File \"../iv/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.1+187cf21b/omni/kit/widget/viewport/impl/texture.py\", line 429, in on_drawable_changed"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: self.__drawable_changed_fn(texture[\"rp_resource\"], presentation_key)"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: File \"../iv/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.1+187cf21b/omni/kit/widget/viewport/widget.py\", line 516, in __set_image_data"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: vp_api._sync_viewport_api(camera, canvas_size, vp_api.time, view, projection, force_update=True) # noqa PLW0212"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: File \"../iv/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.1+187cf21b/omni/kit/widget/viewport/api.py\", line 546, in _sync_viewport_api"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: self.__projection = self._conform_projection(policy, camera, image_aspect, canvas_aspect, projection)"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: File \"../iv/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.1+187cf21b/omni/kit/widget/viewport/api.py\", line 476, in _conform_projection"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: gf_camera = camera.GetCamera(self.__time)"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: ^^^^^^^^^^^^^^^^"
},
{
"level": "error",
"channel": "omni.kit.app._impl",
"message": "[py stderr]: AttributeError: 'NoneType' object has no attribute 'GetCamera'"
}
]
}
]
}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162{
"simready_usd/PowerUPS_9000_415V_1250KVA_main.usd": {
"features_summary": {
"FET200_AIF": {
"blocking_failure": false,
"dependencies": "[]",
"passed": true,
"version": "0.1.0"
},
"FET201_AIF": {
"blocking_failure": false,
"dependencies": "[{'FET200_AIF': {'version': '0.1.0'}}]",
"passed": true,
"version": "0.2.0"
},
"FET202_AIF": {
"blocking_failure": false,
"dependencies": "[{'FET201_AIF': {'version': '0.2.0'}}]",
"passed": true,
"version": "0.2.0"
},
"FET203_AIF": {
"blocking_failure": false,
"dependencies": "[{'FET201_AIF': {'version': '0.2.0'}}]",
"passed": true,
"version": "0.2.0"
},
"FET_000_STANDARD": {
"blocking_failure": false,
"dependencies": "[]",
"passed": true,
"version": "0.2.0"
},
"FET_001_STANDARD": {
"blocking_failure": false,
"dependencies": "[]",
"passed": true,
"version": "1.0.0"
},
"FET_031_STANDARD": {
"blocking_failure": false,
"dependencies": "[]",
"passed": true,
"version": "0.1.0"
},
"FET_033_STANDARD": {
"blocking_failure": false,
"dependencies": "[{'FET_031_STANDARD': {'version': '0.1.0'}}]",
"passed": true,
"version": "0.4.0"
}
},
"profile_id": "AIF-Entity",
"profile_version": "0.2.0",
"simready_validate_version": "2026.8.0",
"tier_versions": {
"sensors": "2026.8.0",
"tier_aif": "2026.8.0",
"tier_core": "2026.8.0"
}
}
}1234567891011121314151617181920212223242526272829303132333435{ "format_version": "1.0", "profile": "Package", "profile_version": "1.0.0", "timestamp": "2026-11-18T07:50:21", "assets": [ { "asset": "com.nvidia.simready.packaging.json", "features": [ { "FET_030_STANDARD": { "version": "0.1.0", "passed": true, "failing_requirements": [], "dependencies": [] } }, { "FET_032_STANDARD": { "version": "0.1.0", "passed": true, "failing_requirements": [], "dependencies": [ { "FET_030_STANDARD": { "version": "0.1.0" } } ] } } ] } ]}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175{ "format_version": "1.0", "items": [ { "relative_path": "simready_usd/.simready/validation.json", "size": 1797, "hash": { "sha256-flat-1mb": "5d49f7935526610a3b795bba7e07e11662432e524af803797de2f98b4a847f35", "sha256": "eccb35cb192f88c1f6a4cafe83e72dfa37d467985ea04030b0dc7d22b03214eb" } }, { "relative_path": "simready_usd/.thumbs/256x256/PowerUPS_9000_415V_1250KVA_main.usd.png", "size": 766288, "hash": { "sha256-flat-1mb": "47ea95b3bd51e4e1f085e6f6ff67a438a39dad829bb6a9c6ecff1f6eebf1e575", "sha256": "362f4092342667bb6c971bfd8c2d5d4acf5f1290d6ae2f6955398b4430ba17cf" } }, { "relative_path": "simready_usd/.thumbs/256x256/PowerUPS_9000_415V_1250KVA_main.usd_light.png", "size": 718755, "hash": { "sha256-flat-1mb": "3210873355a34d2eb93e924a343c2016281dc570be5305286ca328eaef0db891", "sha256": "5f970a7142a90d643b8c103e083f656fa682659e6a4b3fa0543977798f9fd968" } }, { "relative_path": "simready_usd/.thumbs/256x256/PowerUPS_9000_415V_1250KVA_main.usd_transparent.png", "size": 582971, "hash": { "sha256-flat-1mb": "38766ff1d86b04aa300105bee3aff5d515ad3581909d635cfd934fad8de172fb", "sha256": "7db9e0f83f25e9bb0c356de58eda1875044006fc1adc547bfaa143c21f59a6a5" } }, { "relative_path": "simready_usd/PowerUPS_9000_415V_1250KVA_main.json", "size": 445, "hash": { "sha256-flat-1mb": "982ad9bf7d7e1b17318b0027bf08e5d625daf48c9fc99a711c8916dec9372cfc", "sha256": "e2e8a1d6fe2c20e59c8ade4b2fec76397de95b5edc4337e291576c7c1d357382" } }, { "relative_path": "simready_usd/PowerUPS_9000_415V_1250KVA_main.usd", "size": 6061, "hash": { "sha256-flat-1mb": "6bbb637c6cbcbb2f2e5f77dc20cd7af63cd1a11e3ee9ae8305ba4516a7bac32b", "sha256": "cd66ef4c9b232623c0a36c9fc205df41decabb7a7becf58d90e86150b4021765" } }, { "relative_path": "simready_usd/layers/PowerUPS_9000_415V_1250KVA_ConnectionPoints.usda", "size": 6427, "hash": { "sha256-flat-1mb": "f095b0e69b2e488fd39ea07dd2246c3967702e04aff6dab1314e835e6867024c", "sha256": "eee40ecbc95e15987a8cec7387424eb8c0b2f7b963322d6fa290635a8abce503" } }, { "relative_path": "simready_usd/layers/PowerUPS_9000_415V_1250KVA_Properties.json", "size": 8988, "hash": { "sha256-flat-1mb": "aecc88f0b931c415cf2a28487ffe889fef26202e5803c9cd271176a7bec87a6e", "sha256": "3435fce63ec223482c397b7cf22d03c201f785cda624136a8d2a4a500e47d85c" } }, { "relative_path": "simready_usd/layers/PowerUPS_9000_415V_1250KVA_Properties.usda", "size": 15930, "hash": { "sha256-flat-1mb": "0e06e061cc34bd8c7f409f5aa31d31206a0509c94a65530b5e13a9cb4aaf9c2b", "sha256": "637fe89eac3da4eca3e144ae45a3cdb6db33b9e951fa7f4a387564d7e3c39d63" } }, { "relative_path": "simready_usd/materials/OmniPBR.mdl", "size": 13989, "hash": { "sha256-flat-1mb": "4d0f54d47017bfbe22cc483cb02c4fe7e2254ddd1119cd618cbaea553639d52c", "sha256": "d384fc800f120e3cad1b7ca8837f9c554f9c34343d194813fca27caa493001f2" } }, { "relative_path": "simready_usd/materials/OmniPBRBase.mdl", "size": 17274, "hash": { "sha256-flat-1mb": "4b54e7fb8bc92191512851b3acc6fc6fa9863f80d98ffece8f0cb9b99f5f4535", "sha256": "701f37299b44106842bdbe025de52eedec391e35b038f61c4ed4d25bd98e7db1" } }, { "relative_path": "simready_usd/materials/OmniPBR_ClearCoat.mdl", "size": 27453, "hash": { "sha256-flat-1mb": "0e35217542eb4ece0205fc09f74eb71aaa6bfb75b3b861d64693d317282df424", "sha256": "687fce3f0693146b91495f04407a7c38c78f6b9262b63621f44b4b1f09110469" } }, { "relative_path": "simready_usd/materials/OmniPBR_ClearCoat_Opacity.mdl", "size": 29425, "hash": { "sha256-flat-1mb": "46f3ebf0c910e680227e4103af7b57468998cfa5f9d333aab28596ec69e31e85", "sha256": "894492f8118d6bf798b88a45843ead2202f1852a8741de337e33a842215edcbe" } }, { "relative_path": "simready_usd/materials/OmniPBR_Opacity.mdl", "size": 12793, "hash": { "sha256-flat-1mb": "1f3a1b6efd60aaeee8f538664d2005d6c3ab1ed1db673b5726caafb9792cab01", "sha256": "e4d56fda91f3dfadfb67f8a14120219ad7493418656ad19fabc10b55ee2fa565" } }, { "relative_path": "simready_usd/materials/Plastic_Thick_Translucent.mdl", "size": 30015, "hash": { "sha256-flat-1mb": "94779fc778fbfb109243127729938f1e4834767b5b42257a06c70e2cfab35b4a", "sha256": "81f86d0ed3fbfa87812de56055cbcafc27f68b925d4d5e769633973e9c3c892a" } }, { "relative_path": "simready_usd/materials/Plastic_Thick_Translucent_Flakes.mdl", "size": 38565, "hash": { "sha256-flat-1mb": "4d8ac1839c821db74c47be83a5a99bb2d13b0906ba5106009a9394caae030888", "sha256": "31b2c2a907765c26b73ebbcc8666e2fb516f92fbbc546a49be496da9ba77eb54" } }, { "relative_path": "simready_usd/materials/Stainless_Steel_Brushed.mdl", "size": 106167, "hash": { "sha256-flat-1mb": "28dcd13a2ac6fce0073b1b9a96f30edba96c18375acbfb5d2cbfb9b0c6cd3198", "sha256": "0898730d0c187f7400ca0d35ed97261dec41d0dda10fd47a371684bf71873597" } }, { "relative_path": "simready_usd/materials/WhiteMode.mdl", "size": 998, "hash": { "sha256-flat-1mb": "c07b0292c81dd4217326e9f2c755ff2d7ff470422fa974e6e03d907a2b62cc2f", "sha256": "3bc76f53a19cada6acc1c4f9463264f0934f3dd45805cbe6af56c7b7df895b5d" } }, { "relative_path": "simready_usd/payloads/external.usd", "size": 134788125, "hash": { "sha256-flat-1mb": "7d5b3bb3d00b7827233b33dd745d4ed7df827802a2b1c5ab9a2bf016af47ac20", "sha256": "789f299892fa020c540feeeca7b0e1a347fe21cafd54c1cf95f032730125126c", "sha256-first1m": "2fde5ef59e3b90de1f145ae2dbd797ee7cb170cbbefc30ed2b3498101172d563" } }, { "relative_path": "simready_usd/payloads/internal.usd", "size": 1976125, "hash": { "sha256-flat-1mb": "9559536b0bcdd402af37e98d4775f8e3472bf31d786dff5a427602d56610d52a", "sha256": "2e61778086087f1cbe864523f1860b23604cc85cc4ba40ea4de5fce3b9568c24", "sha256-first1m": "8e7f6a4e325c3a5e98a6b5ff9c4b7c91b2272c4058ad10f9ab862399a877f619" } }, { "relative_path": "simready_usd/textures/image screen.png", "size": 156546, "hash": { "sha256-flat-1mb": "8526b4429f352dcd2e35f956972041b81a2646db7eac9c31b58ede527dc2ac54", "sha256": "225f5998ef1a0da43fbcbec55801fd8a42a2e88e0d558afea6ecee236cfef251" } } ]}12345678910111213141516171819202122232425262728293031{ "format_version": "1.0", "package_id": "simready.hf.Vertiv.simready-assets.PowerUPS_9000_415V_1250KVA.2026.11.18_00", "license": "cc-by-4.0", "metadata": [ { "name": "com.nvidia.simready.conformance.Package-Candidate@1.0.0.json", "hash": { "sha256": "732593adad71a1463a832eb4c04420b70619a5831b59164e1b2513cb10e8475e" } }, { "name": "com.nvidia.simready.packaging.bom.json", "hash": { "sha256": "402422d1e6980893c31454ae79ff3c90a365159387005f46140b286d25203a38" } }, { "name": "com.nvidia.simready.root_usds.json", "hash": { "sha256": "f3f416312813de43654ae6fd53c543869741c5230ce17b75b44c8fb4ffe7911e" } } ], "content_hash": { "sha256": "94a5c6b899b04e9dcd721e7f1b4fe0b1a7b0c5527886ec74c295060fc7467c38" }, "package_hash": { "sha256": "2e24dd537fff7c0f205da0492516bfd6e20c0ef7063b3d5e0686de70f95dd037" }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960{
"SimReady_Metadata": {
"validation": {
"profile": "AIF-Entity",
"profile_version": "0.2.0",
"validated_features": {
"2026-11-16": {
"FET200_AIF": {
"blocking_failure": false,
"dependencies": "[]",
"passed": true,
"version": "0.1.0"
},
"FET201_AIF": {
"blocking_failure": false,
"dependencies": "[{'FET200_AIF': {'version': '0.1.0'}}]",
"passed": true,
"version": "0.2.0"
},
"FET202_AIF": {
"blocking_failure": false,
"dependencies": "[{'FET201_AIF': {'version': '0.2.0'}}]",
"passed": true,
"version": "0.2.0"
},
"FET203_AIF": {
"blocking_failure": false,
"dependencies": "[{'FET201_AIF': {'version': '0.2.0'}}]",
"passed": true,
"version": "0.2.0"
},
"FET_000_STANDARD": {
"blocking_failure": false,
"dependencies": "[]",
"passed": true,
"version": "0.2.0"
},
"FET_001_STANDARD": {
"blocking_failure": false,
"dependencies": "[]",
"passed": true,
"version": "1.0.0"
},
"FET_031_STANDARD": {
"blocking_failure": false,
"dependencies": "[]",
"passed": true,
"version": "0.1.0"
},
"FET_033_STANDARD": {
"blocking_failure": false,
"dependencies": "[{'FET_031_STANDARD': {'version': '0.1.0'}}]",
"passed": true,
"version": "0.4.0"
}
}
}
}
}
}1234567891011121314151617{
"author": "Vertiv",
"asset_name": "PowerUPS_9000_415V_1250KVA",
"asset_type": "prop",
"asset_license": "CC-BY-4.0",
"category": "uninterruptible power supply",
"source_file": "PowerUPS_9000_415V_1250KVA_main.usd",
"usd_date_generated": "2026-08-27",
"qcode": "Q207696",
"rigid_body_count": 0,
"asset_extents": [
1.0722663343548977,
2.745189139392206,
2.0200272392928618
],
"mass": 2190.0
}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103#usda 1.0( defaultPrim = "PowerUPS_9000_415V_1250KVA")
def Xform "PowerUPS_9000_415V_1250KVA"{ def Scope "ConnectionPoints" { def Xform "Air_Exhaust" { token purpose = "guide" token simready:connectionPoint:direction = "output" token simready:connectionPoint:disconnectType = "open_vent" token simready:connectionPoint:domain = "airflow" float simready:connectionPoint:serviceClearance = 1.2 token simready:connectionPoint:system = "equipment_cooling" matrix4d xformOp:transform = ( (-0.6630140331538277, -2.9443737810278645e-16, 1.472186890513932e-16, 0), (-5.557459273541823e-16, 1.251428575672483, -2.7787296367709094e-16, 0), (-2.220446049250313e-16, -2.2204460492503146e-16, -1.0000000000000004, 0), (-0.16587435595108563, -0.673770684032033, 1.9932824444455566, 1) ) token[] xformOpOrder = ["xformOp:transform"] }
def Xform "Bypass_Module_Input" { token purpose = "guide" token simready:connectionPoint:direction = "input" token simready:connectionPoint:disconnectType = "hardwired" token simready:connectionPoint:domain = "electrical" token simready:connectionPoint:electrical:connectorType = "hardwired" float simready:connectionPoint:electrical:frequency = 50 float simready:connectionPoint:electrical:matingDepth = 0 float simready:connectionPoint:electrical:maxCurrent = 1805 float simready:connectionPoint:electrical:nominalVoltage = 415 int simready:connectionPoint:electrical:phases = 3 float simready:connectionPoint:electrical:powerFactor = 0.99 float simready:connectionPoint:electrical:ratedPower = 1250000 float simready:connectionPoint:serviceClearance = 1.2 token simready:connectionPoint:system = "power" matrix4d xformOp:transform = ( (-1.879149601285187e-17, 0.08462937444121385, 0, 0), (0.08462937444121389, 1.8791496012851875e-17, -3.7582992025703743e-17, 0), (-4.440892098500628e-16, -9.86076131526265e-32, -1.0000000000000004, 0), (-0.19766939587039697, 0.35715479049090804, 2.003452500027563, 1) ) token[] xformOpOrder = ["xformOp:transform"] }
def Xform "Power_Module_Input" { token purpose = "guide" token simready:connectionPoint:direction = "input" token simready:connectionPoint:disconnectType = "hardwired" token simready:connectionPoint:domain = "electrical" token simready:connectionPoint:electrical:connectorType = "hardwired" float simready:connectionPoint:electrical:frequency = 50 float simready:connectionPoint:electrical:matingDepth = 0 float simready:connectionPoint:electrical:maxCurrent = 1805 float simready:connectionPoint:electrical:nominalVoltage = 415 int simready:connectionPoint:electrical:phases = 3 float simready:connectionPoint:electrical:powerFactor = 0.99 float simready:connectionPoint:electrical:ratedPower = 1250000 float simready:connectionPoint:serviceClearance = 1.2 token simready:connectionPoint:system = "power" matrix4d xformOp:transform = ( (-1.879149601285187e-17, 0.08462937444121385, 0, 0), (0.08462937444121389, 1.8791496012851875e-17, -3.7582992025703743e-17, 0), (-4.440892098500628e-16, -9.86076131526265e-32, -1.0000000000000004, 0), (-0.19560000000000088, 0.5054296255583935, 2.003452500027563, 1) ) token[] xformOpOrder = ["xformOp:transform"] }
def Xform "Output" { token purpose = "guide" token simready:connectionPoint:direction = "output" token simready:connectionPoint:disconnectType = "hardwired" token simready:connectionPoint:domain = "electrical" token simready:connectionPoint:electrical:connectorType = "hardwired" float simready:connectionPoint:electrical:frequency = 50 float simready:connectionPoint:electrical:matingDepth = 0 float simready:connectionPoint:electrical:maxCurrent = 1805 float simready:connectionPoint:electrical:nominalVoltage = 415 int simready:connectionPoint:electrical:phases = 3 float simready:connectionPoint:electrical:powerFactor = 0.99 float simready:connectionPoint:electrical:ratedPower = 1250000 float simready:connectionPoint:serviceClearance = 1.2 token simready:connectionPoint:system = "power" matrix4d xformOp:transform = ( (-1.879149601285187e-17, 0.08462937444121385, 0, 0), (0.08462937444121389, 1.8791496012851875e-17, -3.7582992025703743e-17, 0), (-4.440892098500628e-16, -9.86076131526265e-32, -1.0000000000000004, 0), (-0.19559999999999958, 0.22088142099118324, 2.003452500027563, 1) ) token[] xformOpOrder = ["xformOp:transform"] }
def Xform "Battery_Input" { token purpose = "guide" token simready:connectionPoint:direction = "input" token simready:connectionPoint:disconnectType = "hardwired" token simready:connectionPoint:domain = "electrical" token simready:connectionPoint:electrical:connectorType = "hardwired" float simready:connectionPoint:electrical:frequency = 50 float simready:connectionPoint:electrical:matingDepth = 0 float simready:connectionPoint:electrical:maxCurrent = 1805 float simready:connectionPoint:electrical:nominalVoltage = 415 int simready:connectionPoint:electrical:phases = 3 float simready:connectionPoint:electrical:powerFactor = 0.99 float simready:connectionPoint:electrical:ratedPower = 1250000 float simready:connectionPoint:serviceClearance = 1.2 token simready:connectionPoint:system = "power" matrix4d xformOp:transform = ( (-1.8873791617151008e-17, 0.08500000089406969, 0, 0), (0.08500000089406973, 1.8873791617151014e-17, -3.774758323430202e-17, 0), (-4.440892098500628e-16, -9.86076131526265e-32, -1.0000000000000004, 0), (-0.1955975297910546, 0.1004458236537939, 2.003452500027563, 1) ) token[] xformOpOrder = ["xformOp:transform"] } }}
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273{
"properties": {
"aif:spec:upsRating": {
"type": "float",
"value": 1250000.5,
"description": "UPS apparent power rating in VA"
},
"aif:spec:outputActivePower": {
"type": "float",
"value": 1250000.0,
"description": "Rated active output power in W"
},
"aif:spec:electricalInputVoltage": {
"type": "float",
"value": 415.0,
"description": "Rated AC input voltage in Volt"
},
"aif:spec:electricalCurrent": {
"type": "float",
"value": 1805.0,
"description": "Maximum / rated input current in Amp"
},
"aif:spec:inputCurrentDistortion": {
"type": "float",
"value": "≤3",
"description": "Total harmonic distortion of input current in %"
},
"aif:spec:electricalInputFrequency": {
"type": "float",
"value": 50.0,
"description": "Nominal input frequency in Hz"
},
"aif:spec:electricalInputPhase": {
"type": "int",
"value": "3-phase 4-wire",
"description": "Input phase configuration"
},
"aif:spec:inputPowerFactor": {
"type": "float",
"value": 0.99,
"description": "Input power factor at full and half load"
},
"aif:spec:electricalPowerWalkIn": {
"type": "float",
"value": 2.0,
"description": "Soft start / power walk-in time in sec"
},
"aif:spec:batteryType": {
"type": "string",
"value": "VRLA, Lithium-Ion, Ni-Cd, Ni-Zn",
"description": "Supported battery chemistries"
},
"aif:spec:batteryFloatVoltage": {
"type": "float",
"value": "VRLA: 2.27 V/cell (2.20–2.30); Ni-Cd: 1.45 V/cell (1.35–1.45); LiFePO4: 3.45 V/cell (3.40–3.65); LiMn2O4: 4.2 V/cell (4.0–4.2); LTO: 2.6 V/cell (2.55–2.70)",
"description": "Float charge voltage per cell by chemistry"
},
"aif:spec:dcRippleVoltage": {
"type": "float",
"value": "≤5% C10",
"description": "DC ripple current specification"
},
"aif:spec:nominalBatteryBus": {
"type": "string",
"value": "384-681 ",
"description": "Permissible battery bus voltage range in VDC"
},
"aif:spec:temperatureCompensatedBatteryCharging": {
"type": "float",
"value": 3.0,
"description": "Temperature compensation factor for battery charging in mV/°C/cell"
},
"aif:spec:loadPowerFactor": {
"type": "float",
"value": 0.99,
"description": "Output load power factor"
},
"aif:spec:outputVoltage": {
"type": "float",
"value": 415.0,
"description": "Rated AC output voltage in Volt"
},
"aif:spec:electricalOutputFrequency": {
"type": "float",
"value": 50.0,
"description": "Nominal output frequency in Hz"
},
"aif:spec:electricalOutputPhase": {
"type": "int",
"value": "3-phase 4-wire",
"description": "Output phase configuration"
},
"aif:spec:outputThdNominalVoltage": {
"type": "float",
"value": "<1",
"description": "Output voltage THD with linear load in %"
},
"aif:spec:outputThdNominalVoltageWithNonLinearLoad": {
"type": "float",
"value": "≤3%",
"description": "Output voltage THD with non-linear load"
},
"aif:spec:transientRecoveryLoad": {
"type": "string",
"value": "IEC/EN 62040-3, Class 1",
"description": "Transient recovery compliance"
},
"aif:spec:voltageDisplacement": {
"type": "float",
"value": "±1° (balanced); ±1.5° (100% unbalanced)",
"description": "Phase angle precision / displacement"
},
"aif:spec:overloadAtNominalVoltage": {
"type": "float",
"value": "<105% continuous; 105-125% 10min; 125-150% 1min; 150-200% 200ms",
"description": "Overload capability at nominal output voltage"
},
"aif:spec:upsEnclosureClass": {
"type": "string",
"value": "IP20",
"description": "Ingress protection rating (IEC 60529)"
},
"aif:spec:color": {
"type": "string",
"value": "RAL 7021 (ZP7021)",
"description": "Enclosure color"
},
"aif:spec:operatingTemperature": {
"type": "float",
"value": "273.15-313.15 ",
"description": "Operating temperature range in K"
},
"aif:spec:relativeHumidity": {
"type": "float",
"value": "0-95",
"description": "Operating relative humidity in %"
},
"aif:spec:operatingAltitude": {
"type": "float",
"value": "≤3000 ",
"description": "Maximum operating altitude in m"
},
"aif:spec:communicationOptions": {
"type": "float",
"value": "SNMP (v1, v3, IPv6), Modbus RTU/TCP, BACnet/WS, BACnet/IP, Dry Contacts",
"description": "Available communication interfaces"
},
"aif:spec:cardCompatibility": {
"type": "string",
"value": "Vertiv Liebert IntelliSlot IS-Relay Card; Vertiv Liebert IntelliSlot RDU120 Card",
"description": "Compatible communication cards"
},
"aif:spec:protocolsAvailable": {
"type": "string",
"value": "SNMP v1/v3, Modbus RTU, Modbus TCP, BACnet/WS, BACnet/IP",
"description": "Supported communication protocols"
},
"aif:spec:manufacturer": {
"type": "string",
"value": "Vertiv",
"description": "Equipment manufacturer"
},
"aif:spec:modelNumber": {
"type": "string",
"value": "Vertiv PowerUPS 9000 1250 kVA 415V Modular UPS",
"description": "Product model designation"
},
"aif:spec:overallGeometryDimensions": {
"type": "float3",
"value": [
2700.0,
1000.0,
2000.0
],
"description": "Overall dimensions [W, D, H] in mm"
},
"aif:spec:weight": {
"type": "float",
"value": 2190.0,
"description": "System net weight (complete with power modules) in Kg"
},
"aif:spec:height": {
"type": "float",
"value": 2000.0,
"description": "System height in mm"
},
"aif:spec:width": {
"type": "float",
"value": 2700.0,
"description": "System width in mm"
},
"aif:spec:depth": {
"type": "float",
"value": 1000.0,
"description": "System depth in mm"
},
"aif:spec:rearInstallationClearance": {
"type": "float",
"value": 127.0,
"description": "Rear Installation Clearance in mm"
},
"aif:spec:frontInstallationClearance": {
"type": "float",
"value": 1200.0,
"description": "Required installation clearances in mm"
},
"aif:spec:accessibilityRequirement": {
"type": "float",
"value": 670.0,
"description": "Top Service access requirements in mm"
},
"aif:spec:assetVersion": {
"type": "string",
"value": "0.1",
"description": "Asset design revision"
},
"aif:spec:assetClass": {
"type": "string",
"value": "UPS",
"description": "Asset classification"
},
"aif:spec:simreadyVersion": {
"type": "string",
"value": "0.1",
"description": "SimReady specification version"
},
"aif:spec:geometryMpv": {
"type": "string",
"value": "",
"description": "Geometry mesh proxy variant"
},
"aif:spec:aifThermal": {
"type": "string",
"value": "",
"description": "AI Factory thermal interface"
},
"aif:spec:aifElectrical": {
"type": "string",
"value": "",
"description": "AI Factory electrical interface"
},
"aif:spec:sceneOptimizerVersion": {
"type": "string",
"value": "get_scene_optimizer_id()",
"description": "Scene optimizer version"
},
"aif:spec:assetValidatorVersion": {
"type": "string",
"value": "get_asset_validator_id()",
"description": "Asset validator version"
},
"aif:spec:assetDescription": {
"type": "string",
"value": "Vertiv PowerUPS 9000 1250 kVA 415V Modular UPS - High-performance transformer-free modular UPS with 97.5% efficiency, 415V 4-wire, supporting 250-1250 kVA scalable capacity for data center and mission-critical applications",
"description": "Asset description"
},
"aif:spec:connectsToModelDocumentation": {
"type": "string",
"value": "https://www.vertiv.com/en-us/products-catalog/critical-power/uninterruptible-power-supplies-ups/vertiv-powerups-9000-415v/",
"description": "Link to model documentation"
},
"aif:spec:assetCreationDate": {
"type": "string",
"value": "2026-08-27",
"description": "Date asset was created"
}
},
"metadata": {
"description": "AIF properties for USD equipment models",
"version": "1.0",
"created": "2025-12-02"
}
}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532#usda 1.0( defaultPrim = "PowerUPS_9000_415V_1250KVA")
over "PowerUPS_9000_415V_1250KVA"{ float aif:core:accessibilityRequirement = 670 ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Top Service access requirements in mm [AIF-MANAGED]" ) string aif:core:aifElectrical = "" ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "AI Factory electrical interface" ) string aif:core:aifThermal = "" ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "AI Factory thermal interface" ) string aif:core:assetClass = "UPS" ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Asset classification [AIF-MANAGED]" ) string aif:core:assetCreationDate = "2026-08-27" ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Date asset was created [AIF-MANAGED]" ) string aif:core:assetDescription = "Vertiv PowerUPS 9000 1250 kVA 415V Modular UPS - High-performance transformer-free modular UPS with 97.5% efficiency, 415V 4-wire, supporting 250-1250 kVA scalable capacity for data center and mission-critical applications" ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Asset description [AIF-MANAGED]" ) string aif:core:assetValidatorVersion = "get_asset_validator_id()" ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Asset validator version [AIF-MANAGED]" ) string aif:core:assetVersion = "0.1" ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Asset design revision [AIF-MANAGED]" ) string aif:core:connectsToModelDocumentation = "https://www.vertiv.com/en-us/products-catalog/critical-power/uninterruptible-power-supplies-ups/vertiv-powerups-9000-415v/" ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Link to model documentation [AIF-MANAGED]" ) float aif:core:depth = 1000 ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "System depth in mm [AIF-MANAGED]" ) string aif:core:geometryMpv = "" ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Geometry mesh proxy variant" ) float aif:core:height = 2000 ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "System height in mm [AIF-MANAGED]" ) float aif:core:installationClearance = 1200 ( doc = "Required installation clearance in mm [AIF-MANAGED]" ) string aif:core:manufacturer = "Vertiv" ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Equipment manufacturer [AIF-MANAGED]" ) string aif:core:modelNumber = "Vertiv PowerUPS 9000 1250 kVA 415V Modular UPS" ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Product model designation [AIF-MANAGED]" ) float3 aif:core:overallGeometryDimensions = (2700, 1000, 2000) ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Overall dimensions [W, D, H] in mm [AIF-MANAGED]" ) string aif:core:sceneOptimizerVersion = "get_scene_optimizer_id()" ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Scene optimizer version [AIF-MANAGED]" ) string aif:core:simreadyVersion = "0.2.0" ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "SimReady specification version [AIF-MANAGED]" ) float aif:core:weight = 2190 ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "System net weight (complete with power modules) in Kg [AIF-MANAGED]" ) float aif:core:width = 2700 ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "System width in mm [AIF-MANAGED]" ) string aif:spec:batteryFloatVoltage = "VRLA: 2.27 V/cell (2.20–2.30); Ni-Cd: 1.45 V/cell (1.35–1.45); LiFePO4: 3.45 V/cell (3.40–3.65); LiMn2O4: 4.2 V/cell (4.0–4.2); LTO: 2.6 V/cell (2.55–2.70)" ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Float charge voltage per cell by chemistry" ) custom string aif:spec:batteryType = "VRLA, Lithium-Ion, Ni-Cd, Ni-Zn" ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Supported battery chemistries [AIF-MANAGED]" ) custom string aif:spec:cardCompatibility = "Vertiv Liebert IntelliSlot IS-Relay Card; Vertiv Liebert IntelliSlot RDU120 Card" ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Compatible communication cards [AIF-MANAGED]" ) custom string aif:spec:color = "RAL 7021 (ZP7021)" ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Enclosure color [AIF-MANAGED]" ) string aif:spec:communicationOptions = "SNMP (v1, v3, IPv6), Modbus RTU/TCP, BACnet/WS, BACnet/IP, Dry Contacts" ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Available communication interfaces" ) string aif:spec:dcRippleVoltage = "≤5% C10" ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "DC ripple current specification" ) custom float aif:spec:electricalCurrent = 1805 ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Maximum / rated input current in Amp [AIF-MANAGED]" ) custom float aif:spec:electricalInputFrequency = 50 ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Nominal input frequency in Hz [AIF-MANAGED]" ) string aif:spec:electricalInputPhase = "3-phase 4-wire" ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Input phase configuration" ) custom float aif:spec:electricalInputVoltage = 415 ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Rated AC input voltage in Volt [AIF-MANAGED]" ) custom float aif:spec:electricalOutputFrequency = 50 ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Nominal output frequency in Hz [AIF-MANAGED]" ) string aif:spec:electricalOutputPhase = "3-phase 4-wire" ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Output phase configuration" ) custom float aif:spec:electricalPowerWalkIn = 2 ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Soft start / power walk-in time in sec [AIF-MANAGED]" ) custom float aif:spec:frontInstallationClearance = 1200 ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Required installation clearances in mm [AIF-MANAGED]" ) string aif:spec:inputCurrentDistortion = "≤3" ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Total harmonic distortion of input current in %" ) custom float aif:spec:inputPowerFactor = 0.99 ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Input power factor at full and half load [AIF-MANAGED]" ) custom float aif:spec:loadPowerFactor = 0.99 ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Output load power factor [AIF-MANAGED]" ) custom string aif:spec:nominalBatteryBus = "384-681 " ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Permissible battery bus voltage range in VDC [AIF-MANAGED]" ) string aif:spec:operatingAltitude = "≤3000 " ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Maximum operating altitude in m" ) string aif:spec:operatingTemperature = "273.15-313.15 " ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Operating temperature range in K" ) custom float aif:spec:outputActivePower = 1250 ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Rated active output power in W [AIF-MANAGED]" ) string aif:spec:outputThdNominalVoltage = "<1" ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Output voltage THD with linear load in %" ) string aif:spec:outputThdNominalVoltageWithNonLinearLoad = "≤3%" ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Output voltage THD with non-linear load" ) custom float aif:spec:outputVoltage = 415 ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Rated AC output voltage in Volt [AIF-MANAGED]" ) string aif:spec:overloadAtNominalVoltage = "<105% continuous; 105-125% 10min; 125-150% 1min; 150-200% 200ms" ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Overload capability at nominal output voltage" ) custom string aif:spec:protocolsAvailable = "SNMP v1/v3, Modbus RTU, Modbus TCP, BACnet/WS, BACnet/IP" ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Supported communication protocols [AIF-MANAGED]" ) custom float aif:spec:rearInstallationClearance = 127 ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Rear Installation Clearance in mm [AIF-MANAGED]" ) string aif:spec:relativeHumidity = "0-95" ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Operating relative humidity in %" ) custom float aif:spec:temperatureCompensatedBatteryCharging = 3 ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Temperature compensation factor for battery charging in mV/°C/cell [AIF-MANAGED]" ) custom string aif:spec:transientRecoveryLoad = "IEC/EN 62040-3, Class 1" ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Transient recovery compliance [AIF-MANAGED]" ) custom string aif:spec:upsEnclosureClass = "IP20" ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Ingress protection rating (IEC 60529) [AIF-MANAGED]" ) custom float aif:spec:upsRating = 1250.0005 ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "UPS apparent power rating in VA [AIF-MANAGED]" ) string aif:spec:voltageDisplacement = "±1° (balanced); ±1.5° (100% unbalanced)" ( customData = { dictionary omni = { dictionary kit = { bool locked = 1 } } } doc = "Phase angle precision / displacement" )}
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396/* * SPDX-FileCopyrightText: Copyright (c) 2022-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: BSD-3-Clause */
mdl 1.7;
import ::df::*;import ::state::*;import ::math::*;import ::base::*;import ::state::*;import ::tex::*;import ::anno::*;
import ::debug::*;
import ::nvidia::core_definitions::file_texture;import ::nvidia::core_definitions::normalmap_texture;
import OmniPBR_ClearCoat::*;
// OmniPBR //
export material OmniPBR(
// Albdeo //
color diffuse_color_constant = color(0.2) [[ anno::display_name("Albedo Color"), anno::description("This is the albedo base color"), anno::in_group("Albedo") ]], uniform texture_2d diffuse_texture = texture_2d() [[ anno::display_name("Albedo Map"), anno::in_group("Albedo") ]], float albedo_desaturation = float(0.0) [[ anno::display_name("Albedo Map Desaturation"), anno::description("Desaturates the albedo map"), anno::in_group("Albedo"), anno::soft_range(float(0.0), float(1.0)) ]], float albedo_add = float(0.0) [[ anno::display_name("Albedo Add"), anno::description("Adds a constant value to the diffuse color "), anno::in_group("Albedo"), anno::soft_range(float(-1.0), float(1.0)) ]], float albedo_brightness = float(1.0) [[ anno::display_name("Albedo Brightness"), anno::description("Multiplier for the diffuse color "), anno::in_group("Albedo"), anno::soft_range(float(0.0), float(1.0)) ]], color diffuse_tint = color(1.0) [[ anno::display_name("Color Tint"), anno::description("When enabled, this color value is multiplied over the final albedo color"), anno::in_group("Albedo") ]],
// Reflectivity // float reflection_roughness_constant = float(0.5) [[ anno::display_name("Roughness Amount"), anno::description("Higher roughness values lead to more blurry reflections"), anno::in_group("Reflectivity"), anno::hard_range(float(0.0), float(1.0)) ]], float reflection_roughness_texture_influence = float(0.0) [[ anno::display_name("Roughness Map Influence"), anno::description("Blends between the constant value and the lookup of the roughness texture"), anno::in_group("Reflectivity"), anno::hard_range(float(0.0), float(1.0)) ]], uniform texture_2d reflectionroughness_texture = texture_2d() [[ anno::display_name("Roughness Map"), anno::in_group("Reflectivity"), anno::usage("roughness") ]], float metallic_constant = float(0.0) [[ anno::display_name("Metallic Amount"), anno::description("Metallic Material"), anno::in_group("Reflectivity"), anno::hard_range(float(0.0), float(1.0)) ]], float metallic_texture_influence = float(0.0) [[ anno::display_name("Metallic Map Influence"), anno::description("Blends between the constant value and the lookup of the metallic texture"), anno::in_group("Reflectivity"), anno::hard_range(float(0.0), float(1.0)) ]], uniform texture_2d metallic_texture = texture_2d() [[ anno::display_name("Metallic Map"), anno::in_group("Reflectivity"), anno::usage("metalness") ]], float specular_level = float(0.5) [[ anno::display_name("Specular"), anno::description("The specular level (intensity) of the material"), anno::in_group("Reflectivity"), anno::soft_range(float(0.0), float(1.0)) ]],
// ORM // uniform bool enable_ORM_texture = false [[ anno::display_name("Enable ORM Texture"), anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"), anno::in_group("Reflectivity") ]], uniform texture_2d ORM_texture = texture_2d() [[ anno::display_name("ORM Map"), anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"), anno::in_group("Reflectivity"), anno::usage("roughness") ]],
// AO Group //
float ao_to_diffuse = 0.0 [[ anno::display_name("AO to diffuse"), anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"), anno::in_group("AO"), anno::hard_range(float(0.0), float(1.0)) ]], uniform texture_2d ao_texture = texture_2d() [[ anno::display_name("Ambient Occlusion Map"), anno::description("The ambient occlusion texture for the material"), anno::in_group("AO"), anno::usage("occlusion") ]], // Emission //
uniform bool enable_emission = false [[ anno::display_name("Enable Emission"), anno::description("Enables the emission of light from the material"), anno::in_group("Emissive") ]], color emissive_color = color(1.0,0.1,0.1) [[ anno::display_name("Emissive Color"), anno::description("The emission color"), anno::in_group("Emissive"), anno::enable_if("enable_emission == true") ]], uniform texture_2d emissive_color_texture = texture_2d() [[ anno::display_name("Emissive Color map"), anno::in_group("Emissive"), anno::description("The emissive color texture"), anno::enable_if("enable_emission == true") ]], uniform texture_2d emissive_mask_texture = texture_2d() [[ anno::display_name("Emissive Mask map"), anno::description("The texture masking the emissive color"), anno::in_group("Emissive"), anno::enable_if("enable_emission == true"), anno::usage("occlusion") ]], float emissive_intensity = float(40.0) [[ anno::display_name("Emissive Intensity"), anno::description("Intensity of the emission"), anno::in_group("Emissive"), anno::enable_if("enable_emission == true") ]],
// Cutout Opacity // uniform bool enable_opacity = false [[ anno::display_name("Enable Opacity"), anno::description("Enables the use of cutout opacity"), anno::in_group("Opacity") ]], uniform texture_2d opacity_texture = texture_2d() [[ anno::display_name("Opacity Map"), anno::in_group("Opacity"), anno::usage("opacity") ]], float opacity_constant = float(1.0) [[ anno::display_name("Opacity Amount"), anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), anno::in_group("Opacity"), anno::hard_range(float(0.0), float(1.0)) ]], uniform bool enable_opacity_texture = false [[ anno::display_name("Enable Opacity Texture"), anno::description("Enables or disables the usage of the opacity texture map"), anno::in_group("Opacity") ]], uniform base::mono_mode opacity_mode = base::mono_average [[ anno::display_name("Opacity Mono Source"), anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"), anno::in_group("Opacity") ]], uniform float opacity_threshold = float(0.0) [[ anno::hard_range(0.0, 1.0), anno::display_name("Opacity Threshold"), anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), anno::in_group("Opacity") ]],
// Normal // uniform float geometry_normal_roughness_strength = 1.f [[ anno::hard_range(0.0, 1.0), anno::display_name("Normal map to roughness weight"), anno::description("Enables and weights roughness induced by normal maps"), anno::in_group("Normal") ]], uniform float bump_factor = float(1.0) [[ anno::display_name("Normal Strength"), anno::description("Strength of normal map"), anno::in_group("Normal"), anno::soft_range(float(0.0), float(1.0)) ]], uniform texture_2d normalmap_texture = texture_2d() [[ anno::display_name("Normal Map"), anno::in_group("Normal"), anno::usage("normal") ]], uniform float detail_bump_factor = float(0.3) [[ anno::display_name("Detail Normal Strength"), anno::in_group("Normal"), anno::description("Strength of the detail normal"), anno::soft_range(float(0.0), float(1.0)) ]], uniform texture_2d detail_normalmap_texture = texture_2d() [[ anno::display_name("Detail Normal Map"), anno::in_group("Normal"), anno::usage("normal") ]], uniform bool flip_tangent_u = false [[ anno::display_name("Normal Map Flip U Tangent"), anno::in_group("Normal") ]], uniform bool flip_tangent_v = true [[ anno::display_name("Normal Map Flip V Tangent"), anno::in_group("Normal") ]],
// UVW Projection Group //
uniform bool project_uvw = false [[ anno::display_name("Enable Project UVW Coordinates"), anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), anno::in_group("UV") ]], uniform bool world_or_object = false [[ anno::display_name("Enable World Space"), anno::description("When enabled, uses world space for projection, otherwise object space is used"), anno::in_group("UV"), anno::enable_if("project_uvw == true") ]], uniform int uv_space_index = 0 [[ anno::display_name("UV Space Index"), anno::description("UV Space Index."), anno::in_group("UV"), anno::enable_if("project_uvw == true"), anno::hard_range(int(0), int(3)) ]],
// UVW Adjustments Group //
uniform float2 texture_translate = float2(0.0) [[ anno::display_name("Texture Translate"), anno::description("Controls position of texture."), anno::in_group("UV"), anno::enable_if("project_uvw == true") ]], uniform float texture_rotate = float(0.0) [[ anno::display_name("Texture Rotate"), anno::description("Rotates angle of texture in degrees."), anno::in_group("UV"), anno::enable_if("project_uvw == true") ]], uniform float2 texture_scale = float2(1.0) [[ anno::display_name("Texture Tiling"), anno::description("Controls the repetition of the texture."), anno::in_group("UV"), anno::enable_if("project_uvw == true") ]], uniform float2 detail_texture_translate = float2(0.0) [[ anno::display_name("Detail Texture Translate"), anno::description("Controls the position of the detail texture."), anno::in_group("UV"), anno::enable_if("project_uvw == true") ]], uniform float detail_texture_rotate = float(0.0) [[ anno::display_name("Detail Texture Rotate"), anno::description("Rotates angle of the detail texture in degrees."), anno::in_group("UV"), anno::enable_if("project_uvw == true") ]], uniform float2 detail_texture_scale = float2(1.0) [[ anno::display_name("Detail Texture Tiling"), anno::description("Controls the repetition of the detail texture."), anno::in_group("UV"), anno::enable_if("project_uvw == true") ]],
// Geometry //
uniform float round_edges_radius = float(0.0) [[ anno::display_name("Round Edge Radius"), anno::description("Influence radius around the edges in meters"), anno::in_group("Geometry"), anno::soft_range(0.0, 1.0) ]], uniform float round_edges_roundness = float(1.0) [[ anno::display_name("Round Edge Roundness"), anno::description("Determines how round the edge will look"), anno::in_group("Geometry"), anno::hard_range(0.0, 1.0) ]], uniform bool round_edges_across_materials = false [[ anno::display_name("Round Edge Across Materials"), anno::description("Normal smoothing happens only between facets of equal material, \n" "\t\tunless this parameter is set true, in which case the smoothing \n" "\t\thappens between facets irrespective of their materials"), anno::in_group("Geometry") ]]) [[ anno::display_name("OmniPBR"), anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), anno::in_group("Base"), anno::version( 2, 1, 2), anno::author("NVIDIA CORPORATION"), anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic"))]] = let {
material base = OmniPBR_ClearCoat::OmniPBR_ClearCoat( diffuse_color_constant: diffuse_color_constant, diffuse_texture: diffuse_texture, albedo_desaturation: albedo_desaturation, albedo_add: albedo_add, albedo_brightness: albedo_brightness, diffuse_tint: diffuse_tint, reflection_roughness_constant: reflection_roughness_constant, reflection_roughness_texture_influence: reflection_roughness_texture_influence, reflectionroughness_texture: reflectionroughness_texture, metallic_constant: metallic_constant, metallic_texture_influence: metallic_texture_influence, metallic_texture: metallic_texture, specular_level: specular_level, enable_ORM_texture: enable_ORM_texture, ORM_texture: ORM_texture, ao_to_diffuse: ao_to_diffuse, ao_texture: ao_texture, enable_emission: enable_emission, emissive_color: emissive_color, emissive_color_texture: emissive_color_texture, emissive_mask_texture: emissive_mask_texture, emissive_intensity: emissive_intensity, enable_opacity: enable_opacity, opacity_texture: opacity_texture, opacity_constant: opacity_constant, enable_opacity_texture: enable_opacity_texture, opacity_mode: opacity_mode, opacity_threshold: opacity_threshold, geometry_normal_roughness_strength: geometry_normal_roughness_strength, bump_factor: bump_factor, normalmap_texture: normalmap_texture, detail_bump_factor: detail_bump_factor, detail_normalmap_texture: detail_normalmap_texture, flip_tangent_u: flip_tangent_u, flip_tangent_v: flip_tangent_v, project_uvw: project_uvw, world_or_object: world_or_object, uv_space_index: uv_space_index, texture_translate: texture_translate, texture_rotate: texture_rotate, texture_scale: texture_scale, detail_texture_translate: detail_texture_translate, detail_texture_rotate: detail_texture_rotate, detail_texture_scale: detail_texture_scale, round_edges_radius: round_edges_radius, round_edges_roundness: round_edges_roundness, round_edges_across_materials: round_edges_across_materials);
} in material(surface: base.surface,geometry: base.geometry);123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470/* * SPDX-FileCopyrightText: Copyright (c) 2022-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: BSD-3-Clause */
mdl 1.7;
import ::df::*;import ::state::*;import ::math::*;import ::base::*;import ::tex::*;import ::anno::*;import ::anno::*;
export float3 HemiOctahedronToUnitVector( float2 Oct ) [[ anno::hidden()]]{ Oct = float2( Oct.x + Oct.y, Oct.x - Oct.y ) * 0.5; float3 N = float3( Oct.x, Oct.y, 1.0 - math::dot( float2(1.0), math::abs(Oct) ) ); return math::normalize(N);}
export struct NormalData [[ anno::hidden()]]{ float3 normal; float2 roughness;};
export NormalData tangent_space_normal_roughness_texture( uniform texture_2d texture [[ anno::description("The input texture"), anno::usage("normal") ]], uniform float factor = 1.0f [[ anno::description("Determines the degree of bumpiness") ]], uniform bool flip_tangent_u = false [[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]], uniform bool flip_tangent_v = false [[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]], base::texture_coordinate_info uvw = base::texture_coordinate_info() [[ anno::description("Parameterization to be used for texture mapping. Defaults to texture channel 0.") ]], uniform float2 crop_u = float2( 0.0, 1.0) [[ anno::description("Restricts the texture access to sub-domain of the texture in the u direction") ]], uniform float2 crop_v = float2( 0.0, 1.0) [[ anno::description("Restricts the texture access to sub-domain of the texture in the v direction") ]], uniform tex::wrap_mode wrap_u = tex::wrap_repeat [[ anno::description("Wrapping mode in the u direction") ]], uniform tex::wrap_mode wrap_v = tex::wrap_repeat [[ anno::description("Wrapping mode in the v direction") ]], uniform bool clip = false [[ anno::description("deprecated, usewrap_mode=tex::wrap_clip. Defines wrap_clamp behavior. If true, lookup outside [0,1] results in no bump"), anno::hidden() ]], uniform float scale = 1. [[ anno::description("Scales the value red from the texture file. Can be used to adapt to different normal map formats"), anno::unused() ]], uniform float offset = 0. [[ anno::description("Offset applied to the value red from the texture file. Can be used to adapt to different normal map formats"), anno::unused() ]], uniform float animation_start_time = 0. [[ anno::description("When to start playing first frame of the animation ") ]], uniform int2 animation_crop = int2(0, 0) [[ anno::description("If the texture is an animation, the range of frames to be played can be specified.") ]], uniform tex::wrap_mode animation_wrap = tex::wrap_repeat [[ anno::description("Defines what to do outside of regular animation time") ]], uniform float animation_fps = 30 [[ anno::description("Framerate to use for animation playback") ]])[[ anno::description("Interprets the color values of a bitmap as a vector in tangent space"), anno::hidden(), anno::noinline()]]{ NormalData normalData; normalData.roughness = float2(0); normalData.normal = state::normal();
float frame = 0.0; if(animation_crop != int2(0,0)) //only if we have an animation { frame = (::state::animation_time()-animation_start_time) * animation_fps ; //start playing at first frame of the animation switch ( animation_wrap) { case tex::wrap_repeat: frame=frame>0? math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.x: math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.y; break; case tex::wrap_mirrored_repeat: float animation_crop_2y = 2.0*animation_crop.y; frame=frame>0? math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop.x: math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop_2y-animation_crop.x; if(frame>animation_crop.y) frame = animation_crop_2y-frame; break; case tex::wrap_clamp: frame = math::clamp( frame+animation_crop.x, animation_crop.x, animation_crop.y); break; case tex::wrap_clip: frame += animation_crop.x; if(frame < animation_crop.x || frame > animation_crop.y) return normalData; break; } }
if (tex::width(texture) == 0 || tex::height(texture) == 0 || // avoid division by zero in texremapu for invalid resource factor == 0.0f) return normalData; { if (clip) { if (wrap_u == tex::wrap_clamp && (uvw.position.x < 0. || uvw.position.x > 1.)) { return normalData; } if (wrap_v == tex::wrap_clamp && (uvw.position.y < 0. || uvw.position.y > 1.)) { return normalData; } } if (wrap_u == tex::wrap_clip && (uvw.position.x < 0. || uvw.position.x > 1.)) { return normalData; } if (wrap_v == tex::wrap_clip && (uvw.position.y < 0. || uvw.position.y > 1.)) { return normalData; } } bool pixel_flip_u = flip_tangent_u; bool pixel_flip_v = flip_tangent_v; //if we mirror repeat a tangent space texture, tangent space needs to be flipped for every other tile if (wrap_u == tex::wrap_mirrored_repeat) { if( uvw.position.x > 0. && int(uvw.position.x) % 2 == 1) pixel_flip_u = ! pixel_flip_u; else if( uvw.position.x < 0. && int(uvw.position.x) % 2 == 0) pixel_flip_u = ! pixel_flip_u; } if (wrap_v == tex::wrap_mirrored_repeat) { if( uvw.position.y > 0. && int(uvw.position.y) % 2 == 1) pixel_flip_v = ! pixel_flip_v; else if( uvw.position.y < 0. && int(uvw.position.y) % 2 == 0) pixel_flip_v = ! pixel_flip_v; }
float3 transformed_tangent_u = uvw.tangent_u; float3 transformed_tangent_v = uvw.tangent_v;
if (pixel_flip_u) transformed_tangent_u=-transformed_tangent_u; if (pixel_flip_v) transformed_tangent_v=-transformed_tangent_v;
float3 tangent_space_normal; float4 normal_raw = tex::lookup_float4(texture,float2(uvw.position.x,uvw.position.y), wrap_u, wrap_v, crop_u, crop_v, frame); if(normal_raw.x > 1.5) { // octahedron packed by OV normal_raw.x -= 2.0; normal_raw.x -= 0.5; normal_raw.y -= 0.5; tangent_space_normal = HemiOctahedronToUnitVector(float2(normal_raw.x, normal_raw.y) * 2.0); normalData.roughness = float2(normal_raw.z, normal_raw.w); } else { // regular tangent_space_normal = (float3(normal_raw.x, normal_raw.y, normal_raw.z) - float3(0.5)) * 2.0; normalData.roughness = float2(0); }
normalData.normal = math::normalize( transformed_tangent_u * tangent_space_normal.x * factor + transformed_tangent_v * tangent_space_normal.y * factor + state::normal() * tangent_space_normal.z);
return normalData;}
export material OmniPBRBase(
// Albdeo //
color diffuse_reflection_color = color(0.2) [[ anno::display_name("Albedo Color"), anno::description("This is the albedo base color"), anno::in_group("Albedo") ]], color diffuse_tint = color(1.0) [[ anno::display_name("Albedo Tint"), anno::description("When enabled, this color value is multiplied over the final albedo color"), anno::in_group("Albedo") ]],
// Reflecitivity // float specular_reflection_roughness = float(0.0) [[ anno::display_name("Roughness"), anno::description("Higher roughness values lead to more blurry reflections"), anno::in_group("Reflectivity"), anno::hard_range(0.0, 1.0) ]], float2 specular_reflection_aniso_roughness = float2(0.0, 0.0) [[ anno::display_name("Aniso roughness"), anno::description("Higher roughness values lead to more blurry reflections"), anno::in_group("Reflectivity"), anno::hidden() ]], float metalness = float(0.0) [[ anno::display_name("Metalness"), anno::description("Bias towards pure specular reflection"), anno::in_group("Reflectivity"), anno::hard_range(0.0, 1.0) ]], float specular_level = float(0.5) [[ anno::display_name("Specular"), anno::description("The specular level (intensity) of the material"), anno::in_group("Reflectivity"), anno::soft_range(0.0, 1.0) ]],
// Emission // uniform bool enable_emission = false [[ anno::display_name("Enable Emission"), anno::description("Enables the emission of light from the material"), anno::in_group("Emissive") ]], color emission_color = color(1.0,0.1,0.1) [[ anno::display_name("Emissive Color"), anno::description("The emission color"), anno::in_group("Emissive"), anno::enable_if("enable_emission == true") ]], float emission_intensity = float(40.0) [[ anno::display_name("Emissive Intensity"), anno::description("Intensity of the emission"), anno::in_group("Emissive"), anno::soft_range(0.0, 1000.0), anno::enable_if("enable_emission == true") ]],
// Geometry Opacity // uniform bool enable_opacity = false [[ anno::display_name("Enable Opacity"), anno::description("Enables the use of cutout opacity"), anno::in_group("Opacity") ]], float geometry_opacity = float(1.0) [[ anno::display_name("Opacity Amount"), anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), anno::in_group("Opacity"), anno::hard_range(0.0, 1.0) ]], uniform float geometry_opacity_threshold = 0.f [[ anno::display_name("Opacity Threshold"), anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), anno::in_group("Opacity"), anno::hard_range(0.0, 1.0) ]],
// Clearcoat // uniform bool enable_coat = false [[ anno::display_name("Enable Clearcoat Layer"), anno::description("Adds a coat layer on top of the material when enabled"), anno::in_group("Clearcoat") ]], float coat_weight = float(1.0) [[ anno::display_name("Clearcoat Weight"), anno::description("Sets the weight for coat layer"), anno::in_group("Clearcoat"), anno::hard_range(0.0, 1.0) ]], color coat_color = color(1.0) [[ anno::display_name("Clearcoat Tint"), anno::description("Clearcoat is tinted and affects the underlying material"), anno::in_group("Clearcoat") ]], float coat_transparency = float(1.0) [[ anno::display_name("Clearcoat Transparency"), anno::description("Adjusts the transparency of the coat. Can be turned into a fully opaque coat covering the underlying layer"), anno::in_group("Clearcoat"), anno::hard_range(0.0, 1.0) ]], float coat_roughness = float(0.0) [[ anno::display_name("Clearcoat Roughness"), anno::description("Higher roughness values lead to more blurry reflections"), anno::in_group("Clearcoat"), anno::hard_range(0.0, 1.0) ]], float2 coat_aniso_roughness = float2(0.0, 0.0) [[ anno::display_name("Clearcoat aniso roughness"), anno::description("Higher roughness values lead to more blurry reflections"), anno::in_group("Clearcoat"), anno::hidden() ]], float coat_ior = float(1.56) [[ anno::display_name("Clearcoat IOR"), anno::description("Sets the Index of refraction for the coat layer"), anno::in_group("Clearcoat"), anno::soft_range(0.0, 4.0) ]], float3 clearcoat_geometry_normal = state::normal() [[ anno::display_name("Clearcoat Normal"), anno::in_group("Clearcoat"), anno::usage("normal") ]],
// Geometry //
uniform float round_edges_radius = float(0.0) [[ anno::display_name("Round Edge Radius"), anno::description("Influence radius around the edges in meters"), anno::in_group("Geometry"), anno::soft_range(0.0, 1.0) ]], uniform float round_edges_roundness = float(1.0) [[ anno::display_name("Round Edge Roundness"), anno::description("Determines how round the edge will look"), anno::in_group("Geometry"), anno::hard_range(0.0, 1.0) ]], uniform bool round_edges_across_materials = false [[ anno::display_name("Round Edge Across Materials"), anno::description("Normal smoothing happens only between facets of equal material, \n" "\t\tunless this parameter is set true, in which case the smoothing \n" "\t\thappens between facets irrespective of their materials"), anno::in_group("Geometry") ]], float3 geometry_normal = state::normal() [[ anno::display_name("Geometry Normal"), anno::in_group("Geometry"), anno::usage("normal") ]]
) [[ anno::display_name("OmniPBR Base"), anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), anno::in_group("Omni Materials"), anno::version( 2, 1, 1), anno::author("NVIDIA CORPORATION"), anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic"))]] = let{
// Diffuse Bsdf // color tinted_diffuse_color = diffuse_reflection_color * diffuse_tint;
color base_color = tinted_diffuse_color;
bsdf diffuse_bsdf = df::weighted_layer( weight: 1.0, layer: df::diffuse_reflection_bsdf( tint: base_color, roughness: float(0.0) ), base: bsdf(), normal: geometry_normal );
// Glossy Reflection Bsdf //
float roughness_u = math::clamp(specular_reflection_roughness * specular_reflection_roughness + specular_reflection_aniso_roughness.x * specular_reflection_aniso_roughness.x, 0, 1); float roughness_v = math::clamp(specular_reflection_roughness * specular_reflection_roughness + specular_reflection_aniso_roughness.y * specular_reflection_aniso_roughness.y, 0, 1); bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( roughness_u: roughness_u, roughness_v: roughness_v, tint: color(1.0), mode: df::scatter_reflect ); bsdf custom_curve_layer_bsdf = df::custom_curve_layer( normal_reflectivity: 0.08, grazing_reflectivity: 1.0, exponent: 5.0, weight: specular_level, layer: ggx_smith_bsdf, base: diffuse_bsdf, normal: geometry_normal ); bsdf directional_factor_bsdf = df::tint(base_color, ggx_smith_bsdf); bsdf omni_PBR_bsdf = df::weighted_layer( weight: metalness, layer: directional_factor_bsdf, base: custom_curve_layer_bsdf, normal: geometry_normal ); // Clear Coat //
float coat_roughness_u = math::clamp(coat_roughness * coat_roughness + coat_aniso_roughness.x * coat_aniso_roughness.x, 0, 1); float coat_roughness_v = math::clamp(coat_roughness * coat_roughness + coat_aniso_roughness.y * coat_aniso_roughness.y, 0, 1); bsdf coat_bsdf = df::microfacet_ggx_smith_bsdf( roughness_u: coat_roughness_u, roughness_v: coat_roughness_v, tint: color(1.0), mode: df::scatter_reflect ); bsdf opaque_coat = df::weighted_layer( weight: coat_transparency, layer: ::df::tint( tint: coat_color, base: omni_PBR_bsdf ), base: ::df::diffuse_reflection_bsdf( tint: coat_color ) ); bsdf omni_PBR_coated_bsdf = df::fresnel_layer( ior: coat_ior, weight: coat_weight, layer: coat_bsdf, base: opaque_coat, normal: clearcoat_geometry_normal ); bsdf final_bsdf = enable_coat ? omni_PBR_coated_bsdf : omni_PBR_bsdf; color emission_value = enable_emission ? emission_color * color(emission_intensity) : color(0.0); float opacity_value = geometry_opacity; float cutout_opacity = enable_opacity ? ((geometry_opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= geometry_opacity_threshold) ? 1.0 : 0)) : 1.0; material_emission emission = material_emission( df::diffuse_edf(), intensity: emission_value );
material_surface surface = material_surface( scattering: final_bsdf, emission: emission );
material_geometry geometry = material_geometry( normal: state::rounded_corner_normal( radius: round_edges_radius, across_materials: round_edges_across_materials, roundness: round_edges_roundness ), cutout_opacity: cutout_opacity );
} in material( surface: surface, geometry: geometry);123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711/* * SPDX-FileCopyrightText: Copyright (c) 2022-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: BSD-3-Clause */
mdl 1.7;
import ::df::*;import ::state::*;import ::math::*;import ::base::*;import ::state::*;import ::tex::*;import ::anno::*;
import ::debug::*;
import ::nvidia::core_definitions::file_texture;import ::nvidia::core_definitions::normalmap_texture;
import OmniPBRBase::*;
// Functions //
// Returns a matrix from R,T,S. inputs //
uniform float4x4 rotation_translation_scale( uniform float3 rotation = float3(0.) [[ anno::description("Rotation applied to every UVW coordinate") ]], uniform float3 translation = float3(0.) [[ anno::description("Offset applied to every UVW coordinate") ]], uniform float3 scaling = float3(1.) [[ anno::description("Scale applied to every UVW coordinate") ]])[[ anno::description("Construct a transformation matrix from euler rotation, translation and scale"), anno::hidden()]]{ float4x4 scale = float4x4(scaling.x , 0.0 , 0.0 , 0.0, 0.0 , scaling.y , 0.0 , 0.0, 0.0 , 0.0 , scaling.z , 0.0, translation.x , translation.y , translation.z , 1.0);
float3 s = math::sin(rotation); float3 c = math::cos(rotation); float4x4 rotate = 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, 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, -s.y , s.x*c.y , c.x*c.y , 0.0, 0.0 , 0.0 , 0 , 1.0);
return scale * rotate;}
// Returns the normal n in tangent space, given n is in internal space. //
float3 transform_internal_to_tangent(float3 n){ /* flip_tangent_v */ return n.x* float3(state::texture_tangent_u(0).x,-state::texture_tangent_v(0).x,state::normal().x)+ n.y* float3(state::texture_tangent_u(0).y,-state::texture_tangent_v(0).y,state::normal().y)+ n.z* float3(state::texture_tangent_u(0).z,-state::texture_tangent_v(0).z,state::normal().z);}
// Returns the normal n in internal space, given n is in tangent space.float3 transform_tangent_to_internal(float3 n){ return state::texture_tangent_u(0) * n.x - state::texture_tangent_v(0) * n.y + /* flip_tangent_v */ state::normal() * n.z;}
// Returns a normal by adding a detail normal to a global normal.export float3 add_detail_normal(float3 nd = state::normal(), float3 n = state::normal()){ // http://blog.selfshadow.com/publications/blending-in-detail/ float3 n_t = transform_internal_to_tangent(n); float3 nd_t = transform_internal_to_tangent(nd); n_t = n_t + float3(0.,0.,1.); nd_t = nd_t * float3(-1.,-1.,1.); n = n_t * math::dot(n_t, nd_t)/n_t.z - nd_t; return math::normalize(transform_tangent_to_internal(n));}
base::texture_return multiply_colors( color color_1 = color(1.0, 1.0, 1.0), color color_2 = color(.5, .5, .5), float weight = 1.0 ) [[ anno::hidden() ]]{ return base::blend_color_layers( layers: base::color_layer[]( base::color_layer( layer_color: color_2, weight: weight, mode: base::color_layer_multiply )), base: color_1 );}
// OmniPBR Clearcoat //
export material OmniPBR_ClearCoat(
// Albdeo //
color diffuse_color_constant = color(0.2) [[ anno::display_name("Albedo Color"), anno::description("This is the albedo base color"), anno::in_group("Albedo") ]], uniform texture_2d diffuse_texture = texture_2d() [[ anno::display_name("Albedo Map"), anno::in_group("Albedo") ]], float albedo_desaturation = float(0.0) [[ anno::display_name("Albedo Map Desaturation"), anno::description("Desaturates the albedo map"), anno::in_group("Albedo"), anno::soft_range(float(0.0), float(1.0)) ]], float albedo_add = float(0.0) [[ anno::display_name("Albedo Add"), anno::description("Adds a constant value to the diffuse color "), anno::in_group("Albedo"), anno::soft_range(float(-1.0), float(1.0)) ]], float albedo_brightness = float(1.0) [[ anno::display_name("Albedo Brightness"), anno::description("Multiplier for the diffuse color "), anno::in_group("Albedo"), anno::soft_range(float(0.0), float(1.0)) ]], color diffuse_tint = color(1.0) [[ anno::display_name("Color Tint"), anno::description("When enabled, this color value is multiplied over the final albedo color"), anno::in_group("Albedo") ]],
// Reflectivity // float reflection_roughness_constant = float(0.5) [[ anno::display_name("Roughness Amount"), anno::description("Higher roughness values lead to more blurry reflections"), anno::in_group("Reflectivity"), anno::hard_range(float(0.0), float(1.0)) ]], float reflection_roughness_texture_influence = float(0.0) [[ anno::display_name("Roughness Map Influence"), anno::description("Blends between the constant value and the lookup of the roughness texture"), anno::in_group("Reflectivity"), anno::hard_range(float(0.0), float(1.0)) ]], uniform texture_2d reflectionroughness_texture = texture_2d() [[ anno::display_name("Roughness Map"), anno::in_group("Reflectivity"), anno::usage("roughness") ]], float metallic_constant = float(0.0) [[ anno::display_name("Metallic Amount"), anno::description("Metallic Material"), anno::in_group("Reflectivity"), anno::hard_range(float(0.0), float(1.0)) ]], float metallic_texture_influence = float(0.0) [[ anno::display_name("Metallic Map Influence"), anno::description("Blends between the constant value and the lookup of the metallic texture"), anno::in_group("Reflectivity"), anno::hard_range(float(0.0), float(1.0)) ]], uniform texture_2d metallic_texture = texture_2d() [[ anno::display_name("Metallic Map"), anno::in_group("Reflectivity"), anno::usage("metalness") ]], float specular_level = float(0.5) [[ anno::display_name("Specular"), anno::description("The specular level (intensity) of the material"), anno::in_group("Reflectivity"), anno::soft_range(float(0.0), float(1.0)) ]],
// ORM // uniform bool enable_ORM_texture = false [[ anno::display_name("Enable ORM Texture"), anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"), anno::in_group("Reflectivity") ]], uniform texture_2d ORM_texture = texture_2d() [[ anno::display_name("ORM Map"), anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"), anno::in_group("Reflectivity"), anno::usage("roughness") ]],
// AO Group //
float ao_to_diffuse = 0.0 [[ anno::display_name("AO to diffuse"), anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"), anno::in_group("AO"), anno::hard_range(float(0.0), float(1.0)) ]], uniform texture_2d ao_texture = texture_2d() [[ anno::display_name("Ambient Occlusion Map"), anno::description("The ambient occlusion texture for the material"), anno::in_group("AO"), anno::usage("occlusion") ]], // Emission //
uniform bool enable_emission = false [[ anno::display_name("Enable Emission"), anno::description("Enables the emission of light from the material"), anno::in_group("Emissive") ]], color emissive_color = color(1.0,0.1,0.1) [[ anno::display_name("Emissive Color"), anno::description("The emission color"), anno::in_group("Emissive"), anno::enable_if("enable_emission == true") ]], uniform texture_2d emissive_color_texture = texture_2d() [[ anno::display_name("Emissive Color map"), anno::in_group("Emissive"), anno::description("The emissive color texture"), anno::enable_if("enable_emission == true") ]], uniform texture_2d emissive_mask_texture = texture_2d() [[ anno::display_name("Emissive Mask map"), anno::description("The texture masking the emissive color"), anno::in_group("Emissive"), anno::enable_if("enable_emission == true"), anno::usage("occlusion") ]], float emissive_intensity = float(40.0) [[ anno::display_name("Emissive Intensity"), anno::description("Intensity of the emission"), anno::in_group("Emissive"), anno::enable_if("enable_emission == true") ]],
// Cutout Opacity // uniform bool enable_opacity = false [[ anno::display_name("Enable Opacity"), anno::description("Enables the use of cutout opacity"), anno::in_group("Opacity") ]], uniform texture_2d opacity_texture = texture_2d() [[ anno::display_name("Opacity Map"), anno::in_group("Opacity"), anno::usage("opacity") ]], float opacity_constant = float(1.0) [[ anno::display_name("Opacity Amount"), anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), anno::in_group("Opacity"), anno::hard_range(float(0.0), float(1.0)) ]], uniform bool enable_opacity_texture = false [[ anno::display_name("Enable Opacity Texture"), anno::description("Enables or disables the usage of the opacity texture map"), anno::in_group("Opacity") ]], uniform base::mono_mode opacity_mode = base::mono_average [[ anno::display_name("Opacity Mono Source"), anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"), anno::in_group("Opacity") ]], uniform float opacity_threshold = float(0.0) [[ anno::display_name("Opacity Threshold"), anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), anno::in_group("Opacity"), anno::hard_range(float(0.0), float(1.0)) ]],
// Clearcoat // uniform bool enable_clearcoat = false [[ anno::display_name("Enable Clearcoat Layer"), anno::description("Adds a clearcoat layer on top of the material when enabled"), anno::in_group("Clearcoat") ]], float clearcoat_weight = float(1.0) [[ anno::display_name("Clearcoat Weight"), anno::description("Sets the weight for clearcoat layer"), anno::in_group("Clearcoat"), anno::hard_range(float(0.0), float(1.0)) ]], color clearcoat_tint = color(1.0) [[ anno::display_name("Clearcoat Tint"), anno::description("Clearcoat is tinted and affects the underlying material"), anno::in_group("Clearcoat") ]], float clearcoat_transparency = float(1.0) [[ anno::display_name("Clearcoat Transparency"), anno::description("Adjusts the transparency of the clearcoat. Can be turned into a fully opaque clearcoat covering the underlying layer"), anno::in_group("Clearcoat"), anno::hard_range(float(0.0), float(1.0)) ]], float clearcoat_reflection_roughness = float(0.0) [[ anno::display_name("Clearcoat Roughness"), anno::description("Higher roughness values lead to more blurry reflections"), anno::in_group("Clearcoat"), anno::hard_range(float(0.0), float(1.0)) ]], float clearcoat_ior = float(1.56) [[ anno::display_name("Clearcoat IOR"), anno::description("Sets the Index of refraction for the clearcoat layer"), anno::in_group("Clearcoat"), anno::soft_range(float(0.0), float(4.0)) ]], uniform float clearcoat_bump_factor = float(1.0) [[ anno::display_name("Clearcoat Normal Map Strength"), anno::description("Strength of normal map."), anno::in_group("Clearcoat"), anno::soft_range(float(0.0), float(1.0)) ]], uniform texture_2d clearcoat_normalmap_texture = texture_2d() [[ anno::display_name("Clearcoat Normal Map"), anno::description("Enables the usage of the normalmap texture"), anno::in_group("Clearcoat"), anno::usage("normal") ]], uniform float2 clearcoat_texture_translate = float2(0.0) [[ anno::display_name("Clearcoat Texture Translate"), anno::description("Controls the position of the clearcoat texture"), anno::ui_order(1), anno::in_group("UV") ]], uniform float clearcoat_texture_rotate = float(0.0) [[ anno::display_name("Clearcoat Texture Rotate"), anno::description("Rotates angle of the clearcoat texture in degrees"), anno::ui_order(2), anno::in_group("UV") ]], uniform float2 clearcoat_texture_scale = float2(1.0) [[ anno::display_name("Clearcoat Texture Tiling"), anno::description("Controls the repetition of the clearcoat texture"), anno::ui_order(3), anno::in_group("UV") ]], float clearcoat_flatten = float(1.0) [[ anno::display_name("Clearcoat Flatten"), anno::description("Flattens the clearcoat to even out the underlying bump maps"), anno::in_group("Clearcoat"), anno::hard_range(float(0.0), float(1.0)) ]],
// Normal // uniform float geometry_normal_roughness_strength = 1.f [[ anno::hard_range(0.0, 1.0), anno::display_name("Normal map to roughness weight"), anno::description("Enables and weights roughness induced by normal maps"), anno::in_group("Normal") ]], uniform float bump_factor = float(1.0) [[ anno::display_name("Normal Strength"), anno::description("Strength of normal map"), anno::in_group("Normal"), anno::soft_range(float(0.0), float(1.0)) ]], uniform texture_2d normalmap_texture = texture_2d() [[ anno::display_name("Normal Map"), anno::in_group("Normal"), anno::usage("normal") ]], uniform float detail_bump_factor = float(0.3) [[ anno::display_name("Detail Normal Strength"), anno::in_group("Normal"), anno::description("Strength of the detail normal"), anno::soft_range(float(0.0), float(1.0)) ]], uniform texture_2d detail_normalmap_texture = texture_2d() [[ anno::display_name("Detail Normal Map"), anno::in_group("Normal"), anno::usage("normal") ]], uniform bool flip_tangent_u = false [[ anno::display_name("Normal Map Flip U Tangent"), anno::in_group("Normal") ]], uniform bool flip_tangent_v = true [[ anno::display_name("Normal Map Flip V Tangent"), anno::in_group("Normal") ]],
// UVW Projection Group //
uniform bool project_uvw = false [[ anno::display_name("Enable Project UVW Coordinates"), anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), anno::in_group("UV") ]], uniform bool world_or_object = false [[ anno::display_name("Enable World Space"), anno::description("When enabled, uses world space for projection, otherwise object space is used"), anno::in_group("UV"), anno::enable_if("project_uvw == true") ]], uniform int uv_space_index = 0 [[ anno::display_name("UV Space Index"), anno::description("UV Space Index"), anno::in_group("UV"), anno::enable_if("project_uvw == true"), anno::hard_range(int(0), int(3)) ]],
// UVW Adjustments Group //
uniform float2 texture_translate = float2(0.0) [[ anno::display_name("Texture Translate"), anno::description("Controls position of texture."), anno::in_group("UV"), anno::enable_if("project_uvw == true") ]], uniform float texture_rotate = float(0.0) [[ anno::display_name("Texture Rotate"), anno::description("Rotates angle of texture in degrees."), anno::in_group("UV"), anno::enable_if("project_uvw == true") ]], uniform float2 texture_scale = float2(1.0) [[ anno::display_name("Texture Tiling"), anno::description("Controls repetition of the texture."), anno::in_group("UV"), anno::enable_if("project_uvw == true") ]], uniform float2 detail_texture_translate = float2(0.0) [[ anno::display_name("Detail Texture Translate"), anno::description("Controls the position of the detail texture."), anno::in_group("UV"), anno::enable_if("project_uvw == true") ]], uniform float detail_texture_rotate = float(0.0) [[ anno::display_name("Detail Texture Rotate"), anno::description("Rotates angle of the detail texture in degrees."), anno::in_group("UV"), anno::enable_if("project_uvw == true") ]], uniform float2 detail_texture_scale = float2(1.0) [[ anno::display_name("Detail Texture Tiling"), anno::description("Controls repetition of the detail texture."), anno::in_group("UV"), anno::enable_if("project_uvw == true") ]],
// Geometry //
uniform float round_edges_radius = float(0.0) [[ anno::display_name("Round Edge Radius"), anno::description("Influence radius around the edges in meters"), anno::in_group("Geometry"), anno::soft_range(0.0, 1.0) ]], uniform float round_edges_roundness = float(1.0) [[ anno::display_name("Round Edge Roundness"), anno::description("Determines how round the edge will look"), anno::in_group("Geometry"), anno::hard_range(0.0, 1.0) ]], uniform bool round_edges_across_materials = false [[ anno::display_name("Round Edge Across Materials"), anno::description("Normal smoothing happens only between facets of equal material, \n" "\t\tunless this parameter is set true, in which case the smoothing \n" "\t\thappens between facets irrespective of their materials"), anno::in_group("Geometry") ]]) [[ anno::display_name("OmniPBR ClearCoat "), anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), anno::in_group("Base"), anno::version( 2, 1, 1), anno::author("NVIDIA CORPORATION"), anno::key_words(string[]("omni", "PBR", "opacity", "clearcoat", "omniverse", "generic"))]] = let {
// UVW lookup and transformation // base::texture_coordinate_system the_system = world_or_object ? base::texture_coordinate_world : base::texture_coordinate_object; base::texture_coordinate_info uvw = project_uvw ? base::coordinate_projection( coordinate_system: the_system, texture_space: uv_space_index, projection_type: base::projection_cubic ) : base::coordinate_source( coordinate_system: base::texture_coordinate_uvw, texture_space: uv_space_index ); base::texture_coordinate_info transformed_uvw = base::transform_coordinate( transform: rotation_translation_scale( scaling: float3(texture_scale.x, texture_scale.y, 1.0), rotation: float3(0.0, 0.0, texture_rotate/180.*math::PI ), translation: float3(texture_translate.x, texture_translate.y, 0.0) ), coordinate: uvw ); base::texture_coordinate_info detail_transformed_uvw = base::transform_coordinate( transform: rotation_translation_scale( scaling: float3(detail_texture_scale.x, detail_texture_scale.y, 1.0), rotation: float3(0.0, 0.0, detail_texture_rotate/180.*math::PI ), translation: float3(detail_texture_translate.x, detail_texture_translate.y, 0.0) ), coordinate: uvw );
base::texture_coordinate_info clearcoat_transformed_uvw = base::transform_coordinate( transform: rotation_translation_scale( scaling: float3(clearcoat_texture_scale.x, clearcoat_texture_scale.y, 1.0), rotation: float3(0.0, 0.0, clearcoat_texture_rotate/180.*math::PI ), translation: float3(clearcoat_texture_translate.x, clearcoat_texture_translate.y, 0.f) ), coordinate: uvw );
// Normal calculations // OmniPBRBase::NormalData defaultData = OmniPBRBase::NormalData(state::normal(), float2(0));
OmniPBRBase::NormalData normal_data = tex::texture_isvalid(normalmap_texture) ? OmniPBRBase::tangent_space_normal_roughness_texture( texture: normalmap_texture, factor: bump_factor, uvw: transformed_uvw, flip_tangent_u: flip_tangent_u, flip_tangent_v: flip_tangent_v // true for dx, false for opengl //flip_tangent_v: true
) : defaultData; float3 the_normal = normal_data.normal;
OmniPBRBase::NormalData detail_normal_data = tex::texture_isvalid(detail_normalmap_texture) ? OmniPBRBase::tangent_space_normal_roughness_texture( texture: detail_normalmap_texture, factor: detail_bump_factor, uvw: detail_transformed_uvw, flip_tangent_u: flip_tangent_u, flip_tangent_v: flip_tangent_v // true for dx, false for opengl ) : defaultData; float3 detail_normal = detail_normal_data.normal;
OmniPBRBase::NormalData clearcoat_normal_data = tex::texture_isvalid(clearcoat_normalmap_texture) ? OmniPBRBase::tangent_space_normal_roughness_texture( texture: clearcoat_normalmap_texture, factor: clearcoat_bump_factor, uvw: clearcoat_transformed_uvw, flip_tangent_u: flip_tangent_u, flip_tangent_v: flip_tangent_v // true for dx, false for opengl ) : defaultData; float3 clearcoat_normal = clearcoat_normal_data.normal;
float3 diffuse_gloss_normal = tex::texture_isvalid(detail_normalmap_texture) ? add_detail_normal(detail_normal, the_normal) : the_normal; float3 flattened_clearcoat_normal = ::math::lerp(diffuse_gloss_normal, ::state::normal(), clearcoat_flatten); float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? add_detail_normal(flattened_clearcoat_normal, clearcoat_normal) : flattened_clearcoat_normal;
// ORM Handling //
float3 ORM_lookup = tex::lookup_float3( tex: ORM_texture, coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) );
float3 roughness_lookup = tex::lookup_float3( tex: reflectionroughness_texture, coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) ); float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup.x; float reflection_roughness_s = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); float2 reflection_roughness = float2(math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.x * normal_data.roughness.x)), math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.y * normal_data.roughness.y)));
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)), math::sqrt(clearcoat_reflection_roughness*clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.y * clearcoat_normal_data.roughness.y)));
// Diffuse Color Lookup and AO // base::texture_return base_lookup = base::file_texture( texture: diffuse_texture, color_offset: color(albedo_add), color_scale: color(albedo_brightness), mono_source: base::mono_luminance, uvw: transformed_uvw, clip: false ); base::texture_return ao_lookup = base::file_texture( texture: ao_texture, color_offset: color(0.0, 0.0, 0.0), color_scale: color(1.0, 1.0, 1.0), mono_source: base::mono_average, uvw: transformed_uvw, clip: false );
color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : ao_lookup.tint; color desaturated_base = math::lerp(base_lookup.tint, color(base_lookup.mono), albedo_desaturation); color diffuse = tex::texture_isvalid(diffuse_texture)? desaturated_base : diffuse_color_constant; color tinted_diffuse = multiply_colors(diffuse, diffuse_tint, 1.0).tint; color base_color = multiply_colors( color_1: tinted_diffuse, color_2: ao_color, weight: ao_to_diffuse ).tint;
// Metalness //
float3 metallic_lookup = tex::lookup_float3( tex: metallic_texture, coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) ); float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup.x; float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence);
// Emission //
color emission_color_texture = tex::texture_isvalid(emissive_color_texture) ? base::file_texture( texture: emissive_color_texture, color_offset: color(0.0, 0.0, 0.0), color_scale: color(1.0, 1.0, 1.0), mono_source: base::mono_average, uvw: transformed_uvw, clip: false ).tint : emissive_color;
color emission_mask_texture = tex::texture_isvalid(emissive_mask_texture) ? base::file_texture( texture: emissive_mask_texture, color_offset: color(0.0, 0.0, 0.0), color_scale: color(1.0, 1.0, 1.0), mono_source: base::mono_average, uvw: transformed_uvw, clip: false ).tint : color(1.0); color final_emission_color = enable_emission ? emission_color_texture * emission_mask_texture: color(0.0);
// Opacity // float opacity_value = enable_opacity_texture ? base::file_texture( texture: opacity_texture, mono_source: opacity_mode, uvw: transformed_uvw ).mono : opacity_constant;
float cutout_opacity = enable_opacity ? ((opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= opacity_threshold) ? 1.0 : 0)) : 1.0;
material base = OmniPBRBase::OmniPBRBase( diffuse_reflection_color: base_color, specular_reflection_aniso_roughness: reflection_roughness, specular_level: specular_level, metalness: metallic, enable_emission: enable_emission, emission_color: final_emission_color, emission_intensity: emissive_intensity, enable_coat: enable_clearcoat, coat_weight: clearcoat_weight, coat_color: clearcoat_tint, coat_transparency: clearcoat_transparency, coat_aniso_roughness: clearcoat_reflection_roughness2, coat_ior: clearcoat_ior, enable_opacity: enable_opacity, geometry_opacity: cutout_opacity, clearcoat_geometry_normal: final_clearcoat_normal, round_edges_radius: round_edges_radius, round_edges_roundness: round_edges_roundness, round_edges_across_materials: round_edges_across_materials, geometry_normal: diffuse_gloss_normal );
} in material(surface: base.surface,geometry: base.geometry);123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860/* * SPDX-FileCopyrightText: Copyright (c) 2020-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: BSD-3-Clause */
mdl 1.7;import ::df::*;import ::state::*;import ::math::*;import ::base::*;import ::tex::*;import ::anno::*;
import ::nvidia::core_definitions::file_texture;import ::nvidia::core_definitions::normalmap_texture;
import OmniPBRBase::*;
uniform float4x4 rotation_translation_scale( uniform float3 rotation = float3(0.) [[ anno::description("Rotation applied to every UVW coordinate") ]], uniform float3 translation = float3(0.) [[ anno::description("Offset applied to every UVW coordinate") ]], uniform float3 scaling = float3(1.) [[ anno::description("Scale applied to every UVW coordinate") ]])[[ anno::description("Construct transformation matrix from Euler rotation, translation and scale"), anno::hidden()]]{ float4x4 scale = float4x4(scaling.x , 0. , 0. , 0., 0. , scaling.y , 0. , 0., 0. , 0. , scaling.z , 0., translation.x, translation.y, translation.z, 1.);
float3 s = math::sin(rotation); float3 c = math::cos(rotation); float4x4 rotate = 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, 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, -s.y , s.x*c.y , c.x*c.y , 0.0, 0. , 0 , 0 , 1.);
return scale*rotate;}
// Returns the normal n in tangent space, given n is in internal space.float3 transform_internal_to_tangent(float3 n){ /* flip_tangent_v */ return n.x* float3(state::texture_tangent_u(0).x,-state::texture_tangent_v(0).x,state::normal().x)+ n.y* float3(state::texture_tangent_u(0).y,-state::texture_tangent_v(0).y,state::normal().y)+ n.z* float3(state::texture_tangent_u(0).z,-state::texture_tangent_v(0).z,state::normal().z);}
// Returns the normal n in internal space, given n is in tangent space.float3 transform_tangent_to_internal(float3 n){ return state::texture_tangent_u(0) * n.x - state::texture_tangent_v(0) * n.y + /* flip_tangent_v */ state::normal() * n.z ;}
// Returns a normal by adding a detail normal to a global normal.export float3 add_detail_normal(float3 nd = state::normal(), float3 n = state::normal()){ // http://blog.selfshadow.com/publications/blending-in-detail/ float3 n_t = transform_internal_to_tangent(n); float3 nd_t = transform_internal_to_tangent(nd);
n_t=n_t + float3(0.,0.,1.); nd_t = nd_t * float3(-1.,-1.,1.);
n = n_t*math::dot(n_t, nd_t)/n_t.z - nd_t; return math::normalize(transform_tangent_to_internal(n));}
base::texture_return multiply_colors( color color_1 = color(1.0, 1.0, 1.0), color color_2 = color(.5, .5, .5), float weight = 1.0) [[ anno::hidden() ]]{ return base::blend_color_layers( layers: base::color_layer[]( base::color_layer( layer_color: color_2, weight: weight, mode: base::color_layer_multiply )), base: color_1 );}
base::texture_return add_colors( color color_1 = color(.5, .5, .5), color color_2 = color(.5, .5, .5), float weight = 1.0) [[ anno::hidden(), anno::unused()]]{ return base::blend_color_layers( layers: base::color_layer[]( base::color_layer( layer_color: color_2, weight: weight, mode: base::color_layer_add )), base: color_1 );}
base::texture_return blend_colors( color color_1 = color(1.0, 1.0, 1.0), color color_2 = color(.5, .5, .5), float weight = 1.0) [[ anno::hidden(), anno::unused()]]{ return base::blend_color_layers( layers: base::color_layer[]( base::color_layer( layer_color: color_2, weight: weight, mode: base::color_layer_blend )), base: color_1 );}
export material OmniPBR_ClearCoat_Opacity(
color diffuse_color_constant = color(0.2f) [[ anno::display_name("Base Color"), anno::description("This is the base color"), anno::in_group("Albedo") ]], uniform texture_2d diffuse_texture = texture_2d() [[ anno::display_name("Albedo Map"), anno::in_group("Albedo") ]], float albedo_desaturation = float(0.0) [[ anno::display_name("Albedo Map Desaturation"), anno::soft_range(float(0.0f), float(1.0f)), anno::description("Desaturates the albedo map"), anno::in_group("Albedo") ]], float albedo_add = float(0.0) [[ anno::display_name("Albedo Add"), anno::soft_range(float(-1.0f), float(1.0f)), anno::description("Adds a constant value to the diffuse color "), anno::in_group("Albedo") ]], float albedo_brightness = float(1.0) [[ anno::display_name("Albedo Brightness"), anno::soft_range(float(0.0f), float(1.0f)), anno::description("Multiplier for the diffuse color "), anno::in_group("Albedo") ]], color diffuse_tint = color(1.0f) [[ anno::display_name("Color Tint"), anno::description("When enabled, this color value is multiplied over the final albedo color"), anno::in_group("Albedo") ]],
// -------------------- REFLECTIVITY ---------------------- float reflection_roughness_constant = 0.5f [[ anno::display_name("Roughness Amount"), anno::hard_range(0.0,1.), anno::description("Higher roughness values lead to more blurry reflections"), anno::in_group("Reflectivity") ]], float reflection_roughness_texture_influence = 0.0f [[ anno::display_name("Roughness Map Influence"), anno::hard_range(0.0, 1.), anno::description("Blends between the constant value and the lookup of the roughness texture"), anno::in_group("Reflectivity") ]], uniform texture_2d reflectionroughness_texture = texture_2d() [[ anno::display_name("Roughness Map"), anno::in_group("Reflectivity") ]], float metallic_constant = 0.f [[ anno::display_name("Metallic Amount"), anno::hard_range(0.0,1.), anno::description("Metallic Material"), anno::in_group("Reflectivity") ]], float metallic_texture_influence = 0.0f [[ anno::display_name("Metallic Map Influence"), anno::hard_range(0.0, 1.), anno::description("Blends between the constant value and the lookup of the metallic texture"), anno::in_group("Reflectivity") ]], uniform texture_2d metallic_texture = texture_2d() [[ anno::display_name("Metallic Map"), anno::in_group("Reflectivity") ]], float specular_level = float(0.5) [[ anno::display_name("Specular"), anno::soft_range(float(0.0f), float(1.0f)), anno::description("The specular level (intensity) of the material"), anno::in_group("Reflectivity") ]], // -------------------- ORM ---------------------- uniform bool enable_ORM_texture = false [[ anno::display_name("Enable ORM Texture"), anno::description("When True the ORM texture will be used to extract the Occlusion, Roughness and Metallic Map"), anno::in_group("Reflectivity") ]], uniform texture_2d ORM_texture = texture_2d() [[ anno::display_name("ORM Map"), anno::description("Texture that hae Occlusion, Roughness and Metallic map stored in the respective r, g and b channels"), anno::in_group("Reflectivity") ]], // -------------------- AO Group ----------------------
float ao_to_diffuse = 0.0 [[ anno::display_name("AO to Diffuse"), anno::description("Controls the amount of ambient occlusion multiplied into the diffuse color channel"), anno::in_group("AO"), anno::hard_range(0.0f, 1.0f) ]], uniform texture_2d ao_texture = texture_2d() [[ anno::display_name("Ambient Occlusion Map"), anno::description("The Ambient Occlusion texture for the material"), anno::in_group("AO") ]], // -------------------- EMISSIVE ---------------------- uniform bool enable_emission = false [[ anno::display_name("Enable Emission"), anno::description("Enables the emission of light from the material"), anno::in_group("Emissive") ]], color emissive_color = color(1.0, 0.1, 0.1) [[ anno::enable_if("enable_emission == true"), anno::display_name("Emissive Color"), anno::description("The emission color"), anno::in_group("Emissive") ]],
uniform texture_2d emissive_color_texture = texture_2d() [[ anno::enable_if("enable_emission == true"), anno::display_name("Emissive Color map"), anno::in_group("Emissive"), anno::description("The emissive color texture") ]],
uniform texture_2d emissive_mask_texture = texture_2d() [[ anno::enable_if("enable_emission == true"), anno::display_name("Emissive Mask map"), anno::description("The texture masking the emissive color"), anno::in_group("Emissive") ]], uniform float emissive_intensity = 40.f [[ anno::enable_if("enable_emission == true"), anno::display_name("Emissive Intensity"), anno::description("Intensity of the emission"), anno::in_group("Emissive") ]],
// Cutout Opacity uniform bool enable_opacity = true [[ anno::display_name("Enable Opacity"), anno::description("Enables the use of cutout opacity"), anno::in_group("Opacity") ]], uniform bool enable_opacity_texture = false [[ anno::display_name("Enable Opacity Texture"), anno::description("Enables or disables the usage of the opacity texture map"), anno::in_group("Opacity") ]], uniform float opacity_constant = 1.f [[ anno::hard_range(0.0, 1.0), anno::display_name("Opacity Amount"), anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), anno::in_group("Opacity") ]], uniform texture_2d opacity_texture = texture_2d() [[ anno::display_name("Opacity Map"), anno::in_group("Opacity") ]], uniform base::mono_mode opacity_mode = base::mono_average [[ anno::display_name("Opacity Mono Source"), anno::in_group("Opacity"), anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum") ]], uniform float opacity_threshold = 0.f [[ anno::hard_range(0.0, 1.0), anno::display_name("Opacity Threshold"), anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), anno::in_group("Opacity") ]], // -------------------- Clearcoat ---------------------- uniform bool enable_clearcoat = false [[ anno::display_name("Enable Clearcoat Layer"), anno::description("Adds a clearcoat layer on top of the material when enabled"), anno::in_group("Clearcoat") ]], color clearcoat_tint = color(1.0f) [[ anno::display_name("Clearcoat Tint"), anno::description("Clearcoat is tinted and affects the underlying material"), anno::in_group("Clearcoat") ]], float clearcoat_transparency = 1.0f [[ anno::display_name("Clearcoat Transparency"), anno::description("Adjusts the transparency of the clearcoat. Can be turned into a fully opaque clearcoat " "covering the underlying layer"), anno::in_group("Clearcoat"), anno::hard_range(0.0f, 1.0f) ]], float clearcoat_reflection_roughness = 0.0f [[ anno::display_name("Clearcoat Roughness"), anno::description("Higher roughness values lead to more blurry reflections"), anno::hard_range(0.0f, 1.0f), anno::in_group("Clearcoat") ]], float clearcoat_weight = 1.0f [[ anno::display_name("Clearcoat Weight"), anno::description("Sets the weight for clearcoat layer"), anno::hard_range(0.0f, 1.0f), anno::in_group("Clearcoat") ]], float clearcoat_flatten = 1.0f [[ anno::display_name("Clearcoat Flatten"), anno::description("Flattens the clearcoat to even out the underlying bump maps"), anno::hard_range(0.0f, 1.0f), anno::in_group("Clearcoat") ]], float clearcoat_ior = 1.56f [[ anno::display_name("Clearcoat IOR"), anno::description("Sets the Index of refraction for the clearcoat layer"), anno::soft_range(1.0f, 4.0f), anno::in_group("Clearcoat") ]], uniform float clearcoat_bump_factor = 1.f [[ anno::display_name("Clearcoat Normal Map Strength"), anno::description("Strength of normal map."), anno::in_group("Clearcoat"), anno::soft_range(0.0f, 1.0f) ]], uniform texture_2d clearcoat_normalmap_texture = texture_2d() [[ anno::display_name("Clearcoat Normal Map"), anno::description("Enables the usage of the normalmap texture"), anno::in_group("Clearcoat") ]], // -------------------- Normal ---------------------- uniform float geometry_normal_roughness_strength = 1.f [[ anno::hard_range(0.0, 1.0), anno::display_name("Normal map to roughness weight"), anno::description("Enables and weights roughness induced by normal maps"), anno::in_group("Normal") ]], /* uniform bool enable_normalmap_texture = false [[ anno::display_name("Enable Normal Texture"), anno::description("Enables the usage of the normalmap texture"), anno::in_group("Features") ]], */ uniform float bump_factor = 1.f [[ anno::display_name("Normal Map Strength"), anno::description("Strength of normal map."), anno::in_group("Normal"), anno::soft_range(0.0f, 1.0f) ]], uniform texture_2d normalmap_texture = texture_2d() [[ anno::display_name("Normal Map"), anno::description("Enables the usage of the normalmap texture"), anno::in_group("Normal") ]],
/* uniform bool enable_detail_normalmap_texture = false [[ anno::display_name("Enable Detail Normal Texture"), anno::in_group("Features"), anno::description("Enables the usage of the detail normalmap texture") ]],*/ uniform float detail_bump_factor = .3f [[ anno::display_name("Detail Normal Strength"), anno::in_group("Normal"), anno::soft_range(0.0f, 1.0f), anno::description("Strength of the detail normal") ]], uniform texture_2d detail_normalmap_texture = texture_2d() [[ anno::display_name("Detail Normal Map"), anno::in_group("Normal") ]], uniform bool flip_tangent_u = false [[ anno::display_name("Normal Map Flip U Tangent"), anno::in_group("Normal") ]], uniform bool flip_tangent_v = true [[ anno::display_name("Normal Map Flip V Tangent"), anno::in_group("Normal") ]],
// UV Projection Group uniform bool project_uvw = false [[ anno::display_name("Enable Project UVW Coordinates"), anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), anno::in_group("UV") ]], uniform bool world_or_object = false [[ anno::enable_if("project_uvw == true"), anno::display_name("Enable World Space"), anno::description("When set to 'true' uses world space for projection, when 'false' object space is used"), anno::in_group("UV") ]], uniform int uv_space_index = 0 [[ anno::enable_if("project_uvw == true"), anno::display_name("UV Space Index"), anno::description("UV Space Index."), anno::in_group("UV"), anno::hard_range(0, 3) ]], // Adjustments Group uniform float2 texture_translate = float2(0.0f) [[ anno::enable_if("project_uvw == true"), anno::display_name("Texture Translate"), anno::description("Controls position of texture."), anno::in_group("UV") ]], uniform float texture_rotate = 0.f [[ anno::enable_if("project_uvw == true"), anno::display_name("Texture Rotate"), anno::description("Rotates angle of texture in degrees."), anno::in_group("UV") ]], uniform float2 texture_scale = float2(1.0f) [[ anno::enable_if("project_uvw == true"), anno::display_name("Texture Scale"), anno::description("Larger number increases size of texture."), anno::in_group("UV") ]], uniform float2 detail_texture_translate = float2(0.0f) [[ anno::enable_if("project_uvw == true"), anno::display_name("Detail Texture Translate"), anno::description("Controls the position of the detail texture."), anno::in_group("UV") ]], uniform float detail_texture_rotate = 0.f [[ anno::enable_if("project_uvw == true"), anno::display_name("Detail Texture Rotate"), anno::description("Rotates angle of the detail texture in degrees."), anno::in_group("UV") ]], uniform float2 detail_texture_scale = float2(1.0f) [[ anno::enable_if("project_uvw == true"), anno::display_name("Detail Texture Scale"), anno::description("Larger numbers increase the size of the detail texture"), anno::in_group("UV") ]], uniform float2 clearcoat_texture_translate = float2(0.0f) [[ anno::display_name("Clearcoat Texture Translate"), anno::description("Controls the position of the detail texture."), anno::in_group("UV") ]], uniform float clearcoat_texture_rotate = 0.f [[ anno::display_name("Clearcoat Texture Rotate"), anno::description("Rotates angle of the detail texture in degrees."), anno::in_group("UV") ]], uniform float2 clearcoat_texture_scale = float2(1.0f) [[ anno::display_name("Clearcoat Texture Scale"), anno::description("Larger numbers increase the size of the detail texture"), anno::in_group("UV") ]] ) [[ anno::display_name("OmniPBR ClearCoat Opacity"), anno::description("OmniPBR with ClearCoat. Supports opacity and ORM textures."), anno::in_group("Base"), anno::version( 2, 1, 0), anno::author("NVIDIA CORPORATION"), anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic"))]] = let{
// UVW lookup and transformation base::texture_coordinate_system the_system = world_or_object ? base::texture_coordinate_world : base::texture_coordinate_object; base::texture_coordinate_info uvw = project_uvw ? base::coordinate_projection( coordinate_system: the_system, texture_space: uv_space_index, projection_type: base::projection_cubic ) : base::coordinate_source( coordinate_system: base::texture_coordinate_uvw, texture_space: uv_space_index ); base::texture_coordinate_info transformed_uvw = base::transform_coordinate( transform: rotation_translation_scale( scaling: float3(texture_scale.x, texture_scale.y, 1.0), rotation: float3(0.0, 0.0, texture_rotate/180.*math::PI ), translation: float3(texture_translate.x, texture_translate.y, 0.0) ), coordinate: uvw ); base::texture_coordinate_info detail_transformed_uvw = base::transform_coordinate( transform: rotation_translation_scale( scaling: float3(detail_texture_scale.x, detail_texture_scale.y, 1.0), rotation: float3(0.0, 0.0, detail_texture_rotate/180.*math::PI ), translation: float3(detail_texture_translate.x, detail_texture_translate.y, 0.0) ), coordinate: uvw ); base::texture_coordinate_info clearcoat_transformed_uvw = base::transform_coordinate( transform: rotation_translation_scale( scaling: float3(clearcoat_texture_scale.x, clearcoat_texture_scale.y, 1.0), rotation: float3(0.0, 0.0, clearcoat_texture_rotate/180.*math::PI ), translation: float3(clearcoat_texture_translate.x, clearcoat_texture_translate.y, 0.f) ), coordinate: uvw ); // Normal calculations OmniPBRBase::NormalData defaultData = OmniPBRBase::NormalData(state::normal(), float2(0));
OmniPBRBase::NormalData normal_data = tex::texture_isvalid(normalmap_texture) ? OmniPBRBase::tangent_space_normal_roughness_texture( texture: normalmap_texture, factor: bump_factor, uvw: transformed_uvw, flip_tangent_u: flip_tangent_u, flip_tangent_v: flip_tangent_v // true for dx, false for opengl //flip_tangent_v: true
) : defaultData; float3 the_normal = normal_data.normal;
OmniPBRBase::NormalData detail_normal_data = tex::texture_isvalid(detail_normalmap_texture) ? OmniPBRBase::tangent_space_normal_roughness_texture( texture: detail_normalmap_texture, factor: detail_bump_factor, uvw: detail_transformed_uvw, flip_tangent_u: flip_tangent_u, flip_tangent_v: flip_tangent_v // true for dx, false for opengl ) : defaultData; float3 detail_normal = detail_normal_data.normal;
OmniPBRBase::NormalData clearcoat_normal_data = tex::texture_isvalid(clearcoat_normalmap_texture) ? OmniPBRBase::tangent_space_normal_roughness_texture( texture: clearcoat_normalmap_texture, factor: clearcoat_bump_factor, uvw: clearcoat_transformed_uvw, flip_tangent_u: flip_tangent_u, flip_tangent_v: flip_tangent_v // true for dx, false for opengl ) : defaultData; float3 clearcoat_normal = clearcoat_normal_data.normal;
float3 diffuse_gloss_normal = tex::texture_isvalid(detail_normalmap_texture) ? add_detail_normal(detail_normal, the_normal) : the_normal; float3 flattened_clearcoat_normal = ::math::lerp(diffuse_gloss_normal, ::state::normal(), clearcoat_flatten); float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? add_detail_normal(flattened_clearcoat_normal, clearcoat_normal) : flattened_clearcoat_normal;
// -------------------- ORM Handling -------------------- float3 ORM_lookup = tex::lookup_float3( tex: ORM_texture, coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) ); float3 roughness_lookup = tex::lookup_float3( tex: reflectionroughness_texture, coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) ); float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup.x; float reflection_roughness_1 = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); // Diffuse Color Lookup and AO base::texture_return base_lookup = base::file_texture( texture: diffuse_texture, color_offset: color(albedo_add), color_scale: color(albedo_brightness), mono_source: base::mono_luminance, uvw: transformed_uvw, clip: false ); base::texture_return ao_lookup = base::file_texture( texture: ao_texture, color_offset: color(0.0, 0.0, 0.0), color_scale: color(1.0, 1.0, 1.0), mono_source: base::mono_average, uvw: transformed_uvw, clip: false ); // checking whether the ORM texture or the AO texture is supposed to be used color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : ao_lookup.tint; color desaturated_base = math::lerp(base_lookup.tint, color(base_lookup.mono), albedo_desaturation); color diffuse_color = tex::texture_isvalid(diffuse_texture)? desaturated_base : diffuse_color_constant; //color diffuse_color = desaturated_base ; color tinted_diffuse_color = multiply_colors(diffuse_color, diffuse_tint, 1.0).tint ; color base_color = multiply_colors( color_1: tinted_diffuse_color, color_2: ao_color, weight: ao_to_diffuse ).tint; float3 metallic_lookup = tex::lookup_float3( tex: metallic_texture, coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) ); // Choose between ORM or metallic map float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup.x; // blend between the constant metallic value and the map lookup float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); bsdf diffuse_bsdf = df::weighted_layer( weight: 1.0, layer: df::diffuse_reflection_bsdf( tint: base_color, roughness: 0.f ), base: bsdf(), normal: enable_clearcoat ? diffuse_gloss_normal : state::normal() );
// The glossy reflection BSDF // TODO: Clearcoat's induced roughness from normal map should also apply here, but right now avoiding it due to confusing relationship in the normals bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( roughness_u:reflection_roughness_1 * reflection_roughness_1 + (geometry_normal_roughness_strength * normal_data.roughness.x * normal_data.roughness.x), roughness_v:reflection_roughness_1 * reflection_roughness_1 + (geometry_normal_roughness_strength * normal_data.roughness.y * normal_data.roughness.y), tint: color(1.0, 1.0, 1.0), mode: df::scatter_reflect ); bsdf custom_curve_layer_bsdf = df::custom_curve_layer( normal_reflectivity: 0.08, grazing_reflectivity: 1.0, exponent: 5.0, weight: specular_level, layer: ggx_smith_bsdf, base: diffuse_bsdf, normal: enable_clearcoat ? diffuse_gloss_normal : state::normal() ); // Replaced by tinting as this reproduces the UE4 behavior more faithfully // bsdf directional_factor_bsdf = df::directional_factor( // normal_tint: base_color, // grazing_tint: base_color, //color(1.0, 1.0, 1.0), // exponent: 3.0f, // base: ggx_smith_bsdf // ); bsdf directional_factor_bsdf = df::tint(base_color, ggx_smith_bsdf); // CLEARCOAT
bsdf omni_PBR_bsdf = df::weighted_layer( weight: metallic, layer: directional_factor_bsdf, base: custom_curve_layer_bsdf, normal: enable_clearcoat ? diffuse_gloss_normal : state::normal() ); bsdf clearcoat_bsdf = df::microfacet_ggx_smith_bsdf( roughness_u: clearcoat_reflection_roughness * clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.x * clearcoat_normal_data.roughness.x), roughness_v: clearcoat_reflection_roughness * clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.y * clearcoat_normal_data.roughness.y), tint: color(1.0f), mode: df::scatter_reflect ); // bsdf omni_PBR_coated_bsdf = df::custom_curve_layer( // normal_reflectivity: clearcoat_reflectivity * 0.08, // grazing_reflectivity: 1.0, // weight: clearcoat_weight, // layer: clearcoat_bsdf, // base: omni_PBR_bsdf, // normal: final_clearcoat_normal // ); bsdf opaque_clearcoat = df::weighted_layer( weight: clearcoat_transparency, layer: ::df::tint( tint: clearcoat_tint, base: omni_PBR_bsdf), base: ::df::diffuse_reflection_bsdf( tint: clearcoat_tint) ); bsdf omni_PBR_coated_bsdf = df::fresnel_layer( ior: clearcoat_ior, weight: clearcoat_weight, layer: clearcoat_bsdf, base: opaque_clearcoat, normal: final_clearcoat_normal ); bsdf final_bsdf = enable_clearcoat ? omni_PBR_coated_bsdf : omni_PBR_bsdf;
// Emission color emissive_color_tx = tex::texture_isvalid(emissive_color_texture) ? base::file_texture( texture: emissive_color_texture, color_offset: color(0.0, 0.0, 0.0), color_scale: color(1.0, 1.0, 1.0), mono_source: base::mono_average, uvw: transformed_uvw, clip: false ).tint : emissive_color;
color emissive_mask = tex::texture_isvalid(emissive_mask_texture) ? base::file_texture( texture: emissive_mask_texture, color_offset: color(0.0, 0.0, 0.0), color_scale: color(1.0, 1.0, 1.0), mono_source: base::mono_average, uvw: transformed_uvw, clip: false ).tint : color(1.0); float opacity_value = enable_opacity_texture ? base::file_texture( texture: opacity_texture, mono_source: opacity_mode, uvw: transformed_uvw ).mono : opacity_constant;
// The opacity_threshold is interpreted as follows: // 1. opacity_threshold > 0: binary opacity masking mode // i.e.: if opacity_value > opacity_threshold we remap opacity_value to 1.0, otherwise to 0.0 // 2. opacity_threshold == 0: fractional opacity mode. Leaves the opacity_value untouched, // allowing the renderer to use fractional cutout_opacity values, if it supports this feature // // NOTE: when the renderer does not enable 'fractional cutout opacity' it interprets // cutout_opacity values of 1.0 as opaque and anything below as fully transparent float local_cutout_opacity = enable_opacity ? ((opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= opacity_threshold) ? 1.0 : 0)) : 1.0;
} in material( surface: material_surface( scattering: final_bsdf, emission: material_emission ( df::diffuse_edf(), intensity: enable_emission? emissive_color_tx * emissive_mask * color(emissive_intensity) : color(0) ) ), geometry: material_geometry( normal: enable_clearcoat ? state::normal() : diffuse_gloss_normal, cutout_opacity: local_cutout_opacity ));123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404/* * SPDX-FileCopyrightText: Copyright (c) 2020-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: BSD-3-Clause */
mdl 1.4;
import ::base::*;import ::anno::*;
using OmniPBR_ClearCoat_Opacity import OmniPBR_ClearCoat_Opacity;
export material OmniPBR_Opacity(
color diffuse_color_constant = color(0.2f) [[ anno::display_name("Base Color"), anno::description("This is the base color"), anno::in_group("Albedo") ]], uniform texture_2d diffuse_texture = texture_2d() [[ anno::display_name("Albedo Map"), anno::in_group("Albedo") ]], float albedo_desaturation = float(0.0) [[ anno::display_name("Albedo Map Desaturation"), anno::soft_range(float(0.0f), float(1.0f)), anno::description("Desaturates the albedo map"), anno::in_group("Albedo") ]], float albedo_add = float(0.0) [[ anno::display_name("Albedo Add"), anno::soft_range(float(-1.0f), float(1.0f)), anno::description("Adds a constant value to the diffuse color "), anno::in_group("Albedo") ]], float albedo_brightness = float(1.0) [[ anno::display_name("Albedo Brightness"), anno::soft_range(float(0.0f), float(1.0f)), anno::description("Multiplier for the diffuse color "), anno::in_group("Albedo") ]], color diffuse_tint = color(1.0f) [[ anno::display_name("Color Tint"), anno::description("When enabled, this color value is multiplied over the final albedo color"), anno::in_group("Albedo") ]],
// -------------------- REFLECTIVITY ---------------------- float reflection_roughness_constant = 0.5f [[ anno::display_name("Roughness Amount"), anno::hard_range(0.0,1.), anno::description("Higher roughness values lead to more blurry reflections"), anno::in_group("Reflectivity") ]], float reflection_roughness_texture_influence = 0.0f [[ anno::display_name("Roughness Map Influence"), anno::hard_range(0.0, 1.), anno::description("Blends between the constant value and the lookup of the roughness texture"), anno::in_group("Reflectivity") ]], uniform texture_2d reflectionroughness_texture = texture_2d() [[ anno::display_name("Roughness Map"), anno::in_group("Reflectivity") ]], float metallic_constant = 0.f [[ anno::display_name("Metallic Amount"), anno::hard_range(0.0,1.), anno::description("Metallic Material"), anno::in_group("Reflectivity") ]], float metallic_texture_influence = 0.0f [[ anno::display_name("Metallic Map Influence"), anno::hard_range(0.0, 1.), anno::description("Blends between the constant value and the lookup of the metallic texture"), anno::in_group("Reflectivity") ]], uniform texture_2d metallic_texture = texture_2d() [[ anno::display_name("Metallic Map"), anno::in_group("Reflectivity") ]], float specular_level = float(0.5) [[ anno::display_name("Specular"), anno::soft_range(float(0.0f), float(1.0f)), anno::description("The specular level (intensity) of the material"), anno::in_group("Reflectivity") ]], // -------------------- ORM ---------------------- uniform bool enable_ORM_texture = false [[ anno::display_name("Enable ORM Texture"), anno::description("When True the ORM texture will be used to extract the Occlusion, Roughness and Metallic Map"), anno::in_group("Reflectivity") ]], uniform texture_2d ORM_texture = texture_2d() [[ anno::display_name("ORM Map"), anno::description("Texture that hae Occlusion, Roughness and Metallic map stored in the respective r, g and b channels"), anno::in_group("Reflectivity") ]], // -------------------- AO Group ----------------------
float ao_to_diffuse = 0.0 [[ anno::display_name("AO to Diffuse"), anno::description("Controls the amount of ambient occlusion multiplied into the diffuse color channel"), anno::in_group("AO"), anno::hard_range(0.0f, 1.0f) ]], uniform texture_2d ao_texture = texture_2d() [[ anno::display_name("Ambient Occlusion Map"), anno::description("The Ambient Occlusion texture for the material"), anno::in_group("AO") ]], // -------------------- EMISSIVE ---------------------- uniform bool enable_emission = false [[ anno::display_name("Enable Emission"), anno::description("Enables the emission of light from the material"), anno::in_group("Emissive") ]], color emissive_color = color(1.0, 0.1, 0.1) [[ anno::enable_if("enable_emission == true"), anno::display_name("Emissive Color"), anno::description("The emission color"), anno::in_group("Emissive") ]], uniform texture_2d emissive_color_texture = texture_2d() [[ anno::enable_if("enable_emission == true"), anno::display_name("Emissive Color map"), anno::in_group("Emissive"), anno::description("The emissive color texture") ]], uniform texture_2d emissive_mask_texture = texture_2d() [[ anno::enable_if("enable_emission == true"), anno::display_name("Emissive Mask map"), anno::description("The texture masking the emissive color"), anno::in_group("Emissive") ]], uniform float emissive_intensity = 40.f [[ anno::enable_if("enable_emission == true"), anno::display_name("Emissive Intensity"), anno::description("Intensity of the emission"), anno::in_group("Emissive") ]],
// Cutout Opacity uniform bool enable_opacity = true [[ anno::display_name("Enable Opacity"), anno::description("Enables the use of cutout opacity"), anno::in_group("Opacity") ]], uniform bool enable_opacity_texture = false [[ anno::display_name("Enable Opacity Texture"), anno::description("Enables or disables the usage of the opacity texture map"), anno::in_group("Opacity") ]], uniform float opacity_constant = 1.f [[ anno::hard_range(0.0, 1.0), anno::display_name("Opacity Amount"), anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), anno::in_group("Opacity") ]], uniform texture_2d opacity_texture = texture_2d() [[ anno::display_name("Opacity Map"), anno::in_group("Opacity") ]], uniform base::mono_mode opacity_mode = base::mono_average [[ anno::display_name("Opacity Mono Source"), anno::in_group("Opacity"), anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum") ]], uniform float opacity_threshold = 0.f [[ anno::hard_range(0.0, 1.0), anno::display_name("Opacity Threshold"), 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"), anno::in_group("Opacity") ]], // -------------------- Normal ---------------------- /* uniform bool enable_normalmap_texture = false [[ anno::display_name("Enable Normal Texture"), anno::description("Enables the usage of the normalmap texture"), anno::in_group("Features") ]], */ uniform float bump_factor = 1.f [[ anno::display_name("Normal Map Strength"), anno::description("Strength of normal map."), anno::in_group("Normal"), anno::soft_range(0.0f, 1.0f) ]], uniform texture_2d normalmap_texture = texture_2d() [[ anno::display_name("Normal Map"), anno::description("Enables the usage of the normalmap texture"), anno::in_group("Normal") ]],
/* uniform bool enable_detail_normalmap_texture = false [[ anno::display_name("Enable Detail Normal Texture"), anno::in_group("Features"), anno::description("Enables the usage of the detail normalmap texture") ]],*/ uniform float detail_bump_factor = .3f [[ anno::display_name("Detail Normal Strength"), anno::in_group("Normal"), anno::soft_range(0.0f, 1.0f), anno::description("Strength of the detail normal") ]], uniform texture_2d detail_normalmap_texture = texture_2d() [[ anno::display_name("Detail Normal Map"), anno::in_group("Normal") ]], // UV Projection Group uniform bool project_uvw = false [[ anno::display_name("Enable Project UVW Coordinates"), anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), anno::in_group("UV") ]], uniform bool world_or_object = false [[ anno::enable_if("project_uvw == true"), anno::display_name("Enable World Space"), anno::description("When set to 'true' uses world space for projection, when 'false' object space is used"), anno::in_group("UV") ]], uniform int uv_space_index = 0 [[ anno::enable_if("project_uvw == true"), anno::display_name("UV Space Index"), anno::description("UV Space Index."), anno::in_group("UV"), anno::hard_range(0, 3) ]], // Adjustments Group uniform float2 texture_translate = float2(0.0f) [[ anno::enable_if("project_uvw == true"), anno::display_name("Texture Translate"), anno::description("Controls position of texture."), anno::in_group("UV") ]], uniform float texture_rotate = 0.f [[ anno::enable_if("project_uvw == true"), anno::display_name("Texture Rotate"), anno::description("Rotates angle of texture in degrees."), anno::in_group("UV") ]], uniform float2 texture_scale = float2(1.0f) [[ anno::enable_if("project_uvw == true"), anno::display_name("Texture Scale"), anno::description("Larger number increases size of texture."), anno::in_group("UV") ]], uniform float2 detail_texture_translate = float2(0.0f) [[ anno::enable_if("project_uvw == true"), anno::display_name("Detail Texture Translate"), anno::description("Controls the position of the detail texture."), anno::in_group("UV") ]], uniform float detail_texture_rotate = 0.f [[ anno::enable_if("project_uvw == true"), anno::display_name("Detail Texture Rotate"), anno::description("Rotates angle of the detail texture in degrees."), anno::in_group("UV") ]], uniform float2 detail_texture_scale = float2(1.0f) [[ anno::enable_if("project_uvw == true"), anno::display_name("Detail Texture Scale"), anno::description("Larger numbers increase the size of the detail texture"), anno::in_group("UV") ]] ) [[ anno::display_name("OmniPBR Opacity"), anno::description("OmniPBR supports opacity and ORM textures"), anno::in_group("Base"), anno::version( 2, 1, 0), anno::author("NVIDIA CORPORATION"), anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic"))]] = OmniPBR_ClearCoat_Opacity( diffuse_texture: diffuse_texture, albedo_desaturation: albedo_desaturation, albedo_add: albedo_add, albedo_brightness: albedo_brightness, diffuse_color_constant: diffuse_color_constant, diffuse_tint: diffuse_tint, //ao ao_texture: ao_texture, ao_to_diffuse: ao_to_diffuse, //ORM ORM_texture: ORM_texture, enable_ORM_texture: enable_ORM_texture, //reflectivity reflection_roughness_constant: reflection_roughness_constant, reflectionroughness_texture: reflectionroughness_texture, reflection_roughness_texture_influence: reflection_roughness_texture_influence, metallic_constant: metallic_constant, metallic_texture: metallic_texture, metallic_texture_influence: metallic_texture_influence, specular_level: specular_level, //opacity enable_opacity: enable_opacity, enable_opacity_texture: enable_opacity_texture, opacity_texture: opacity_texture, opacity_constant: opacity_constant, opacity_mode: opacity_mode, opacity_threshold: opacity_threshold, //emissive enable_emission: enable_emission, emissive_color: emissive_color, emissive_color_texture: emissive_color_texture, emissive_mask_texture: emissive_mask_texture, emissive_intensity: emissive_intensity, //clearcoat enable_clearcoat: false, clearcoat_tint: color(1.0f), clearcoat_transparency: 1.0f, clearcoat_reflection_roughness: 0.0f, clearcoat_weight: 1.0f, clearcoat_flatten: 1.0f, clearcoat_ior: 1.56f, clearcoat_bump_factor: 1.f, clearcoat_normalmap_texture: texture_2d(), //normal normalmap_texture: normalmap_texture, bump_factor: bump_factor, detail_normalmap_texture: detail_normalmap_texture, detail_bump_factor: detail_bump_factor, project_uvw: project_uvw, world_or_object: world_or_object, uv_space_index: uv_space_index, texture_translate: texture_translate, texture_rotate: texture_rotate, texture_scale: texture_scale, detail_texture_translate: detail_texture_translate, detail_texture_rotate: detail_texture_rotate, detail_texture_scale: detail_texture_scale, clearcoat_texture_translate: float2(0.0f), clearcoat_texture_rotate: 0.0f, clearcoat_texture_scale: float2(1.0f) );123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673/****************************************************************************** Copyright 2023 NVIDIA Corporation. All rights reserved.******************************************************************************
MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT, WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR, THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.*/
// This file contains samples of very fast rendering SSS plastics for iray//
mdl 1.4;import ::df::*;import ::math::*;import ::anno::*;
const string COPYRIGHT = " Copyright 2023 NVIDIA Corporation. All rights reserved.\n"" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n"" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n" " THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n"" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n"" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n" " COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n"" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n"" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n"" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n"" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n";
// Template for absorption and scattering, do not use directlymaterial volume_absorption( color absorption = color(0.8665f, 0.7769f, 0.1559f), color scattering = color(.5f), float distance_scale = .03f, float directional_bias = 0.0f, uniform float ior = 1.2f ) [[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Volume Absorption"), ::anno::description("Pure volume absorption material"), ::anno::author("NVIDIA"), ::anno::copyright_notice(COPYRIGHT), ::anno::hidden() ]] = material ( ior: color(ior), surface: material_surface ( scattering: ::df::specular_bsdf ( tint: color (1.0f, 1.0f, 1.0f), mode: ::df::scatter_reflect_transmit ) ), volume: material_volume ( scattering: ::df::anisotropic_vdf( directional_bias: directional_bias ), absorption_coefficient: (distance_scale <= 0)? color(0): ::math::log(absorption) / -distance_scale, scattering_coefficient: (distance_scale <= 0)? color(0): ::math::log(scattering) / -distance_scale ));
// plastic_full_weighted_mix// Plastic material using diffuse reflection, diffuse transmission// and SSS. Due to the diffuse transmission the volume absorption will// render faster and converge smoother than when using specular transmission.export material Plastic_Thick_Translucent( color diffuse_color = color(0.6940f, 0.5831f, 0.0493f) [[ ::anno::display_name("Diffuse Color"), ::anno::description("The diffuse color of the plastic material"), ::anno::in_group("Appearance") ]], float diffuse_weight = 0.3f [[ ::anno::display_name("Diffuse Weight"), ::anno::description("The weight of the diffuse color of the plastic material. It is recommended to keep " "the value around 0.5, lower values make the material appear more transparent while higher values make " "it more opaque."), ::anno::in_group("Appearance"), ::anno::hard_range(0.f, 1.f) ]], color absorption = color(0.8665f, 0.7769f, 0.1559f) [[ ::anno::display_name("Absorption Color"), ::anno::description("Sets the absorption color (this is color when light goes extinct)of the plastic material"), ::anno::in_group("Appearance") ]], color scattering = color(.5f) [[ ::anno::display_name("Scattering Color"), ::anno::description("Sets the absorption color (this is color when light goes extinct)of the plastic material"), ::anno::in_group("Appearance") ]], float distance_scale = 1.5f [[ ::anno::display_name("Distance Scale"), ::anno::description("Scales how quickly light is absorbed. Set this value low enough to see " "some light extinction taking place. Tip: Set 'diffuse_weight' to 0.0 while adjusting this " "material parameter for your scene"), ::anno::in_group("Appearance") ]], color diffuse_transmission_tint = color(1.0000f, 0.7249f, 0.1972f) [[ ::anno::display_name("Diffuse Transmission Color"), ::anno::description("The tinting of light scattering through the plastic material"), ::anno::in_group("Appearance") ]],
float reflection_roughness = 0.0f [[ ::anno::display_name("Roughness"), ::anno::description("The roughness of the reflection on the plastic"), ::anno::in_group("Appearance"), ::anno::hard_range(0.f, 1.f) ]]) [[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Plastic Full Control"), ::anno::description("Plastic Material finegrained controls of its appearance"), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent.Plastic_Thick_Translucent.png"), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny")), ::anno::copyright_notice(COPYRIGHT), ::anno::hidden()]] = let { float reflection_weight = 1.0f; float normal_reflectivity = 0.04f; float grazing_reflectivity = 1.0f; float reflectivity_exponent = 5.0f; uniform float ior = 1.4f;
material plastic = volume_absorption( absorption: absorption, scattering: scattering, distance_scale: distance_scale, ior: ior ); bsdf transdiff = ::df::diffuse_transmission_bsdf( tint: diffuse_transmission_tint ); bsdf diffuse = ::df::diffuse_reflection_bsdf( tint: diffuse_color ); bsdf diffuse_mix_layer = ::df::weighted_layer( base: transdiff, layer: diffuse, weight: diffuse_weight );
bsdf glossy_reflection = ::df::simple_glossy_bsdf( tint: color(1.0f), roughness_u: reflection_roughness, mode: ::df::scatter_reflect ); bsdf final_layer = ::df::custom_curve_layer( normal_reflectivity: normal_reflectivity, grazing_reflectivity: grazing_reflectivity, layer: glossy_reflection, base: diffuse_mix_layer, weight: reflection_weight, exponent: reflectivity_exponent ); } in material ( surface: material_surface( scattering: final_layer ), volume: plastic.volume);
export material plastic_simple_controls( color diffuse_color = color(0.6940f, 0.5831f, 0.0493f) [[ ::anno::display_name("Diffuse Color"), ::anno::description("The diffuse color of the plastic material"), ::anno::in_group("Appearance") ]], float diffuse_weight = 0.5f [[ ::anno::display_name("Diffuse Weight"), ::anno::description("The weight of the diffuse color of the plastic material. It is recommended to keep " "the value around 0.5, lower values make the material appear more transparent while higher values make " "it more opaque."), ::anno::in_group("Appearance"), ::anno::hard_range(0.f, 1.f) ]], color transmissive_color = color(0.8665f, 0.7769f, 0.1559f) [[ ::anno::display_name("Transmissive Color"), ::anno::description("The tinting of light scattering through the plastic material"), ::anno::in_group("Appearance") ]], float reflection_roughness = 0.0f [[ ::anno::display_name("Roughness"), ::anno::description("The roughness of the reflection on the plastic"), ::anno::in_group("Appearance"), ::anno::hard_range(0.f, 1.f) ]], float distance_scale = 0.005f [[ ::anno::display_name("Distance Scale"), ::anno::description("Scales how quickly light is absorbed. Set this value low enough to see " "some light extinction taking place. Tip: Set 'diffuse_weight' to 0.0 while adjusting this " "material parameter for your scene"), ::anno::in_group("Appearance") ]] )[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Plastic"), ::anno::description("Plastic material with a simple but fast light scattering for dense scattering plastic materials. " "The material was built to scatter light within the range of a few centimeters. If light scattering cannot be seen " "(which can be verified by setting 'Diffuse Weight' to 0.0), check the scene units scale or increase 'Distance Scale'."), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent.plastic_simple_controls.png"), ::anno::copyright_notice(COPYRIGHT), ::anno::hidden()]] = Plastic_Thick_Translucent( absorption: ::math::pow(transmissive_color, 0.2f), scattering: color(0.5f), distance_scale: distance_scale, diffuse_transmission_tint: ::math::pow(transmissive_color, 0.2f), diffuse_color: diffuse_color, diffuse_weight: diffuse_weight, reflection_roughness: reflection_roughness
);
// 01 - Blackexport material plastic_black(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Plastic Black"), ::anno::description("Plastic material with a simple but fast light scattering for dense scattering plastic materials. " "The material was built to scatter light within the range of a few centimeters. If light scattering cannot be seen " "(which can be verified by setting 'Diffuse Wight' to 0.0), check the scene units scale or increase 'Distance Scale'."), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "dark", "black", "neutral")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent.plastic_black.png"), ::anno::copyright_notice(COPYRIGHT)]] = plastic_simple_controls( diffuse_color: color(0.034230f), diffuse_weight: .5f, transmissive_color: color(0.034230f), distance_scale: 0.002f, reflection_roughness: 0.05f);
// 02 - Dark Grayexport material plastic_dark_gray(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Plastic Dark Gray"), ::anno::description("Plastic material with a simple but fast light scattering for dense scattering plastic materials. " "The material was built to scatter light within the range of a few centimeters. If light scattering cannot be seen " "(which can be verified by setting 'Diffuse Wight' to 0.0), check the scene units scale or increase 'Distance Scale'."), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "dark", "gray", "neutral")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent.plastic_dark_gray.png"), ::anno::copyright_notice(COPYRIGHT)]] = plastic_simple_controls( diffuse_color: color(0.127530f), diffuse_weight: .5f, transmissive_color: color(0.089194f), distance_scale: 0.002f, reflection_roughness: 0.05f);
// 03 - Light Grayexport material plastic_light_gray(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Plastic Light Gray"), ::anno::description("Plastic material with a simple but fast light scattering for dense scattering plastic materials. " "The material was built to scatter light within the range of a few centimeters. If light scattering cannot be seen " "(which can be verified by setting 'Diffuse Wight' to 0.0), check the scene units scale or increase 'Distance Scale'."), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "light", "gray", "neutral")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent.plastic_light_gray.png"), ::anno::copyright_notice(COPYRIGHT)]] = plastic_simple_controls( diffuse_color: color(0.464741f), diffuse_weight: .5f, transmissive_color: color(0.358654f), distance_scale: 0.002f, reflection_roughness: 0.05f);
// 04 - Whiteexport material plastic_white(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Plastic White"), ::anno::description("Plastic material with a simple but fast light scattering for dense scattering plastic materials. " "The material was built to scatter light within the range of a few centimeters. If light scattering cannot be seen " "(which can be verified by setting 'Diffuse Wight' to 0.0), check the scene units scale or increase 'Distance Scale'."), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "light", "white", "neutral")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent.plastic_white.png"), ::anno::copyright_notice(COPYRIGHT)]] = plastic_simple_controls( diffuse_color: color(0.915750f), diffuse_weight: .5f, transmissive_color: color(0.812241f), distance_scale: 0.002f, reflection_roughness: 0.05f);
// 05 - Ivory Whiteexport material plastic_ivory_white(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Plastic Ivory White"), ::anno::description("Plastic material with a simple but fast light scattering for dense scattering plastic materials. " "The material was built to scatter light within the range of a few centimeters. If light scattering cannot be seen " "(which can be verified by setting 'Diffuse Wight' to 0.0), check the scene units scale or increase 'Distance Scale'."), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "white", "bright", "ivory", "warm")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent.plastic_ivory_white.png"), ::anno::copyright_notice(COPYRIGHT)]] = plastic_simple_controls( diffuse_color: color(0.899385f, 0.843370f, 0.694081f), diffuse_weight: .5f, transmissive_color: color(0.722672f, 0.708298f, 0.547994f), distance_scale: 0.002f, reflection_roughness: 0.05f);
// 06 - Lemonexport material plastic_lemon(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Plastic Lemon"), ::anno::description("Plastic material with a simple but fast light scattering for dense scattering plastic materials. " "The material was built to scatter light within the range of a few centimeters. If light scattering cannot be seen " "(which can be verified by setting 'Diffuse Wight' to 0.0), check the scene units scale or increase 'Distance Scale'."), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "lemon", "yellow", "light", "warm")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent.plastic_lemon.png"), ::anno::copyright_notice(COPYRIGHT)]] = plastic_simple_controls( diffuse_color: color(0.859174f, 0.875138f, 0.039947f), diffuse_weight: .5f, transmissive_color: color(0.98211f, 0.843370f, 0.031551f), distance_scale: 0.002f, reflection_roughness: 0.05f);
// 07 - Yellow Orangeexport material plastic_yellow_orange(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Plastic Yellow"), ::anno::description("Plastic material with a simple but fast light scattering for dense scattering plastic materials. " "The material was built to scatter light within the range of a few centimeters. If light scattering cannot be seen " "(which can be verified by setting 'Diffuse Wight' to 0.0), check the scene units scale or increase 'Distance Scale'."), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "light", "orange", "yellow", "warm")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent.plastic_yellow_orange.png"), ::anno::copyright_notice(COPYRIGHT)]] = plastic_simple_controls( diffuse_color: color(0.875138f, 0.612066f, 0.039947f), diffuse_weight: .5f, transmissive_color: color(0.899385f, 0.373615f, 0.030257f), distance_scale: 0.002f, reflection_roughness: 0.05f);
// 08 - Orangeexport material plastic_orange(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Plastic Orange"), ::anno::description("Plastic material with a simple but fast light scattering for dense scattering plastic materials. " "The material was built to scatter light within the range of a few centimeters. If light scattering cannot be seen " "(which can be verified by setting 'Diffuse Wight' to 0.0), check the scene units scale or increase 'Distance Scale'."), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "orange", "warm")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent.plastic_orange.png"), ::anno::copyright_notice(COPYRIGHT)]] = plastic_simple_controls( diffuse_color: color(0.875138f, 0.353741f, 0.030257f), diffuse_weight: .5f, transmissive_color: color(0.891262f, 0.420508f, 0.022013f), distance_scale: 0.002f, reflection_roughness: 0.05f);
// 09 - Dark Orangeexport material plastic_dark_orange(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Plastic Dark Orange"), ::anno::description("Plastic material with a simple but fast light scattering for dense scattering plastic materials. " "The material was built to scatter light within the range of a few centimeters. If light scattering cannot be seen " "(which can be verified by setting 'Diffuse Wight' to 0.0), check the scene units scale or increase 'Distance Scale'."), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "dark", "orange", "warm")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent.plastic_dark_orange.png"), ::anno::copyright_notice(COPYRIGHT)]] = plastic_simple_controls( diffuse_color: color(0.535642f, 0.127530f, 0.022013f), diffuse_weight: .5f, transmissive_color: color(0.827726f, 0.267358f, 0.022013f), distance_scale: 0.002f, reflection_roughness: 0.05f);
// 10 - Redexport material plastic_red(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Plastic Red"), ::anno::description("Plastic material with a simple but fast light scattering for dense scattering plastic materials. " "The material was built to scatter light within the range of a few centimeters. If light scattering cannot be seen " "(which can be verified by setting 'Diffuse Wight' to 0.0), check the scene units scale or increase 'Distance Scale'."), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "red", "cherry", "warm")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent.plastic_red.png"), ::anno::copyright_notice(COPYRIGHT)]] = plastic_simple_controls( diffuse_color: color(0.547994f, 0.027755f, 0.027755f), diffuse_weight: .5f, transmissive_color: color(0.875138f, 0.022013f, 0.022013f), distance_scale: 0.002f, reflection_roughness: 0.05f);
// 11 - Magentaexport material plastic_magenta(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Plastic Magenta"), ::anno::description("Plastic material with a simple but fast light scattering for dense scattering plastic materials. " "The material was built to scatter light within the range of a few centimeters. If light scattering cannot be seen " "(which can be verified by setting 'Diffuse Wight' to 0.0), check the scene units scale or increase 'Distance Scale'."), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "magenta")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent.plastic_magenta.png"), ::anno::copyright_notice(COPYRIGHT)]] = plastic_simple_controls( diffuse_color: color(0.547994f, 0.047776f, 0.554227f), diffuse_weight: .5f, transmissive_color: color(0.722672f, 0.030257f, 0.566810f), distance_scale: 0.002f, reflection_roughness: 0.05f);
// 12 - Purpleexport material plastic_purple(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Plastic Purple"), ::anno::description("Plastic material with a simple but fast light scattering for dense scattering plastic materials. " "The material was built to scatter light within the range of a few centimeters. If light scattering cannot be seen " "(which can be verified by setting 'Diffuse Wight' to 0.0), check the scene units scale or increase 'Distance Scale'."), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "purple")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent.plastic_purple.png"), ::anno::copyright_notice(COPYRIGHT)]] = plastic_simple_controls( diffuse_color: color(0.193972f, 0.017936f, 0.464741f), diffuse_weight: .5f, transmissive_color: color(0.701170f, 0.018913f, 0.645555f), distance_scale: 0.002f, reflection_roughness: 0.05f);
// 13 - Dark Blueexport material plastic_dark_blue(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Plastic Dark Blue"), ::anno::description("Plastic material with a simple but fast light scattering for dense scattering plastic materials. " "The material was built to scatter light within the range of a few centimeters. If light scattering cannot be seen " "(which can be verified by setting 'Diffuse Wight' to 0.0), check the scene units scale or increase 'Distance Scale'."), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "dark", "blue", "cool")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent.plastic_dark_blue.png"), ::anno::copyright_notice(COPYRIGHT)]] = plastic_simple_controls( diffuse_color: color(0.027755f, 0.058187f, 0.311180f), diffuse_weight: .5f, transmissive_color: color(0.027755f, 0.058187f, 0.311180f), distance_scale: 0.002f, reflection_roughness: 0.05f);
// 14 - Blueexport material plastic_blue(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Plastic Blue"), ::anno::description("Plastic material with a simple but fast light scattering for dense scattering plastic materials. " "The material was built to scatter light within the range of a few centimeters. If light scattering cannot be seen " "(which can be verified by setting 'Diffuse Wight' to 0.0), check the scene units scale or increase 'Distance Scale'."), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "blue", "cool")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent.plastic_blue.png"), ::anno::copyright_notice(COPYRIGHT)]] = plastic_simple_controls( diffuse_color: color(0.034230f, 0.173439f, 0.843370f), diffuse_weight: .5f, transmissive_color: color(0.034230f, 0.124741f, 0.659224f), distance_scale: 0.002f, reflection_roughness: 0.05f);
// 15 - Sky Blueexport material plastic_sky_blue(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Plastic Sky Blue"), ::anno::description("Plastic material with a simple but fast light scattering for dense scattering plastic materials. " "The material was built to scatter light within the range of a few centimeters. If light scattering cannot be seen " "(which can be verified by setting 'Diffuse Wight' to 0.0), check the scene units scale or increase 'Distance Scale'."), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "blue", "sky", "cool")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent.plastic_sky_blue.png"), ::anno::copyright_notice(COPYRIGHT)]] = plastic_simple_controls( diffuse_color: color(0.061907f, 0.535642f, 0.875138f), diffuse_weight: .5f, transmissive_color: color(0.028991f, 0.358654f, 0.673049f), distance_scale: 0.002f, reflection_roughness: 0.05f);
// 16 - Light Blueexport material plastic_light_blue(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Plastic Light Blue"), ::anno::description("Plastic material with a simple but fast light scattering for dense scattering plastic materials. " "The material was built to scatter light within the range of a few centimeters. If light scattering cannot be seen " "(which can be verified by setting 'Diffuse Wight' to 0.0), check the scene units scale or increase 'Distance Scale'."), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "light", "blue", "cool")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent.plastic_light_blue.png"), ::anno::copyright_notice(COPYRIGHT)]] = plastic_simple_controls( diffuse_color: color(0.263175f, 0.774227f, 0.827726f), diffuse_weight: .5f, transmissive_color: color(0.163641f, 0.592438f, 0.759300f), distance_scale: 0.002f, reflection_roughness: 0.05f);
// 17 - Tealexport material plastic_teal(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Plastic Teal"), ::anno::description("Plastic material with a simple but fast light scattering for dense scattering plastic materials. " "The material was built to scatter light within the range of a few centimeters. If light scattering cannot be seen " "(which can be verified by setting 'Diffuse Wight' to 0.0), check the scene units scale or increase 'Distance Scale'."), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "teal", "cool")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent.plastic_teal.png"), ::anno::copyright_notice(COPYRIGHT)]] = plastic_simple_controls( diffuse_color: color(0.037029f, 0.579547f, 0.329729f), diffuse_weight: .5f, transmissive_color: color(0.022013f, 0.476177f, 0.353741f), distance_scale: 0.002f, reflection_roughness: 0.05f);
// 18 - Dark Greenexport material plastic_dark_green(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Plastic Dark Green"), ::anno::description("Plastic material with a simple but fast light scattering for dense scattering plastic materials. " "The material was built to scatter light within the range of a few centimeters. If light scattering cannot be seen " "(which can be verified by setting 'Diffuse Wight' to 0.0), check the scene units scale or increase 'Distance Scale'."), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "dark", "green")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent.plastic_dark_green.png"), ::anno::copyright_notice(COPYRIGHT)]] = plastic_simple_controls( diffuse_color: color(0.034230f, 0.141980f, 0.034230f), diffuse_weight: .5f, transmissive_color: color(0.016988f, 0.141980f, 0.016988f), distance_scale: 0.002f, reflection_roughness: 0.05f);
// 19 - Greenexport material plastic_green(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Plastic Green"), ::anno::description("Plastic material with a simple but fast light scattering for dense scattering plastic materials. " "The material was built to scatter light within the range of a few centimeters. If light scattering cannot be seen " "(which can be verified by setting 'Diffuse Wight' to 0.0), check the scene units scale or increase 'Distance Scale'."), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "green")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent.plastic_green.png"), ::anno::copyright_notice(COPYRIGHT)]] = plastic_simple_controls( diffuse_color: color(0.016988f, 0.311180f, 0.016988f), diffuse_weight: .5f, transmissive_color: color(0.012664f, 0.358654f, 0.012664f), distance_scale: 0.002f, reflection_roughness: 0.05f);
// 20 - Light Greenexport material plastic_light_green(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Plastic Light Green"), ::anno::description("Plastic material with a simple but fast light scattering for dense scattering plastic materials. " "The material was built to scatter light within the range of a few centimeters. If light scattering cannot be seen " "(which can be verified by setting 'Diffuse Wight' to 0.0), check the scene units scale or increase 'Distance Scale'."), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "light", "green")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent.plastic_light_green.png"), ::anno::copyright_notice(COPYRIGHT)]] = plastic_simple_controls( diffuse_color: color(0.030257f, 0.687031f, 0.027755f), diffuse_weight: .5f, transmissive_color: color(0.030257f, 0.701170f, 0.027755f), distance_scale: 0.002f, reflection_roughness: 0.05f);
// 21 - Lime Greenexport material plastic_lime_green(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Plastic Lime Green"), ::anno::description("Plastic material with a simple but fast light scattering for dense scattering plastic materials. " "The material was built to scatter light within the range of a few centimeters. If light scattering cannot be seen " "(which can be verified by setting 'Diffuse Wight' to 0.0), check the scene units scale or increase 'Distance Scale'."), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "lime", "green", "light")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent.plastic_lime_green.png"), ::anno::copyright_notice(COPYRIGHT)]] = plastic_simple_controls( diffuse_color: color(0.186989f, 0.605484f, 0.027755f), diffuse_weight: .5f, transmissive_color: color(0.204710f, 0.701170f, 0.022013f), distance_scale: 0.002f, reflection_roughness: 0.05f);12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025/****************************************************************************** * Copyright 2023 NVIDIA Corporation. All rights reserved. ****************************************************************************** Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge,to any person obtaining a copy of the sample definition code that uses our Material Definition Language (the "MDL Materials"), to reproduce and distributethe MDL Materials, including without limitation the rights to use, copy, merge,publish, distribute, and sell modified and unmodified copies of the MDL Materials, and to permit persons to whom the MDL Materials is furnished to doso, in all cases solely for use with NVIDIA's Material Definition Language,subject to the following further conditions:
1. The above copyright notices, this list of conditions, and the disclaimerthat follows shall be retained in all copies of one or more of the MDLMaterials, including in any software with which the MDL Materials are bundled,redistributed, and/or sold, and included either as stand-alone text files,human-readable headers or in the appropriate machine-readable metadata fieldswithin text or binary files as long as those fields can be easily viewed by theuser, as applicable.2. The name of NVIDIA shall not be used to promote, endorse or advertise any Modified Version without specific prior written permission, except a) to comply with the notice requirements otherwise contained herein; or b) to acknowledgethe contribution(s) of NVIDIA.
THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESSOR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT,TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USETHE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.*/
// This file contains samples of very fast rendering SSS plastics for iray//
mdl 1.4;import ::df::*;import ::math::*;import ::anno::*;import ::state::*;import ::base::*;import ::nvidia::core_definitions::dimension;
const string COPYRIGHT = " Copyright 2023 NVIDIA Corporation. All rights reserved.\n"" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n"" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n" " THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n"" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n"" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n" " COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n"" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n"" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n"" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n"" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n";
const string DESCRIPTION = "Translucent plastic material with integrated metal flakes. Features: Effective light scattering for dense ""plastic materials and metal flakes. The material was built to scatter light within the range of a few ""centimeters. If light scattering cannot be seen (which can be verified by setting 'Diffuse Weight' to 0.0), ""check the scene units scale or increase 'Distance Scale'.";
//// flake noise utilities//int hash(int seed, int i){ return (i ^ seed) * 1075385539;}int rnd_init(int3 pos){ return hash(hash(hash(0, pos.x), pos.y), pos.z);}
int rnd_next(int seed) { // xorshift32 using signed int seed ^= seed << 13; seed ^= seed >>> 17; seed ^= seed << 5; return seed;}
float rnd_value(int seed){ return ::math::abs(float(seed) * 4.6566e-10f);}
// apply random rotation (using "Fast Random Rotation Matrices" by James Arvo)float3 rotate_pos(float3 pos, float3 xi){ float theta = ::math::PI * 2.0f * xi.x; float phi = ::math::PI * 2.0f * xi.y; float z = xi.z * 2.0f;
float r = ::math::sqrt(z); float[2] sp_cp = ::math::sincos(phi); float Vx = sp_cp[0] * r; float Vy = sp_cp[1] * r; float Vz = ::math::sqrt(2.0f - z);
float[2] st_ct = ::math::sincos(theta); float Sx = Vx * st_ct[1] - Vy * st_ct[0]; float Sy = Vx * st_ct[0] + Vy * st_ct[1];
float3x3 M( Vx * Sx - st_ct[1], Vx * Sy - st_ct[0], Vx * Vz, Vy * Sx + st_ct[0], Vy * Sy - st_ct[1], Vy * Vz, Vz * Sx, Vz * Sy, 1.0f - z);
return M * pos;}
struct flake_noise_value { // flake priority (in [0..1], 0: no flake, flakes with higher priority shadow flakes "below" them) float priority; // Stores values from the functions (once normal, another time the color) // current pseudo random number generator seed int rnd_seed; float4 carrier; };
// flake noise function with controllable regularity, flake size, and probabilityflake_noise_value flake_noise( float3 pos, float jitter_scale = 1.0f, float flake_diameter = 0.75f, float flake_probability = 1.0f){ float3 base_pos = ::math::floor(pos); int3 base_pos_i = int3(base_pos);
// limit the flake size to the allowed maximum (such that looking at all neighbors is sufficient) flake_diameter = ::math::min(flake_diameter, (1.5f - 0.5f * jitter_scale) / ::math::sqrt(3.0f)); flake_noise_value val(0.0f, 0, float4(0.0));
for (int i = -1; i < 2; ++i) { for (int j = -1; j < 2; ++j) { for (int k = -1; k < 2; ++k) {
int seed = rnd_init(base_pos_i + int3(i, j, k));
seed = rnd_next(seed); if (rnd_value(seed) > flake_probability) continue;
seed = rnd_next(seed); float priority = rnd_value(seed); if (priority < val.priority) continue;
float3 flake_pos = base_pos + float3(i, j, k) + float3(0.5f);
if (jitter_scale > 0.0f) { seed = rnd_next(seed); flake_pos.x += (rnd_value(seed) - 0.5f) * jitter_scale; seed = rnd_next(seed); flake_pos.y += (rnd_value(seed) - 0.5f) * jitter_scale; seed = rnd_next(seed); flake_pos.z += (rnd_value(seed) - 0.5f) * jitter_scale; }
float3 p = pos - flake_pos; if (::math::dot(p, p) >= flake_diameter * flake_diameter * 4.0f) continue;
float3 xi_rot; seed = rnd_next(seed); xi_rot.x = rnd_value(seed); seed = rnd_next(seed); xi_rot.y = rnd_value(seed); seed = rnd_next(seed); xi_rot.z = rnd_value(seed); p = rotate_pos(p, xi_rot); if (::math::abs(p.x) <= flake_diameter && ::math::abs(p.y) <= flake_diameter && ::math::abs(p.z) <= flake_diameter) { val.priority = priority; val.rnd_seed = seed; } } } }
return val;}
// constants for numerical fitted curve to observed flake noise density behavior// 1. no jitter, maximum flake diameterconst float4 ABCD = float4(-26.19771808f, 26.39663835f, 85.53857017f, -102.35069432f);const float2 EF = float2(-101.42634862f, 118.45082288f);// 2. jitter scale of 0.5f, maximum flake diameterconst float4 ABCD_J = float4(-0.87962159f, 0.91006603f, 0.76088203f, -0.24953308f);const float2 EF_J = float2(-3.11456809f, 2.63430594f);// compute a flake probability for a given flake coverage density xfloat density_to_probability( float4 abcd, float2 ef, float x){ float xx = x * x; return (abcd.x * xx + abcd.y * x) / (abcd.z * xx * x + abcd.w * xx + ef.x * x + ef.y);}
// statistically controlled (area/volume coverage density) flake noise flake_noise_value flake_noise( float3 position, float density = 0.5f, bool jittered = false) // jittered: slightly slower and slightly less uniform{ float probability = density_to_probability(jittered ? ABCD_J : ABCD, jittered ? EF_J : EF, ::math::saturate(density));
return flake_noise(pos: position, jitter_scale: jittered ? 0.5f : 0.0f, flake_diameter: (jittered ? 1.25f : 1.5f) / ::math::sqrt(3.0f), flake_probability: probability);}
// create a flake normal by importance sampling the Beckmann distribution with given roughnessflake_noise_value flake_normal( flake_noise_value val, float spread){ if (val.priority <= 0.0f) { val.carrier = float4(::state::normal().x, ::state::normal().y, ::state::normal().z, 1.0); return val; }
// int seed0 = rnd_next(val.rnd_seed); // float xi0 = rnd_value(seed0); // float xi1 = rnd_value(rnd_next(seed0)); int seed = rnd_next(val.rnd_seed); float xi0 = rnd_value(seed); seed = rnd_next(seed); float xi1 = rnd_value(seed); float phi = ::math::PI * 2.0f * xi0;
float roughness = spread * spread;
float tantheta = ::math::sqrt(-roughness * roughness * ::math::log(1.0f - xi1)); float sintheta = tantheta / ::math::sqrt(1.0f + tantheta * tantheta); float costheta = ::math::sqrt(1.0f - sintheta * sintheta);
float[2] scphi = ::math::sincos(phi); val.rnd_seed = seed; // return // ::state::texture_tangent_u(0) * scphi[1] * sintheta + // ::state::texture_tangent_v(0) * scphi[0] * sintheta + // ::state::normal() * costheta; float3 normal = ::state::texture_tangent_u(0) * scphi[1] * sintheta + ::state::texture_tangent_v(0) * scphi[0] * sintheta + ::state::normal() * costheta; val.carrier = float4(normal.x, normal.y, normal.z, 1.0); return val; }
flake_noise_value random_flake_color(flake_noise_value val){ int seed = rnd_next(val.rnd_seed); float r = rnd_value(seed); seed = rnd_next(seed); float g = rnd_value(seed); seed = rnd_next(seed); float b = rnd_value(seed); seed = rnd_next(seed); float a = rnd_value(seed); val.carrier = float4(r, g, b, a); return val;}
// Template for absorption and scattering, do not use directlymaterial volume_absorption( color absorption = color(0.8665, 0.7769, 0.1559), color scattering = color(.5), float distance_scale = .03, float directional_bias = 0.0, uniform float ior = 1.2 ) [[ ::anno::author("NVIDIA vMaterials"), ::anno::display_name("Volume Absorption"), ::anno::description("Pure volume absorption material"), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent_Flakes.volume_absorption.png"), ::anno::copyright_notice(COPYRIGHT), ::anno::hidden() ]] = material ( ior: color(ior), surface: material_surface ( scattering: ::df::specular_bsdf ( tint: color (1.0, 1.0, 1.0), mode: ::df::scatter_reflect_transmit ) ), volume: material_volume ( scattering: ::df::anisotropic_vdf( directional_bias: directional_bias ), absorption_coefficient: (distance_scale <= 0)? color(0): ::math::log(absorption) / -distance_scale, scattering_coefficient: (distance_scale <= 0)? color(0): ::math::log(scattering) / -distance_scale ));
// metallic_plastic_full_weighted_mix( )// Plastic material using diffuse reflection, diffuse transmission// and SSS. Due to the diffuse transmission the volume absorption will// render faster and converge smoother than when using specular transmission.export material Plastic_Thick_Translucent_Flakes( color diffuse_color = color(0.6940f, 0.5831f, 0.0493f) [[ ::anno::display_name("Diffuse Color"), ::anno::description("The diffuse color of the plastic material"), ::anno::in_group("Appearance") ]], float diffuse_weight = 0.3f [[ ::anno::display_name("Diffuse Weight"), ::anno::description("The weight of the diffuse color of the plastic material. It is recommended to keep " "the value around 0.5, lower values make the material appear more transparent while higher values make " "it more opaque."), ::anno::in_group("Appearance"), ::anno::hard_range(0.f, 1.f) ]], color absorption = color(0.8665f, 0.7769f, 0.1559f) [[ ::anno::display_name("Absorption Color"), ::anno::description("Sets the absorption color (this is color when light goes extinct)of the plastic material"), ::anno::in_group("Appearance") ]], color scattering = color(.5f) [[ ::anno::display_name("Scattering Color"), ::anno::description("Sets the absorption color (this is color when light goes extinct)of the plastic material"), ::anno::in_group("Appearance") ]], float distance_scale = 1.5f [[ ::anno::display_name("Distance Scale"), ::anno::description("Scales how quickly light is absorbed. Set this value low enough to see " "some light extinction taking place. Tip: Set 'diffuse_weight' to 0.0 while adjusting this " "material parameter for your scene"), ::anno::in_group("Appearance") ]], color diffuse_transmission_tint = color(1.0000f, 0.7249f, 0.1972f) [[ ::anno::display_name("Diffuse Transmission Color"), ::anno::description("The tinting of light scattering through the plastic material"), ::anno::in_group("Appearance") ]],
float reflection_roughness = 0.0f [[ ::anno::display_name("Roughness"), ::anno::description("The roughness of the reflection on the plastic"), ::anno::in_group("Appearance"), ::anno::hard_range(0.f, 1.f) ]], // Flakes Controls color flake_color_1 = color(1.0f, 1.0f, 1.0f) [[ ::anno::display_name("Flakes Color"), ::anno::description("Flakes Color"), ::anno::in_group("Flakes") ]], bool enable_color_randomization = true [[ ::anno::display_name("Flakes Color Randomization"), ::anno::description("Enables that a random flakes color will be chosen. Using 'Flakes Color Randomness' allows " "to blend between the chosen reflection color for the flakes and an purely random chosen color."), ::anno::in_group("Flakes") ]], float flake_color_randomness = 1.0f [[ ::anno::display_name("Flakes Color Randomness"), ::anno::description("Incresing this value will blend towards a randomly chosen flakes color."), ::anno::in_group("Flakes"), ::anno::hard_range(0.f, 1.f), ::anno::enable_if("enable_color_randomization == true") ]], uniform float flake_size = 0.1f [[ ::anno::display_name("Flakes Size"), ::anno::description("The size of the flakes in the material"), ::anno::in_group("Flakes") ]], uniform float3 texture_scale = float3 ( 1.f , 1.f, 1.f) [[ //::anno::hidden(), ::anno::display_name("Scale"), ::anno::description("Larger numbers increase the texture size."), ::nvidia::core_definitions::dimension(float3(1.0f, 1.0f, 1.0f)), ::anno::in_group("Transform") ]], uniform float flake_amount = 0.1f [[ ::anno::display_name("Flakes Amount"), ::anno::description("The number of flakes used in the material, 0 meaning no flakes, 1 meaning that flakes " "cover the entire surface"), ::anno::in_group("Flakes"), ::anno::hard_range(0.f, 1.f) ]],
float flake_spread = 0.7f [[ ::anno::display_name("Flakes Spread"), ::anno::description("The amount of randomness in the orientation of the flakes. When set to zero, flakes are " "oriented along the surface normal. Higher values tilt the flakes stronger in a random direction."), ::anno::in_group("Flakes"), ::anno::hard_range(0.f, 1.f) ]]) [[ ::anno::author("NVIDIA vMaterials"), ::anno::display_name("Plastic Full Control"), ::anno::description(DESCRIPTION), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent_Flakes.Plastic_Thick_Translucent_Flakes.png"), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "flakes", "metallic", "glitter", "pigment")), ::anno::copyright_notice(COPYRIGHT), ::anno::hidden()]] = let { // Hardcoded plastic parameters float reflection_weight = 1.0f; float normal_reflectivity = 0.04f; float grazing_reflectivity = 1.0f; float reflectivity_exponent = 5.0f; uniform float ior = 1.4f; // Hardcoded flake parameters uniform float flake_roughness = 0.4f; float flake_transparency_randomness = 1.0f; float flakes_opacity = 0.8;
// Flakes float3 flake_uvw_scale = float3(1.0f); ::base::texture_coordinate_info uvw = ::base::coordinate_source( coordinate_system: ::base::texture_coordinate_world, texture_space: 0 ); ::base::texture_coordinate_info transformed_uvw = uvw; float3 flake_uvw = (texture_scale * transformed_uvw.position * flake_uvw_scale) / (flake_size * 0.001f); flake_noise_value val = flake_noise(flake_uvw, flake_amount, true); bool is_flake = val.priority > 0.0f; flake_noise_value val2 = flake_normal(val, flake_spread); float3 flake_normal = float3(val2.carrier.x, val2.carrier.y, val2.carrier.z); flake_noise_value val3 = random_flake_color(val2); color random_color = color(val3.carrier.x, val3.carrier.y, val3.carrier.z); float flakes_transparency_value = ::math::lerp(flakes_opacity, val3.carrier.w * flakes_opacity, flake_transparency_randomness); color flake_color = enable_color_randomization ? ::math::lerp(flake_color_1, random_color, flake_color_randomness) : flake_color_1; bsdf flakes = ::df::simple_glossy_bsdf(mode: ::df::scatter_reflect, roughness_u: flake_roughness * flake_roughness, tint: flake_color); // Plastic
material plastic = volume_absorption( absorption: absorption, scattering: scattering, distance_scale: distance_scale, ior: ior ); bsdf transdiff = ::df::diffuse_transmission_bsdf( tint: diffuse_transmission_tint ); bsdf diffuse = ::df::diffuse_reflection_bsdf( tint: diffuse_color ); bsdf diffuse_mix_layer = ::df::weighted_layer( base: transdiff, layer: diffuse, weight: diffuse_weight ); bsdf plastic_with_flakes = ::df::weighted_layer( base: diffuse_mix_layer, layer: flakes, weight: is_flake ? flakes_transparency_value : 0.0f, normal: flake_normal );
bsdf glossy_reflection = ::df::simple_glossy_bsdf( tint: color(1.0), roughness_u: reflection_roughness, mode: ::df::scatter_reflect ); bsdf final_layer = ::df::custom_curve_layer( normal_reflectivity: normal_reflectivity, grazing_reflectivity: grazing_reflectivity, layer: glossy_reflection, base: plastic_with_flakes, weight: reflection_weight, exponent: reflectivity_exponent ); } in material ( surface: material_surface( scattering: final_layer ), volume: plastic.volume);
export material metallic_plastic_simple_controls( color diffuse_color = color(0.6940, 0.5831, 0.0493) [[ ::anno::display_name("Diffuse Color"), ::anno::description("The diffuse color of the plastic material"), ::anno::in_group("Appearance") ]], float diffuse_weight = 0.5 [[ ::anno::display_name("Diffuse Weight"), ::anno::description("The weight of the diffuse color of the plastic material. It is recommended to keep " "the value around 0.5, lower values make the material appear more transparent while higher values make " "it more opaque."), ::anno::in_group("Appearance"), ::anno::hard_range(0.f, 1.f) ]], color transmissive_color = color(0.8665, 0.7769, 0.1559) [[ ::anno::display_name("Transmissive Color"), ::anno::description("The tinting of light scattering through the plastic material"), ::anno::in_group("Appearance") ]], float reflection_roughness = 0.0 [[ ::anno::display_name("Roughness"), ::anno::description("The roughness of the reflection on the plastic"), ::anno::in_group("Appearance"), ::anno::hard_range(0.f, 1.f) ]], float distance_scale = 0.005 [[ ::anno::display_name("Distance Scale"), ::anno::description("Scales how quickly light is absorbed. Set this value low enough to see " "some light extinction taking place. Tip: Set 'diffuse_weight' to 0.0 while adjusting this " "material parameter for your scene"), ::anno::in_group("Appearance") ]], // Flakes Controls color flake_color_1 = color(1.0f, 1.0f, 1.0f) [[ ::anno::display_name("Flakes Color"), ::anno::description("Flakes Color"), ::anno::in_group("Flakes") ]], bool enable_color_randomization = true [[ ::anno::display_name("Flakes Color Randomization"), ::anno::description("Enables that a random flakes color will be chosen. Using 'Flakes Color Randomness' allows " "to blend between the chosen reflection color for the flakes and an purely random chosen color."), ::anno::in_group("Flakes") ]], float flake_color_randomness = 1.0 [[ ::anno::display_name("Flakes Color Randomness"), ::anno::description("Incresing this value will blend towards a randomly chosen flakes color."), ::anno::in_group("Flakes"), ::anno::hard_range(0.f, 1.f), ::anno::enable_if("enable_color_randomization == true") ]], uniform float flake_size = 0.1f [[ ::anno::display_name("Flakes Size"), ::anno::description("The size of the flakes in the material"), ::anno::in_group("Flakes") ]], uniform float3 texture_scale = float3 ( 1.f , 1.f, 1.f) [[ //::anno::hidden(), ::anno::display_name("Scale"), ::anno::description("Larger numbers increase the texture size."), ::nvidia::core_definitions::dimension(float3(1.0f, 1.0f, 1.0f)), ::anno::in_group("Transform") ]], uniform float flake_amount = 0.1f [[ ::anno::display_name("Flakes Amount"), ::anno::description("The number of flakes used in the material, 0 meaning no flakes, 1 meaning that flakes cover the entire surface"), ::anno::in_group("Flakes"), ::anno::hard_range(0.f, 1.f) ]], float flake_spread = 0.7f [[ ::anno::display_name("Flakes Spread"), ::anno::description("The amount of randomness in the orientation of the flakes. When set to zero, flakes are oriented along the surface normal. Higher values tilt the flakes stronger in a random direction."), ::anno::in_group("Flakes"), ::anno::hard_range(0.f, 1.f) ]] )[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Plastic"), ::anno::description(DESCRIPTION), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "flakes", "metallic", "glitter", "pigment")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent_Flakes.metallic_plastic_simple_controls.png"), ::anno::copyright_notice(COPYRIGHT), ::anno::hidden()]] = Plastic_Thick_Translucent_Flakes( absorption: ::math::pow(transmissive_color, 0.2), scattering: color(0.5), distance_scale: distance_scale, diffuse_transmission_tint: ::math::pow(transmissive_color, 0.2), diffuse_color: diffuse_color, diffuse_weight: diffuse_weight, reflection_roughness: reflection_roughness, flake_color_1: flake_color_1, enable_color_randomization: enable_color_randomization, flake_color_randomness: flake_color_randomness, flake_size: flake_size, texture_scale: texture_scale, flake_amount: flake_amount, flake_spread: flake_spread);
// 01 - Blackexport material plastic_black(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Metallic Plastic Black"), ::anno::description(DESCRIPTION), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "dark", "black", "neutral")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent_Flakes.plastic_black.png"), ::anno::copyright_notice(COPYRIGHT)]] = metallic_plastic_simple_controls( diffuse_color: color(0.034230), diffuse_weight: .5, transmissive_color: color(0.034230), distance_scale: 0.002, reflection_roughness: 0.05);
// 02 - Dark Grayexport material plastic_dark_gray(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Metallic Plastic Dark Gray"), ::anno::description(DESCRIPTION), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "dark", "gray", "neutral")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent_Flakes.plastic_dark_gray.png"), ::anno::copyright_notice(COPYRIGHT)]] = metallic_plastic_simple_controls( diffuse_color: color(0.127530), diffuse_weight: .5, transmissive_color: color(0.089194), distance_scale: 0.002, reflection_roughness: 0.05);
// 03 - Light Grayexport material plastic_light_gray(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Metallic Plastic Light Gray"), ::anno::description(DESCRIPTION), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "light", "gray", "neutral")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent_Flakes.plastic_light_gray.png"), ::anno::copyright_notice(COPYRIGHT)]] = metallic_plastic_simple_controls( diffuse_color: color(0.464741), diffuse_weight: .5, transmissive_color: color(0.358654), distance_scale: 0.002, reflection_roughness: 0.05);
// 04 - Whiteexport material plastic_white(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Metallic Plastic White"), ::anno::description(DESCRIPTION), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "light", "white", "neutral")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent_Flakes.plastic_white.png"), ::anno::copyright_notice(COPYRIGHT)]] = metallic_plastic_simple_controls( diffuse_color: color(0.915750), diffuse_weight: .5, transmissive_color: color(0.812241), distance_scale: 0.002, reflection_roughness: 0.05);
// 05 - Ivory Whiteexport material plastic_ivory_white(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Metallic Plastic Ivory White"), ::anno::description(DESCRIPTION), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "white", "bright", "ivory", "warm")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent_Flakes.plastic_ivory_white.png"), ::anno::copyright_notice(COPYRIGHT)]] = metallic_plastic_simple_controls( diffuse_color: color(0.899385, 0.843370, 0.694081), diffuse_weight: .5, transmissive_color: color(0.722672, 0.708298, 0.547994), distance_scale: 0.002, reflection_roughness: 0.05);
// 06 - Lemonexport material plastic_lemon(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Metallic Plastic Lemon"), ::anno::description(DESCRIPTION), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "lemon", "yellow", "light", "warm")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent_Flakes.plastic_lemon.png"), ::anno::copyright_notice(COPYRIGHT)]] = metallic_plastic_simple_controls( diffuse_color: color(0.859174, 0.875138, 0.039947), diffuse_weight: .5, transmissive_color: color(0.98211, 0.843370, 0.031551), distance_scale: 0.002, reflection_roughness: 0.05);
// 07 - Yellow Orangeexport material plastic_yellow_orange(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Metallic Plastic Yellow"), ::anno::description(DESCRIPTION), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "light", "orange", "yellow", "warm")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent_Flakes.plastic_yellow_orange.png"), ::anno::copyright_notice(COPYRIGHT)]] = metallic_plastic_simple_controls( diffuse_color: color(0.875138, 0.612066, 0.039947), diffuse_weight: .5, transmissive_color: color(0.899385, 0.373615, 0.030257), distance_scale: 0.002, reflection_roughness: 0.05);
// 08 - Orangeexport material plastic_orange(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Metallic Plastic Orange"), ::anno::description(DESCRIPTION), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "orange", "warm")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent_Flakes.plastic_orange.png"), ::anno::copyright_notice(COPYRIGHT)]] = metallic_plastic_simple_controls( diffuse_color: color(0.875138, 0.353741, 0.030257), diffuse_weight: .5, transmissive_color: color(0.891262, 0.420508, 0.022013), distance_scale: 0.002, reflection_roughness: 0.05);
// 09 - Dark Orangeexport material plastic_dark_orange(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Metallic Plastic Dark Orange"), ::anno::description(DESCRIPTION), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "dark", "orange", "warm")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent_Flakes.plastic_dark_orange.png"), ::anno::copyright_notice(COPYRIGHT)]] = metallic_plastic_simple_controls( diffuse_color: color(0.535642, 0.127530, 0.022013), diffuse_weight: .5, transmissive_color: color(0.827726, 0.267358, 0.022013), distance_scale: 0.002, reflection_roughness: 0.05);
// 10 - Redexport material plastic_red(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Metallic Plastic Red"), ::anno::description(DESCRIPTION), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "red", "cherry", "warm")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent_Flakes.plastic_red.png"), ::anno::copyright_notice(COPYRIGHT)]] = metallic_plastic_simple_controls( diffuse_color: color(0.547994, 0.027755, 0.027755), diffuse_weight: .5, transmissive_color: color(0.875138, 0.022013, 0.022013), distance_scale: 0.002, reflection_roughness: 0.05);
// 11 - Magentaexport material plastic_magenta(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Metallic Plastic Magenta"), ::anno::description(DESCRIPTION), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "magenta")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent_Flakes.plastic_magenta.png"), ::anno::copyright_notice(COPYRIGHT)]] = metallic_plastic_simple_controls( diffuse_color: color(0.547994, 0.047776, 0.554227), diffuse_weight: .5, transmissive_color: color(0.722672, 0.030257, 0.566810), distance_scale: 0.002, reflection_roughness: 0.05);
// 12 - Purpleexport material plastic_purple(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Metallic Plastic Purple"), ::anno::description(DESCRIPTION), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "purple")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent_Flakes.plastic_purple.png"), ::anno::copyright_notice(COPYRIGHT)]] = metallic_plastic_simple_controls( diffuse_color: color(0.193972, 0.017936, 0.464741), diffuse_weight: .5, transmissive_color: color(0.701170, 0.018913, 0.645555), distance_scale: 0.002, reflection_roughness: 0.05);
// 13 - Dark Blueexport material plastic_dark_blue(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Metallic Plastic Dark Blue"), ::anno::description(DESCRIPTION), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "dark", "blue", "cool")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent_Flakes.plastic_dark_blue.png"), ::anno::copyright_notice(COPYRIGHT)]] = metallic_plastic_simple_controls( diffuse_color: color(0.027755, 0.058187, 0.311180), diffuse_weight: .5, transmissive_color: color(0.027755, 0.058187, 0.311180), distance_scale: 0.002, reflection_roughness: 0.05);
// 14 - Blueexport material plastic_blue(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Metallic Plastic Blue"), ::anno::description(DESCRIPTION), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "blue", "cool")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent_Flakes.plastic_blue.png"), ::anno::copyright_notice(COPYRIGHT)]] = metallic_plastic_simple_controls( diffuse_color: color(0.034230, 0.173439, 0.843370), diffuse_weight: .5, transmissive_color: color(0.034230, 0.124741, 0.659224), distance_scale: 0.002, reflection_roughness: 0.05);
// 15 - Sky Blueexport material plastic_sky_blue(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Metallic Plastic Sky Blue"), ::anno::description(DESCRIPTION), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "blue", "sky", "cool")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent_Flakes.plastic_sky_blue.png"), ::anno::copyright_notice(COPYRIGHT)]] = metallic_plastic_simple_controls( diffuse_color: color(0.061907, 0.535642, 0.875138), diffuse_weight: .5, transmissive_color: color(0.028991, 0.358654, 0.673049), distance_scale: 0.002, reflection_roughness: 0.05);
// 16 - Light Blueexport material plastic_light_blue(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Metallic Plastic Light Blue"), ::anno::description(DESCRIPTION), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "light", "blue", "cool")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent_Flakes.plastic_light_blue.png"), ::anno::copyright_notice(COPYRIGHT)]] = metallic_plastic_simple_controls( diffuse_color: color(0.263175, 0.774227, 0.827726), diffuse_weight: .5, transmissive_color: color(0.163641, 0.592438, 0.759300), distance_scale: 0.002, reflection_roughness: 0.05);
// 17 - Tealexport material plastic_teal(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Metallic Plastic Teal"), ::anno::description(DESCRIPTION), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "teal", "cool")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent_Flakes.plastic_teal.png"), ::anno::copyright_notice(COPYRIGHT)]] = metallic_plastic_simple_controls( diffuse_color: color(0.037029, 0.579547, 0.329729), diffuse_weight: .5, transmissive_color: color(0.022013, 0.476177, 0.353741), distance_scale: 0.002, reflection_roughness: 0.05);
// 18 - Dark Greenexport material plastic_dark_green(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Metallic Plastic Dark Green"), ::anno::description(DESCRIPTION), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "dark", "green")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent_Flakes.plastic_dark_green.png"), ::anno::copyright_notice(COPYRIGHT)]] = metallic_plastic_simple_controls( diffuse_color: color(0.034230, 0.141980, 0.034230), diffuse_weight: .5, transmissive_color: color(0.016988, 0.141980, 0.016988), distance_scale: 0.002, reflection_roughness: 0.05);
// 19 - Greenexport material plastic_green(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Metallic Plastic Green"), ::anno::description(DESCRIPTION), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "green")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent_Flakes.plastic_green.png"), ::anno::copyright_notice(COPYRIGHT)]] = metallic_plastic_simple_controls( diffuse_color: color(0.016988, 0.311180, 0.016988), diffuse_weight: .5, transmissive_color: color(0.012664, 0.358654, 0.012664), distance_scale: 0.002, reflection_roughness: 0.05);
// 20 - Light Greenexport material plastic_light_green(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Metallic Plastic Light Green"), ::anno::description(DESCRIPTION), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "light", "green")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent_Flakes.plastic_light_green.png"), ::anno::copyright_notice(COPYRIGHT)]] = metallic_plastic_simple_controls( diffuse_color: color(0.030257, 0.687031, 0.027755), diffuse_weight: .5, transmissive_color: color(0.030257, 0.701170, 0.027755), distance_scale: 0.002, reflection_roughness: 0.05);
// 21 - Lime Greenexport material plastic_lime_green(*)[[ ::anno::author("NVIDIA ARC"), ::anno::display_name("Metallic Plastic Lime Green"), ::anno::description(DESCRIPTION), ::anno::key_words(string[]("plastic", "artificial", "scattering", "SSS", "diffuse", "translucent", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "lime", "green", "light")), ::anno::thumbnail("./.thumbs/Plastic_Thick_Translucent_Flakes.plastic_lime_green.png"), ::anno::copyright_notice(COPYRIGHT)]] = metallic_plastic_simple_controls( diffuse_color: color(0.186989, 0.605484, 0.027755), diffuse_weight: .5, transmissive_color: color(0.204710, 0.701170, 0.022013), distance_scale: 0.002, reflection_roughness: 0.05);12345678910111213141516171819202122232425262728293031// Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
// adjusted to be alittle darker, not harsh white, changed name to Whitemode
mdl 1.5;
import ::anno::*;
import ::df::diffuse_reflection_bsdf;
import ::state::normal;
export material WhiteMode(
color diffuse_color_constant = color(.99f)
[[
anno::display_name("Base Color"),
anno::description("This is the base color")
]]
)
=
let {
material_surface surface(
::df::diffuse_reflection_bsdf(diffuse_color_constant));
} in material(
thin_walled: false,
surface: surface);123version https://git-lfs.github.com/spec/v1oid sha256:789f299892fa020c540feeeca7b0e1a347fe21cafd54c1cf95f032730125126csize 134788125123version https://git-lfs.github.com/spec/v1oid sha256:2e61778086087f1cbe864523f1860b23604cc85cc4ba40ea4de5fce3b9568c24size 1976125PowerUPS_9000_415V_1250KVA/.metadata/PowerUPS_9000_415V_1250KVA_benchmark.jsonDeleted-510
PowerUPS_9000_415V_1250KVA/.metadata/PowerUPS_9000_415V_1250KVA_validation.jsonDeleted-62
PowerUPS_9000_415V_1250KVA/.metadata/com.nvidia.simready.conformance.Package@1.0.0.jsonDeleted-35
PowerUPS_9000_415V_1250KVA/.metadata/com.nvidia.simready.packaging.bom.jsonDeleted-175
PowerUPS_9000_415V_1250KVA/com.nvidia.simready.packaging.jsonDeleted-31
PowerUPS_9000_415V_1250KVA/simready_usd/.simready/validation.jsonDeleted-60
PowerUPS_9000_415V_1250KVA/simready_usd/.thumbs/256x256/PowerUPS_9000_415V_1250KVA_main.usd.pngDeleted
Large File Pointer Details
- SHA256: 362f4092342667bb6c971bfd8c2d5d4acf5f1290d6ae2f6955398b4430ba17cf
- Pointer size: 131 Bytes
- Size of remote file: 766 kB
PowerUPS_9000_415V_1250KVA/simready_usd/.thumbs/256x256/PowerUPS_9000_415V_1250KVA_main.usd_light.pngDeleted
Large File Pointer Details
- SHA256: 5f970a7142a90d643b8c103e083f656fa682659e6a4b3fa0543977798f9fd968
- Pointer size: 131 Bytes
- Size of remote file: 719 kB
PowerUPS_9000_415V_1250KVA/simready_usd/.thumbs/256x256/PowerUPS_9000_415V_1250KVA_main.usd_transparent.pngDeleted
Large File Pointer Details
- SHA256: 7db9e0f83f25e9bb0c356de58eda1875044006fc1adc547bfaa143c21f59a6a5
- Pointer size: 131 Bytes
- Size of remote file: 583 kB
PowerUPS_9000_415V_1250KVA/simready_usd/PowerUPS_9000_415V_1250KVA_main.jsonDeleted-17
PowerUPS_9000_415V_1250KVA/simready_usd/PowerUPS_9000_415V_1250KVA_main.usdDeleted
PowerUPS_9000_415V_1250KVA/simready_usd/layers/PowerUPS_9000_415V_1250KVA_ConnectionPoints.usdaDeleted-103
PowerUPS_9000_415V_1250KVA/simready_usd/layers/PowerUPS_9000_415V_1250KVA_Properties.jsonDeleted-273
PowerUPS_9000_415V_1250KVA/simready_usd/layers/PowerUPS_9000_415V_1250KVA_Properties.usdaDeleted-532
PowerUPS_9000_415V_1250KVA/simready_usd/materials/OmniPBR.mdlDeleted-396
PowerUPS_9000_415V_1250KVA/simready_usd/materials/OmniPBRBase.mdlDeleted-470
PowerUPS_9000_415V_1250KVA/simready_usd/materials/OmniPBR_ClearCoat.mdlDeleted-711
PowerUPS_9000_415V_1250KVA/simready_usd/materials/OmniPBR_ClearCoat_Opacity.mdlDeleted-860
PowerUPS_9000_415V_1250KVA/simready_usd/materials/OmniPBR_Opacity.mdlDeleted-404
PowerUPS_9000_415V_1250KVA/simready_usd/materials/Plastic_Thick_Translucent.mdlDeleted-673
PowerUPS_9000_415V_1250KVA/simready_usd/materials/Plastic_Thick_Translucent_Flakes.mdlDeleted-1025
PowerUPS_9000_415V_1250KVA/simready_usd/materials/Stainless_Steel_Brushed.mdlDeleted
PowerUPS_9000_415V_1250KVA/simready_usd/materials/WhiteMode.mdlDeleted-31
PowerUPS_9000_415V_1250KVA/simready_usd/payloads/external.usdDeleted-3
PowerUPS_9000_415V_1250KVA/simready_usd/payloads/internal.usdDeleted-3
PowerUPS_9000_415V_1250KVA/simready_usd/textures/image screen.pngDeleted

Large File Pointer Details
- SHA256: 225f5998ef1a0da43fbcbec55801fd8a42a2e88e0d558afea6ecee236cfef251
- Pointer size: 131 Bytes
- Size of remote file: 157 kB