diff --git a/assets/objects/_images/fruits_veggies/avocado.png b/assets/objects/_images/fruits_veggies/avocado.png new file mode 100644 index 0000000000000000000000000000000000000000..44e5a6d16a53b237c0e0e00c18d9fad7c47f86d6 Binary files /dev/null and b/assets/objects/_images/fruits_veggies/avocado.png differ diff --git a/assets/objects/_images/fruits_veggies/lemon1.png b/assets/objects/_images/fruits_veggies/lemon1.png new file mode 100644 index 0000000000000000000000000000000000000000..11fca9e45cb45142ef190a3271f07629a125aa88 Binary files /dev/null and b/assets/objects/_images/fruits_veggies/lemon1.png differ diff --git a/assets/objects/_images/fruits_veggies/lemon2.png b/assets/objects/_images/fruits_veggies/lemon2.png new file mode 100644 index 0000000000000000000000000000000000000000..5051bc1fd8a352d2e6fffd77a12c32d2b81c28b6 Binary files /dev/null and b/assets/objects/_images/fruits_veggies/lemon2.png differ diff --git a/assets/objects/_images/fruits_veggies/lime.png b/assets/objects/_images/fruits_veggies/lime.png new file mode 100644 index 0000000000000000000000000000000000000000..fac2e54a38c78196e7319118a0f6e979aeb0643b Binary files /dev/null and b/assets/objects/_images/fruits_veggies/lime.png differ diff --git a/assets/objects/_images/fruits_veggies/lychee.png b/assets/objects/_images/fruits_veggies/lychee.png new file mode 100644 index 0000000000000000000000000000000000000000..3a6b66def63c8399040f441557ab1764c4d68490 Binary files /dev/null and b/assets/objects/_images/fruits_veggies/lychee.png differ diff --git a/assets/objects/_images/fruits_veggies/orange1.png b/assets/objects/_images/fruits_veggies/orange1.png new file mode 100644 index 0000000000000000000000000000000000000000..81b87e0fd446b57dea19062200ff00f103bc41a3 Binary files /dev/null and b/assets/objects/_images/fruits_veggies/orange1.png differ diff --git a/assets/objects/_images/fruits_veggies/orange2.png b/assets/objects/_images/fruits_veggies/orange2.png new file mode 100644 index 0000000000000000000000000000000000000000..3c5070308935e8853b68901ae30ee77ca9f5b847 Binary files /dev/null and b/assets/objects/_images/fruits_veggies/orange2.png differ diff --git a/assets/objects/_images/fruits_veggies/pomegranate.png b/assets/objects/_images/fruits_veggies/pomegranate.png new file mode 100644 index 0000000000000000000000000000000000000000..5e5a542dd61daf02d678b085bb1d2f5266a234a8 Binary files /dev/null and b/assets/objects/_images/fruits_veggies/pomegranate.png differ diff --git a/assets/objects/_images/fruits_veggies/red_onion.png b/assets/objects/_images/fruits_veggies/red_onion.png new file mode 100644 index 0000000000000000000000000000000000000000..6a809a0a28fe6447cab748c5f7d1c078870e1206 Binary files /dev/null and b/assets/objects/_images/fruits_veggies/red_onion.png differ diff --git a/assets/objects/_images/handal/hammer.png b/assets/objects/_images/handal/hammer.png new file mode 100644 index 0000000000000000000000000000000000000000..bce03cd387590a4fab3b8bb2d4cc2123e127410d Binary files /dev/null and b/assets/objects/_images/handal/hammer.png differ diff --git a/assets/objects/_images/handal/hammer_1.png b/assets/objects/_images/handal/hammer_1.png new file mode 100644 index 0000000000000000000000000000000000000000..602215d7ba8e58f53107a691f39930e7eafac8de Binary files /dev/null and b/assets/objects/_images/handal/hammer_1.png differ diff --git a/assets/objects/_images/handal/hammer_2.png b/assets/objects/_images/handal/hammer_2.png new file mode 100644 index 0000000000000000000000000000000000000000..c6fc1eb4fc3dd022b577090203f22d97bec85e37 Binary files /dev/null and b/assets/objects/_images/handal/hammer_2.png differ diff --git a/assets/objects/_images/handal/hammer_3.png b/assets/objects/_images/handal/hammer_3.png new file mode 100644 index 0000000000000000000000000000000000000000..c16356f1991f88e734ccd5655ff65a65cac4ff58 Binary files /dev/null and b/assets/objects/_images/handal/hammer_3.png differ diff --git a/assets/objects/_images/handal/hammer_4.png b/assets/objects/_images/handal/hammer_4.png new file mode 100644 index 0000000000000000000000000000000000000000..e8b88a516b244dca7e8bd939856ad96c33dfd10a Binary files /dev/null and b/assets/objects/_images/handal/hammer_4.png differ diff --git a/assets/objects/_images/handal/hammer_5.png b/assets/objects/_images/handal/hammer_5.png new file mode 100644 index 0000000000000000000000000000000000000000..048abb91b291228dde8d34b58bc23a7943477fa1 Binary files /dev/null and b/assets/objects/_images/handal/hammer_5.png differ diff --git a/assets/objects/_images/handal/hammer_6.png b/assets/objects/_images/handal/hammer_6.png new file mode 100644 index 0000000000000000000000000000000000000000..07c74edce3bb2e629125f9e037a8ea2086f88a9c Binary files /dev/null and b/assets/objects/_images/handal/hammer_6.png differ diff --git a/assets/objects/_images/handal/hammer_7.png b/assets/objects/_images/handal/hammer_7.png new file mode 100644 index 0000000000000000000000000000000000000000..9fa47ad8a4ca8522c2ac980bc6d86c9564319c71 Binary files /dev/null and b/assets/objects/_images/handal/hammer_7.png differ diff --git a/assets/objects/_images/handal/hammer_8.png b/assets/objects/_images/handal/hammer_8.png new file mode 100644 index 0000000000000000000000000000000000000000..ed3bf7b594dc3ff189b0939ddfb81affc95f5ef5 Binary files /dev/null and b/assets/objects/_images/handal/hammer_8.png differ diff --git a/assets/objects/_images/handal/ladle.png b/assets/objects/_images/handal/ladle.png new file mode 100644 index 0000000000000000000000000000000000000000..4ec0cdd97e83e178e87f30489c7d35999e9e06ad Binary files /dev/null and b/assets/objects/_images/handal/ladle.png differ diff --git a/assets/objects/_images/handal/measuring_cups.png b/assets/objects/_images/handal/measuring_cups.png new file mode 100644 index 0000000000000000000000000000000000000000..b37a0f5ca38dcabd38749620f3d8110cff3363e9 Binary files /dev/null and b/assets/objects/_images/handal/measuring_cups.png differ diff --git a/assets/objects/_images/handal/measuring_cups_1.png b/assets/objects/_images/handal/measuring_cups_1.png new file mode 100644 index 0000000000000000000000000000000000000000..e4c0b04533773674bbcf6d6d13e48a33ac6308c4 Binary files /dev/null and b/assets/objects/_images/handal/measuring_cups_1.png differ diff --git a/assets/objects/_images/handal/measuring_spoon.png b/assets/objects/_images/handal/measuring_spoon.png new file mode 100644 index 0000000000000000000000000000000000000000..623b0ce081ba4c23e17f87ff9a1f5f1ee90021d8 Binary files /dev/null and b/assets/objects/_images/handal/measuring_spoon.png differ diff --git a/assets/objects/_images/handal/salad_tongs.png b/assets/objects/_images/handal/salad_tongs.png new file mode 100644 index 0000000000000000000000000000000000000000..32a4b902aabaabc456dbc112db6ea800ce7358b3 Binary files /dev/null and b/assets/objects/_images/handal/salad_tongs.png differ diff --git a/assets/objects/_images/handal/serving_spoon.png b/assets/objects/_images/handal/serving_spoon.png new file mode 100644 index 0000000000000000000000000000000000000000..977c6deab6f4fa8e221da80ee491b43a90b8ae22 Binary files /dev/null and b/assets/objects/_images/handal/serving_spoon.png differ diff --git a/assets/objects/_images/handal/serving_spoons.png b/assets/objects/_images/handal/serving_spoons.png new file mode 100644 index 0000000000000000000000000000000000000000..c59910c87265a24d5627ef95389470ac0db091ae Binary files /dev/null and b/assets/objects/_images/handal/serving_spoons.png differ diff --git a/assets/objects/_images/handal/spoon.png b/assets/objects/_images/handal/spoon.png new file mode 100644 index 0000000000000000000000000000000000000000..a4e51cbc65c3f0dc1fd3872f4b715c415b5229f3 Binary files /dev/null and b/assets/objects/_images/handal/spoon.png differ diff --git a/assets/objects/_images/handal/spoon_1.png b/assets/objects/_images/handal/spoon_1.png new file mode 100644 index 0000000000000000000000000000000000000000..b9a0f2a9ed7f076ae882ff3dfcb868021764934d Binary files /dev/null and b/assets/objects/_images/handal/spoon_1.png differ diff --git a/assets/objects/_images/handal/spoon_2.png b/assets/objects/_images/handal/spoon_2.png new file mode 100644 index 0000000000000000000000000000000000000000..bd1e1a95e63b546b3263addfb667953fd0353f9c Binary files /dev/null and b/assets/objects/_images/handal/spoon_2.png differ diff --git a/assets/objects/_images/hope/alphabet_soup_can.png b/assets/objects/_images/hope/alphabet_soup_can.png new file mode 100644 index 0000000000000000000000000000000000000000..946cf4e0358e81dc8fa51bda9dff98aeaac38cc2 Binary files /dev/null and b/assets/objects/_images/hope/alphabet_soup_can.png differ diff --git a/assets/objects/_images/hope/bbq_sauce_bottle.png b/assets/objects/_images/hope/bbq_sauce_bottle.png new file mode 100644 index 0000000000000000000000000000000000000000..30e1f28944e7c5d4a1cbdaaff88967a06909d577 Binary files /dev/null and b/assets/objects/_images/hope/bbq_sauce_bottle.png differ diff --git a/assets/objects/_images/hope/butter.png b/assets/objects/_images/hope/butter.png new file mode 100644 index 0000000000000000000000000000000000000000..7c1ec1a7f29f2eb0acc15bfe460811ca59a2d1c2 Binary files /dev/null and b/assets/objects/_images/hope/butter.png differ diff --git a/assets/objects/_images/hope/canned_mushrooms.png b/assets/objects/_images/hope/canned_mushrooms.png new file mode 100644 index 0000000000000000000000000000000000000000..6f505f5086f27756a0eb8f571680bd9bf5e8e069 Binary files /dev/null and b/assets/objects/_images/hope/canned_mushrooms.png differ diff --git a/assets/objects/_images/hope/canned_peaches.png b/assets/objects/_images/hope/canned_peaches.png new file mode 100644 index 0000000000000000000000000000000000000000..7ef543345542024ce2089fa12dda2456a01d6ef0 Binary files /dev/null and b/assets/objects/_images/hope/canned_peaches.png differ diff --git a/assets/objects/_images/hope/canned_tuna.png b/assets/objects/_images/hope/canned_tuna.png new file mode 100644 index 0000000000000000000000000000000000000000..9e64cdbeef78a910b10d5fe6334fd84e0c545557 Binary files /dev/null and b/assets/objects/_images/hope/canned_tuna.png differ diff --git a/assets/objects/_images/hope/chocolate_pudding_mix.png b/assets/objects/_images/hope/chocolate_pudding_mix.png new file mode 100644 index 0000000000000000000000000000000000000000..cf313d406d5231beee1ad992e2e8a6095f5b3d6f Binary files /dev/null and b/assets/objects/_images/hope/chocolate_pudding_mix.png differ diff --git a/assets/objects/_images/hope/corn_can.png b/assets/objects/_images/hope/corn_can.png new file mode 100644 index 0000000000000000000000000000000000000000..75cbba9c1038741fcced47cbabc0202dac2f041d Binary files /dev/null and b/assets/objects/_images/hope/corn_can.png differ diff --git a/assets/objects/_images/hope/cream_cheese.png b/assets/objects/_images/hope/cream_cheese.png new file mode 100644 index 0000000000000000000000000000000000000000..c205c6d27d72510b8c531c01f9c320e6d900610f Binary files /dev/null and b/assets/objects/_images/hope/cream_cheese.png differ diff --git a/assets/objects/_images/hope/granola_bars.png b/assets/objects/_images/hope/granola_bars.png new file mode 100644 index 0000000000000000000000000000000000000000..7dba42929cd39233b598f774d26ad99c46be0c2d Binary files /dev/null and b/assets/objects/_images/hope/granola_bars.png differ diff --git a/assets/objects/_images/hope/green_beans_can.png b/assets/objects/_images/hope/green_beans_can.png new file mode 100644 index 0000000000000000000000000000000000000000..c0221eaf40805b8556fc2e4073b72b5050cac09e Binary files /dev/null and b/assets/objects/_images/hope/green_beans_can.png differ diff --git a/assets/objects/_images/hope/ketchup_bottle.png b/assets/objects/_images/hope/ketchup_bottle.png new file mode 100644 index 0000000000000000000000000000000000000000..9c5a6af846786469095eba57f82d7d31c30f2454 Binary files /dev/null and b/assets/objects/_images/hope/ketchup_bottle.png differ diff --git a/assets/objects/_images/hope/macaroni_and_cheese.png b/assets/objects/_images/hope/macaroni_and_cheese.png new file mode 100644 index 0000000000000000000000000000000000000000..219522587caba16a94843a68a2d8bdd0c0de56b5 Binary files /dev/null and b/assets/objects/_images/hope/macaroni_and_cheese.png differ diff --git a/assets/objects/_images/hope/mayonnaise_bottle.png b/assets/objects/_images/hope/mayonnaise_bottle.png new file mode 100644 index 0000000000000000000000000000000000000000..d63649354cbcd61916ae3e48db4d15b4550ef3a6 Binary files /dev/null and b/assets/objects/_images/hope/mayonnaise_bottle.png differ diff --git a/assets/objects/_images/hope/milk_carton.png b/assets/objects/_images/hope/milk_carton.png new file mode 100644 index 0000000000000000000000000000000000000000..e83b6a59d65caaba09d6d8c1a6ea9d1722cfbb81 Binary files /dev/null and b/assets/objects/_images/hope/milk_carton.png differ diff --git a/assets/objects/_images/hope/mustard_bottle.png b/assets/objects/_images/hope/mustard_bottle.png new file mode 100644 index 0000000000000000000000000000000000000000..449fc0d4750005c575a59b4082f708f87113eea8 Binary files /dev/null and b/assets/objects/_images/hope/mustard_bottle.png differ diff --git a/assets/objects/_images/hope/oatmeal_raisin_cookies.png b/assets/objects/_images/hope/oatmeal_raisin_cookies.png new file mode 100644 index 0000000000000000000000000000000000000000..06a053023a8d8ea519c2e12bcaebfd906eb52569 Binary files /dev/null and b/assets/objects/_images/hope/oatmeal_raisin_cookies.png differ diff --git a/assets/objects/_images/hope/orange_juice_carton.png b/assets/objects/_images/hope/orange_juice_carton.png new file mode 100644 index 0000000000000000000000000000000000000000..580795503b99c327c2ba45d4ef05a77bafa02e71 Binary files /dev/null and b/assets/objects/_images/hope/orange_juice_carton.png differ diff --git a/assets/objects/_images/hope/parmesan_cheese_canister.png b/assets/objects/_images/hope/parmesan_cheese_canister.png new file mode 100644 index 0000000000000000000000000000000000000000..6a67b494e8f0bec637fe76686e3f5d896ccc81c8 Binary files /dev/null and b/assets/objects/_images/hope/parmesan_cheese_canister.png differ diff --git a/assets/objects/_images/hope/peas_and_carrots.png b/assets/objects/_images/hope/peas_and_carrots.png new file mode 100644 index 0000000000000000000000000000000000000000..26798299af5dec7f422dfd3c83058c0b856fe186 Binary files /dev/null and b/assets/objects/_images/hope/peas_and_carrots.png differ diff --git a/assets/objects/_images/hope/pineapple_slices_can.png b/assets/objects/_images/hope/pineapple_slices_can.png new file mode 100644 index 0000000000000000000000000000000000000000..1524b1550633a28798d7b85506877ac28b401aa6 Binary files /dev/null and b/assets/objects/_images/hope/pineapple_slices_can.png differ diff --git a/assets/objects/_images/hope/pitted_cherries.png b/assets/objects/_images/hope/pitted_cherries.png new file mode 100644 index 0000000000000000000000000000000000000000..48c04920db5cf5d2aa350f301f53d290a4f37448 Binary files /dev/null and b/assets/objects/_images/hope/pitted_cherries.png differ diff --git a/assets/objects/_images/hope/popcorn_box.png b/assets/objects/_images/hope/popcorn_box.png new file mode 100644 index 0000000000000000000000000000000000000000..a7c6ad5e3a547e895ddef49af43b2b1e4969fe64 Binary files /dev/null and b/assets/objects/_images/hope/popcorn_box.png differ diff --git a/assets/objects/_images/hope/raisin_box.png b/assets/objects/_images/hope/raisin_box.png new file mode 100644 index 0000000000000000000000000000000000000000..457a2c9edb49e51d2a293f7789917784fef8b58e Binary files /dev/null and b/assets/objects/_images/hope/raisin_box.png differ diff --git a/assets/objects/_images/hope/ranch_dressing.png b/assets/objects/_images/hope/ranch_dressing.png new file mode 100644 index 0000000000000000000000000000000000000000..8da5b206f2667878f19ba18c8f3d4ddf6c879a7d Binary files /dev/null and b/assets/objects/_images/hope/ranch_dressing.png differ diff --git a/assets/objects/_images/hope/spaghetti.png b/assets/objects/_images/hope/spaghetti.png new file mode 100644 index 0000000000000000000000000000000000000000..fd49b846b9798d0265cf1e3b7f4c4fa51cd85b51 Binary files /dev/null and b/assets/objects/_images/hope/spaghetti.png differ diff --git a/assets/objects/_images/hope/tomato_sauce_can.png b/assets/objects/_images/hope/tomato_sauce_can.png new file mode 100644 index 0000000000000000000000000000000000000000..1894476d222e86afaeec94067821acb0beffdc9b Binary files /dev/null and b/assets/objects/_images/hope/tomato_sauce_can.png differ diff --git a/assets/objects/_images/hope/yogurt_cup.png b/assets/objects/_images/hope/yogurt_cup.png new file mode 100644 index 0000000000000000000000000000000000000000..39a2dea471d81c3e25b1c493d6727009b1e34e8e Binary files /dev/null and b/assets/objects/_images/hope/yogurt_cup.png differ diff --git a/assets/objects/_images/hot3d/bbq_sauce_bottle.png b/assets/objects/_images/hot3d/bbq_sauce_bottle.png new file mode 100644 index 0000000000000000000000000000000000000000..dc93915e38f8a5b4e637c9a0076125a710ea8799 Binary files /dev/null and b/assets/objects/_images/hot3d/bbq_sauce_bottle.png differ diff --git a/assets/objects/_images/hot3d/birdhouse.png b/assets/objects/_images/hot3d/birdhouse.png new file mode 100644 index 0000000000000000000000000000000000000000..d47de295aba4c5953a1035306d3741b2ce3cb84e Binary files /dev/null and b/assets/objects/_images/hot3d/birdhouse.png differ diff --git a/assets/objects/_images/hot3d/ceramic_mug.png b/assets/objects/_images/hot3d/ceramic_mug.png new file mode 100644 index 0000000000000000000000000000000000000000..6e15043bb6126413d43069b545c9f90b0c12261e Binary files /dev/null and b/assets/objects/_images/hot3d/ceramic_mug.png differ diff --git a/assets/objects/_images/hot3d/clay_plates.png b/assets/objects/_images/hot3d/clay_plates.png new file mode 100644 index 0000000000000000000000000000000000000000..c6862bb68323802f93f5bdbac552c73337939839 Binary files /dev/null and b/assets/objects/_images/hot3d/clay_plates.png differ diff --git a/assets/objects/_images/hot3d/coffee_pot.png b/assets/objects/_images/hot3d/coffee_pot.png new file mode 100644 index 0000000000000000000000000000000000000000..ed193b00f08e1a90bb41ee1a89549ee86e2f9296 Binary files /dev/null and b/assets/objects/_images/hot3d/coffee_pot.png differ diff --git a/assets/objects/_images/hot3d/computer_mouse.png b/assets/objects/_images/hot3d/computer_mouse.png new file mode 100644 index 0000000000000000000000000000000000000000..e839d88774c32c4015d68a7a81b1053dde380e02 Binary files /dev/null and b/assets/objects/_images/hot3d/computer_mouse.png differ diff --git a/assets/objects/_images/hot3d/cup.png b/assets/objects/_images/hot3d/cup.png new file mode 100644 index 0000000000000000000000000000000000000000..d3c3768813fdf35dc770b4eac98db6197c73a318 Binary files /dev/null and b/assets/objects/_images/hot3d/cup.png differ diff --git a/assets/objects/_images/hot3d/dumbbell.png b/assets/objects/_images/hot3d/dumbbell.png new file mode 100644 index 0000000000000000000000000000000000000000..8f84705c82b2937bb1dc96f31efec5fcec2164f3 Binary files /dev/null and b/assets/objects/_images/hot3d/dumbbell.png differ diff --git a/assets/objects/_images/hot3d/foam_roller.png b/assets/objects/_images/hot3d/foam_roller.png new file mode 100644 index 0000000000000000000000000000000000000000..bda3e83521c81e9cab119317ec8207962ccd0eda Binary files /dev/null and b/assets/objects/_images/hot3d/foam_roller.png differ diff --git a/assets/objects/_images/hot3d/frozen_vegetable_block.png b/assets/objects/_images/hot3d/frozen_vegetable_block.png new file mode 100644 index 0000000000000000000000000000000000000000..67ecbf28e9d114f8b49d6480e5978544548e19c8 Binary files /dev/null and b/assets/objects/_images/hot3d/frozen_vegetable_block.png differ diff --git a/assets/objects/_images/hot3d/frozen_waffles.png b/assets/objects/_images/hot3d/frozen_waffles.png new file mode 100644 index 0000000000000000000000000000000000000000..c4027134bc05e8f71c3e5ed85265ad7e18f37ff0 Binary files /dev/null and b/assets/objects/_images/hot3d/frozen_waffles.png differ diff --git a/assets/objects/_images/hot3d/glasses.png b/assets/objects/_images/hot3d/glasses.png new file mode 100644 index 0000000000000000000000000000000000000000..d7eb7c950edb849c27e857e2b8f51acb7fbfe00a Binary files /dev/null and b/assets/objects/_images/hot3d/glasses.png differ diff --git a/assets/objects/_images/hot3d/keyboard.png b/assets/objects/_images/hot3d/keyboard.png new file mode 100644 index 0000000000000000000000000000000000000000..37653bf589cf2925c53d96a3aa3041533677dc2d Binary files /dev/null and b/assets/objects/_images/hot3d/keyboard.png differ diff --git a/assets/objects/_images/hot3d/lizard_figurine.png b/assets/objects/_images/hot3d/lizard_figurine.png new file mode 100644 index 0000000000000000000000000000000000000000..b9cfc6a0037911aa0ff6ff1bddab71b49a83967a Binary files /dev/null and b/assets/objects/_images/hot3d/lizard_figurine.png differ diff --git a/assets/objects/_images/hot3d/marker.png b/assets/objects/_images/hot3d/marker.png new file mode 100644 index 0000000000000000000000000000000000000000..9642e6eba1f20f245ccd6301f596f3d646a6d8ee Binary files /dev/null and b/assets/objects/_images/hot3d/marker.png differ diff --git a/assets/objects/_images/hot3d/megaphone.png b/assets/objects/_images/hot3d/megaphone.png new file mode 100644 index 0000000000000000000000000000000000000000..29e3d47f941a2ad4661c131ea18aab32a0909048 Binary files /dev/null and b/assets/objects/_images/hot3d/megaphone.png differ diff --git a/assets/objects/_images/hot3d/milk_carton.png b/assets/objects/_images/hot3d/milk_carton.png new file mode 100644 index 0000000000000000000000000000000000000000..8772ae0ca177339b234b4f63b7054b636f118508 Binary files /dev/null and b/assets/objects/_images/hot3d/milk_carton.png differ diff --git a/assets/objects/_images/hot3d/mustard_bottle.png b/assets/objects/_images/hot3d/mustard_bottle.png new file mode 100644 index 0000000000000000000000000000000000000000..e49df745ae165fd997a9bc35eb81c248c34ef394 Binary files /dev/null and b/assets/objects/_images/hot3d/mustard_bottle.png differ diff --git a/assets/objects/_images/hot3d/orange_juice_carton.png b/assets/objects/_images/hot3d/orange_juice_carton.png new file mode 100644 index 0000000000000000000000000000000000000000..75c338efd67a1819f4122e4a9574a9042d2825e3 Binary files /dev/null and b/assets/objects/_images/hot3d/orange_juice_carton.png differ diff --git a/assets/objects/_images/hot3d/parmesan_cheese_canister.png b/assets/objects/_images/hot3d/parmesan_cheese_canister.png new file mode 100644 index 0000000000000000000000000000000000000000..a1b8c691b9e7c3c48781775dbab7ba4408900cc7 Binary files /dev/null and b/assets/objects/_images/hot3d/parmesan_cheese_canister.png differ diff --git a/assets/objects/_images/hot3d/pitcher.png b/assets/objects/_images/hot3d/pitcher.png new file mode 100644 index 0000000000000000000000000000000000000000..f0617276cf9f91c9a11350fbd06c365913c6013c Binary files /dev/null and b/assets/objects/_images/hot3d/pitcher.png differ diff --git a/assets/objects/_images/hot3d/potato_masher.png b/assets/objects/_images/hot3d/potato_masher.png new file mode 100644 index 0000000000000000000000000000000000000000..a96c6ec9105a64f070ccbb93c38fb885ddd96ad2 Binary files /dev/null and b/assets/objects/_images/hot3d/potato_masher.png differ diff --git a/assets/objects/_images/hot3d/remote_control.png b/assets/objects/_images/hot3d/remote_control.png new file mode 100644 index 0000000000000000000000000000000000000000..8ccb0b02600b9cd28d52638f5b22ffb87ebd6216 Binary files /dev/null and b/assets/objects/_images/hot3d/remote_control.png differ diff --git a/assets/objects/_images/hot3d/rubiks_cube.png b/assets/objects/_images/hot3d/rubiks_cube.png new file mode 100644 index 0000000000000000000000000000000000000000..c7265beb450100897af04b68c4ee15337d40963c Binary files /dev/null and b/assets/objects/_images/hot3d/rubiks_cube.png differ diff --git a/assets/objects/_images/hot3d/salad_dressing_bottle.png b/assets/objects/_images/hot3d/salad_dressing_bottle.png new file mode 100644 index 0000000000000000000000000000000000000000..72cfae861e7ee0a75852899bb4a31e0834cfce23 Binary files /dev/null and b/assets/objects/_images/hot3d/salad_dressing_bottle.png differ diff --git a/assets/objects/_images/hot3d/smartphone.png b/assets/objects/_images/hot3d/smartphone.png new file mode 100644 index 0000000000000000000000000000000000000000..425c64c4d21f557935ab8ba64d4f23d8e1a26339 Binary files /dev/null and b/assets/objects/_images/hot3d/smartphone.png differ diff --git a/assets/objects/_images/hot3d/soup_can.png b/assets/objects/_images/hot3d/soup_can.png new file mode 100644 index 0000000000000000000000000000000000000000..e870dafa79becdd8febd5511df961a291b27fee9 Binary files /dev/null and b/assets/objects/_images/hot3d/soup_can.png differ diff --git a/assets/objects/_images/hot3d/spatula.png b/assets/objects/_images/hot3d/spatula.png new file mode 100644 index 0000000000000000000000000000000000000000..41961a1c362cbf060945513cc9481eda33e484af Binary files /dev/null and b/assets/objects/_images/hot3d/spatula.png differ diff --git a/assets/objects/_images/hot3d/storage_box.png b/assets/objects/_images/hot3d/storage_box.png new file mode 100644 index 0000000000000000000000000000000000000000..7fcbe040940bf12174a766a4f95284dd85962a76 Binary files /dev/null and b/assets/objects/_images/hot3d/storage_box.png differ diff --git a/assets/objects/_images/hot3d/tomato_sauce_can.png b/assets/objects/_images/hot3d/tomato_sauce_can.png new file mode 100644 index 0000000000000000000000000000000000000000..26f2b9e50fff42d48d96dacfbecf245bbbd2fd25 Binary files /dev/null and b/assets/objects/_images/hot3d/tomato_sauce_can.png differ diff --git a/assets/objects/_images/hot3d/wooden_bowl.png b/assets/objects/_images/hot3d/wooden_bowl.png new file mode 100644 index 0000000000000000000000000000000000000000..395c43127498c099cced937a203dcdfc3ea42f6d Binary files /dev/null and b/assets/objects/_images/hot3d/wooden_bowl.png differ diff --git a/assets/objects/_images/hot3d/wooden_spoons.png b/assets/objects/_images/hot3d/wooden_spoons.png new file mode 100644 index 0000000000000000000000000000000000000000..889a5ea66ed20d99537c2eeb6b927045dd5435f8 Binary files /dev/null and b/assets/objects/_images/hot3d/wooden_spoons.png differ diff --git a/assets/objects/_images/vomp/antiquelvase.png b/assets/objects/_images/vomp/antiquelvase.png new file mode 100644 index 0000000000000000000000000000000000000000..134e208a9a53e25172879e388df3ffb28cbbd31d Binary files /dev/null and b/assets/objects/_images/vomp/antiquelvase.png differ diff --git a/assets/objects/_images/vomp/antiquelvasesmall.png b/assets/objects/_images/vomp/antiquelvasesmall.png new file mode 100644 index 0000000000000000000000000000000000000000..a7d944c83c02ec897c7f95a861013d21a4518bea Binary files /dev/null and b/assets/objects/_images/vomp/antiquelvasesmall.png differ diff --git a/assets/objects/_images/vomp/anza_large.png b/assets/objects/_images/vomp/anza_large.png new file mode 100644 index 0000000000000000000000000000000000000000..5de8b355fad3058044ed78dd6b75e43ea8344b25 Binary files /dev/null and b/assets/objects/_images/vomp/anza_large.png differ diff --git a/assets/objects/_images/vomp/anza_medium.png b/assets/objects/_images/vomp/anza_medium.png new file mode 100644 index 0000000000000000000000000000000000000000..21e9638d8c93f8aed70b53c714fec2fa699788e1 Binary files /dev/null and b/assets/objects/_images/vomp/anza_medium.png differ diff --git a/assets/objects/_images/vomp/avocado01.png b/assets/objects/_images/vomp/avocado01.png new file mode 100644 index 0000000000000000000000000000000000000000..630df0c254c084d0d29174c08c2165735f4e9838 Binary files /dev/null and b/assets/objects/_images/vomp/avocado01.png differ diff --git a/assets/objects/_images/vomp/bin_a01.png b/assets/objects/_images/vomp/bin_a01.png new file mode 100644 index 0000000000000000000000000000000000000000..f195b998c4c72546bebb13b534efe8d45ee91c40 Binary files /dev/null and b/assets/objects/_images/vomp/bin_a01.png differ diff --git a/assets/objects/_images/vomp/bin_a02.png b/assets/objects/_images/vomp/bin_a02.png new file mode 100644 index 0000000000000000000000000000000000000000..bdffba12f0406d61a618a14361acf813f0d07cc4 Binary files /dev/null and b/assets/objects/_images/vomp/bin_a02.png differ diff --git a/assets/objects/_images/vomp/bin_a03.png b/assets/objects/_images/vomp/bin_a03.png new file mode 100644 index 0000000000000000000000000000000000000000..09925c9b187e7b32f7da403f5c7f8db7fce80474 Binary files /dev/null and b/assets/objects/_images/vomp/bin_a03.png differ diff --git a/assets/objects/_images/vomp/bin_a04.png b/assets/objects/_images/vomp/bin_a04.png new file mode 100644 index 0000000000000000000000000000000000000000..ce0a07cc0cf39472a9e37f8bad09c8c594940c91 Binary files /dev/null and b/assets/objects/_images/vomp/bin_a04.png differ diff --git a/assets/objects/_images/vomp/bin_a05.png b/assets/objects/_images/vomp/bin_a05.png new file mode 100644 index 0000000000000000000000000000000000000000..21a3591b68b0cc233d840945a156b4aa654c8a63 Binary files /dev/null and b/assets/objects/_images/vomp/bin_a05.png differ diff --git a/assets/objects/_images/vomp/bin_a06.png b/assets/objects/_images/vomp/bin_a06.png new file mode 100644 index 0000000000000000000000000000000000000000..88963bc270dfdb98bfe27b2e1d0d27d539f99683 Binary files /dev/null and b/assets/objects/_images/vomp/bin_a06.png differ diff --git a/assets/objects/_images/vomp/bin_b01.png b/assets/objects/_images/vomp/bin_b01.png new file mode 100644 index 0000000000000000000000000000000000000000..561425cf2533502c0bd3ee8d3989a8739d061ee3 Binary files /dev/null and b/assets/objects/_images/vomp/bin_b01.png differ diff --git a/assets/objects/_images/vomp/bin_b02.png b/assets/objects/_images/vomp/bin_b02.png new file mode 100644 index 0000000000000000000000000000000000000000..5bab90fb8dbe7d46daf275cbb94630e7d1edb5e8 Binary files /dev/null and b/assets/objects/_images/vomp/bin_b02.png differ diff --git a/assets/objects/_images/vomp/bin_b03.png b/assets/objects/_images/vomp/bin_b03.png new file mode 100644 index 0000000000000000000000000000000000000000..f283abbaf15b310be5296213ae99ee8e0d0f626a Binary files /dev/null and b/assets/objects/_images/vomp/bin_b03.png differ diff --git a/assets/objects/_images/vomp/bin_b04.png b/assets/objects/_images/vomp/bin_b04.png new file mode 100644 index 0000000000000000000000000000000000000000..ebb61eaca55f8c9fea2478f003f85a84cdb05d3e Binary files /dev/null and b/assets/objects/_images/vomp/bin_b04.png differ diff --git a/assets/objects/_images/vomp/bin_b06.png b/assets/objects/_images/vomp/bin_b06.png new file mode 100644 index 0000000000000000000000000000000000000000..79d7b020c680856df329dfcc7bb7d2e3f97b7ddc Binary files /dev/null and b/assets/objects/_images/vomp/bin_b06.png differ diff --git a/assets/objects/_images/vomp/bin_b07.png b/assets/objects/_images/vomp/bin_b07.png new file mode 100644 index 0000000000000000000000000000000000000000..eb35ad08a48f419d8128965457aa78a4fceefb7b Binary files /dev/null and b/assets/objects/_images/vomp/bin_b07.png differ diff --git a/assets/objects/_images/vomp/blackandbrassbowl_large.png b/assets/objects/_images/vomp/blackandbrassbowl_large.png new file mode 100644 index 0000000000000000000000000000000000000000..d0cedbbeba1cf9d0faa2fdcb318872267cfe1a93 Binary files /dev/null and b/assets/objects/_images/vomp/blackandbrassbowl_large.png differ diff --git a/assets/objects/_images/vomp/blackandbrassbowl_small.png b/assets/objects/_images/vomp/blackandbrassbowl_small.png new file mode 100644 index 0000000000000000000000000000000000000000..0148a5ddf33cb6df062d14f8ef14ad67aa135a39 Binary files /dev/null and b/assets/objects/_images/vomp/blackandbrassbowl_small.png differ diff --git a/assets/objects/_images/vomp/box_a01.png b/assets/objects/_images/vomp/box_a01.png new file mode 100644 index 0000000000000000000000000000000000000000..7de8f5d471077d5b26eed9a15929b19da9bdd60f Binary files /dev/null and b/assets/objects/_images/vomp/box_a01.png differ diff --git a/assets/objects/_images/vomp/box_a02.png b/assets/objects/_images/vomp/box_a02.png new file mode 100644 index 0000000000000000000000000000000000000000..4ae85caf9a7db37e1eabcb0b181945746034aa12 Binary files /dev/null and b/assets/objects/_images/vomp/box_a02.png differ diff --git a/assets/objects/_images/vomp/box_a03.png b/assets/objects/_images/vomp/box_a03.png new file mode 100644 index 0000000000000000000000000000000000000000..cd7ac6c14e00349598dd37067330ab48d58bbd85 Binary files /dev/null and b/assets/objects/_images/vomp/box_a03.png differ diff --git a/assets/objects/_images/vomp/box_a04.png b/assets/objects/_images/vomp/box_a04.png new file mode 100644 index 0000000000000000000000000000000000000000..7f5d9da148adb9fe5c663286432fa24fe266879b Binary files /dev/null and b/assets/objects/_images/vomp/box_a04.png differ diff --git a/assets/objects/_images/vomp/box_a05.png b/assets/objects/_images/vomp/box_a05.png new file mode 100644 index 0000000000000000000000000000000000000000..a80134629df9c0eb2714527e0b261ca4734b5038 Binary files /dev/null and b/assets/objects/_images/vomp/box_a05.png differ diff --git a/assets/objects/_images/vomp/box_a06.png b/assets/objects/_images/vomp/box_a06.png new file mode 100644 index 0000000000000000000000000000000000000000..161df827d269e9bdaf3af4a14f12dfdd4a15169e Binary files /dev/null and b/assets/objects/_images/vomp/box_a06.png differ diff --git a/assets/objects/_images/vomp/box_a07.png b/assets/objects/_images/vomp/box_a07.png new file mode 100644 index 0000000000000000000000000000000000000000..a448bd7e0369edb571f6dabf3c6d19b05403642a Binary files /dev/null and b/assets/objects/_images/vomp/box_a07.png differ diff --git a/assets/objects/_images/vomp/box_a08.png b/assets/objects/_images/vomp/box_a08.png new file mode 100644 index 0000000000000000000000000000000000000000..56d6eca56afc66ebe001a0aae465c40284872b3b Binary files /dev/null and b/assets/objects/_images/vomp/box_a08.png differ diff --git a/assets/objects/_images/vomp/box_a09.png b/assets/objects/_images/vomp/box_a09.png new file mode 100644 index 0000000000000000000000000000000000000000..eedec8a591263bf6768880821207ffa8ec7f9421 Binary files /dev/null and b/assets/objects/_images/vomp/box_a09.png differ diff --git a/assets/objects/_images/vomp/box_a10.png b/assets/objects/_images/vomp/box_a10.png new file mode 100644 index 0000000000000000000000000000000000000000..84519aa1128de6073a15b2dc8abcb0b595b60e08 Binary files /dev/null and b/assets/objects/_images/vomp/box_a10.png differ diff --git a/assets/objects/_images/vomp/box_a11.png b/assets/objects/_images/vomp/box_a11.png new file mode 100644 index 0000000000000000000000000000000000000000..9ab5bc7c95c0f1148181a7031de9d32a5aceabaa Binary files /dev/null and b/assets/objects/_images/vomp/box_a11.png differ diff --git a/assets/objects/_images/vomp/bulkstoragerack_a01.png b/assets/objects/_images/vomp/bulkstoragerack_a01.png new file mode 100644 index 0000000000000000000000000000000000000000..654eacceb44e56d5d812dab97a9c5a63592c1f8d Binary files /dev/null and b/assets/objects/_images/vomp/bulkstoragerack_a01.png differ diff --git a/assets/objects/_images/vomp/case_a01.png b/assets/objects/_images/vomp/case_a01.png new file mode 100644 index 0000000000000000000000000000000000000000..e660ed4fd6658529cc41334cd3eca068b2915b02 Binary files /dev/null and b/assets/objects/_images/vomp/case_a01.png differ diff --git a/assets/objects/_images/vomp/case_a02.png b/assets/objects/_images/vomp/case_a02.png new file mode 100644 index 0000000000000000000000000000000000000000..bba1adef39b310fe24fc327bddffbba901a52a28 Binary files /dev/null and b/assets/objects/_images/vomp/case_a02.png differ diff --git a/assets/objects/_images/vomp/case_a04.png b/assets/objects/_images/vomp/case_a04.png new file mode 100644 index 0000000000000000000000000000000000000000..116f0905b6455ced5f4fd2a96cc9cd39d27961c9 Binary files /dev/null and b/assets/objects/_images/vomp/case_a04.png differ diff --git a/assets/objects/_images/vomp/case_a05.png b/assets/objects/_images/vomp/case_a05.png new file mode 100644 index 0000000000000000000000000000000000000000..ad54ec040b226145a34706621c50fc65ed318c84 Binary files /dev/null and b/assets/objects/_images/vomp/case_a05.png differ diff --git a/assets/objects/_images/vomp/case_c01.png b/assets/objects/_images/vomp/case_c01.png new file mode 100644 index 0000000000000000000000000000000000000000..b3ea556042041e38b67da333a51de0e70bee9c5d Binary files /dev/null and b/assets/objects/_images/vomp/case_c01.png differ diff --git a/assets/objects/_images/vomp/case_c02.png b/assets/objects/_images/vomp/case_c02.png new file mode 100644 index 0000000000000000000000000000000000000000..8f24c3ef80a90eaa65917ee0313d03b5a63cf514 Binary files /dev/null and b/assets/objects/_images/vomp/case_c02.png differ diff --git a/assets/objects/_images/vomp/case_c03.png b/assets/objects/_images/vomp/case_c03.png new file mode 100644 index 0000000000000000000000000000000000000000..85b11ea53c320166177890c869441079d2e73690 Binary files /dev/null and b/assets/objects/_images/vomp/case_c03.png differ diff --git a/assets/objects/_images/vomp/case_c04.png b/assets/objects/_images/vomp/case_c04.png new file mode 100644 index 0000000000000000000000000000000000000000..b75b98335729391f0bca0a112c3d4102bdb2261c Binary files /dev/null and b/assets/objects/_images/vomp/case_c04.png differ diff --git a/assets/objects/_images/vomp/case_c05.png b/assets/objects/_images/vomp/case_c05.png new file mode 100644 index 0000000000000000000000000000000000000000..0932fb61df085cb733e9495d93fb4311b76fa07f Binary files /dev/null and b/assets/objects/_images/vomp/case_c05.png differ diff --git a/assets/objects/_images/vomp/case_d01.png b/assets/objects/_images/vomp/case_d01.png new file mode 100644 index 0000000000000000000000000000000000000000..035a224e791e1b7b4405827cbb248c2bcb212b2e Binary files /dev/null and b/assets/objects/_images/vomp/case_d01.png differ diff --git a/assets/objects/_images/vomp/case_d02.png b/assets/objects/_images/vomp/case_d02.png new file mode 100644 index 0000000000000000000000000000000000000000..68135b22c6993efca84149b0abf69fcc16b0f630 Binary files /dev/null and b/assets/objects/_images/vomp/case_d02.png differ diff --git a/assets/objects/_images/vomp/case_d03.png b/assets/objects/_images/vomp/case_d03.png new file mode 100644 index 0000000000000000000000000000000000000000..16b3802532c4cbe84c8cb7aaf503fdecb1087156 Binary files /dev/null and b/assets/objects/_images/vomp/case_d03.png differ diff --git a/assets/objects/_images/vomp/case_d04.png b/assets/objects/_images/vomp/case_d04.png new file mode 100644 index 0000000000000000000000000000000000000000..a5c43e89f5a0133540f7bf688c538fff88eb3bc9 Binary files /dev/null and b/assets/objects/_images/vomp/case_d04.png differ diff --git a/assets/objects/_images/vomp/case_e01.png b/assets/objects/_images/vomp/case_e01.png new file mode 100644 index 0000000000000000000000000000000000000000..eae3ba37f51174d1e309dc0cb62dd1a347924937 Binary files /dev/null and b/assets/objects/_images/vomp/case_e01.png differ diff --git a/assets/objects/_images/vomp/case_e02.png b/assets/objects/_images/vomp/case_e02.png new file mode 100644 index 0000000000000000000000000000000000000000..a9f841955cb0f7408f11a3cc6d5f5b52cc10e24f Binary files /dev/null and b/assets/objects/_images/vomp/case_e02.png differ diff --git a/assets/objects/_images/vomp/case_e03.png b/assets/objects/_images/vomp/case_e03.png new file mode 100644 index 0000000000000000000000000000000000000000..5ef6ee9f044fd2df47af758ee39d2af8179a11cb Binary files /dev/null and b/assets/objects/_images/vomp/case_e03.png differ diff --git a/assets/objects/_images/vomp/closedheadpail_a01.png b/assets/objects/_images/vomp/closedheadpail_a01.png new file mode 100644 index 0000000000000000000000000000000000000000..61dd7dba9c4aa390e142bfce0fae038119851f12 Binary files /dev/null and b/assets/objects/_images/vomp/closedheadpail_a01.png differ diff --git a/assets/objects/_images/vomp/container_a01.png b/assets/objects/_images/vomp/container_a01.png new file mode 100644 index 0000000000000000000000000000000000000000..86670c3f151532a5054f8a08ef0f0337a0f62440 Binary files /dev/null and b/assets/objects/_images/vomp/container_a01.png differ diff --git a/assets/objects/_images/vomp/container_a02.png b/assets/objects/_images/vomp/container_a02.png new file mode 100644 index 0000000000000000000000000000000000000000..b3069824610961e403fd03b31b67e4040f21d7a6 Binary files /dev/null and b/assets/objects/_images/vomp/container_a02.png differ diff --git a/assets/objects/_images/vomp/container_a03.png b/assets/objects/_images/vomp/container_a03.png new file mode 100644 index 0000000000000000000000000000000000000000..dba6d6f973f3f3fbf955a699bc5ec7944479b886 Binary files /dev/null and b/assets/objects/_images/vomp/container_a03.png differ diff --git a/assets/objects/_images/vomp/container_a04.png b/assets/objects/_images/vomp/container_a04.png new file mode 100644 index 0000000000000000000000000000000000000000..ae180f2e9a224786bdce6605dbdfe10bc803ce55 Binary files /dev/null and b/assets/objects/_images/vomp/container_a04.png differ diff --git a/assets/objects/_images/vomp/container_b02.png b/assets/objects/_images/vomp/container_b02.png new file mode 100644 index 0000000000000000000000000000000000000000..006726d1c4df38e699893be15704536341e97afa Binary files /dev/null and b/assets/objects/_images/vomp/container_b02.png differ diff --git a/assets/objects/_images/vomp/container_b03.png b/assets/objects/_images/vomp/container_b03.png new file mode 100644 index 0000000000000000000000000000000000000000..4b67b9494affae2535993641d3b763ec30b7342d Binary files /dev/null and b/assets/objects/_images/vomp/container_b03.png differ diff --git a/assets/objects/_images/vomp/container_b04.png b/assets/objects/_images/vomp/container_b04.png new file mode 100644 index 0000000000000000000000000000000000000000..38aa83e9434152b8170cdc96f0547680f5f11ad6 Binary files /dev/null and b/assets/objects/_images/vomp/container_b04.png differ diff --git a/assets/objects/_images/vomp/container_b05.png b/assets/objects/_images/vomp/container_b05.png new file mode 100644 index 0000000000000000000000000000000000000000..c3ceafc287150aa0d6f1747557def99068ec20ac Binary files /dev/null and b/assets/objects/_images/vomp/container_b05.png differ diff --git a/assets/objects/_images/vomp/container_b06.png b/assets/objects/_images/vomp/container_b06.png new file mode 100644 index 0000000000000000000000000000000000000000..ea728b735838f84bded1693d6cfdd3066b21feff Binary files /dev/null and b/assets/objects/_images/vomp/container_b06.png differ diff --git a/assets/objects/_images/vomp/container_b07.png b/assets/objects/_images/vomp/container_b07.png new file mode 100644 index 0000000000000000000000000000000000000000..147d2ff777b247ef26cfa6a4e442155b4384cff5 Binary files /dev/null and b/assets/objects/_images/vomp/container_b07.png differ diff --git a/assets/objects/_images/vomp/container_b08.png b/assets/objects/_images/vomp/container_b08.png new file mode 100644 index 0000000000000000000000000000000000000000..f17f19c54e195857d6fa3661d6b1c26787e789c8 Binary files /dev/null and b/assets/objects/_images/vomp/container_b08.png differ diff --git a/assets/objects/_images/vomp/container_b09.png b/assets/objects/_images/vomp/container_b09.png new file mode 100644 index 0000000000000000000000000000000000000000..3ee7b200770612cba0a3a683d28778d400c8f55b Binary files /dev/null and b/assets/objects/_images/vomp/container_b09.png differ diff --git a/assets/objects/_images/vomp/container_b10.png b/assets/objects/_images/vomp/container_b10.png new file mode 100644 index 0000000000000000000000000000000000000000..46870f7c8b19b11a43634778667fd9c7b8e76bb0 Binary files /dev/null and b/assets/objects/_images/vomp/container_b10.png differ diff --git a/assets/objects/_images/vomp/container_b11.png b/assets/objects/_images/vomp/container_b11.png new file mode 100644 index 0000000000000000000000000000000000000000..7db84c3bc29b23bc9e11b0ccd62155bec1c15fa8 Binary files /dev/null and b/assets/objects/_images/vomp/container_b11.png differ diff --git a/assets/objects/_images/vomp/container_b12.png b/assets/objects/_images/vomp/container_b12.png new file mode 100644 index 0000000000000000000000000000000000000000..ec8d460d90a3d614472abbd55aea2267cecf3ebb Binary files /dev/null and b/assets/objects/_images/vomp/container_b12.png differ diff --git a/assets/objects/_images/vomp/container_b13.png b/assets/objects/_images/vomp/container_b13.png new file mode 100644 index 0000000000000000000000000000000000000000..efaccdcc685a58b04b8b06fea056bcea20a6dd8f Binary files /dev/null and b/assets/objects/_images/vomp/container_b13.png differ diff --git a/assets/objects/_images/vomp/container_b14.png b/assets/objects/_images/vomp/container_b14.png new file mode 100644 index 0000000000000000000000000000000000000000..222a52ebe011530015d354122f5b8a7fe9bfd266 Binary files /dev/null and b/assets/objects/_images/vomp/container_b14.png differ diff --git a/assets/objects/_images/vomp/container_b15.png b/assets/objects/_images/vomp/container_b15.png new file mode 100644 index 0000000000000000000000000000000000000000..c7b47449b4dd27ea224bd19bec98d8b1704db92b Binary files /dev/null and b/assets/objects/_images/vomp/container_b15.png differ diff --git a/assets/objects/_images/vomp/container_b16.png b/assets/objects/_images/vomp/container_b16.png new file mode 100644 index 0000000000000000000000000000000000000000..558de238d535722ce4f51cee41b7271bb019c7df Binary files /dev/null and b/assets/objects/_images/vomp/container_b16.png differ diff --git a/assets/objects/_images/vomp/container_b17.png b/assets/objects/_images/vomp/container_b17.png new file mode 100644 index 0000000000000000000000000000000000000000..ddb50c6c91dff18291629c55f8f2938aff04bbf0 Binary files /dev/null and b/assets/objects/_images/vomp/container_b17.png differ diff --git a/assets/objects/_images/vomp/container_b18.png b/assets/objects/_images/vomp/container_b18.png new file mode 100644 index 0000000000000000000000000000000000000000..dd6deb577b3a7d56b82753a5957e13fcb126fdef Binary files /dev/null and b/assets/objects/_images/vomp/container_b18.png differ diff --git a/assets/objects/_images/vomp/container_c01.png b/assets/objects/_images/vomp/container_c01.png new file mode 100644 index 0000000000000000000000000000000000000000..2f332d2d50ec7ec26b6ef3da80c0836273d4dcc3 Binary files /dev/null and b/assets/objects/_images/vomp/container_c01.png differ diff --git a/assets/objects/_images/vomp/container_c02.png b/assets/objects/_images/vomp/container_c02.png new file mode 100644 index 0000000000000000000000000000000000000000..1371ca9736fcfcf076ee67eaf5ad0ef64a2ed6b8 Binary files /dev/null and b/assets/objects/_images/vomp/container_c02.png differ diff --git a/assets/objects/_images/vomp/container_c03.png b/assets/objects/_images/vomp/container_c03.png new file mode 100644 index 0000000000000000000000000000000000000000..1052368c82d5f4f41f3f784558cbcac509b75cb0 Binary files /dev/null and b/assets/objects/_images/vomp/container_c03.png differ diff --git a/assets/objects/_images/vomp/container_c04.png b/assets/objects/_images/vomp/container_c04.png new file mode 100644 index 0000000000000000000000000000000000000000..a52035edfba3772c59c0ba26da16f6cf40b8874c Binary files /dev/null and b/assets/objects/_images/vomp/container_c04.png differ diff --git a/assets/objects/_images/vomp/container_c05.png b/assets/objects/_images/vomp/container_c05.png new file mode 100644 index 0000000000000000000000000000000000000000..a1b9b54c6980e2da699309ddb424e7088684d895 Binary files /dev/null and b/assets/objects/_images/vomp/container_c05.png differ diff --git a/assets/objects/_images/vomp/container_c06.png b/assets/objects/_images/vomp/container_c06.png new file mode 100644 index 0000000000000000000000000000000000000000..794e4ffbd6667f7a51c3784b0069758b304a2f19 Binary files /dev/null and b/assets/objects/_images/vomp/container_c06.png differ diff --git a/assets/objects/_images/vomp/container_c07.png b/assets/objects/_images/vomp/container_c07.png new file mode 100644 index 0000000000000000000000000000000000000000..e764ad3c99053077df7ea51bfd323ab1feb883c3 Binary files /dev/null and b/assets/objects/_images/vomp/container_c07.png differ diff --git a/assets/objects/_images/vomp/container_c08.png b/assets/objects/_images/vomp/container_c08.png new file mode 100644 index 0000000000000000000000000000000000000000..c203576f1f1aa29c50b4e9ad56c7024754b15714 Binary files /dev/null and b/assets/objects/_images/vomp/container_c08.png differ diff --git a/assets/objects/_images/vomp/container_c09.png b/assets/objects/_images/vomp/container_c09.png new file mode 100644 index 0000000000000000000000000000000000000000..d8e0cc4cd87f45342d3a26d67008f854f033789d Binary files /dev/null and b/assets/objects/_images/vomp/container_c09.png differ diff --git a/assets/objects/_images/vomp/container_c10.png b/assets/objects/_images/vomp/container_c10.png new file mode 100644 index 0000000000000000000000000000000000000000..4a1aec0490be63ea95855b7991f6ec94823b30bc Binary files /dev/null and b/assets/objects/_images/vomp/container_c10.png differ diff --git a/assets/objects/_images/vomp/container_c11.png b/assets/objects/_images/vomp/container_c11.png new file mode 100644 index 0000000000000000000000000000000000000000..7f4ab0735a698c29551164272abe8c2c24aa3d76 Binary files /dev/null and b/assets/objects/_images/vomp/container_c11.png differ diff --git a/assets/objects/_images/vomp/container_c12.png b/assets/objects/_images/vomp/container_c12.png new file mode 100644 index 0000000000000000000000000000000000000000..06fac708ad5d791e04ead4b75a2fdfe98601cd7d Binary files /dev/null and b/assets/objects/_images/vomp/container_c12.png differ diff --git a/assets/objects/_images/vomp/container_c13.png b/assets/objects/_images/vomp/container_c13.png new file mode 100644 index 0000000000000000000000000000000000000000..9b79e26b27c5c7e8ffa8acd31351db9937d1fc56 Binary files /dev/null and b/assets/objects/_images/vomp/container_c13.png differ diff --git a/assets/objects/_images/vomp/container_c14.png b/assets/objects/_images/vomp/container_c14.png new file mode 100644 index 0000000000000000000000000000000000000000..ee3219b2082592aeace335e9600de9860a748738 Binary files /dev/null and b/assets/objects/_images/vomp/container_c14.png differ diff --git a/assets/objects/_images/vomp/container_c15.png b/assets/objects/_images/vomp/container_c15.png new file mode 100644 index 0000000000000000000000000000000000000000..8729bcf60932e071a6765a3b13f0f6859233c979 Binary files /dev/null and b/assets/objects/_images/vomp/container_c15.png differ diff --git a/assets/objects/_images/vomp/container_c16.png b/assets/objects/_images/vomp/container_c16.png new file mode 100644 index 0000000000000000000000000000000000000000..e9917c19e733ebb4f7b82de5c8c063c87e68848b Binary files /dev/null and b/assets/objects/_images/vomp/container_c16.png differ diff --git a/assets/objects/_images/vomp/container_c17.png b/assets/objects/_images/vomp/container_c17.png new file mode 100644 index 0000000000000000000000000000000000000000..8f90bf26830d2ee277fc3e4018a1d3e3775a8c15 Binary files /dev/null and b/assets/objects/_images/vomp/container_c17.png differ diff --git a/assets/objects/_images/vomp/container_c18.png b/assets/objects/_images/vomp/container_c18.png new file mode 100644 index 0000000000000000000000000000000000000000..0316fac03027cf3607e88f6eef385f1aead0b18d Binary files /dev/null and b/assets/objects/_images/vomp/container_c18.png differ diff --git a/assets/objects/_images/vomp/container_c20.png b/assets/objects/_images/vomp/container_c20.png new file mode 100644 index 0000000000000000000000000000000000000000..4c00b4eec0b5d17286ecb4ef72a8370ee90d930d Binary files /dev/null and b/assets/objects/_images/vomp/container_c20.png differ diff --git a/assets/objects/_images/vomp/container_c21.png b/assets/objects/_images/vomp/container_c21.png new file mode 100644 index 0000000000000000000000000000000000000000..0b08cd9052f11aa4d748aacc20b6d22635df51d3 Binary files /dev/null and b/assets/objects/_images/vomp/container_c21.png differ diff --git a/assets/objects/_images/vomp/container_c22.png b/assets/objects/_images/vomp/container_c22.png new file mode 100644 index 0000000000000000000000000000000000000000..2a3144302dafe460d9206ab30aece802d3a4d2d0 Binary files /dev/null and b/assets/objects/_images/vomp/container_c22.png differ diff --git a/assets/objects/_images/vomp/container_c23.png b/assets/objects/_images/vomp/container_c23.png new file mode 100644 index 0000000000000000000000000000000000000000..f02b44f47eeaae1e5423f6861feda2f1dece4f32 Binary files /dev/null and b/assets/objects/_images/vomp/container_c23.png differ diff --git a/assets/objects/_images/vomp/container_c24.png b/assets/objects/_images/vomp/container_c24.png new file mode 100644 index 0000000000000000000000000000000000000000..ffdb149820bb69acfb9e30ac29e9b391fca8c078 Binary files /dev/null and b/assets/objects/_images/vomp/container_c24.png differ diff --git a/assets/objects/_images/vomp/container_d01.png b/assets/objects/_images/vomp/container_d01.png new file mode 100644 index 0000000000000000000000000000000000000000..5907e61f05005aa2c9c5a1b5f96e54164f234804 Binary files /dev/null and b/assets/objects/_images/vomp/container_d01.png differ diff --git a/assets/objects/_images/vomp/container_d02.png b/assets/objects/_images/vomp/container_d02.png new file mode 100644 index 0000000000000000000000000000000000000000..a6c63fe83f67a8b0648d071f2bc246ae82c47c02 Binary files /dev/null and b/assets/objects/_images/vomp/container_d02.png differ diff --git a/assets/objects/_images/vomp/container_d03.png b/assets/objects/_images/vomp/container_d03.png new file mode 100644 index 0000000000000000000000000000000000000000..244247979f8341d0df52eb24962d185af8622658 Binary files /dev/null and b/assets/objects/_images/vomp/container_d03.png differ diff --git a/assets/objects/_images/vomp/container_d04.png b/assets/objects/_images/vomp/container_d04.png new file mode 100644 index 0000000000000000000000000000000000000000..d425063c258bfa60ef1bc9451792e81c68b96378 Binary files /dev/null and b/assets/objects/_images/vomp/container_d04.png differ diff --git a/assets/objects/_images/vomp/container_d05.png b/assets/objects/_images/vomp/container_d05.png new file mode 100644 index 0000000000000000000000000000000000000000..49c7baf1afaef1c3be1e8a4c55b992702abc8b9e Binary files /dev/null and b/assets/objects/_images/vomp/container_d05.png differ diff --git a/assets/objects/_images/vomp/container_d06.png b/assets/objects/_images/vomp/container_d06.png new file mode 100644 index 0000000000000000000000000000000000000000..916234a4f6317556ca19afb8858019217db0ea4e Binary files /dev/null and b/assets/objects/_images/vomp/container_d06.png differ diff --git a/assets/objects/_images/vomp/container_d07.png b/assets/objects/_images/vomp/container_d07.png new file mode 100644 index 0000000000000000000000000000000000000000..8097f2ae17ca755e90c2240def6b70d48c73498d Binary files /dev/null and b/assets/objects/_images/vomp/container_d07.png differ diff --git a/assets/objects/_images/vomp/container_d08.png b/assets/objects/_images/vomp/container_d08.png new file mode 100644 index 0000000000000000000000000000000000000000..3e8cb26a8332552c35e0135d94d531afb61beccf Binary files /dev/null and b/assets/objects/_images/vomp/container_d08.png differ diff --git a/assets/objects/_images/vomp/container_d09.png b/assets/objects/_images/vomp/container_d09.png new file mode 100644 index 0000000000000000000000000000000000000000..9ed4f23615492fd67e36ae89914f746fcee44387 Binary files /dev/null and b/assets/objects/_images/vomp/container_d09.png differ diff --git a/assets/objects/_images/vomp/container_e01.png b/assets/objects/_images/vomp/container_e01.png new file mode 100644 index 0000000000000000000000000000000000000000..e2a15f7fe585f8ae8f861160dcce6a1d2076387c Binary files /dev/null and b/assets/objects/_images/vomp/container_e01.png differ diff --git a/assets/objects/_images/vomp/container_e02.png b/assets/objects/_images/vomp/container_e02.png new file mode 100644 index 0000000000000000000000000000000000000000..3caf95ca66bdbc20b9ddb464b687daed050359f0 Binary files /dev/null and b/assets/objects/_images/vomp/container_e02.png differ diff --git a/assets/objects/_images/vomp/container_e03.png b/assets/objects/_images/vomp/container_e03.png new file mode 100644 index 0000000000000000000000000000000000000000..b5db0a6f272c9175fa949f666a604118c6f1a628 Binary files /dev/null and b/assets/objects/_images/vomp/container_e03.png differ diff --git a/assets/objects/_images/vomp/container_e04.png b/assets/objects/_images/vomp/container_e04.png new file mode 100644 index 0000000000000000000000000000000000000000..420624ad19405942f07d7943ba17cf51e1dc9b85 Binary files /dev/null and b/assets/objects/_images/vomp/container_e04.png differ diff --git a/assets/objects/_images/vomp/container_e05.png b/assets/objects/_images/vomp/container_e05.png new file mode 100644 index 0000000000000000000000000000000000000000..8f441d4459ad4fedba9113d3807705ff4ba8866d Binary files /dev/null and b/assets/objects/_images/vomp/container_e05.png differ diff --git a/assets/objects/_images/vomp/container_e06.png b/assets/objects/_images/vomp/container_e06.png new file mode 100644 index 0000000000000000000000000000000000000000..9c4f1df21315bb32a9a11295ad433888804170b7 Binary files /dev/null and b/assets/objects/_images/vomp/container_e06.png differ diff --git a/assets/objects/_images/vomp/container_f03.png b/assets/objects/_images/vomp/container_f03.png new file mode 100644 index 0000000000000000000000000000000000000000..74c410bfdcfe95678f0f642dba41ecb4cb14d834 Binary files /dev/null and b/assets/objects/_images/vomp/container_f03.png differ diff --git a/assets/objects/_images/vomp/container_f04.png b/assets/objects/_images/vomp/container_f04.png new file mode 100644 index 0000000000000000000000000000000000000000..9d42c4b2e75ae475d055fcab2c8074b670da0fe0 Binary files /dev/null and b/assets/objects/_images/vomp/container_f04.png differ diff --git a/assets/objects/_images/vomp/container_f05.png b/assets/objects/_images/vomp/container_f05.png new file mode 100644 index 0000000000000000000000000000000000000000..791ff4e20054975b535d274c3b499976f46c488a Binary files /dev/null and b/assets/objects/_images/vomp/container_f05.png differ diff --git a/assets/objects/_images/vomp/container_f08.png b/assets/objects/_images/vomp/container_f08.png new file mode 100644 index 0000000000000000000000000000000000000000..b70c7665a73093ab9a921c601207085a2a721fe2 Binary files /dev/null and b/assets/objects/_images/vomp/container_f08.png differ diff --git a/assets/objects/_images/vomp/container_f09.png b/assets/objects/_images/vomp/container_f09.png new file mode 100644 index 0000000000000000000000000000000000000000..012c5b4c1bb55ce8217c9c7ad1209d4ef285106f Binary files /dev/null and b/assets/objects/_images/vomp/container_f09.png differ diff --git a/assets/objects/_images/vomp/container_f10.png b/assets/objects/_images/vomp/container_f10.png new file mode 100644 index 0000000000000000000000000000000000000000..affa529eca59f5b63330f9bbe678769f63c3a74e Binary files /dev/null and b/assets/objects/_images/vomp/container_f10.png differ diff --git a/assets/objects/_images/vomp/container_f13.png b/assets/objects/_images/vomp/container_f13.png new file mode 100644 index 0000000000000000000000000000000000000000..27c57ab01dc3121a19b8c551ef8d8e97e1053b41 Binary files /dev/null and b/assets/objects/_images/vomp/container_f13.png differ diff --git a/assets/objects/_images/vomp/container_f14.png b/assets/objects/_images/vomp/container_f14.png new file mode 100644 index 0000000000000000000000000000000000000000..d5ebcd92d08cb44090a9c7dad62ea8be40462dc8 Binary files /dev/null and b/assets/objects/_images/vomp/container_f14.png differ diff --git a/assets/objects/_images/vomp/container_f15.png b/assets/objects/_images/vomp/container_f15.png new file mode 100644 index 0000000000000000000000000000000000000000..8802521a01074d4c66a73abe1c0c382274dd2a90 Binary files /dev/null and b/assets/objects/_images/vomp/container_f15.png differ diff --git a/assets/objects/_images/vomp/container_f16.png b/assets/objects/_images/vomp/container_f16.png new file mode 100644 index 0000000000000000000000000000000000000000..b09102503633a82663ace365d198eb0f93d8ef48 Binary files /dev/null and b/assets/objects/_images/vomp/container_f16.png differ diff --git a/assets/objects/_images/vomp/container_f17.png b/assets/objects/_images/vomp/container_f17.png new file mode 100644 index 0000000000000000000000000000000000000000..0cc294b82983cca93869a5de371fc046e2404138 Binary files /dev/null and b/assets/objects/_images/vomp/container_f17.png differ diff --git a/assets/objects/_images/vomp/container_f18.png b/assets/objects/_images/vomp/container_f18.png new file mode 100644 index 0000000000000000000000000000000000000000..545be43060723588ecedc4216ccd9c098e05c254 Binary files /dev/null and b/assets/objects/_images/vomp/container_f18.png differ diff --git a/assets/objects/_images/vomp/container_f20.png b/assets/objects/_images/vomp/container_f20.png new file mode 100644 index 0000000000000000000000000000000000000000..60088dd5dfe6a3b8bb3b36cf890465780e812391 Binary files /dev/null and b/assets/objects/_images/vomp/container_f20.png differ diff --git a/assets/objects/_images/vomp/container_f21.png b/assets/objects/_images/vomp/container_f21.png new file mode 100644 index 0000000000000000000000000000000000000000..92a300a4cb5a3c70999af3c1e8b5dc6ec163576f Binary files /dev/null and b/assets/objects/_images/vomp/container_f21.png differ diff --git a/assets/objects/_images/vomp/container_f23.png b/assets/objects/_images/vomp/container_f23.png new file mode 100644 index 0000000000000000000000000000000000000000..6187e58b0a7532aaaf73af9f43ac52faaaf1ac5c Binary files /dev/null and b/assets/objects/_images/vomp/container_f23.png differ diff --git a/assets/objects/_images/vomp/container_f24.png b/assets/objects/_images/vomp/container_f24.png new file mode 100644 index 0000000000000000000000000000000000000000..414418ca7db60bdd4c38a28dfb4a09a60b9cd3f6 Binary files /dev/null and b/assets/objects/_images/vomp/container_f24.png differ diff --git a/assets/objects/_images/vomp/container_f26.png b/assets/objects/_images/vomp/container_f26.png new file mode 100644 index 0000000000000000000000000000000000000000..f9cc709ab1cb47d9317e9b37a60b2c8a041ff886 Binary files /dev/null and b/assets/objects/_images/vomp/container_f26.png differ diff --git a/assets/objects/_images/vomp/crabbypenholder.png b/assets/objects/_images/vomp/crabbypenholder.png new file mode 100644 index 0000000000000000000000000000000000000000..00ab18d0113c36599e6bcdd3276aa15a419d557a Binary files /dev/null and b/assets/objects/_images/vomp/crabbypenholder.png differ diff --git a/assets/objects/_images/vomp/cubebox_a02.png b/assets/objects/_images/vomp/cubebox_a02.png new file mode 100644 index 0000000000000000000000000000000000000000..14c930c25e48b8c7a79fbee43f85bd5cfe37d743 Binary files /dev/null and b/assets/objects/_images/vomp/cubebox_a02.png differ diff --git a/assets/objects/_images/vomp/cutting_board_a.png b/assets/objects/_images/vomp/cutting_board_a.png new file mode 100644 index 0000000000000000000000000000000000000000..8633eb126261106677cd796b472e45270277ddeb Binary files /dev/null and b/assets/objects/_images/vomp/cutting_board_a.png differ diff --git a/assets/objects/_images/vomp/fork_big.png b/assets/objects/_images/vomp/fork_big.png new file mode 100644 index 0000000000000000000000000000000000000000..330bee35758d1cf731c046923dd40b9eed80b405 Binary files /dev/null and b/assets/objects/_images/vomp/fork_big.png differ diff --git a/assets/objects/_images/vomp/fork_small.png b/assets/objects/_images/vomp/fork_small.png new file mode 100644 index 0000000000000000000000000000000000000000..b64aaae07d4a13b6bb2721acd81379978e4c0f33 Binary files /dev/null and b/assets/objects/_images/vomp/fork_small.png differ diff --git a/assets/objects/_images/vomp/gardenplanter_large.png b/assets/objects/_images/vomp/gardenplanter_large.png new file mode 100644 index 0000000000000000000000000000000000000000..7e0802890b5acc5af1372899490348c77a9a46d9 Binary files /dev/null and b/assets/objects/_images/vomp/gardenplanter_large.png differ diff --git a/assets/objects/_images/vomp/gardenplanter_medium.png b/assets/objects/_images/vomp/gardenplanter_medium.png new file mode 100644 index 0000000000000000000000000000000000000000..e75e700f6aa508ce7ce0ae905f9122aa8a6442bb Binary files /dev/null and b/assets/objects/_images/vomp/gardenplanter_medium.png differ diff --git a/assets/objects/_images/vomp/gardenplanter_small.png b/assets/objects/_images/vomp/gardenplanter_small.png new file mode 100644 index 0000000000000000000000000000000000000000..261c96633b5697da3e1153fb178d21baa8f6b294 Binary files /dev/null and b/assets/objects/_images/vomp/gardenplanter_small.png differ diff --git a/assets/objects/_images/vomp/heavydutysteelshelving_a01.png b/assets/objects/_images/vomp/heavydutysteelshelving_a01.png new file mode 100644 index 0000000000000000000000000000000000000000..bd6476d627dae77ffa39a0fb2e72ddc0d7839706 Binary files /dev/null and b/assets/objects/_images/vomp/heavydutysteelshelving_a01.png differ diff --git a/assets/objects/_images/vomp/lemon_01.png b/assets/objects/_images/vomp/lemon_01.png new file mode 100644 index 0000000000000000000000000000000000000000..757b59fefe383bb6dd53a45e4c9f05f030d5472e Binary files /dev/null and b/assets/objects/_images/vomp/lemon_01.png differ diff --git a/assets/objects/_images/vomp/lemon_02.png b/assets/objects/_images/vomp/lemon_02.png new file mode 100644 index 0000000000000000000000000000000000000000..da245004df21110dc79c9ee5e5e03bccf0dc0cfb Binary files /dev/null and b/assets/objects/_images/vomp/lemon_02.png differ diff --git a/assets/objects/_images/vomp/lime01.png b/assets/objects/_images/vomp/lime01.png new file mode 100644 index 0000000000000000000000000000000000000000..b5a62cfef81115023b5ed16e1db73046c11f158a Binary files /dev/null and b/assets/objects/_images/vomp/lime01.png differ diff --git a/assets/objects/_images/vomp/liquidscrewtoppail_a01.png b/assets/objects/_images/vomp/liquidscrewtoppail_a01.png new file mode 100644 index 0000000000000000000000000000000000000000..5b28ad4cd623dba38e868b9326b0b040ffe8e2d1 Binary files /dev/null and b/assets/objects/_images/vomp/liquidscrewtoppail_a01.png differ diff --git a/assets/objects/_images/vomp/liquidscrewtoppail_a02.png b/assets/objects/_images/vomp/liquidscrewtoppail_a02.png new file mode 100644 index 0000000000000000000000000000000000000000..e3d21906c18ed2df7fd80501d2172b594db19cc8 Binary files /dev/null and b/assets/objects/_images/vomp/liquidscrewtoppail_a02.png differ diff --git a/assets/objects/_images/vomp/lychee01.png b/assets/objects/_images/vomp/lychee01.png new file mode 100644 index 0000000000000000000000000000000000000000..40611eca7d48638772d3db0b9d451e8500a1c2ec Binary files /dev/null and b/assets/objects/_images/vomp/lychee01.png differ diff --git a/assets/objects/_images/vomp/metalfstylecan_a01.png b/assets/objects/_images/vomp/metalfstylecan_a01.png new file mode 100644 index 0000000000000000000000000000000000000000..63dc877e032f64b2491718cce69a88b922a3cc45 Binary files /dev/null and b/assets/objects/_images/vomp/metalfstylecan_a01.png differ diff --git a/assets/objects/_images/vomp/milkjug_a01.png b/assets/objects/_images/vomp/milkjug_a01.png new file mode 100644 index 0000000000000000000000000000000000000000..d7ba6a12b00c45e939937cbd095e28fc319e7301 Binary files /dev/null and b/assets/objects/_images/vomp/milkjug_a01.png differ diff --git a/assets/objects/_images/vomp/milkjug_a02.png b/assets/objects/_images/vomp/milkjug_a02.png new file mode 100644 index 0000000000000000000000000000000000000000..680d2dc4c73587eec712535ac49daa664206d92b Binary files /dev/null and b/assets/objects/_images/vomp/milkjug_a02.png differ diff --git a/assets/objects/_images/vomp/milkjug_a03.png b/assets/objects/_images/vomp/milkjug_a03.png new file mode 100644 index 0000000000000000000000000000000000000000..a2dd2f7be0184486b68d746d4cab766b0818d4e1 Binary files /dev/null and b/assets/objects/_images/vomp/milkjug_a03.png differ diff --git a/assets/objects/_images/vomp/moppingbucket_b01.png b/assets/objects/_images/vomp/moppingbucket_b01.png new file mode 100644 index 0000000000000000000000000000000000000000..dcb70a7bed812c2baaae39cacb700e48e6232a7e Binary files /dev/null and b/assets/objects/_images/vomp/moppingbucket_b01.png differ diff --git a/assets/objects/_images/vomp/naturalbostonroundbottle_a01.png b/assets/objects/_images/vomp/naturalbostonroundbottle_a01.png new file mode 100644 index 0000000000000000000000000000000000000000..a595449ac71f4ea541a8c54f7bcd1c2b46638c59 Binary files /dev/null and b/assets/objects/_images/vomp/naturalbostonroundbottle_a01.png differ diff --git a/assets/objects/_images/vomp/naturalbostonroundbottle_a02.png b/assets/objects/_images/vomp/naturalbostonroundbottle_a02.png new file mode 100644 index 0000000000000000000000000000000000000000..c365aedc6350a4fcf9e9b2c7212a999e71b96a2f Binary files /dev/null and b/assets/objects/_images/vomp/naturalbostonroundbottle_a02.png differ diff --git a/assets/objects/_images/vomp/naturalbostonroundbottle_a03.png b/assets/objects/_images/vomp/naturalbostonroundbottle_a03.png new file mode 100644 index 0000000000000000000000000000000000000000..cfe1827b0a4ceeecd98cd4fe191017fab448476d Binary files /dev/null and b/assets/objects/_images/vomp/naturalbostonroundbottle_a03.png differ diff --git a/assets/objects/_images/vomp/orange_01.png b/assets/objects/_images/vomp/orange_01.png new file mode 100644 index 0000000000000000000000000000000000000000..a78ab58b68a3da4419badfb12b8064d106493a68 Binary files /dev/null and b/assets/objects/_images/vomp/orange_01.png differ diff --git a/assets/objects/_images/vomp/orange_02.png b/assets/objects/_images/vomp/orange_02.png new file mode 100644 index 0000000000000000000000000000000000000000..8b43b5aa9e65891122a50a5c9b28db71b7706f00 Binary files /dev/null and b/assets/objects/_images/vomp/orange_02.png differ diff --git a/assets/objects/_images/vomp/plasticjerrican_a.png b/assets/objects/_images/vomp/plasticjerrican_a.png new file mode 100644 index 0000000000000000000000000000000000000000..506e5ecbf0706f62002a2324c9f6cc41b169d0c4 Binary files /dev/null and b/assets/objects/_images/vomp/plasticjerrican_a.png differ diff --git a/assets/objects/_images/vomp/plasticjerrican_a01.png b/assets/objects/_images/vomp/plasticjerrican_a01.png new file mode 100644 index 0000000000000000000000000000000000000000..4eb9e73ca6b91b517142849065775d7ca9f290bf Binary files /dev/null and b/assets/objects/_images/vomp/plasticjerrican_a01.png differ diff --git a/assets/objects/_images/vomp/plasticjerrican_a02.png b/assets/objects/_images/vomp/plasticjerrican_a02.png new file mode 100644 index 0000000000000000000000000000000000000000..610e08b653b3240dea1423190525144d221af02d Binary files /dev/null and b/assets/objects/_images/vomp/plasticjerrican_a02.png differ diff --git a/assets/objects/_images/vomp/plasticjerrican_a03.png b/assets/objects/_images/vomp/plasticjerrican_a03.png new file mode 100644 index 0000000000000000000000000000000000000000..bbf42d6f88bc95c60bb0e7ae18cf172a4b2a273b Binary files /dev/null and b/assets/objects/_images/vomp/plasticjerrican_a03.png differ diff --git a/assets/objects/_images/vomp/plasticjerrican_a04.png b/assets/objects/_images/vomp/plasticjerrican_a04.png new file mode 100644 index 0000000000000000000000000000000000000000..8a10b917c13c54d70639f511e983351153a9c69f Binary files /dev/null and b/assets/objects/_images/vomp/plasticjerrican_a04.png differ diff --git a/assets/objects/_images/vomp/plasticpail_a01.png b/assets/objects/_images/vomp/plasticpail_a01.png new file mode 100644 index 0000000000000000000000000000000000000000..dca8bcbbfc641f6cbd977b61117169891aa86d67 Binary files /dev/null and b/assets/objects/_images/vomp/plasticpail_a01.png differ diff --git a/assets/objects/_images/vomp/plasticpail_a02.png b/assets/objects/_images/vomp/plasticpail_a02.png new file mode 100644 index 0000000000000000000000000000000000000000..0ab1acbd93d19e8a81bc8b1b2979747818ef67af Binary files /dev/null and b/assets/objects/_images/vomp/plasticpail_a02.png differ diff --git a/assets/objects/_images/vomp/plasticpail_a03.png b/assets/objects/_images/vomp/plasticpail_a03.png new file mode 100644 index 0000000000000000000000000000000000000000..82254fa6c5a04767226b9ee6300740df8739eac3 Binary files /dev/null and b/assets/objects/_images/vomp/plasticpail_a03.png differ diff --git a/assets/objects/_images/vomp/plasticpail_a04.png b/assets/objects/_images/vomp/plasticpail_a04.png new file mode 100644 index 0000000000000000000000000000000000000000..3819702a72ba6c67ce34884a82458ecba7287843 Binary files /dev/null and b/assets/objects/_images/vomp/plasticpail_a04.png differ diff --git a/assets/objects/_images/vomp/plate_large.png b/assets/objects/_images/vomp/plate_large.png new file mode 100644 index 0000000000000000000000000000000000000000..3dae4035cbdaaa70f460e61b8e51b35ebb4f8769 Binary files /dev/null and b/assets/objects/_images/vomp/plate_large.png differ diff --git a/assets/objects/_images/vomp/plate_small.png b/assets/objects/_images/vomp/plate_small.png new file mode 100644 index 0000000000000000000000000000000000000000..4b73cbea742edb85e165261583c89cd7c2fda56c Binary files /dev/null and b/assets/objects/_images/vomp/plate_small.png differ diff --git a/assets/objects/_images/vomp/pomegranate01.png b/assets/objects/_images/vomp/pomegranate01.png new file mode 100644 index 0000000000000000000000000000000000000000..76b46033c9cea3d1829e56fe97079364c0b09d4a Binary files /dev/null and b/assets/objects/_images/vomp/pomegranate01.png differ diff --git a/assets/objects/_images/vomp/pumpkinlarge.png b/assets/objects/_images/vomp/pumpkinlarge.png new file mode 100644 index 0000000000000000000000000000000000000000..128bdf48282b4033263cc2f54fbf396e602f6371 Binary files /dev/null and b/assets/objects/_images/vomp/pumpkinlarge.png differ diff --git a/assets/objects/_images/vomp/pumpkinsmall.png b/assets/objects/_images/vomp/pumpkinsmall.png new file mode 100644 index 0000000000000000000000000000000000000000..d27ec1df725b64dbeb65c831b02a6b284d44c479 Binary files /dev/null and b/assets/objects/_images/vomp/pumpkinsmall.png differ diff --git a/assets/objects/_images/vomp/rack_l04.png b/assets/objects/_images/vomp/rack_l04.png new file mode 100644 index 0000000000000000000000000000000000000000..c6dad54f7dd48840015faed2485cb359d113966c Binary files /dev/null and b/assets/objects/_images/vomp/rack_l04.png differ diff --git a/assets/objects/_images/vomp/redonion.png b/assets/objects/_images/vomp/redonion.png new file mode 100644 index 0000000000000000000000000000000000000000..a33aeeb411fa65a33d8ffb3abee5c4b7ff452275 Binary files /dev/null and b/assets/objects/_images/vomp/redonion.png differ diff --git a/assets/objects/_images/vomp/screwtoppail_a01.png b/assets/objects/_images/vomp/screwtoppail_a01.png new file mode 100644 index 0000000000000000000000000000000000000000..68c8f40e87a196143b3f174778be726c1c2ae5b3 Binary files /dev/null and b/assets/objects/_images/vomp/screwtoppail_a01.png differ diff --git a/assets/objects/_images/vomp/screwtoppail_a02.png b/assets/objects/_images/vomp/screwtoppail_a02.png new file mode 100644 index 0000000000000000000000000000000000000000..73b250320496491686076ff3ad071771bcf282b5 Binary files /dev/null and b/assets/objects/_images/vomp/screwtoppail_a02.png differ diff --git a/assets/objects/_images/vomp/screwtoppail_a03.png b/assets/objects/_images/vomp/screwtoppail_a03.png new file mode 100644 index 0000000000000000000000000000000000000000..9a3b7de5f91d29d421ecdff204c02f7acea97add Binary files /dev/null and b/assets/objects/_images/vomp/screwtoppail_a03.png differ diff --git a/assets/objects/_images/vomp/screwtoppail_a04.png b/assets/objects/_images/vomp/screwtoppail_a04.png new file mode 100644 index 0000000000000000000000000000000000000000..6efd51687f2ac0b79c9487e82b336ffec73bc443 Binary files /dev/null and b/assets/objects/_images/vomp/screwtoppail_a04.png differ diff --git a/assets/objects/_images/vomp/seahorn.png b/assets/objects/_images/vomp/seahorn.png new file mode 100644 index 0000000000000000000000000000000000000000..201540b7ad736bd67bc6848f260c52792f4eab9c Binary files /dev/null and b/assets/objects/_images/vomp/seahorn.png differ diff --git a/assets/objects/_images/vomp/serving_bowl.png b/assets/objects/_images/vomp/serving_bowl.png new file mode 100644 index 0000000000000000000000000000000000000000..f0694fcbd599757d48a8868da8d250f41246320c Binary files /dev/null and b/assets/objects/_images/vomp/serving_bowl.png differ diff --git a/assets/objects/_images/vomp/sm_rack_m01.png b/assets/objects/_images/vomp/sm_rack_m01.png new file mode 100644 index 0000000000000000000000000000000000000000..86031f5069c06a01c6cddb5d1a2e62068a986520 Binary files /dev/null and b/assets/objects/_images/vomp/sm_rack_m01.png differ diff --git a/assets/objects/_images/vomp/spatula_01.png b/assets/objects/_images/vomp/spatula_01.png new file mode 100644 index 0000000000000000000000000000000000000000..e67fdd430c1fc83e6ed041a3deccaa064eb0f7e9 Binary files /dev/null and b/assets/objects/_images/vomp/spatula_01.png differ diff --git a/assets/objects/_images/vomp/spatula_02.png b/assets/objects/_images/vomp/spatula_02.png new file mode 100644 index 0000000000000000000000000000000000000000..d8f6d1d7eb37767529a3e38e10b3eeb14e3a20b2 Binary files /dev/null and b/assets/objects/_images/vomp/spatula_02.png differ diff --git a/assets/objects/_images/vomp/spatula_03.png b/assets/objects/_images/vomp/spatula_03.png new file mode 100644 index 0000000000000000000000000000000000000000..ef90c711e024f83f9f8c81a2adef980fdb14f016 Binary files /dev/null and b/assets/objects/_images/vomp/spatula_03.png differ diff --git a/assets/objects/_images/vomp/spatula_04.png b/assets/objects/_images/vomp/spatula_04.png new file mode 100644 index 0000000000000000000000000000000000000000..b62e6545b6ef91db286705070c6c6bebf93456a4 Binary files /dev/null and b/assets/objects/_images/vomp/spatula_04.png differ diff --git a/assets/objects/_images/vomp/spatula_05.png b/assets/objects/_images/vomp/spatula_05.png new file mode 100644 index 0000000000000000000000000000000000000000..d7d85053b4e106acb160baa0b837c49fa3eb0386 Binary files /dev/null and b/assets/objects/_images/vomp/spatula_05.png differ diff --git a/assets/objects/_images/vomp/spatula_06.png b/assets/objects/_images/vomp/spatula_06.png new file mode 100644 index 0000000000000000000000000000000000000000..ea73ebdb499d5c407d80cb03a2a498208de6e505 Binary files /dev/null and b/assets/objects/_images/vomp/spatula_06.png differ diff --git a/assets/objects/_images/vomp/spatula_07.png b/assets/objects/_images/vomp/spatula_07.png new file mode 100644 index 0000000000000000000000000000000000000000..fef835d7fb14c8b08f56785fa11f4276167168fe Binary files /dev/null and b/assets/objects/_images/vomp/spatula_07.png differ diff --git a/assets/objects/_images/vomp/spatula_08.png b/assets/objects/_images/vomp/spatula_08.png new file mode 100644 index 0000000000000000000000000000000000000000..ee182fc61fa6db11bb6c7f6c54cc36f0f8482640 Binary files /dev/null and b/assets/objects/_images/vomp/spatula_08.png differ diff --git a/assets/objects/_images/vomp/spatula_09.png b/assets/objects/_images/vomp/spatula_09.png new file mode 100644 index 0000000000000000000000000000000000000000..43d41a387efb1b418372ab86bfe74066fdf5b0f2 Binary files /dev/null and b/assets/objects/_images/vomp/spatula_09.png differ diff --git a/assets/objects/_images/vomp/spatula_10.png b/assets/objects/_images/vomp/spatula_10.png new file mode 100644 index 0000000000000000000000000000000000000000..be53e72732c92649e4ac1b03c5d96342cce7fa91 Binary files /dev/null and b/assets/objects/_images/vomp/spatula_10.png differ diff --git a/assets/objects/_images/vomp/spatula_11.png b/assets/objects/_images/vomp/spatula_11.png new file mode 100644 index 0000000000000000000000000000000000000000..2f757f3a9f8130e0d670aaaffc5d75bc7936bec1 Binary files /dev/null and b/assets/objects/_images/vomp/spatula_11.png differ diff --git a/assets/objects/_images/vomp/spatula_12.png b/assets/objects/_images/vomp/spatula_12.png new file mode 100644 index 0000000000000000000000000000000000000000..a8bb1007ebc85aa676f24155d9b900d6e5530b94 Binary files /dev/null and b/assets/objects/_images/vomp/spatula_12.png differ diff --git a/assets/objects/_images/vomp/spatula_13.png b/assets/objects/_images/vomp/spatula_13.png new file mode 100644 index 0000000000000000000000000000000000000000..156e97e76eae177e1efeea61eb253233925347d3 Binary files /dev/null and b/assets/objects/_images/vomp/spatula_13.png differ diff --git a/assets/objects/_images/vomp/spatula_14.png b/assets/objects/_images/vomp/spatula_14.png new file mode 100644 index 0000000000000000000000000000000000000000..9de057088002e1f99685daa12ac9315ca9d8d693 Binary files /dev/null and b/assets/objects/_images/vomp/spatula_14.png differ diff --git a/assets/objects/_images/vomp/spatula_15.png b/assets/objects/_images/vomp/spatula_15.png new file mode 100644 index 0000000000000000000000000000000000000000..07cccabe6e5048c4b85fb3be62f881768767b794 Binary files /dev/null and b/assets/objects/_images/vomp/spatula_15.png differ diff --git a/assets/objects/_images/vomp/spatula_16.png b/assets/objects/_images/vomp/spatula_16.png new file mode 100644 index 0000000000000000000000000000000000000000..915d2912904fe6710029fb9cb594ff9ef346a613 Binary files /dev/null and b/assets/objects/_images/vomp/spatula_16.png differ diff --git a/assets/objects/_images/vomp/spatula_17.png b/assets/objects/_images/vomp/spatula_17.png new file mode 100644 index 0000000000000000000000000000000000000000..c85372ea977ccb080411f352f92e4300f3a1c196 Binary files /dev/null and b/assets/objects/_images/vomp/spatula_17.png differ diff --git a/assets/objects/_images/vomp/spatula_18.png b/assets/objects/_images/vomp/spatula_18.png new file mode 100644 index 0000000000000000000000000000000000000000..fde4f33aedc8d1828e155fa81410bbcee5bf171d Binary files /dev/null and b/assets/objects/_images/vomp/spatula_18.png differ diff --git a/assets/objects/_images/vomp/spatula_19.png b/assets/objects/_images/vomp/spatula_19.png new file mode 100644 index 0000000000000000000000000000000000000000..2798280c7b41aea788169fc6b712a8eaea3a5d51 Binary files /dev/null and b/assets/objects/_images/vomp/spatula_19.png differ diff --git a/assets/objects/_images/vomp/spoon_big.png b/assets/objects/_images/vomp/spoon_big.png new file mode 100644 index 0000000000000000000000000000000000000000..b034cd70499a7e52e89b7b6fd8f0981b71dd7d49 Binary files /dev/null and b/assets/objects/_images/vomp/spoon_big.png differ diff --git a/assets/objects/_images/vomp/spoon_small.png b/assets/objects/_images/vomp/spoon_small.png new file mode 100644 index 0000000000000000000000000000000000000000..0d0591fcfc2c3f11eb3ba978509ad1ac9eff8068 Binary files /dev/null and b/assets/objects/_images/vomp/spoon_small.png differ diff --git a/assets/objects/_images/vomp/squarepail_a01.png b/assets/objects/_images/vomp/squarepail_a01.png new file mode 100644 index 0000000000000000000000000000000000000000..7a5c57055636f145242bda0dcd663d01185db8a5 Binary files /dev/null and b/assets/objects/_images/vomp/squarepail_a01.png differ diff --git a/assets/objects/_images/vomp/squarepail_a02.png b/assets/objects/_images/vomp/squarepail_a02.png new file mode 100644 index 0000000000000000000000000000000000000000..b773ca469e463ca6b4a0f8305b4609ca6a841730 Binary files /dev/null and b/assets/objects/_images/vomp/squarepail_a02.png differ diff --git a/assets/objects/_images/vomp/utilitybucket_a01.png b/assets/objects/_images/vomp/utilitybucket_a01.png new file mode 100644 index 0000000000000000000000000000000000000000..8c8db8e79b7ced205b749c308a075909e18bef0a Binary files /dev/null and b/assets/objects/_images/vomp/utilitybucket_a01.png differ diff --git a/assets/objects/_images/vomp/utilitybucket_a02.png b/assets/objects/_images/vomp/utilitybucket_a02.png new file mode 100644 index 0000000000000000000000000000000000000000..f26aa8be5cead8db99751d16efb4e855db23a8ed Binary files /dev/null and b/assets/objects/_images/vomp/utilitybucket_a02.png differ diff --git a/assets/objects/_images/vomp/utilityjug_a01.png b/assets/objects/_images/vomp/utilityjug_a01.png new file mode 100644 index 0000000000000000000000000000000000000000..c1e8118180844dec92b8acaa5228a1d7888a0d11 Binary files /dev/null and b/assets/objects/_images/vomp/utilityjug_a01.png differ diff --git a/assets/objects/_images/vomp/utilityjug_a02.png b/assets/objects/_images/vomp/utilityjug_a02.png new file mode 100644 index 0000000000000000000000000000000000000000..9aecec83d38ca5c38af76c538cd3588a0e73b165 Binary files /dev/null and b/assets/objects/_images/vomp/utilityjug_a02.png differ diff --git a/assets/objects/_images/vomp/utilityjug_a03.png b/assets/objects/_images/vomp/utilityjug_a03.png new file mode 100644 index 0000000000000000000000000000000000000000..64d956da178d26b7aa099f5ccc1a8b674e47fe4b Binary files /dev/null and b/assets/objects/_images/vomp/utilityjug_a03.png differ diff --git a/assets/objects/_images/vomp/whitepackerbottle_a01.png b/assets/objects/_images/vomp/whitepackerbottle_a01.png new file mode 100644 index 0000000000000000000000000000000000000000..8b9ab1f7d1abb212de6581322ca76f7a62f594e8 Binary files /dev/null and b/assets/objects/_images/vomp/whitepackerbottle_a01.png differ diff --git a/assets/objects/_images/vomp/whitepackerbottle_a02.png b/assets/objects/_images/vomp/whitepackerbottle_a02.png new file mode 100644 index 0000000000000000000000000000000000000000..cfa44260eaccfe8b0d5576d4922be3c76b31265b Binary files /dev/null and b/assets/objects/_images/vomp/whitepackerbottle_a02.png differ diff --git a/assets/objects/_images/vomp/whitepackerbottle_a03.png b/assets/objects/_images/vomp/whitepackerbottle_a03.png new file mode 100644 index 0000000000000000000000000000000000000000..c36b32863edcb380c147f278424c9f4a9623160d Binary files /dev/null and b/assets/objects/_images/vomp/whitepackerbottle_a03.png differ diff --git a/assets/objects/_images/vomp/whitepackerbottle_a04.png b/assets/objects/_images/vomp/whitepackerbottle_a04.png new file mode 100644 index 0000000000000000000000000000000000000000..5c5815bceb7aee491be7c033638d2bb18849dd75 Binary files /dev/null and b/assets/objects/_images/vomp/whitepackerbottle_a04.png differ diff --git a/assets/objects/_images/vomp/wireshelving_a01.png b/assets/objects/_images/vomp/wireshelving_a01.png new file mode 100644 index 0000000000000000000000000000000000000000..8c5ee59b6d5d247d4a26ffcf74d6c4122cfb124e Binary files /dev/null and b/assets/objects/_images/vomp/wireshelving_a01.png differ diff --git a/assets/objects/_images/ycb/banana.png b/assets/objects/_images/ycb/banana.png new file mode 100644 index 0000000000000000000000000000000000000000..3cdf20a2caebc7ac7939a2be816e26bb3fdb1117 Binary files /dev/null and b/assets/objects/_images/ycb/banana.png differ diff --git a/assets/objects/_images/ycb/bowl.png b/assets/objects/_images/ycb/bowl.png new file mode 100644 index 0000000000000000000000000000000000000000..50d46d934a9e73f18a8b5d6fe1bcc36c664aae56 Binary files /dev/null and b/assets/objects/_images/ycb/bowl.png differ diff --git a/assets/objects/_images/ycb/brick.png b/assets/objects/_images/ycb/brick.png new file mode 100644 index 0000000000000000000000000000000000000000..421e3c5c2b6fae993503c06f49ea71483be6e21d Binary files /dev/null and b/assets/objects/_images/ycb/brick.png differ diff --git a/assets/objects/_images/ycb/cheez_it.png b/assets/objects/_images/ycb/cheez_it.png new file mode 100644 index 0000000000000000000000000000000000000000..5cc10e8f2672a89451de6b7b153ce62599e03fb4 Binary files /dev/null and b/assets/objects/_images/ycb/cheez_it.png differ diff --git a/assets/objects/_images/ycb/chocolate_pudding.png b/assets/objects/_images/ycb/chocolate_pudding.png new file mode 100644 index 0000000000000000000000000000000000000000..88072d0d9180c63da93d7cbf6459497d531d3bce Binary files /dev/null and b/assets/objects/_images/ycb/chocolate_pudding.png differ diff --git a/assets/objects/_images/ycb/clamp.png b/assets/objects/_images/ycb/clamp.png new file mode 100644 index 0000000000000000000000000000000000000000..7fe2dd2bbb38d8f16a71c418d15c0b73f84186c6 Binary files /dev/null and b/assets/objects/_images/ycb/clamp.png differ diff --git a/assets/objects/_images/ycb/coffee_can.png b/assets/objects/_images/ycb/coffee_can.png new file mode 100644 index 0000000000000000000000000000000000000000..5c3740d59026feaaf7c303caa3b049aa78ccef62 Binary files /dev/null and b/assets/objects/_images/ycb/coffee_can.png differ diff --git a/assets/objects/_images/ycb/cordless_drill.png b/assets/objects/_images/ycb/cordless_drill.png new file mode 100644 index 0000000000000000000000000000000000000000..db772a28f6b2991314f6bb4995291b63fc814db9 Binary files /dev/null and b/assets/objects/_images/ycb/cordless_drill.png differ diff --git a/assets/objects/_images/ycb/dry_erase_marker.png b/assets/objects/_images/ycb/dry_erase_marker.png new file mode 100644 index 0000000000000000000000000000000000000000..4141a1a7842267c815aedc3484a72fe1fc906437 Binary files /dev/null and b/assets/objects/_images/ycb/dry_erase_marker.png differ diff --git a/assets/objects/_images/ycb/jello.png b/assets/objects/_images/ycb/jello.png new file mode 100644 index 0000000000000000000000000000000000000000..2fd6d7eae7a61f46ac0e951e6111ba3050e5b977 Binary files /dev/null and b/assets/objects/_images/ycb/jello.png differ diff --git a/assets/objects/_images/ycb/mug.png b/assets/objects/_images/ycb/mug.png new file mode 100644 index 0000000000000000000000000000000000000000..4ad27f8ea986c412128b429f9fb66b187a453626 Binary files /dev/null and b/assets/objects/_images/ycb/mug.png differ diff --git a/assets/objects/_images/ycb/mustard.png b/assets/objects/_images/ycb/mustard.png new file mode 100644 index 0000000000000000000000000000000000000000..8df085ce35b18117bf8a3e2834f1577c725bcdc1 Binary files /dev/null and b/assets/objects/_images/ycb/mustard.png differ diff --git a/assets/objects/_images/ycb/pitcher.png b/assets/objects/_images/ycb/pitcher.png new file mode 100644 index 0000000000000000000000000000000000000000..9e05c2b10b44437605bc44c716ab51e639f1b5e1 Binary files /dev/null and b/assets/objects/_images/ycb/pitcher.png differ diff --git a/assets/objects/_images/ycb/scissors.png b/assets/objects/_images/ycb/scissors.png new file mode 100644 index 0000000000000000000000000000000000000000..db7e43faa1e37b248ae7062d089b8be6b2de6370 Binary files /dev/null and b/assets/objects/_images/ycb/scissors.png differ diff --git a/assets/objects/_images/ycb/soft_scrub.png b/assets/objects/_images/ycb/soft_scrub.png new file mode 100644 index 0000000000000000000000000000000000000000..ae60aa63154438a9d3dbb71c787f2f8f468143ae Binary files /dev/null and b/assets/objects/_images/ycb/soft_scrub.png differ diff --git a/assets/objects/_images/ycb/spam_can.png b/assets/objects/_images/ycb/spam_can.png new file mode 100644 index 0000000000000000000000000000000000000000..942a9abe9c42446885e6c5fb3358563e887ad304 Binary files /dev/null and b/assets/objects/_images/ycb/spam_can.png differ diff --git a/assets/objects/_images/ycb/spring_clamp.png b/assets/objects/_images/ycb/spring_clamp.png new file mode 100644 index 0000000000000000000000000000000000000000..2789e944f7607b70507e269740f2f3c552c227f1 Binary files /dev/null and b/assets/objects/_images/ycb/spring_clamp.png differ diff --git a/assets/objects/_images/ycb/sugar_box.png b/assets/objects/_images/ycb/sugar_box.png new file mode 100644 index 0000000000000000000000000000000000000000..cf5bb5661a82828d3ffef5b623472212bc84eb79 Binary files /dev/null and b/assets/objects/_images/ycb/sugar_box.png differ diff --git a/assets/objects/_images/ycb/tomato_soup_can.png b/assets/objects/_images/ycb/tomato_soup_can.png new file mode 100644 index 0000000000000000000000000000000000000000..d6a402a527d32558154742c5a7d4e64c632b2744 Binary files /dev/null and b/assets/objects/_images/ycb/tomato_soup_can.png differ diff --git a/assets/objects/_images/ycb/tuna_can.png b/assets/objects/_images/ycb/tuna_can.png new file mode 100644 index 0000000000000000000000000000000000000000..fdd546dcd493a8cdaa27f4563bab623fdb0ec47b Binary files /dev/null and b/assets/objects/_images/ycb/tuna_can.png differ diff --git a/assets/objects/_images/ycb/wood_block.png b/assets/objects/_images/ycb/wood_block.png new file mode 100644 index 0000000000000000000000000000000000000000..24d37e2d7304aeeb5f6da4ab9be5d4c6ceef2f69 Binary files /dev/null and b/assets/objects/_images/ycb/wood_block.png differ diff --git a/assets/objects/basic/blue_block.usd b/assets/objects/basic/blue_block.usd new file mode 100644 index 0000000000000000000000000000000000000000..df0b2473bc2bac6a9b871e1b5b31676f0595559c Binary files /dev/null and b/assets/objects/basic/blue_block.usd differ diff --git a/assets/objects/basic/green_block.usd b/assets/objects/basic/green_block.usd new file mode 100644 index 0000000000000000000000000000000000000000..d3b7994d42a9b4a71595d3ae4e4c4324809b581b Binary files /dev/null and b/assets/objects/basic/green_block.usd differ diff --git a/assets/objects/basic/red_block.usd b/assets/objects/basic/red_block.usd new file mode 100644 index 0000000000000000000000000000000000000000..2af99efeec58b230ca90b60571653486c4a95708 Binary files /dev/null and b/assets/objects/basic/red_block.usd differ diff --git a/assets/objects/basic/yellow_block.usd b/assets/objects/basic/yellow_block.usd new file mode 100644 index 0000000000000000000000000000000000000000..e52edaa542fb84c06b5f035768a7c1a895db0fa6 Binary files /dev/null and b/assets/objects/basic/yellow_block.usd differ diff --git a/assets/objects/hope/LICENSE b/assets/objects/hope/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..ed673666115a43d447a0c7fde97f719597979899 --- /dev/null +++ b/assets/objects/hope/LICENSE @@ -0,0 +1,460 @@ +HOPE Object Assets + +This directory contains 3D object models in USD format that are +derivative works of the HOPE (Household Objects for Pose Estimation) +dataset. + +Original dataset: HOPE +Copyright (C) 2021 NVIDIA Corporation. All rights reserved. +Original repository: https://github.com/swtyree/hope-dataset +Paper: https://arxiv.org/abs/2203.05701 + +BOP-format redistribution: https://huggingface.co/datasets/bop-benchmark/hope + +The original HOPE dataset is released under the Creative Commons +Attribution-NonCommercial-ShareAlike 4.0 International License +(CC BY-NC-SA 4.0). Because these USD-format assets are derivative +works of the original dataset, they carry the same license. + +Modifications: Converted from original mesh format to USD format. + +======================================================================= + +Attribution-NonCommercial-ShareAlike 4.0 International + +======================================================================= + +Creative Commons Corporation ("Creative Commons") is not a law firm and +does not provide legal services or legal advice. Distribution of +Creative Commons public licenses does not create a lawyer-client or +other relationship. Creative Commons makes its licenses and related +information available on an "as-is" basis. Creative Commons gives no +warranties regarding its licenses, any material licensed under their +terms and conditions, or any related information. Creative Commons +disclaims all liability for damages resulting from their use to the +fullest extent possible. + +Using Creative Commons Public Licenses + +Creative Commons public licenses provide a standard set of terms and +conditions that creators and other rights holders may use to share +original works of authorship and other material subject to copyright +and certain other rights specified in the public license below. The +following considerations are for informational purposes only, are not +exhaustive, and do not form part of our licenses. + + Considerations for licensors: Our public licenses are + intended for use by those authorized to give the public + permission to use material in ways otherwise restricted by + copyright and certain other rights. Our licenses are + irrevocable. Licensors should read and understand the terms + and conditions of the license they choose before applying it. + Licensors should also secure all rights necessary before + applying our licenses so that the public can reuse the + material as expected. Licensors should clearly mark any + material not subject to the license. This includes other CC- + licensed material, or material used under an exception or + limitation to copyright. More considerations for licensors: + wiki.creativecommons.org/Considerations_for_licensors + + Considerations for the public: By using one of our public + licenses, a licensor grants the public permission to use the + licensed material under specified terms and conditions. If + the licensor's permission is not necessary for any reason--for + example, because of any applicable exception or limitation to + copyright--then that use is not regulated by the license. Our + licenses grant only permissions under copyright and certain + other rights that a licensor has authority to grant. Use of + the licensed material may still be restricted for other + reasons, including because others have copyright or other + rights in the material. A licensor may make special requests, + such as asking that all changes be marked or described. + Although not required by our licenses, you are encouraged to + respect those requests where reasonable. More considerations + for the public: + wiki.creativecommons.org/Considerations_for_licensees + +======================================================================= + +Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International +Public License + +By exercising the Licensed Rights (defined below), You accept and agree +to be bound by the terms and conditions of this Creative Commons +Attribution-NonCommercial-ShareAlike 4.0 International Public License +("Public License"). To the extent this Public License may be +interpreted as a contract, You are granted the Licensed Rights in +consideration of Your acceptance of these terms and conditions, and the +Licensor grants You such rights in consideration of benefits the +Licensor receives from making the Licensed Material available under +these terms and conditions. + + +Section 1 -- Definitions. + + a. Adapted Material means material subject to Copyright and Similar + Rights that is derived from or based upon the Licensed Material + and in which the Licensed Material is translated, altered, + arranged, transformed, or otherwise modified in a manner requiring + permission under the Copyright and Similar Rights held by the + Licensor. For purposes of this Public License, where the Licensed + Material is a musical work, performance, or sound recording, + Adapted Material is always produced where the Licensed Material is + synched in timed relation with a moving image. + + b. Adapter's License means the license You apply to Your Copyright + and Similar Rights in Your contributions to Adapted Material in + accordance with the terms and conditions of this Public License. + + c. BY-NC-SA Compatible License means a license listed at + creativecommons.org/compatiblelicenses, approved by Creative + Commons as essentially the equivalent of this Public License. + + d. Copyright and Similar Rights means copyright and/or similar rights + closely related to copyright including, without limitation, + performance, broadcast, sound recording, and Sui Generis Database + Rights, without regard to how the rights are labeled or + categorized. For purposes of this Public License, the rights + specified in Section 2(b)(1)-(2) are not Copyright and Similar + Rights. + + e. Effective Technological Measures means those measures that, in the + absence of proper authority, may not be circumvented under laws + fulfilling obligations under Article 11 of the WIPO Copyright + Treaty adopted on December 20, 1996, and/or similar international + agreements. + + f. Exceptions and Limitations means fair use, fair dealing, and/or + any other exception or limitation to Copyright and Similar Rights + that applies to Your use of the Licensed Material. + + g. License Elements means the license attributes listed in the name + of a Creative Commons Public License. The License Elements of this + Public License are Attribution, NonCommercial, and ShareAlike. + + h. Licensed Material means the artistic or literary work, database, + or other material to which the Licensor applied this Public + License. + + i. Licensed Rights means the rights granted to You subject to the + terms and conditions of this Public License, which are limited to + all Copyright and Similar Rights that apply to Your use of the + Licensed Material and that the Licensor has authority to license. + + j. Licensor means the individual(s) or entity(ies) granting rights + under this Public License. + + k. NonCommercial means not primarily intended for or directed towards + commercial advantage or monetary compensation. For purposes of + this Public License, the exchange of the Licensed Material for + other material subject to Copyright and Similar Rights by digital + file-sharing or similar means is NonCommercial provided there is + no payment of monetary compensation in connection with the + exchange. + + l. Share means to provide material to the public by any means or + process that requires permission under the Licensed Rights, such + as reproduction, public display, public performance, distribution, + dissemination, communication, or importation, and to make material + available to the public including in ways that members of the + public may access the material from a place and at a time + individually chosen by them. + + m. Sui Generis Database Rights means rights other than copyright + resulting from Directive 96/9/EC of the European Parliament and of + the Council of 11 March 1996 on the legal protection of databases, + as amended and/or succeeded, as well as other essentially + equivalent rights anywhere in the world. + + n. You means the individual or entity exercising the Licensed Rights + under this Public License. Your has a corresponding meaning. + + +Section 2 -- Scope. + + a. License grant. + + 1. Subject to the terms and conditions of this Public License, + the Licensor hereby grants You a worldwide, royalty-free, + non-sublicensable, non-exclusive, irrevocable license to + exercise the Licensed Rights in the Licensed Material to: + + a. reproduce and Share the Licensed Material, in whole or + in part, for NonCommercial purposes only; and + + b. produce, reproduce, and Share Adapted Material for + NonCommercial purposes only. + + 2. Exceptions and Limitations. For the avoidance of doubt, where + Exceptions and Limitations apply to Your use, this Public + License does not apply, and You do not need to comply with + its terms and conditions. + + 3. Term. The term of this Public License is specified in Section + 6(a). + + 4. Media and formats; technical modifications allowed. The + Licensor authorizes You to exercise the Licensed Rights in + all media and formats whether now known or hereafter created, + and to make technical modifications necessary to do so. The + Licensor waives and/or agrees not to assert any right or + authority to forbid You from making technical modifications + necessary to exercise the Licensed Rights, including + technical modifications necessary to circumvent Effective + Technological Measures. For purposes of this Public License, + simply making modifications authorized by this Section 2(a) + (4) never produces Adapted Material. + + 5. Downstream recipients. + + a. Offer from the Licensor -- Licensed Material. Every + recipient of the Licensed Material automatically + receives an offer from the Licensor to exercise the + Licensed Rights under the terms and conditions of this + Public License. + + b. Additional offer from the Licensor -- Adapted Material. + Every recipient of Adapted Material from You + automatically receives an offer from the Licensor to + exercise the Licensed Rights in the Adapted Material + under the conditions of the Adapter's License You apply. + + c. No downstream restrictions. You may not offer or impose + any additional or different terms or conditions on, or + apply any Effective Technological Measures to, the + Licensed Material if doing so restricts exercise of the + Licensed Rights by any recipient of the Licensed + Material. + + 6. No endorsement. Nothing in this Public License constitutes or + may be construed as permission to assert or imply that You + are, or that Your use of the Licensed Material is, connected + with, or sponsored, endorsed, or granted official status by, + the Licensor or others designated to receive attribution as + provided in Section 3(a)(1)(A)(i). + + b. Other rights. + + 1. Moral rights, such as the right of integrity, are not + licensed under this Public License, nor are publicity, + privacy, and/or other similar personality rights; however, to + the extent possible, the Licensor waives and/or agrees not to + assert any such rights held by the Licensor to the limited + extent necessary to allow You to exercise the Licensed + Rights, but not otherwise. + + 2. Patent and trademark rights are not licensed under this + Public License. + + 3. To the extent possible, the Licensor waives any right to + collect royalties from You for the exercise of the Licensed + Rights, whether directly or through a collecting society + under any voluntary or waivable statutory or compulsory + licensing scheme. In all other cases the Licensor expressly + reserves any right to collect such royalties, including when + the Licensed Material is used other than for NonCommercial + purposes. + + +Section 3 -- License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the +following conditions. + + a. Attribution. + + 1. If You Share the Licensed Material (including in modified + form), You must: + + a. retain the following if it is supplied by the Licensor + with the Licensed Material: + + i. identification of the creator(s) of the Licensed + Material and any others designated to receive + attribution, in any reasonable manner requested by + the Licensor (including by pseudonym if + designated); + + ii. a copyright notice; + + iii. a notice that refers to this Public License; + + iv. a notice that refers to the disclaimer of + warranties; + + v. a URI or hyperlink to the Licensed Material to the + extent reasonably practicable; + + b. indicate if You modified the Licensed Material and + retain an indication of any previous modifications; and + + c. indicate the Licensed Material is licensed under this + Public License, and include the text of, or the URI or + hyperlink to, this Public License. + + 2. You may satisfy the conditions in Section 3(a)(1) in any + reasonable manner based on the medium, means, and context in + which You Share the Licensed Material. For example, it may be + reasonable to satisfy the conditions by providing a URI or + hyperlink to a resource that includes the required + information. + + 3. If requested by the Licensor, You must remove any of the + information required by Section 3(a)(1)(A) to the extent + reasonably practicable. + + b. ShareAlike. + + In addition to the conditions in Section 3(a), if You Share + Adapted Material You produce, the following conditions also apply. + + 1. The Adapter's License You apply must be a Creative Commons + license with the same License Elements, this version or + later, or a BY-NC-SA Compatible License. + + 2. You must include the text of, or the URI or hyperlink to, the + Adapter's License You apply. You may satisfy this condition + in any reasonable manner based on the medium, means, and + context in which You Share Adapted Material. + + 3. You may not offer or impose any additional or different terms + or conditions on, or apply any Effective Technological + Measures to, Adapted Material that restrict exercise of the + rights granted under the Adapter's License You apply. + + +Section 4 -- Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that +apply to Your use of the Licensed Material: + + a. for the avoidance of doubt, Section 2(a)(1) grants You the right + to extract, reuse, reproduce, and Share all or a substantial + portion of the contents of the database for NonCommercial purposes + only; + + b. if You include all or a substantial portion of the database + contents in a database in which You have Sui Generis Database + Rights, then the database in which You have Sui Generis Database + Rights (but not its individual contents) is Adapted Material, + including for purposes of Section 3(b); and + + c. You must comply with the conditions in Section 3(a) if You Share + all or a substantial portion of the contents of the database. + +For the avoidance of doubt, this Section 4 supplements and does not +replace Your obligations under this Public License where the Licensed +Rights include other Copyright and Similar Rights. + + +Section 5 -- Disclaimer of Warranties and Limitation of Liability. + + a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE + EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS + AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF + ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, + IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, + WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR + PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, + ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT + KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT + ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. + + b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE + TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, + NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, + INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, + COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR + USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN + ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR + DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR + IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. + + c. The disclaimer of warranties and limitation of liability provided + above shall be interpreted in a manner that, to the extent + possible, most closely approximates an absolute disclaimer and + waiver of all liability. + + +Section 6 -- Term and Termination. + + a. This Public License applies for the term of the Copyright and + Similar Rights licensed here. However, if You fail to comply with + this Public License, then Your rights under this Public License + terminate automatically. + + b. Where Your right to use the Licensed Material has terminated under + Section 6(a), it reinstates: + + 1. automatically as of the date the violation is cured, provided + it is cured within 30 days of Your discovery of the + violation; or + + 2. upon express reinstatement by the Licensor. + + For the avoidance of doubt, this Section 6(b) does not affect any + right the Licensor may have to seek remedies for Your violations + of this Public License. + + c. For the avoidance of doubt, the Licensor may also offer the + Licensed Material under separate terms or conditions or stop + distributing the Licensed Material at any time; however, doing so + will not terminate this Public License. + + d. Sections 1, 5, 6, 7, and 8 survive termination of this Public + License. + + +Section 7 -- Other Terms and Conditions. + + a. The Licensor shall not be bound by any additional or different + terms or conditions communicated by You unless expressly agreed. + + b. Any arrangements, understandings, or agreements regarding the + Licensed Material not stated herein are separate from and + independent of the terms and conditions of this Public License. + + +Section 8 -- Interpretation. + + a. For the avoidance of doubt, this Public License does not, and + shall not be interpreted to, reduce, limit, restrict, or impose + conditions on any use of the Licensed Material that could lawfully + be made without permission under this Public License. + + b. To the extent possible, if any provision of this Public License is + deemed unenforceable, it shall be automatically reformed to the + minimum extent necessary to make it enforceable. If the provision + cannot be reformed, it shall be severed from this Public License + without affecting the enforceability of the remaining terms and + conditions. + + c. No term or condition of this Public License will be waived and no + failure to comply consented to unless expressly agreed to by the + Licensor. + + d. Nothing in this Public License constitutes or may be interpreted + as a limitation upon, or waiver of, any privileges and immunities + that apply to the Licensor or You, including from the legal + processes of any jurisdiction or authority. + +======================================================================= + +Creative Commons is not a party to its public +licenses. Notwithstanding, Creative Commons may elect to apply one of +its public licenses to material it publishes and in those instances +will be considered the "Licensor." The text of the Creative Commons +public licenses is dedicated to the public domain under the CC0 Public +Domain Dedication. Except for the limited purpose of indicating that +material is shared under a Creative Commons public license or as +otherwise permitted by the Creative Commons policies published at +creativecommons.org/policies, Creative Commons does not authorize the +use of the trademark "Creative Commons" or any other trademark or logo +of Creative Commons without its prior written consent including, +without limitation, in connection with any unauthorized modifications +to any of its public licenses or any other arrangements, +understandings, or agreements concerning use of licensed material. For +the avoidance of doubt, this paragraph does not form part of the +public licenses. + +Creative Commons may be contacted at creativecommons.org. diff --git a/assets/objects/objaverse/snickers_bar_textures/color_121212.hdr b/assets/objects/objaverse/snickers_bar_textures/color_121212.hdr new file mode 100644 index 0000000000000000000000000000000000000000..91b6332cf8e4ec8eaa7a368ba4346677dae74032 --- /dev/null +++ b/assets/objects/objaverse/snickers_bar_textures/color_121212.hdr @@ -0,0 +1,5 @@ +#?RADIANCE +FORMAT=32-bit_rle_rgbe + +-Y 4 +X 4 +ÐÐÐ|ÐÐÐ|ÐÐÐ|ÐÐÐ|ÐÐÐ|ÐÐÐ|ÐÐÐ|ÐÐÐ|ÐÐÐ|ÐÐÐ|ÐÐÐ|ÐÐÐ|ÐÐÐ|ÐÐÐ|ÐÐÐ|ÐÐÐ| \ No newline at end of file diff --git a/assets/objects/vomp/antiquelvase/materials/SimPBR.mdl b/assets/objects/vomp/antiquelvase/materials/SimPBR.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5883146f569e93208db72c08a810b7d71eaeece7 --- /dev/null +++ b/assets/objects/vomp/antiquelvase/materials/SimPBR.mdl @@ -0,0 +1,562 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + + +using .::SimPBR_Model import *; +using .::baking_annotations import *; + +export material SimPBR( + // -------------------- DIFFUSE REFLECTION ---------------------- + uniform color diffuse_color_constant = color(0.2f) + [[ + anno::display_name("Albedo Base Color"), + anno::description("The base albedo color to use if no texture is specified"), + anno::in_group("Diffuse") + ]], + uniform texture_2d diffuse_texture = texture_2d() + [[ + anno::display_name("Albedo Map"), + anno::description("The texture specifying the albedo value to use"), + anno::in_group("Diffuse") + ]], + uniform color diffuse_tint = color(1.0f) + [[ + anno::display_name("Albedo Tint"), + anno::description("This tints the albedo color or texture contant"), + anno::in_group("Diffuse") + ]], + uniform bool enable_transmission = false + [[ + anno::display_name("Enable Diffuse Transmission"), + anno::description("Enables the diffuse transmission of light through thin diffuse scattering layer"), + anno::in_group("Diffuse") + ]], + uniform float opacity_ratio = 1.f + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Opacity Ratio"), + anno::description("Amount of opacity"), + anno::in_group("Diffuse") + ]], + uniform color opacity_tint = color(1.0f) + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Diffuse transmission tint"), + anno::description("Base diffuse transmission color"), + anno::in_group("Diffuse") + ]], + uniform float opacity_multiplier = 1.f + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Diffuse transmission multiplier"), + anno::description("Base diffuse transmission multiplier"), + anno::in_group("Diffuse") + ]], + + // -------------------- SPECULAR REFLECTION ---------------------- + 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + float anisotropy_constant = 0.0f + [[ + anno::display_name("Anisotropy Amount"), + anno::hard_range(-1.,1.), + anno::description("0 for isotropic, extents of -1 to 1 for anisotropy"), + anno::in_group("Specular") + ]], + uniform float anisotropy_texture_influence = 0.0f + [[ + anno::display_name("Anisotropy Map Influence"), + anno::hard_range(0.0, 1.), + anno::description("Blends between the constant value and the lookup of the anisotropy texture"), + anno::in_group("Specular") + ]], + uniform texture_2d anisotropy_texture = texture_2d() + [[ + anno::display_name("Anisotropy Map"), + anno::in_group("Specular") + ]], + + float metallic_constant = 0.f + [[ + anno::display_name("Metallic Amount"), + anno::hard_range(0.0,1.), + anno::description("Metallic Material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d metallic_texture = texture_2d() + [[ + anno::display_name("Metallic Map"), + anno::in_group("Specular") + ]], + + float specular_constant = 1.f + [[ + anno::display_name("Specular amount"), + anno::hard_range(0.0, 1.0), + anno::description("Scale of the specular component"), + anno::in_group("Specular") + ]], + uniform texture_2d specular_texture = texture_2d() + [[ + anno::display_name("Specular Map"), + anno::in_group("Specular") + ]], + + // -------------------- ORM ---------------------- + uniform bool enable_ORM_texture = true + [[ + 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") + ]], + + // -------------------- 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") + ]], + 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") + ]], + + float3 clearcoat_normal_input = float3(0.0, 0.0, 0.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") + ]], + + uniform bool clearcoat_flip_tangent_u = false + [[ + anno::display_name("Clearcoat Normal Map Flip U Tangent"), + anno::in_group("Clearcoat") + ]], + uniform bool clearcoat_flip_tangent_v = true + [[ + anno::display_name("Clearcoat Normal Map Flip V Tangent"), + anno::in_group("Clearcoat") + ]], + + + // -------------------- REFLECTIVITY ---------------------- + uniform bool enable_retroreflection = false + [[ + anno::display_name("Enable Retroreflection"), + anno::in_group("Reflectivity") + ]], + color retroreflection_tint = color(.182,.800,.000) + [[ + anno::display_name("Retro-reflection tint"), + anno::description("The tint of the retroreflection"), + anno::in_group("Reflectivity") + ]], + uniform float normal_reflectivity = 0.5 + [[ + anno::display_name("Retro-reflection weight facing"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for geometry facing the viewer"), + anno::in_group("Reflectivity") + ]], + uniform float grazing_reflectivity = 1.0 + [[ + anno::display_name("Retro-reflection weight edge"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for the reflectivity at geometry edges"), + anno::in_group("Reflectivity") + ]], + + // -------------------- AMBIENT OCCLUSION ---------------------- + 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") + ]], + float ao_input = 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") + ]], + + // -------------------- 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") + ]], + uniform 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") + ]], + + color emissive_mask_input = color(1.0), + 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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- ALPHA ---------------------- + uniform bool enable_opacity = false + [[ + anno::display_name("Enable Opacity"), + anno::description("Enables or disables alpha functionality"), + anno::in_group("Alpha") + ]], + float alpha_constant = 1.0 + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Opacity Fallback Constant"), + anno::hard_range(0.0, 1.0), + anno::description("The base alpha constant to use if no texture is specified"), + anno::in_group("Alpha") + ]], + uniform texture_2d opacity_texture = texture_2d() + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Opacity Map"), + anno::description("The texture specifying the opacity value to use"), + anno::in_group("Alpha") + ]], + uniform bool enable_opacity_cutout = false + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Enable Alpha Cutout"), + anno::description("Enables or disables alpha cutout functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_cutout_cutoff = 1.f + [[ + anno::enable_if("enable_opacity == true"), + anno::enable_if("enable_opacity_cutout == true"), + anno::hard_range(0.0, 1.0), + anno::display_name("Alpha Cutout Cutoff"), + anno::description("The cutoff value to to render as transparent up to and opaque past"), + anno::in_group("Alpha") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + + float3 normal_input = state::normal(), + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("Normal Map"), + anno::in_group("Normal") + ]], + uniform bool flip_tangent_u = false + [[ + anno::display_name("Normal Map Flip U Tangent"), + anno::description("Flips the U Tangent vector."), + anno::in_group("Normal") + ]], + uniform bool flip_tangent_v = true + [[ + anno::display_name("Normal Map Flip V Tangent"), + anno::description("Flips the V Tangent vector. By Default, SimPBR materials setup for DirectX normal maps. Set Normal Map Flip V = false for OpenGL."), + anno::in_group("Normal") + ]], + + // -------------------- UV ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Tiling"), + anno::description("Controls repetition of the texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR"), + anno::description("Supports the opaque alpha cutout material model of the Sim Renderer"), + anno::in_group("SimReady"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "opaque", "alpha", "cutout", "omniverse", "generic")) +]] + = let { + 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: 0, + projection_type: base::projection_cubic + ) : base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw + ); + float2 uv = float2(transformed_uvw.position.x, transformed_uvw.position.y); + + // Diffuse Color Lookup and AO + float4 base_lookup = tex::texture_isvalid(diffuse_texture) ? tex::lookup_float4(tex: diffuse_texture, coord: uv) : float4(1, 1, 1, 1); + + float opacityValue = tex::texture_isvalid(opacity_texture) ? tex::lookup_float4(tex: opacity_texture, coord: uv).w : alpha_constant; + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw, + flip_tangent_u: flip_tangent_u, + flip_tangent_v: flip_tangent_v + ) : normal_input; + + float3 clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? + base::tangent_space_normal_texture( + texture: clearcoat_normalmap_texture, + factor: clearcoat_bump_factor, + uvw: uvw, + flip_tangent_u: clearcoat_flip_tangent_u, + flip_tangent_v: clearcoat_flip_tangent_v + ) : clearcoat_normal_input; + + float3 flattened_clearcoat_normal = ::math::lerp(normal_lookup, ::state::normal(), clearcoat_flatten); + float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? clearcoat_normal : flattened_clearcoat_normal; + + float ao_lookup = tex::texture_isvalid(ao_texture) ? tex::lookup_float4(tex: ao_texture, coord: uv).x : ao_input; + + color diffuse_color = tex::texture_isvalid(diffuse_texture) ? color(base_lookup.x, base_lookup.y, base_lookup.z) : diffuse_color_constant; + + float3 ORM_lookup = tex::lookup_float3( + tex: ORM_texture, + coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) + ); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + tex::lookup_float4(tex: reflectionroughness_texture, coord: uv).x : reflection_roughness_constant; + float anisotropy_lookup = tex::texture_isvalid(anisotropy_texture) ? + (tex::lookup_float4(tex: anisotropy_texture, coord: uv).x * 2.0f - 1.0f) : anisotropy_constant; + float metallic_lookup = tex::texture_isvalid(metallic_texture) ? + tex::lookup_float4(tex: metallic_texture, coord: uv).x : metallic_constant; + float specular_lookup = tex::texture_isvalid(specular_texture) ? + tex::lookup_float4(tex: specular_texture, coord: uv).x : specular_constant; + + float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup; + float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup; + float ao = enable_ORM_texture ? ORM_lookup.x : ao_lookup; + + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); + float anisotropy = math::lerp(anisotropy_constant, anisotropy_lookup, anisotropy_texture_influence); + float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook ? + ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) ? + tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) : emissive_mask_input; + +} in SimPBR_Model( + diffuse_color: diffuse_color, + diffuse_tint: diffuse_tint, + roughness: reflection_roughness, + anisotropy: anisotropy, + metallic: metallic, + specular: specular_lookup, + normal: normal_lookup, + enable_clearcoat: enable_clearcoat, + clearcoat_tint: clearcoat_tint, + clearcoat_transparency: clearcoat_transparency, + clearcoat_reflection_roughness: clearcoat_reflection_roughness, + clearcoat_weight: clearcoat_weight, + clearcoat_ior: clearcoat_ior, + clearcoat_normal: final_clearcoat_normal, + enable_retroreflection: enable_retroreflection, + retroreflection_tint: retroreflection_tint, + normal_reflectivity: normal_reflectivity, + grazing_reflectivity: grazing_reflectivity, + ao_to_diffuse: ao_to_diffuse, + ao: ao, + enable_emission: enable_emission, + emissive_color: emissive_color, + emissive_mask: emissive_mask, + emissive_intensity: emissive_intensity, + enable_opacity: enable_opacity, + alpha: opacityValue, + enable_opacity_cutout: enable_opacity_cutout, + alpha_cutout_cutoff: alpha_cutout_cutoff, + opacity_ratio: enable_transmission ? opacity_ratio : 1.0, + opacity_tint : opacity_tint, + opacity_multiplier : opacity_multiplier +); diff --git a/assets/objects/vomp/antiquelvase/materials/SimPBR_Model.mdl b/assets/objects/vomp/antiquelvase/materials/SimPBR_Model.mdl new file mode 100644 index 0000000000000000000000000000000000000000..dccd3808942cb243a4e03f77f684935081b31ec5 --- /dev/null +++ b/assets/objects/vomp/antiquelvase/materials/SimPBR_Model.mdl @@ -0,0 +1,212 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +using .::baking_annotations import *; + +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 + ); +} + +export material SimPBR_Model( + color diffuse_color = color(0.2f) [[ target_baked_argument("diffuse_texture", "diffuse_color_constant", "RGBA8_UNORM") ]], + uniform color diffuse_tint = color(1.0f), + float roughness = 0.5f [[ target_baked_argument("reflectionroughness_texture", "reflection_roughness_constant", "R8_UNORM") ]], + float anisotropy = 0.0f [[ target_baked_argument("anisotropy_texture", "anisotropy_constant", "R8_SNORM") ]], + float metallic = 0.f [[ target_baked_argument("metallic_texture", "metallic_constant", "R8_UNORM") ]], + float specular = 1.f [[ target_baked_argument("specular_texture", "specular_constant", "R8_UNORM") ]], + float3 normal = float3(0.0, 0.0, 0.0) [[ target_baked_argument("normalmap_texture", "normal_input", "RGBA8_SNORM", baking_annotations::TRANSFORM_UNORM_VECTOR) ]], + uniform bool enable_clearcoat = false, + color clearcoat_tint = color(1.0f), + float clearcoat_transparency = 1.0f, + float clearcoat_reflection_roughness = 0.0f, + float clearcoat_weight = 1.0f, + float clearcoat_ior = 1.56f, + float3 clearcoat_normal = float3(0.0, 0.0, 0.0) [[ target_baked_argument("clearcoat_normalmap_texture", "clearcoat_normal_input", "RGBA8_SNORM", baking_annotations::TRANSFORM_UNORM_VECTOR) ]], + uniform bool enable_retroreflection = false, + color retroreflection_tint = color(.182,.800,.000), + uniform float normal_reflectivity = 0.5, + uniform float grazing_reflectivity = 1.0, + float ao_to_diffuse = 0.0, + float ao = 1.0f [[ target_baked_argument("ao_texture", "ao_input", "R8_UNORM") ]], + uniform bool enable_emission = false, + uniform color emissive_color = color(1.0, 0.1, 0.1), + color emissive_mask = color(1.0, 0.1, 0.1) [[ target_baked_argument("emissive_mask_texture", "emissive_mask_input", "R8_UNORM") ]], + uniform float emissive_intensity = 40.f, + uniform bool enable_opacity = false, + float alpha = 1.0, + uniform bool enable_opacity_cutout = false, + uniform float alpha_cutout_cutoff = 1.f, + uniform float opacity_ratio = 1.f, + uniform color opacity_tint = color(1.0f), + uniform float opacity_multiplier = 1.f +) +[[ + target_material_model(), + target_material_rendering("..::SimPBR::SimPBR") +]] + = let { + color base_color = multiply_colors(diffuse_color, diffuse_tint, 1.0).tint; + color ao_weighted_base_color = multiply_colors(base_color, color(ao), ao_to_diffuse).tint; + + float squared_roughness = roughness * roughness; + float roughness_u = squared_roughness * (1 + anisotropy); + float roughness_v = squared_roughness * (1 - anisotropy); + + color diffuse_transmission_color = base_color * opacity_tint * opacity_multiplier; + + bsdf diffuse_bsdf = df::weighted_layer( + weight: opacity_ratio, + layer: df::diffuse_reflection_bsdf( + tint: ao_weighted_base_color, + roughness: 0.0f + ), + base: df::diffuse_transmission_bsdf(tint: diffuse_transmission_color), + normal: enable_clearcoat ? normal : state::normal() + ); + + bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_u, + roughness_v: roughness_v, + tint: color(1.0, 1.0, 1.0), + mode: df::scatter_reflect + ); + + bsdf custom_curve_layer_bsdf = df::custom_curve_layer( + normal_reflectivity: 0.03, + grazing_reflectivity: 1.0, + exponent: 5.0, + weight: specular, + layer: ggx_smith_bsdf, + base: diffuse_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + // + // Begin RETROREFLECTION SUPPORT + // + color final_retroreflection_color = multiply_colors(retroreflection_tint, base_color, 1.0).tint; + bsdf backscattering_glossy_bsdf = df::backscattering_glossy_reflection_bsdf( + tint: final_retroreflection_color, + roughness_u: squared_roughness + ); + + /*bsdf retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: 1.-normal_reflectivity, + grazing_reflectivity: 1.-grazing_reflectivity, + base: backscattering_glossy_bsdf, + layer: custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + );*/ + + // if normal_reflectivity and grazing_reflectivity are 1 and weight is 1, just the layer is used + bsdf opt_retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: enable_retroreflection ? 1.-normal_reflectivity : 1, + grazing_reflectivity: enable_retroreflection ? 1.-grazing_reflectivity : 1, + base: backscattering_glossy_bsdf, + layer: custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + // + // End RETROREFLECTION SUPPORT + // + + bsdf directional_factor_bsdf = df::directional_factor( + normal_tint: ao_weighted_base_color, + grazing_tint: color(1.0, 1.0, 1.0), + exponent: 5.0f, + base: ggx_smith_bsdf + ); + + // CLEARCOAT + bsdf omni_PBR_bsdf = df::weighted_layer( + weight: metallic, + layer: directional_factor_bsdf, + base: opt_retroreflection_bsdf, //enable_retroreflection ? retroreflection_bsdf : custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + bsdf clearcoat_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + roughness_v: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + 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 opt_opaque_clearcoat = df::weighted_layer( + weight: enable_clearcoat ? clearcoat_transparency : 1, + layer: ::df::tint(tint: enable_clearcoat ? clearcoat_tint : color(1), base: omni_PBR_bsdf), + base: ::df::diffuse_reflection_bsdf(tint: clearcoat_tint) + ); + + bsdf opt_omni_PBR_coated_bsdf = df::fresnel_layer( + ior: clearcoat_ior, + weight: enable_clearcoat ? clearcoat_weight : 0, + layer: clearcoat_bsdf, + base: opt_opaque_clearcoat, + normal: clearcoat_normal + ); + + bsdf final_bsdf = opt_omni_PBR_coated_bsdf; +} in material( + thin_walled: false, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + geometry: material_geometry( + normal: enable_clearcoat ? state::normal() : normal, + cutout_opacity: enable_opacity ? (enable_opacity_cutout ? (alpha < alpha_cutout_cutoff ? 0.0 : 1.0) : alpha) : 1.0 + ) +); diff --git a/assets/objects/vomp/antiquelvase/materials/SimPBR_Opacity.mdl b/assets/objects/vomp/antiquelvase/materials/SimPBR_Opacity.mdl new file mode 100644 index 0000000000000000000000000000000000000000..cf0a3ba759fc0b873d174b410b31759b1d426307 --- /dev/null +++ b/assets/objects/vomp/antiquelvase/materials/SimPBR_Opacity.mdl @@ -0,0 +1,651 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +import ::nvidia::core_definitions::file_texture; +import ::nvidia::core_definitions::normalmap_texture; + +float4 raw_file_texture( + uniform texture_2d texture + [[ anno::description("The input texture") ]], + base::texture_coordinate_info uvw = base::texture_coordinate_info() + [[ anno::description("Custom value for texture coordinate") ]], + 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") ]] +) +[[ + anno::description("General texturing function for 2D bitmap texture stored in a file"), + anno::noinline() +]] +{ + return tex::lookup_float4(texture, float2(uvw.position.x, uvw.position.y), wrap_u, wrap_v, crop_u, crop_v); +} + +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 SimPBR_Opacity( + // -------------------- DIFFUSE REFLECTION ---------------------- + uniform color diffuse_color_constant = color(0.2f) + [[ + anno::display_name("Albedo Base Color"), + anno::description("The base albedo color to use if no texture is specified"), + anno::in_group("Diffuse") + ]], + uniform texture_2d diffuse_texture = texture_2d() + [[ + anno::display_name("Albedo Map"), + anno::description("The texture specifying the albedo value to use"), + anno::in_group("Diffuse") + ]], + uniform color diffuse_tint = color(1.0f) + [[ + anno::display_name("Albedo Tint"), + anno::description("This tints the albedo color or texture contant"), + anno::in_group("Diffuse") + ]], + + // -------------------- SPECULAR REFLECTION ---------------------- + uniform 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + uniform float anisotropy_constant = 0.0f + [[ + anno::display_name("Anisotropy Amount"), + anno::hard_range(-1.,1.), + anno::description("0 for isotropic, extents of -1 to 1 for anisotropy"), + anno::in_group("Specular") + ]], + uniform float anisotropy_texture_influence = 0.0f + [[ + anno::display_name("Anisotropy Map Influence"), + anno::hard_range(0.0, 1.), + anno::description("Blends between the constant value and the lookup of the anisotropy texture"), + anno::in_group("Specular") + ]], + uniform texture_2d anisotropy_texture = texture_2d() + [[ + anno::display_name("Anisotropy Map"), + anno::in_group("Specular") + ]], + + uniform float metallic_constant = 0.f + [[ + anno::display_name("Metallic Amount"), + anno::hard_range(0.0,1.), + anno::description("Metallic Material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d metallic_texture = texture_2d() + [[ + anno::display_name("Metallic Map"), + anno::in_group("Specular") + ]], + + // -------------------- ORM ---------------------- + uniform bool enable_ORM_texture = true + [[ + 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") + ]], + + // -------------------- 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") + ]], + 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") + ]], + 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") + ]], + + // -------------------- REFLECTIVITY ---------------------- + uniform bool enable_retroreflection = false + [[ + anno::display_name("Enable Retroreflection"), + anno::in_group("Reflectivity") + ]], + color retroreflection_color = color(.182,.800,.000) + [[ + anno::display_name("Retro-reflection color"), + anno::description("The color of the retroreflection"), + anno::in_group("Reflectivity") + ]], + uniform float normal_reflectivity = 0.5 + [[ + anno::display_name("Retro-reflection weight facing"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for geometry facing the viewer"), + anno::in_group("Reflectivity") + ]], + uniform float grazing_reflectivity = 1.0 + [[ + anno::display_name("Retro-reflection weight edge"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for the reflectivity at geometry edges"), + anno::in_group("Reflectivity") + ]], + + // -------------------- AMBIENT OCCLUSION ---------------------- + 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") + ]], + 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") + ]], + uniform 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_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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- ALPHA ---------------------- + uniform bool enable_alpha = true + [[ + anno::display_name("Enable Alpha"), + anno::description("Enables or disables alpha functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_constant = 1.0 + [[ + anno::display_name("Alpha Fallback Constant"), + anno::description("The base alpha constant to use if no texture is specified"), + anno::in_group("Alpha") + ]], + uniform texture_2d opacity_texture = texture_2d() + [[ + anno::display_name("Opacity Map"), + anno::description("The texture specifying the opacity value to use"), + anno::in_group("Alpha") + ]], + uniform bool enable_alpha_cutout = false + [[ + anno::display_name("Enable Alpha Cutout"), + anno::description("Enables or disables alpha cutout functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_cutout_cutoff = 1.f + [[ + anno::enable_if("enable_alpha_cutout == true"), + anno::hard_range(0.0, 1.0), + anno::display_name("Alpha Cutout Cutoff"), + anno::description("The cutoff value to to render as transparent up to and opaque past"), + anno::in_group("Alpha") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("Normal Map"), + anno::in_group("Normal") + ]], + + // -------------------- UV ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Scale"), + anno::description("Larger number increases size of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR Opaque Alpha Cutout"), + anno::description("Supports the opaque alpha cutout material model of the Sim Renderer"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "opaque", "alpha", "cutout", "omniverse", "generic")) +]] + = let { + + 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: 0, + projection_type: base::projection_cubic ) : + base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw ); + + // Diffuse Color Lookup and AO + float4 base_lookup = tex::texture_isvalid(diffuse_texture) ? raw_file_texture(texture: diffuse_texture, uvw: transformed_uvw) : float4(1, 1, 1, 1); + + float opacityValue = tex::texture_isvalid(opacity_texture) ? raw_file_texture(texture: opacity_texture, uvw: transformed_uvw).x : alpha_constant; + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw + ) : state::normal(); + + float3 clearcoat_normal = base::tangent_space_normal_texture( + texture: clearcoat_normalmap_texture, + factor: clearcoat_bump_factor, + uvw: uvw + ); + + float3 flattened_clearcoat_normal = ::math::lerp(normal_lookup, ::state::normal(), clearcoat_flatten); + float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? clearcoat_normal : flattened_clearcoat_normal; + + float ao_lookup = tex::texture_isvalid(ao_texture) ? + raw_file_texture(texture: ao_texture, uvw: transformed_uvw).x : + 1.0f + [[anno::unused("Currently unused in material, may be utilized in the future")]]; + + color diffuse_color = tex::texture_isvalid(diffuse_texture) ? color(base_lookup.x, base_lookup.y, base_lookup.z) : diffuse_color_constant; + color base_color = multiply_colors(diffuse_color, diffuse_tint, 1.0).tint; + + float3 ORM_lookup = tex::lookup_float3( + tex: ORM_texture, + coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) + ); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + raw_file_texture(texture: reflectionroughness_texture, uvw: transformed_uvw).x : + reflection_roughness_constant; + float anisotropy_lookup = tex::texture_isvalid(anisotropy_texture) ? + (raw_file_texture(texture: anisotropy_texture, uvw: transformed_uvw).x * 2.0f - 1.0f) : + anisotropy_constant; + float metallic_lookup = tex::texture_isvalid(metallic_texture) ? + raw_file_texture(texture: metallic_texture, uvw: transformed_uvw).x : + metallic_constant; + + float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup; + float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup; + color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : color(ao_lookup); + + color ao_weighted_base_color = multiply_colors(base_color, ao_color, ao_to_diffuse).tint; + + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); + float anisotropy = math::lerp(anisotropy_constant, anisotropy_lookup, anisotropy_texture_influence); + float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); + + float squared_roughness = reflection_roughness * reflection_roughness; + float roughness_u = squared_roughness * (1 + anisotropy); + float roughness_v = squared_roughness * (1 - anisotropy); + + bsdf diffuse_bsdf = df::weighted_layer( + weight: 1.0, + layer: df::diffuse_reflection_bsdf( + tint: ao_weighted_base_color, + roughness: 0.f ), + base: bsdf(), + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_u, + roughness_v: roughness_v, + tint: color(1.0, 1.0, 1.0), + mode: df::scatter_reflect + ); + + bsdf custom_curve_layer_bsdf = df::custom_curve_layer( + normal_reflectivity: 0.03, + grazing_reflectivity: 1.0, + exponent: 5.0, + weight: float(1.0), + layer: ggx_smith_bsdf, + base: diffuse_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + // + // Begin RETROREFLECTION SUPPORT + // + bsdf backscattering_glossy_bsdf = df::backscattering_glossy_reflection_bsdf( + tint: retroreflection_color, + roughness_u: reflection_roughness * reflection_roughness + ); + + bsdf retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: 1.-normal_reflectivity, + grazing_reflectivity: 1.-grazing_reflectivity, + base: backscattering_glossy_bsdf, + layer: diffuse_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + // + // End RETROREFLECTION SUPPORT + // + + bsdf directional_factor_bsdf = df::directional_factor( + normal_tint: ao_weighted_base_color, + grazing_tint: color(1.0, 1.0, 1.0), + exponent: 5.0f, + base: ggx_smith_bsdf + ); + + // CLEARCOAT + + bsdf omni_PBR_bsdf = df::weighted_layer( + weight: metallic, + layer: directional_factor_bsdf, + base: enable_retroreflection ? retroreflection_bsdf : custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + bsdf clearcoat_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + roughness_v: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + 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; + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook + ? ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) + : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) + ? tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) + : color(1.0); + +} in material( + thin_walled: false, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission ( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + geometry: material_geometry( + normal: enable_clearcoat ? state::normal() : normal_lookup, + cutout_opacity: enable_alpha ? (enable_alpha_cutout ? (opacityValue < alpha_cutout_cutoff ? 0.0 : 1.0) : opacityValue) : 1.0 + ) +); diff --git a/assets/objects/vomp/antiquelvase/materials/SimPBR_Translucent.mdl b/assets/objects/vomp/antiquelvase/materials/SimPBR_Translucent.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a60a90d1b946f94c266dabd515d5a15b6c3c9bd --- /dev/null +++ b/assets/objects/vomp/antiquelvase/materials/SimPBR_Translucent.mdl @@ -0,0 +1,290 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +import ::nvidia::core_definitions::file_texture; +import ::nvidia::core_definitions::normalmap_texture; + +export material SimPBR_Translucent( + // -------------------- SPECULAR REFLECTION/TRANSMISSION ---------------------- + uniform float ior_constant = 1.1f + [[ + anno::display_name("Index of Refraction"), + anno::hard_range(0.0,5.), + anno::description("Index of Refraction of the material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + // -------------------- VOLUME ---------------------- + color transmittance_color = color(1.0, 1.0f, 1.0f) + [[ + anno::display_name("Transmittance Color"), + anno::description("Expected transmittance after the specified transmittance distance through the volume."), + anno::in_group("Volume") + ]], + float transmittance_measurement_distance = 1.0f + [[ + anno::display_name("Transmittance Measurement Distance"), + anno::description("Distance to match the transmittance through the volume at."), + anno::in_group("Volume") + ]], + + // -------------------- EMISSIVE ---------------------- + uniform bool enable_thin_walled = false + [[ + anno::display_name("Enable Thin Walled"), + anno::description("Enables thin walled logic"), + anno::in_group("Geometry") + ]], + + // -------------------- 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_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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("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 ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Tiling"), + anno::description("Controls the repetition of the texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR Translucent"), + anno::description("Supports the translucent material model of the Sim Renderer"), + anno::in_group("SimReady"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "translucent", "omniverse", "generic")) +]] + = let { + 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: 0, + projection_type: base::projection_cubic + ) : base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw + ); + float2 uv = float2(transformed_uvw.position.x, transformed_uvw.position.y); + + color volume_absorption_coefficient = -math::log(transmittance_color) / (transmittance_measurement_distance*0.01); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + tex::lookup_float4(tex: reflectionroughness_texture, coord: uv).x : reflection_roughness_constant; + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_lookup, reflection_roughness_texture_influence); + + float roughness_squared = reflection_roughness * reflection_roughness; + + bsdf final_bsdf(enable_thin_walled ? + ::df::fresnel_layer( + ior_constant, + 1.f, + ::df::microfacet_ggx_smith_bsdf( + roughness_squared, + roughness_squared, + color(1.f, 1.f, 1.f), + ::state::texture_tangent_u(0), + ::df::scatter_reflect, + "" + ), + ::df::specular_bsdf( + transmittance_color, + ::df::scatter_transmit, + "" + ), ::state::normal()) + : ::df::microfacet_ggx_smith_bsdf( + roughness_squared, + roughness_squared, + color(1.f, 1.f, 1.f), + ::state::texture_tangent_u(0), + ::df::scatter_reflect_transmit, + "" + )); + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook ? + ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) ? + tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) : color(1.0); + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw, + flip_tangent_u: flip_tangent_u, + flip_tangent_v: flip_tangent_v + ) : state::normal(); +} in material( + thin_walled: enable_thin_walled, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission ( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + ior: color(ior_constant), + volume: material_volume( + scattering: df::anisotropic_vdf(), + absorption_coefficient: volume_absorption_coefficient, + scattering_coefficient: color(0.0f, 0.0f, 0.0f) + ), + geometry: material_geometry( + normal: normal_lookup + ) +); diff --git a/assets/objects/vomp/bin_a02/materials/Plastic_B.mdl b/assets/objects/vomp/bin_a02/materials/Plastic_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a1f859e76e33a8c4b59f200324a30653eb5f116 --- /dev/null +++ b/assets/objects/vomp/bin_a02/materials/Plastic_B.mdl @@ -0,0 +1,52 @@ +mdl 1.7; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_B(*) + = OmniPBR( + diffuse_color_constant: color(), + diffuse_texture: texture_2d(), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_ORM_1k.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Normal_1k.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/bin_a04/materials/Plastic_B.mdl b/assets/objects/vomp/bin_a04/materials/Plastic_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a1f859e76e33a8c4b59f200324a30653eb5f116 --- /dev/null +++ b/assets/objects/vomp/bin_a04/materials/Plastic_B.mdl @@ -0,0 +1,52 @@ +mdl 1.7; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_B(*) + = OmniPBR( + diffuse_color_constant: color(), + diffuse_texture: texture_2d(), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_ORM_1k.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Normal_1k.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/bin_a06/materials/Plastic_B.mdl b/assets/objects/vomp/bin_a06/materials/Plastic_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a1f859e76e33a8c4b59f200324a30653eb5f116 --- /dev/null +++ b/assets/objects/vomp/bin_a06/materials/Plastic_B.mdl @@ -0,0 +1,52 @@ +mdl 1.7; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_B(*) + = OmniPBR( + diffuse_color_constant: color(), + diffuse_texture: texture_2d(), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_ORM_1k.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Normal_1k.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/bin_b02/materials/Plastic_B.mdl b/assets/objects/vomp/bin_b02/materials/Plastic_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a1f859e76e33a8c4b59f200324a30653eb5f116 --- /dev/null +++ b/assets/objects/vomp/bin_b02/materials/Plastic_B.mdl @@ -0,0 +1,52 @@ +mdl 1.7; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_B(*) + = OmniPBR( + diffuse_color_constant: color(), + diffuse_texture: texture_2d(), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_ORM_1k.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Normal_1k.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/bin_b03/materials/Plastic_B.mdl b/assets/objects/vomp/bin_b03/materials/Plastic_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a1f859e76e33a8c4b59f200324a30653eb5f116 --- /dev/null +++ b/assets/objects/vomp/bin_b03/materials/Plastic_B.mdl @@ -0,0 +1,52 @@ +mdl 1.7; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_B(*) + = OmniPBR( + diffuse_color_constant: color(), + diffuse_texture: texture_2d(), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_ORM_1k.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Normal_1k.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/box_a02/materials/Plastic_B.mdl b/assets/objects/vomp/box_a02/materials/Plastic_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a1f859e76e33a8c4b59f200324a30653eb5f116 --- /dev/null +++ b/assets/objects/vomp/box_a02/materials/Plastic_B.mdl @@ -0,0 +1,52 @@ +mdl 1.7; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_B(*) + = OmniPBR( + diffuse_color_constant: color(), + diffuse_texture: texture_2d(), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_ORM_1k.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Normal_1k.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/box_a02/materials/Plastic_Black_A.mdl b/assets/objects/vomp/box_a02/materials/Plastic_Black_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..1764e75479a520a2344e841fbde8c49541177a86 --- /dev/null +++ b/assets/objects/vomp/box_a02/materials/Plastic_Black_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_Black_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T_Plastic_Black_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_Black_A_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Black_A_Normal.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/box_a04/materials/Plastic_B.mdl b/assets/objects/vomp/box_a04/materials/Plastic_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a1f859e76e33a8c4b59f200324a30653eb5f116 --- /dev/null +++ b/assets/objects/vomp/box_a04/materials/Plastic_B.mdl @@ -0,0 +1,52 @@ +mdl 1.7; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_B(*) + = OmniPBR( + diffuse_color_constant: color(), + diffuse_texture: texture_2d(), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_ORM_1k.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Normal_1k.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/box_a04/materials/Plastic_Black_A.mdl b/assets/objects/vomp/box_a04/materials/Plastic_Black_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..1764e75479a520a2344e841fbde8c49541177a86 --- /dev/null +++ b/assets/objects/vomp/box_a04/materials/Plastic_Black_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_Black_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T_Plastic_Black_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_Black_A_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Black_A_Normal.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/box_a05/materials/Plastic_B.mdl b/assets/objects/vomp/box_a05/materials/Plastic_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a1f859e76e33a8c4b59f200324a30653eb5f116 --- /dev/null +++ b/assets/objects/vomp/box_a05/materials/Plastic_B.mdl @@ -0,0 +1,52 @@ +mdl 1.7; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_B(*) + = OmniPBR( + diffuse_color_constant: color(), + diffuse_texture: texture_2d(), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_ORM_1k.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Normal_1k.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/box_a05/materials/Plastic_Black_A.mdl b/assets/objects/vomp/box_a05/materials/Plastic_Black_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..1764e75479a520a2344e841fbde8c49541177a86 --- /dev/null +++ b/assets/objects/vomp/box_a05/materials/Plastic_Black_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_Black_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T_Plastic_Black_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_Black_A_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Black_A_Normal.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/box_a11/materials/Plastic_B.mdl b/assets/objects/vomp/box_a11/materials/Plastic_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a1f859e76e33a8c4b59f200324a30653eb5f116 --- /dev/null +++ b/assets/objects/vomp/box_a11/materials/Plastic_B.mdl @@ -0,0 +1,52 @@ +mdl 1.7; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_B(*) + = OmniPBR( + diffuse_color_constant: color(), + diffuse_texture: texture_2d(), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_ORM_1k.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Normal_1k.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/box_a11/materials/Plastic_Black_A.mdl b/assets/objects/vomp/box_a11/materials/Plastic_Black_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..1764e75479a520a2344e841fbde8c49541177a86 --- /dev/null +++ b/assets/objects/vomp/box_a11/materials/Plastic_Black_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_Black_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T_Plastic_Black_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_Black_A_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Black_A_Normal.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/case_c02/materials/Chrome_A.mdl b/assets/objects/vomp/case_c02/materials/Chrome_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..84bebfcb7665c30e8f037c3b64d8a4a633553807 --- /dev/null +++ b/assets/objects/vomp/case_c02/materials/Chrome_A.mdl @@ -0,0 +1,15 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Chrome_A(*) + = OmniPBR( + diffuse_texture: texture_2d("../textures/T_Metal_Chrome_A_Albedo.png", ::tex::gamma_srgb), + enable_ORM_texture: true, + metallic_texture_influence: 1.0, + normalmap_texture: texture_2d("../textures/T_Metal_Chrome_A_Normal.png", ::tex::gamma_linear), + ORM_texture: texture_2d("../textures/T_Metal_Chrome_A_ORM.png", ::tex::gamma_linear), + reflection_roughness_texture_influence: 1.0); \ No newline at end of file diff --git a/assets/objects/vomp/case_c02/materials/Metal_Glossy_A.mdl b/assets/objects/vomp/case_c02/materials/Metal_Glossy_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..a0055fbb8cda5c91a10c30f92a6f80c495ac79ef --- /dev/null +++ b/assets/objects/vomp/case_c02/materials/Metal_Glossy_A.mdl @@ -0,0 +1,16 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Metal_Glossy_A(*) + = OmniPBR( + diffuse_texture: texture_2d("../textures/T_Metal_Glossy_A_Albedo.png", ::tex::gamma_srgb), + enable_ORM_texture: true, + metallic_texture_influence: 1.0, + normalmap_texture: texture_2d("../textures/T_Metal_Glossy_A_Normal.png", ::tex::gamma_linear), + ORM_texture: texture_2d("../textures/T_Metal_Glossy_A_ORM.png", ::tex::gamma_linear), + reflection_roughness_texture_influence: 1.0, + texture_scale: float2(2, 2)); \ No newline at end of file diff --git a/assets/objects/vomp/case_c02/materials/Metal_Glossy_B.mdl b/assets/objects/vomp/case_c02/materials/Metal_Glossy_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..7ddfa894097a7c1a235b5c038c1fcdce96016e0e --- /dev/null +++ b/assets/objects/vomp/case_c02/materials/Metal_Glossy_B.mdl @@ -0,0 +1,16 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Metal_Glossy_B(*) + = OmniPBR( + diffuse_texture: texture_2d("../textures/T_Metal_Glossy_B_Albedo.png", ::tex::gamma_srgb), + enable_ORM_texture: true, + metallic_texture_influence: 1.0, + normalmap_texture: texture_2d("../textures/T_Metal_Glossy_B_Normal.png", ::tex::gamma_linear), + ORM_texture: texture_2d("../textures/T_Metal_Glossy_B_ORM.png", ::tex::gamma_linear), + reflection_roughness_texture_influence: 1.0, + texture_scale: float2(2, 2)); \ No newline at end of file diff --git a/assets/objects/vomp/case_c02/materials/Metal_Rough_A.mdl b/assets/objects/vomp/case_c02/materials/Metal_Rough_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..cc0937458e7320decdf4c7f13d031b04aaf3d133 --- /dev/null +++ b/assets/objects/vomp/case_c02/materials/Metal_Rough_A.mdl @@ -0,0 +1,16 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Metal_Rough_A(*) + = OmniPBR( + diffuse_texture: texture_2d("../textures/T_Metal_Rough_A_Albedo.png", ::tex::gamma_srgb), + enable_ORM_texture: true, + metallic_texture_influence: 1.0, + normalmap_texture: texture_2d("../textures/T_Metal_Rough_A_Normal.png", ::tex::gamma_linear), + ORM_texture: texture_2d("../textures/T_Metal_Rough_A_ORM.png", ::tex::gamma_linear), + reflection_roughness_texture_influence: 1.0, + texture_scale: float2(2, 2)); \ No newline at end of file diff --git a/assets/objects/vomp/case_c02/materials/Plastic_Black_A.mdl b/assets/objects/vomp/case_c02/materials/Plastic_Black_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..1764e75479a520a2344e841fbde8c49541177a86 --- /dev/null +++ b/assets/objects/vomp/case_c02/materials/Plastic_Black_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_Black_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T_Plastic_Black_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_Black_A_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Black_A_Normal.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/case_c05/materials/Chrome_A.mdl b/assets/objects/vomp/case_c05/materials/Chrome_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..84bebfcb7665c30e8f037c3b64d8a4a633553807 --- /dev/null +++ b/assets/objects/vomp/case_c05/materials/Chrome_A.mdl @@ -0,0 +1,15 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Chrome_A(*) + = OmniPBR( + diffuse_texture: texture_2d("../textures/T_Metal_Chrome_A_Albedo.png", ::tex::gamma_srgb), + enable_ORM_texture: true, + metallic_texture_influence: 1.0, + normalmap_texture: texture_2d("../textures/T_Metal_Chrome_A_Normal.png", ::tex::gamma_linear), + ORM_texture: texture_2d("../textures/T_Metal_Chrome_A_ORM.png", ::tex::gamma_linear), + reflection_roughness_texture_influence: 1.0); \ No newline at end of file diff --git a/assets/objects/vomp/case_c05/materials/Metal_Glossy_A.mdl b/assets/objects/vomp/case_c05/materials/Metal_Glossy_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..a0055fbb8cda5c91a10c30f92a6f80c495ac79ef --- /dev/null +++ b/assets/objects/vomp/case_c05/materials/Metal_Glossy_A.mdl @@ -0,0 +1,16 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Metal_Glossy_A(*) + = OmniPBR( + diffuse_texture: texture_2d("../textures/T_Metal_Glossy_A_Albedo.png", ::tex::gamma_srgb), + enable_ORM_texture: true, + metallic_texture_influence: 1.0, + normalmap_texture: texture_2d("../textures/T_Metal_Glossy_A_Normal.png", ::tex::gamma_linear), + ORM_texture: texture_2d("../textures/T_Metal_Glossy_A_ORM.png", ::tex::gamma_linear), + reflection_roughness_texture_influence: 1.0, + texture_scale: float2(2, 2)); \ No newline at end of file diff --git a/assets/objects/vomp/case_c05/materials/Metal_Glossy_B.mdl b/assets/objects/vomp/case_c05/materials/Metal_Glossy_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..7ddfa894097a7c1a235b5c038c1fcdce96016e0e --- /dev/null +++ b/assets/objects/vomp/case_c05/materials/Metal_Glossy_B.mdl @@ -0,0 +1,16 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Metal_Glossy_B(*) + = OmniPBR( + diffuse_texture: texture_2d("../textures/T_Metal_Glossy_B_Albedo.png", ::tex::gamma_srgb), + enable_ORM_texture: true, + metallic_texture_influence: 1.0, + normalmap_texture: texture_2d("../textures/T_Metal_Glossy_B_Normal.png", ::tex::gamma_linear), + ORM_texture: texture_2d("../textures/T_Metal_Glossy_B_ORM.png", ::tex::gamma_linear), + reflection_roughness_texture_influence: 1.0, + texture_scale: float2(2, 2)); \ No newline at end of file diff --git a/assets/objects/vomp/case_c05/materials/Metal_Rough_A.mdl b/assets/objects/vomp/case_c05/materials/Metal_Rough_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..cc0937458e7320decdf4c7f13d031b04aaf3d133 --- /dev/null +++ b/assets/objects/vomp/case_c05/materials/Metal_Rough_A.mdl @@ -0,0 +1,16 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Metal_Rough_A(*) + = OmniPBR( + diffuse_texture: texture_2d("../textures/T_Metal_Rough_A_Albedo.png", ::tex::gamma_srgb), + enable_ORM_texture: true, + metallic_texture_influence: 1.0, + normalmap_texture: texture_2d("../textures/T_Metal_Rough_A_Normal.png", ::tex::gamma_linear), + ORM_texture: texture_2d("../textures/T_Metal_Rough_A_ORM.png", ::tex::gamma_linear), + reflection_roughness_texture_influence: 1.0, + texture_scale: float2(2, 2)); \ No newline at end of file diff --git a/assets/objects/vomp/case_c05/materials/Plastic_Black_A.mdl b/assets/objects/vomp/case_c05/materials/Plastic_Black_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..1764e75479a520a2344e841fbde8c49541177a86 --- /dev/null +++ b/assets/objects/vomp/case_c05/materials/Plastic_Black_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_Black_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T_Plastic_Black_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_Black_A_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Black_A_Normal.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/case_e01/materials/Chrome_A.mdl b/assets/objects/vomp/case_e01/materials/Chrome_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..84bebfcb7665c30e8f037c3b64d8a4a633553807 --- /dev/null +++ b/assets/objects/vomp/case_e01/materials/Chrome_A.mdl @@ -0,0 +1,15 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Chrome_A(*) + = OmniPBR( + diffuse_texture: texture_2d("../textures/T_Metal_Chrome_A_Albedo.png", ::tex::gamma_srgb), + enable_ORM_texture: true, + metallic_texture_influence: 1.0, + normalmap_texture: texture_2d("../textures/T_Metal_Chrome_A_Normal.png", ::tex::gamma_linear), + ORM_texture: texture_2d("../textures/T_Metal_Chrome_A_ORM.png", ::tex::gamma_linear), + reflection_roughness_texture_influence: 1.0); \ No newline at end of file diff --git a/assets/objects/vomp/case_e01/materials/Metal_Glossy_A.mdl b/assets/objects/vomp/case_e01/materials/Metal_Glossy_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..a0055fbb8cda5c91a10c30f92a6f80c495ac79ef --- /dev/null +++ b/assets/objects/vomp/case_e01/materials/Metal_Glossy_A.mdl @@ -0,0 +1,16 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Metal_Glossy_A(*) + = OmniPBR( + diffuse_texture: texture_2d("../textures/T_Metal_Glossy_A_Albedo.png", ::tex::gamma_srgb), + enable_ORM_texture: true, + metallic_texture_influence: 1.0, + normalmap_texture: texture_2d("../textures/T_Metal_Glossy_A_Normal.png", ::tex::gamma_linear), + ORM_texture: texture_2d("../textures/T_Metal_Glossy_A_ORM.png", ::tex::gamma_linear), + reflection_roughness_texture_influence: 1.0, + texture_scale: float2(2, 2)); \ No newline at end of file diff --git a/assets/objects/vomp/case_e01/materials/Metal_Glossy_B.mdl b/assets/objects/vomp/case_e01/materials/Metal_Glossy_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..7ddfa894097a7c1a235b5c038c1fcdce96016e0e --- /dev/null +++ b/assets/objects/vomp/case_e01/materials/Metal_Glossy_B.mdl @@ -0,0 +1,16 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Metal_Glossy_B(*) + = OmniPBR( + diffuse_texture: texture_2d("../textures/T_Metal_Glossy_B_Albedo.png", ::tex::gamma_srgb), + enable_ORM_texture: true, + metallic_texture_influence: 1.0, + normalmap_texture: texture_2d("../textures/T_Metal_Glossy_B_Normal.png", ::tex::gamma_linear), + ORM_texture: texture_2d("../textures/T_Metal_Glossy_B_ORM.png", ::tex::gamma_linear), + reflection_roughness_texture_influence: 1.0, + texture_scale: float2(2, 2)); \ No newline at end of file diff --git a/assets/objects/vomp/case_e01/materials/Metal_Rough_A.mdl b/assets/objects/vomp/case_e01/materials/Metal_Rough_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..cc0937458e7320decdf4c7f13d031b04aaf3d133 --- /dev/null +++ b/assets/objects/vomp/case_e01/materials/Metal_Rough_A.mdl @@ -0,0 +1,16 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Metal_Rough_A(*) + = OmniPBR( + diffuse_texture: texture_2d("../textures/T_Metal_Rough_A_Albedo.png", ::tex::gamma_srgb), + enable_ORM_texture: true, + metallic_texture_influence: 1.0, + normalmap_texture: texture_2d("../textures/T_Metal_Rough_A_Normal.png", ::tex::gamma_linear), + ORM_texture: texture_2d("../textures/T_Metal_Rough_A_ORM.png", ::tex::gamma_linear), + reflection_roughness_texture_influence: 1.0, + texture_scale: float2(2, 2)); \ No newline at end of file diff --git a/assets/objects/vomp/case_e01/materials/Plastic_Black_A.mdl b/assets/objects/vomp/case_e01/materials/Plastic_Black_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..1764e75479a520a2344e841fbde8c49541177a86 --- /dev/null +++ b/assets/objects/vomp/case_e01/materials/Plastic_Black_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_Black_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T_Plastic_Black_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_Black_A_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Black_A_Normal.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_a03/materials/Chrome_A.mdl b/assets/objects/vomp/container_a03/materials/Chrome_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..84bebfcb7665c30e8f037c3b64d8a4a633553807 --- /dev/null +++ b/assets/objects/vomp/container_a03/materials/Chrome_A.mdl @@ -0,0 +1,15 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Chrome_A(*) + = OmniPBR( + diffuse_texture: texture_2d("../textures/T_Metal_Chrome_A_Albedo.png", ::tex::gamma_srgb), + enable_ORM_texture: true, + metallic_texture_influence: 1.0, + normalmap_texture: texture_2d("../textures/T_Metal_Chrome_A_Normal.png", ::tex::gamma_linear), + ORM_texture: texture_2d("../textures/T_Metal_Chrome_A_ORM.png", ::tex::gamma_linear), + reflection_roughness_texture_influence: 1.0); \ No newline at end of file diff --git a/assets/objects/vomp/container_a03/materials/Plastic_Black_A.mdl b/assets/objects/vomp/container_a03/materials/Plastic_Black_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..1764e75479a520a2344e841fbde8c49541177a86 --- /dev/null +++ b/assets/objects/vomp/container_a03/materials/Plastic_Black_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_Black_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T_Plastic_Black_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_Black_A_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Black_A_Normal.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_b04/materials/Plastic_B.mdl b/assets/objects/vomp/container_b04/materials/Plastic_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a1f859e76e33a8c4b59f200324a30653eb5f116 --- /dev/null +++ b/assets/objects/vomp/container_b04/materials/Plastic_B.mdl @@ -0,0 +1,52 @@ +mdl 1.7; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_B(*) + = OmniPBR( + diffuse_color_constant: color(), + diffuse_texture: texture_2d(), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_ORM_1k.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Normal_1k.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_b11/materials/Plastic_B.mdl b/assets/objects/vomp/container_b11/materials/Plastic_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a1f859e76e33a8c4b59f200324a30653eb5f116 --- /dev/null +++ b/assets/objects/vomp/container_b11/materials/Plastic_B.mdl @@ -0,0 +1,52 @@ +mdl 1.7; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_B(*) + = OmniPBR( + diffuse_color_constant: color(), + diffuse_texture: texture_2d(), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_ORM_1k.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Normal_1k.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_b18/materials/Plastic_B.mdl b/assets/objects/vomp/container_b18/materials/Plastic_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a1f859e76e33a8c4b59f200324a30653eb5f116 --- /dev/null +++ b/assets/objects/vomp/container_b18/materials/Plastic_B.mdl @@ -0,0 +1,52 @@ +mdl 1.7; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_B(*) + = OmniPBR( + diffuse_color_constant: color(), + diffuse_texture: texture_2d(), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_ORM_1k.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Normal_1k.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_c01/materials/Plastic_B.mdl b/assets/objects/vomp/container_c01/materials/Plastic_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a1f859e76e33a8c4b59f200324a30653eb5f116 --- /dev/null +++ b/assets/objects/vomp/container_c01/materials/Plastic_B.mdl @@ -0,0 +1,52 @@ +mdl 1.7; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_B(*) + = OmniPBR( + diffuse_color_constant: color(), + diffuse_texture: texture_2d(), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_ORM_1k.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Normal_1k.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_c04/materials/Plastic_B.mdl b/assets/objects/vomp/container_c04/materials/Plastic_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a1f859e76e33a8c4b59f200324a30653eb5f116 --- /dev/null +++ b/assets/objects/vomp/container_c04/materials/Plastic_B.mdl @@ -0,0 +1,52 @@ +mdl 1.7; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_B(*) + = OmniPBR( + diffuse_color_constant: color(), + diffuse_texture: texture_2d(), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_ORM_1k.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Normal_1k.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_c06/materials/Plastic_B.mdl b/assets/objects/vomp/container_c06/materials/Plastic_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a1f859e76e33a8c4b59f200324a30653eb5f116 --- /dev/null +++ b/assets/objects/vomp/container_c06/materials/Plastic_B.mdl @@ -0,0 +1,52 @@ +mdl 1.7; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_B(*) + = OmniPBR( + diffuse_color_constant: color(), + diffuse_texture: texture_2d(), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_ORM_1k.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Normal_1k.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_c11/materials/Plastic_B.mdl b/assets/objects/vomp/container_c11/materials/Plastic_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a1f859e76e33a8c4b59f200324a30653eb5f116 --- /dev/null +++ b/assets/objects/vomp/container_c11/materials/Plastic_B.mdl @@ -0,0 +1,52 @@ +mdl 1.7; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_B(*) + = OmniPBR( + diffuse_color_constant: color(), + diffuse_texture: texture_2d(), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_ORM_1k.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Normal_1k.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_c12/materials/Plastic_B.mdl b/assets/objects/vomp/container_c12/materials/Plastic_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a1f859e76e33a8c4b59f200324a30653eb5f116 --- /dev/null +++ b/assets/objects/vomp/container_c12/materials/Plastic_B.mdl @@ -0,0 +1,52 @@ +mdl 1.7; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_B(*) + = OmniPBR( + diffuse_color_constant: color(), + diffuse_texture: texture_2d(), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_ORM_1k.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Normal_1k.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_c13/materials/Plastic_B.mdl b/assets/objects/vomp/container_c13/materials/Plastic_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a1f859e76e33a8c4b59f200324a30653eb5f116 --- /dev/null +++ b/assets/objects/vomp/container_c13/materials/Plastic_B.mdl @@ -0,0 +1,52 @@ +mdl 1.7; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_B(*) + = OmniPBR( + diffuse_color_constant: color(), + diffuse_texture: texture_2d(), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_ORM_1k.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Normal_1k.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_c16/materials/Plastic_B.mdl b/assets/objects/vomp/container_c16/materials/Plastic_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a1f859e76e33a8c4b59f200324a30653eb5f116 --- /dev/null +++ b/assets/objects/vomp/container_c16/materials/Plastic_B.mdl @@ -0,0 +1,52 @@ +mdl 1.7; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_B(*) + = OmniPBR( + diffuse_color_constant: color(), + diffuse_texture: texture_2d(), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_ORM_1k.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Normal_1k.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_c20/materials/Plastic_B.mdl b/assets/objects/vomp/container_c20/materials/Plastic_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a1f859e76e33a8c4b59f200324a30653eb5f116 --- /dev/null +++ b/assets/objects/vomp/container_c20/materials/Plastic_B.mdl @@ -0,0 +1,52 @@ +mdl 1.7; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_B(*) + = OmniPBR( + diffuse_color_constant: color(), + diffuse_texture: texture_2d(), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_ORM_1k.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Normal_1k.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_c21/materials/Plastic_B.mdl b/assets/objects/vomp/container_c21/materials/Plastic_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a1f859e76e33a8c4b59f200324a30653eb5f116 --- /dev/null +++ b/assets/objects/vomp/container_c21/materials/Plastic_B.mdl @@ -0,0 +1,52 @@ +mdl 1.7; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_B(*) + = OmniPBR( + diffuse_color_constant: color(), + diffuse_texture: texture_2d(), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_ORM_1k.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Normal_1k.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_d01/materials/Plastic_B.mdl b/assets/objects/vomp/container_d01/materials/Plastic_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a1f859e76e33a8c4b59f200324a30653eb5f116 --- /dev/null +++ b/assets/objects/vomp/container_d01/materials/Plastic_B.mdl @@ -0,0 +1,52 @@ +mdl 1.7; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_B(*) + = OmniPBR( + diffuse_color_constant: color(), + diffuse_texture: texture_2d(), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_ORM_1k.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Normal_1k.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_d01/materials/Plastic_Black_A.mdl b/assets/objects/vomp/container_d01/materials/Plastic_Black_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..1764e75479a520a2344e841fbde8c49541177a86 --- /dev/null +++ b/assets/objects/vomp/container_d01/materials/Plastic_Black_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_Black_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T_Plastic_Black_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_Black_A_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Black_A_Normal.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_d06/materials/Plastic_B.mdl b/assets/objects/vomp/container_d06/materials/Plastic_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a1f859e76e33a8c4b59f200324a30653eb5f116 --- /dev/null +++ b/assets/objects/vomp/container_d06/materials/Plastic_B.mdl @@ -0,0 +1,52 @@ +mdl 1.7; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_B(*) + = OmniPBR( + diffuse_color_constant: color(), + diffuse_texture: texture_2d(), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_ORM_1k.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Normal_1k.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_d06/materials/Plastic_Black_A.mdl b/assets/objects/vomp/container_d06/materials/Plastic_Black_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..1764e75479a520a2344e841fbde8c49541177a86 --- /dev/null +++ b/assets/objects/vomp/container_d06/materials/Plastic_Black_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_Black_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T_Plastic_Black_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_Black_A_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Black_A_Normal.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_d08/materials/Plastic_B.mdl b/assets/objects/vomp/container_d08/materials/Plastic_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a1f859e76e33a8c4b59f200324a30653eb5f116 --- /dev/null +++ b/assets/objects/vomp/container_d08/materials/Plastic_B.mdl @@ -0,0 +1,52 @@ +mdl 1.7; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_B(*) + = OmniPBR( + diffuse_color_constant: color(), + diffuse_texture: texture_2d(), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_ORM_1k.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Normal_1k.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_d08/materials/Plastic_Black_A.mdl b/assets/objects/vomp/container_d08/materials/Plastic_Black_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..1764e75479a520a2344e841fbde8c49541177a86 --- /dev/null +++ b/assets/objects/vomp/container_d08/materials/Plastic_Black_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_Black_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T_Plastic_Black_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_Black_A_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Black_A_Normal.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_e03/materials/Plastic_B.mdl b/assets/objects/vomp/container_e03/materials/Plastic_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a1f859e76e33a8c4b59f200324a30653eb5f116 --- /dev/null +++ b/assets/objects/vomp/container_e03/materials/Plastic_B.mdl @@ -0,0 +1,52 @@ +mdl 1.7; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_B(*) + = OmniPBR( + diffuse_color_constant: color(), + diffuse_texture: texture_2d(), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_ORM_1k.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Normal_1k.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_f04/materials/Chrome_A.mdl b/assets/objects/vomp/container_f04/materials/Chrome_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..84bebfcb7665c30e8f037c3b64d8a4a633553807 --- /dev/null +++ b/assets/objects/vomp/container_f04/materials/Chrome_A.mdl @@ -0,0 +1,15 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Chrome_A(*) + = OmniPBR( + diffuse_texture: texture_2d("../textures/T_Metal_Chrome_A_Albedo.png", ::tex::gamma_srgb), + enable_ORM_texture: true, + metallic_texture_influence: 1.0, + normalmap_texture: texture_2d("../textures/T_Metal_Chrome_A_Normal.png", ::tex::gamma_linear), + ORM_texture: texture_2d("../textures/T_Metal_Chrome_A_ORM.png", ::tex::gamma_linear), + reflection_roughness_texture_influence: 1.0); \ No newline at end of file diff --git a/assets/objects/vomp/container_f04/materials/Metal_Rough_A.mdl b/assets/objects/vomp/container_f04/materials/Metal_Rough_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..cc0937458e7320decdf4c7f13d031b04aaf3d133 --- /dev/null +++ b/assets/objects/vomp/container_f04/materials/Metal_Rough_A.mdl @@ -0,0 +1,16 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Metal_Rough_A(*) + = OmniPBR( + diffuse_texture: texture_2d("../textures/T_Metal_Rough_A_Albedo.png", ::tex::gamma_srgb), + enable_ORM_texture: true, + metallic_texture_influence: 1.0, + normalmap_texture: texture_2d("../textures/T_Metal_Rough_A_Normal.png", ::tex::gamma_linear), + ORM_texture: texture_2d("../textures/T_Metal_Rough_A_ORM.png", ::tex::gamma_linear), + reflection_roughness_texture_influence: 1.0, + texture_scale: float2(2, 2)); \ No newline at end of file diff --git a/assets/objects/vomp/container_f04/materials/Plastic_B.mdl b/assets/objects/vomp/container_f04/materials/Plastic_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a1f859e76e33a8c4b59f200324a30653eb5f116 --- /dev/null +++ b/assets/objects/vomp/container_f04/materials/Plastic_B.mdl @@ -0,0 +1,52 @@ +mdl 1.7; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_B(*) + = OmniPBR( + diffuse_color_constant: color(), + diffuse_texture: texture_2d(), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_ORM_1k.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Normal_1k.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_f04/materials/Plastic_Black_A.mdl b/assets/objects/vomp/container_f04/materials/Plastic_Black_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..1764e75479a520a2344e841fbde8c49541177a86 --- /dev/null +++ b/assets/objects/vomp/container_f04/materials/Plastic_Black_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_Black_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T_Plastic_Black_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_Black_A_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Black_A_Normal.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_f08/materials/Chrome_A.mdl b/assets/objects/vomp/container_f08/materials/Chrome_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..84bebfcb7665c30e8f037c3b64d8a4a633553807 --- /dev/null +++ b/assets/objects/vomp/container_f08/materials/Chrome_A.mdl @@ -0,0 +1,15 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Chrome_A(*) + = OmniPBR( + diffuse_texture: texture_2d("../textures/T_Metal_Chrome_A_Albedo.png", ::tex::gamma_srgb), + enable_ORM_texture: true, + metallic_texture_influence: 1.0, + normalmap_texture: texture_2d("../textures/T_Metal_Chrome_A_Normal.png", ::tex::gamma_linear), + ORM_texture: texture_2d("../textures/T_Metal_Chrome_A_ORM.png", ::tex::gamma_linear), + reflection_roughness_texture_influence: 1.0); \ No newline at end of file diff --git a/assets/objects/vomp/container_f08/materials/Metal_Rough_A.mdl b/assets/objects/vomp/container_f08/materials/Metal_Rough_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..cc0937458e7320decdf4c7f13d031b04aaf3d133 --- /dev/null +++ b/assets/objects/vomp/container_f08/materials/Metal_Rough_A.mdl @@ -0,0 +1,16 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Metal_Rough_A(*) + = OmniPBR( + diffuse_texture: texture_2d("../textures/T_Metal_Rough_A_Albedo.png", ::tex::gamma_srgb), + enable_ORM_texture: true, + metallic_texture_influence: 1.0, + normalmap_texture: texture_2d("../textures/T_Metal_Rough_A_Normal.png", ::tex::gamma_linear), + ORM_texture: texture_2d("../textures/T_Metal_Rough_A_ORM.png", ::tex::gamma_linear), + reflection_roughness_texture_influence: 1.0, + texture_scale: float2(2, 2)); \ No newline at end of file diff --git a/assets/objects/vomp/container_f08/materials/Plastic_B.mdl b/assets/objects/vomp/container_f08/materials/Plastic_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a1f859e76e33a8c4b59f200324a30653eb5f116 --- /dev/null +++ b/assets/objects/vomp/container_f08/materials/Plastic_B.mdl @@ -0,0 +1,52 @@ +mdl 1.7; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_B(*) + = OmniPBR( + diffuse_color_constant: color(), + diffuse_texture: texture_2d(), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_ORM_1k.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Normal_1k.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_f08/materials/Plastic_Black_A.mdl b/assets/objects/vomp/container_f08/materials/Plastic_Black_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..1764e75479a520a2344e841fbde8c49541177a86 --- /dev/null +++ b/assets/objects/vomp/container_f08/materials/Plastic_Black_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_Black_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T_Plastic_Black_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_Black_A_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Black_A_Normal.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_f14/materials/Chrome_A.mdl b/assets/objects/vomp/container_f14/materials/Chrome_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..84bebfcb7665c30e8f037c3b64d8a4a633553807 --- /dev/null +++ b/assets/objects/vomp/container_f14/materials/Chrome_A.mdl @@ -0,0 +1,15 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Chrome_A(*) + = OmniPBR( + diffuse_texture: texture_2d("../textures/T_Metal_Chrome_A_Albedo.png", ::tex::gamma_srgb), + enable_ORM_texture: true, + metallic_texture_influence: 1.0, + normalmap_texture: texture_2d("../textures/T_Metal_Chrome_A_Normal.png", ::tex::gamma_linear), + ORM_texture: texture_2d("../textures/T_Metal_Chrome_A_ORM.png", ::tex::gamma_linear), + reflection_roughness_texture_influence: 1.0); \ No newline at end of file diff --git a/assets/objects/vomp/container_f14/materials/Metal_Rough_A.mdl b/assets/objects/vomp/container_f14/materials/Metal_Rough_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..cc0937458e7320decdf4c7f13d031b04aaf3d133 --- /dev/null +++ b/assets/objects/vomp/container_f14/materials/Metal_Rough_A.mdl @@ -0,0 +1,16 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Metal_Rough_A(*) + = OmniPBR( + diffuse_texture: texture_2d("../textures/T_Metal_Rough_A_Albedo.png", ::tex::gamma_srgb), + enable_ORM_texture: true, + metallic_texture_influence: 1.0, + normalmap_texture: texture_2d("../textures/T_Metal_Rough_A_Normal.png", ::tex::gamma_linear), + ORM_texture: texture_2d("../textures/T_Metal_Rough_A_ORM.png", ::tex::gamma_linear), + reflection_roughness_texture_influence: 1.0, + texture_scale: float2(2, 2)); \ No newline at end of file diff --git a/assets/objects/vomp/container_f14/materials/Plastic_B.mdl b/assets/objects/vomp/container_f14/materials/Plastic_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a1f859e76e33a8c4b59f200324a30653eb5f116 --- /dev/null +++ b/assets/objects/vomp/container_f14/materials/Plastic_B.mdl @@ -0,0 +1,52 @@ +mdl 1.7; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_B(*) + = OmniPBR( + diffuse_color_constant: color(), + diffuse_texture: texture_2d(), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_ORM_1k.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Normal_1k.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_f14/materials/Plastic_Black_A.mdl b/assets/objects/vomp/container_f14/materials/Plastic_Black_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..1764e75479a520a2344e841fbde8c49541177a86 --- /dev/null +++ b/assets/objects/vomp/container_f14/materials/Plastic_Black_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_Black_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T_Plastic_Black_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_Black_A_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Black_A_Normal.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_f16/materials/Chrome_A.mdl b/assets/objects/vomp/container_f16/materials/Chrome_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..84bebfcb7665c30e8f037c3b64d8a4a633553807 --- /dev/null +++ b/assets/objects/vomp/container_f16/materials/Chrome_A.mdl @@ -0,0 +1,15 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Chrome_A(*) + = OmniPBR( + diffuse_texture: texture_2d("../textures/T_Metal_Chrome_A_Albedo.png", ::tex::gamma_srgb), + enable_ORM_texture: true, + metallic_texture_influence: 1.0, + normalmap_texture: texture_2d("../textures/T_Metal_Chrome_A_Normal.png", ::tex::gamma_linear), + ORM_texture: texture_2d("../textures/T_Metal_Chrome_A_ORM.png", ::tex::gamma_linear), + reflection_roughness_texture_influence: 1.0); \ No newline at end of file diff --git a/assets/objects/vomp/container_f16/materials/Metal_Rough_A.mdl b/assets/objects/vomp/container_f16/materials/Metal_Rough_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..cc0937458e7320decdf4c7f13d031b04aaf3d133 --- /dev/null +++ b/assets/objects/vomp/container_f16/materials/Metal_Rough_A.mdl @@ -0,0 +1,16 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Metal_Rough_A(*) + = OmniPBR( + diffuse_texture: texture_2d("../textures/T_Metal_Rough_A_Albedo.png", ::tex::gamma_srgb), + enable_ORM_texture: true, + metallic_texture_influence: 1.0, + normalmap_texture: texture_2d("../textures/T_Metal_Rough_A_Normal.png", ::tex::gamma_linear), + ORM_texture: texture_2d("../textures/T_Metal_Rough_A_ORM.png", ::tex::gamma_linear), + reflection_roughness_texture_influence: 1.0, + texture_scale: float2(2, 2)); \ No newline at end of file diff --git a/assets/objects/vomp/container_f16/materials/Plastic_B.mdl b/assets/objects/vomp/container_f16/materials/Plastic_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a1f859e76e33a8c4b59f200324a30653eb5f116 --- /dev/null +++ b/assets/objects/vomp/container_f16/materials/Plastic_B.mdl @@ -0,0 +1,52 @@ +mdl 1.7; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_B(*) + = OmniPBR( + diffuse_color_constant: color(), + diffuse_texture: texture_2d(), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_ORM_1k.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Normal_1k.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_f16/materials/Plastic_Black_A.mdl b/assets/objects/vomp/container_f16/materials/Plastic_Black_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..1764e75479a520a2344e841fbde8c49541177a86 --- /dev/null +++ b/assets/objects/vomp/container_f16/materials/Plastic_Black_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_Black_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T_Plastic_Black_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_Black_A_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Black_A_Normal.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_f21/materials/Chrome_A.mdl b/assets/objects/vomp/container_f21/materials/Chrome_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..84bebfcb7665c30e8f037c3b64d8a4a633553807 --- /dev/null +++ b/assets/objects/vomp/container_f21/materials/Chrome_A.mdl @@ -0,0 +1,15 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Chrome_A(*) + = OmniPBR( + diffuse_texture: texture_2d("../textures/T_Metal_Chrome_A_Albedo.png", ::tex::gamma_srgb), + enable_ORM_texture: true, + metallic_texture_influence: 1.0, + normalmap_texture: texture_2d("../textures/T_Metal_Chrome_A_Normal.png", ::tex::gamma_linear), + ORM_texture: texture_2d("../textures/T_Metal_Chrome_A_ORM.png", ::tex::gamma_linear), + reflection_roughness_texture_influence: 1.0); \ No newline at end of file diff --git a/assets/objects/vomp/container_f21/materials/Metal_Rough_A.mdl b/assets/objects/vomp/container_f21/materials/Metal_Rough_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..cc0937458e7320decdf4c7f13d031b04aaf3d133 --- /dev/null +++ b/assets/objects/vomp/container_f21/materials/Metal_Rough_A.mdl @@ -0,0 +1,16 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Metal_Rough_A(*) + = OmniPBR( + diffuse_texture: texture_2d("../textures/T_Metal_Rough_A_Albedo.png", ::tex::gamma_srgb), + enable_ORM_texture: true, + metallic_texture_influence: 1.0, + normalmap_texture: texture_2d("../textures/T_Metal_Rough_A_Normal.png", ::tex::gamma_linear), + ORM_texture: texture_2d("../textures/T_Metal_Rough_A_ORM.png", ::tex::gamma_linear), + reflection_roughness_texture_influence: 1.0, + texture_scale: float2(2, 2)); \ No newline at end of file diff --git a/assets/objects/vomp/container_f21/materials/Plastic_B.mdl b/assets/objects/vomp/container_f21/materials/Plastic_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a1f859e76e33a8c4b59f200324a30653eb5f116 --- /dev/null +++ b/assets/objects/vomp/container_f21/materials/Plastic_B.mdl @@ -0,0 +1,52 @@ +mdl 1.7; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_B(*) + = OmniPBR( + diffuse_color_constant: color(), + diffuse_texture: texture_2d(), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_ORM_1k.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Normal_1k.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_f21/materials/Plastic_Black_A.mdl b/assets/objects/vomp/container_f21/materials/Plastic_Black_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..1764e75479a520a2344e841fbde8c49541177a86 --- /dev/null +++ b/assets/objects/vomp/container_f21/materials/Plastic_Black_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_Black_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T_Plastic_Black_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_Black_A_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Black_A_Normal.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_f23/materials/Chrome_A.mdl b/assets/objects/vomp/container_f23/materials/Chrome_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..84bebfcb7665c30e8f037c3b64d8a4a633553807 --- /dev/null +++ b/assets/objects/vomp/container_f23/materials/Chrome_A.mdl @@ -0,0 +1,15 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Chrome_A(*) + = OmniPBR( + diffuse_texture: texture_2d("../textures/T_Metal_Chrome_A_Albedo.png", ::tex::gamma_srgb), + enable_ORM_texture: true, + metallic_texture_influence: 1.0, + normalmap_texture: texture_2d("../textures/T_Metal_Chrome_A_Normal.png", ::tex::gamma_linear), + ORM_texture: texture_2d("../textures/T_Metal_Chrome_A_ORM.png", ::tex::gamma_linear), + reflection_roughness_texture_influence: 1.0); \ No newline at end of file diff --git a/assets/objects/vomp/container_f23/materials/Metal_Rough_A.mdl b/assets/objects/vomp/container_f23/materials/Metal_Rough_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..cc0937458e7320decdf4c7f13d031b04aaf3d133 --- /dev/null +++ b/assets/objects/vomp/container_f23/materials/Metal_Rough_A.mdl @@ -0,0 +1,16 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Metal_Rough_A(*) + = OmniPBR( + diffuse_texture: texture_2d("../textures/T_Metal_Rough_A_Albedo.png", ::tex::gamma_srgb), + enable_ORM_texture: true, + metallic_texture_influence: 1.0, + normalmap_texture: texture_2d("../textures/T_Metal_Rough_A_Normal.png", ::tex::gamma_linear), + ORM_texture: texture_2d("../textures/T_Metal_Rough_A_ORM.png", ::tex::gamma_linear), + reflection_roughness_texture_influence: 1.0, + texture_scale: float2(2, 2)); \ No newline at end of file diff --git a/assets/objects/vomp/container_f23/materials/Plastic_B.mdl b/assets/objects/vomp/container_f23/materials/Plastic_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a1f859e76e33a8c4b59f200324a30653eb5f116 --- /dev/null +++ b/assets/objects/vomp/container_f23/materials/Plastic_B.mdl @@ -0,0 +1,52 @@ +mdl 1.7; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_B(*) + = OmniPBR( + diffuse_color_constant: color(), + diffuse_texture: texture_2d(), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_ORM_1k.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Normal_1k.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/container_f23/materials/Plastic_Black_A.mdl b/assets/objects/vomp/container_f23/materials/Plastic_Black_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..1764e75479a520a2344e841fbde8c49541177a86 --- /dev/null +++ b/assets/objects/vomp/container_f23/materials/Plastic_Black_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_Black_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T_Plastic_Black_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_Black_A_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Black_A_Normal.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/cubebox_a02/materials/M_CubeBox_Cardboard_01.mdl b/assets/objects/vomp/cubebox_a02/materials/M_CubeBox_Cardboard_01.mdl new file mode 100644 index 0000000000000000000000000000000000000000..ba946183c334fed09d2031b531802ed2a4a9d9a4 --- /dev/null +++ b/assets/objects/vomp/cubebox_a02/materials/M_CubeBox_Cardboard_01.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material M_CubeBox_Cardboard_01(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("./textures/T_CubeBox_A01_Tile_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("./textures/T_CubeBox_A01_Tile_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("./textures/T_CubeBox_A01_Tile_Normal.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(1, 1), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/cubebox_a02/materials/M_CubeBox_Decal_01.mdl b/assets/objects/vomp/cubebox_a02/materials/M_CubeBox_Decal_01.mdl new file mode 100644 index 0000000000000000000000000000000000000000..3081ddc84348cfdf721ca53029e9fa142ded934b --- /dev/null +++ b/assets/objects/vomp/cubebox_a02/materials/M_CubeBox_Decal_01.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material M_CubeBox_Decal_01(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("./textures/T_CubeBox_A01_Trim_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("./textures/T_CubeBox_A01_Trim_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: true, + enable_opacity_texture: true, + opacity_constant: 1.0, + opacity_texture: texture_2d("./textures/T_CubeBox_A01_Trim_Opacity.png", ::tex::gamma_linear), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.04999999701976776, + bump_factor: 1.0, + normalmap_texture: texture_2d("./textures/T_CubeBox_A01_Trim_Normal.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(1, 1), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/fork_small/materials/SimPBR.mdl b/assets/objects/vomp/fork_small/materials/SimPBR.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5883146f569e93208db72c08a810b7d71eaeece7 --- /dev/null +++ b/assets/objects/vomp/fork_small/materials/SimPBR.mdl @@ -0,0 +1,562 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + + +using .::SimPBR_Model import *; +using .::baking_annotations import *; + +export material SimPBR( + // -------------------- DIFFUSE REFLECTION ---------------------- + uniform color diffuse_color_constant = color(0.2f) + [[ + anno::display_name("Albedo Base Color"), + anno::description("The base albedo color to use if no texture is specified"), + anno::in_group("Diffuse") + ]], + uniform texture_2d diffuse_texture = texture_2d() + [[ + anno::display_name("Albedo Map"), + anno::description("The texture specifying the albedo value to use"), + anno::in_group("Diffuse") + ]], + uniform color diffuse_tint = color(1.0f) + [[ + anno::display_name("Albedo Tint"), + anno::description("This tints the albedo color or texture contant"), + anno::in_group("Diffuse") + ]], + uniform bool enable_transmission = false + [[ + anno::display_name("Enable Diffuse Transmission"), + anno::description("Enables the diffuse transmission of light through thin diffuse scattering layer"), + anno::in_group("Diffuse") + ]], + uniform float opacity_ratio = 1.f + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Opacity Ratio"), + anno::description("Amount of opacity"), + anno::in_group("Diffuse") + ]], + uniform color opacity_tint = color(1.0f) + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Diffuse transmission tint"), + anno::description("Base diffuse transmission color"), + anno::in_group("Diffuse") + ]], + uniform float opacity_multiplier = 1.f + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Diffuse transmission multiplier"), + anno::description("Base diffuse transmission multiplier"), + anno::in_group("Diffuse") + ]], + + // -------------------- SPECULAR REFLECTION ---------------------- + 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + float anisotropy_constant = 0.0f + [[ + anno::display_name("Anisotropy Amount"), + anno::hard_range(-1.,1.), + anno::description("0 for isotropic, extents of -1 to 1 for anisotropy"), + anno::in_group("Specular") + ]], + uniform float anisotropy_texture_influence = 0.0f + [[ + anno::display_name("Anisotropy Map Influence"), + anno::hard_range(0.0, 1.), + anno::description("Blends between the constant value and the lookup of the anisotropy texture"), + anno::in_group("Specular") + ]], + uniform texture_2d anisotropy_texture = texture_2d() + [[ + anno::display_name("Anisotropy Map"), + anno::in_group("Specular") + ]], + + float metallic_constant = 0.f + [[ + anno::display_name("Metallic Amount"), + anno::hard_range(0.0,1.), + anno::description("Metallic Material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d metallic_texture = texture_2d() + [[ + anno::display_name("Metallic Map"), + anno::in_group("Specular") + ]], + + float specular_constant = 1.f + [[ + anno::display_name("Specular amount"), + anno::hard_range(0.0, 1.0), + anno::description("Scale of the specular component"), + anno::in_group("Specular") + ]], + uniform texture_2d specular_texture = texture_2d() + [[ + anno::display_name("Specular Map"), + anno::in_group("Specular") + ]], + + // -------------------- ORM ---------------------- + uniform bool enable_ORM_texture = true + [[ + 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") + ]], + + // -------------------- 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") + ]], + 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") + ]], + + float3 clearcoat_normal_input = float3(0.0, 0.0, 0.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") + ]], + + uniform bool clearcoat_flip_tangent_u = false + [[ + anno::display_name("Clearcoat Normal Map Flip U Tangent"), + anno::in_group("Clearcoat") + ]], + uniform bool clearcoat_flip_tangent_v = true + [[ + anno::display_name("Clearcoat Normal Map Flip V Tangent"), + anno::in_group("Clearcoat") + ]], + + + // -------------------- REFLECTIVITY ---------------------- + uniform bool enable_retroreflection = false + [[ + anno::display_name("Enable Retroreflection"), + anno::in_group("Reflectivity") + ]], + color retroreflection_tint = color(.182,.800,.000) + [[ + anno::display_name("Retro-reflection tint"), + anno::description("The tint of the retroreflection"), + anno::in_group("Reflectivity") + ]], + uniform float normal_reflectivity = 0.5 + [[ + anno::display_name("Retro-reflection weight facing"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for geometry facing the viewer"), + anno::in_group("Reflectivity") + ]], + uniform float grazing_reflectivity = 1.0 + [[ + anno::display_name("Retro-reflection weight edge"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for the reflectivity at geometry edges"), + anno::in_group("Reflectivity") + ]], + + // -------------------- AMBIENT OCCLUSION ---------------------- + 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") + ]], + float ao_input = 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") + ]], + + // -------------------- 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") + ]], + uniform 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") + ]], + + color emissive_mask_input = color(1.0), + 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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- ALPHA ---------------------- + uniform bool enable_opacity = false + [[ + anno::display_name("Enable Opacity"), + anno::description("Enables or disables alpha functionality"), + anno::in_group("Alpha") + ]], + float alpha_constant = 1.0 + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Opacity Fallback Constant"), + anno::hard_range(0.0, 1.0), + anno::description("The base alpha constant to use if no texture is specified"), + anno::in_group("Alpha") + ]], + uniform texture_2d opacity_texture = texture_2d() + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Opacity Map"), + anno::description("The texture specifying the opacity value to use"), + anno::in_group("Alpha") + ]], + uniform bool enable_opacity_cutout = false + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Enable Alpha Cutout"), + anno::description("Enables or disables alpha cutout functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_cutout_cutoff = 1.f + [[ + anno::enable_if("enable_opacity == true"), + anno::enable_if("enable_opacity_cutout == true"), + anno::hard_range(0.0, 1.0), + anno::display_name("Alpha Cutout Cutoff"), + anno::description("The cutoff value to to render as transparent up to and opaque past"), + anno::in_group("Alpha") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + + float3 normal_input = state::normal(), + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("Normal Map"), + anno::in_group("Normal") + ]], + uniform bool flip_tangent_u = false + [[ + anno::display_name("Normal Map Flip U Tangent"), + anno::description("Flips the U Tangent vector."), + anno::in_group("Normal") + ]], + uniform bool flip_tangent_v = true + [[ + anno::display_name("Normal Map Flip V Tangent"), + anno::description("Flips the V Tangent vector. By Default, SimPBR materials setup for DirectX normal maps. Set Normal Map Flip V = false for OpenGL."), + anno::in_group("Normal") + ]], + + // -------------------- UV ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Tiling"), + anno::description("Controls repetition of the texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR"), + anno::description("Supports the opaque alpha cutout material model of the Sim Renderer"), + anno::in_group("SimReady"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "opaque", "alpha", "cutout", "omniverse", "generic")) +]] + = let { + 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: 0, + projection_type: base::projection_cubic + ) : base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw + ); + float2 uv = float2(transformed_uvw.position.x, transformed_uvw.position.y); + + // Diffuse Color Lookup and AO + float4 base_lookup = tex::texture_isvalid(diffuse_texture) ? tex::lookup_float4(tex: diffuse_texture, coord: uv) : float4(1, 1, 1, 1); + + float opacityValue = tex::texture_isvalid(opacity_texture) ? tex::lookup_float4(tex: opacity_texture, coord: uv).w : alpha_constant; + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw, + flip_tangent_u: flip_tangent_u, + flip_tangent_v: flip_tangent_v + ) : normal_input; + + float3 clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? + base::tangent_space_normal_texture( + texture: clearcoat_normalmap_texture, + factor: clearcoat_bump_factor, + uvw: uvw, + flip_tangent_u: clearcoat_flip_tangent_u, + flip_tangent_v: clearcoat_flip_tangent_v + ) : clearcoat_normal_input; + + float3 flattened_clearcoat_normal = ::math::lerp(normal_lookup, ::state::normal(), clearcoat_flatten); + float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? clearcoat_normal : flattened_clearcoat_normal; + + float ao_lookup = tex::texture_isvalid(ao_texture) ? tex::lookup_float4(tex: ao_texture, coord: uv).x : ao_input; + + color diffuse_color = tex::texture_isvalid(diffuse_texture) ? color(base_lookup.x, base_lookup.y, base_lookup.z) : diffuse_color_constant; + + float3 ORM_lookup = tex::lookup_float3( + tex: ORM_texture, + coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) + ); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + tex::lookup_float4(tex: reflectionroughness_texture, coord: uv).x : reflection_roughness_constant; + float anisotropy_lookup = tex::texture_isvalid(anisotropy_texture) ? + (tex::lookup_float4(tex: anisotropy_texture, coord: uv).x * 2.0f - 1.0f) : anisotropy_constant; + float metallic_lookup = tex::texture_isvalid(metallic_texture) ? + tex::lookup_float4(tex: metallic_texture, coord: uv).x : metallic_constant; + float specular_lookup = tex::texture_isvalid(specular_texture) ? + tex::lookup_float4(tex: specular_texture, coord: uv).x : specular_constant; + + float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup; + float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup; + float ao = enable_ORM_texture ? ORM_lookup.x : ao_lookup; + + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); + float anisotropy = math::lerp(anisotropy_constant, anisotropy_lookup, anisotropy_texture_influence); + float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook ? + ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) ? + tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) : emissive_mask_input; + +} in SimPBR_Model( + diffuse_color: diffuse_color, + diffuse_tint: diffuse_tint, + roughness: reflection_roughness, + anisotropy: anisotropy, + metallic: metallic, + specular: specular_lookup, + normal: normal_lookup, + enable_clearcoat: enable_clearcoat, + clearcoat_tint: clearcoat_tint, + clearcoat_transparency: clearcoat_transparency, + clearcoat_reflection_roughness: clearcoat_reflection_roughness, + clearcoat_weight: clearcoat_weight, + clearcoat_ior: clearcoat_ior, + clearcoat_normal: final_clearcoat_normal, + enable_retroreflection: enable_retroreflection, + retroreflection_tint: retroreflection_tint, + normal_reflectivity: normal_reflectivity, + grazing_reflectivity: grazing_reflectivity, + ao_to_diffuse: ao_to_diffuse, + ao: ao, + enable_emission: enable_emission, + emissive_color: emissive_color, + emissive_mask: emissive_mask, + emissive_intensity: emissive_intensity, + enable_opacity: enable_opacity, + alpha: opacityValue, + enable_opacity_cutout: enable_opacity_cutout, + alpha_cutout_cutoff: alpha_cutout_cutoff, + opacity_ratio: enable_transmission ? opacity_ratio : 1.0, + opacity_tint : opacity_tint, + opacity_multiplier : opacity_multiplier +); diff --git a/assets/objects/vomp/fork_small/materials/SimPBR_Model.mdl b/assets/objects/vomp/fork_small/materials/SimPBR_Model.mdl new file mode 100644 index 0000000000000000000000000000000000000000..dccd3808942cb243a4e03f77f684935081b31ec5 --- /dev/null +++ b/assets/objects/vomp/fork_small/materials/SimPBR_Model.mdl @@ -0,0 +1,212 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +using .::baking_annotations import *; + +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 + ); +} + +export material SimPBR_Model( + color diffuse_color = color(0.2f) [[ target_baked_argument("diffuse_texture", "diffuse_color_constant", "RGBA8_UNORM") ]], + uniform color diffuse_tint = color(1.0f), + float roughness = 0.5f [[ target_baked_argument("reflectionroughness_texture", "reflection_roughness_constant", "R8_UNORM") ]], + float anisotropy = 0.0f [[ target_baked_argument("anisotropy_texture", "anisotropy_constant", "R8_SNORM") ]], + float metallic = 0.f [[ target_baked_argument("metallic_texture", "metallic_constant", "R8_UNORM") ]], + float specular = 1.f [[ target_baked_argument("specular_texture", "specular_constant", "R8_UNORM") ]], + float3 normal = float3(0.0, 0.0, 0.0) [[ target_baked_argument("normalmap_texture", "normal_input", "RGBA8_SNORM", baking_annotations::TRANSFORM_UNORM_VECTOR) ]], + uniform bool enable_clearcoat = false, + color clearcoat_tint = color(1.0f), + float clearcoat_transparency = 1.0f, + float clearcoat_reflection_roughness = 0.0f, + float clearcoat_weight = 1.0f, + float clearcoat_ior = 1.56f, + float3 clearcoat_normal = float3(0.0, 0.0, 0.0) [[ target_baked_argument("clearcoat_normalmap_texture", "clearcoat_normal_input", "RGBA8_SNORM", baking_annotations::TRANSFORM_UNORM_VECTOR) ]], + uniform bool enable_retroreflection = false, + color retroreflection_tint = color(.182,.800,.000), + uniform float normal_reflectivity = 0.5, + uniform float grazing_reflectivity = 1.0, + float ao_to_diffuse = 0.0, + float ao = 1.0f [[ target_baked_argument("ao_texture", "ao_input", "R8_UNORM") ]], + uniform bool enable_emission = false, + uniform color emissive_color = color(1.0, 0.1, 0.1), + color emissive_mask = color(1.0, 0.1, 0.1) [[ target_baked_argument("emissive_mask_texture", "emissive_mask_input", "R8_UNORM") ]], + uniform float emissive_intensity = 40.f, + uniform bool enable_opacity = false, + float alpha = 1.0, + uniform bool enable_opacity_cutout = false, + uniform float alpha_cutout_cutoff = 1.f, + uniform float opacity_ratio = 1.f, + uniform color opacity_tint = color(1.0f), + uniform float opacity_multiplier = 1.f +) +[[ + target_material_model(), + target_material_rendering("..::SimPBR::SimPBR") +]] + = let { + color base_color = multiply_colors(diffuse_color, diffuse_tint, 1.0).tint; + color ao_weighted_base_color = multiply_colors(base_color, color(ao), ao_to_diffuse).tint; + + float squared_roughness = roughness * roughness; + float roughness_u = squared_roughness * (1 + anisotropy); + float roughness_v = squared_roughness * (1 - anisotropy); + + color diffuse_transmission_color = base_color * opacity_tint * opacity_multiplier; + + bsdf diffuse_bsdf = df::weighted_layer( + weight: opacity_ratio, + layer: df::diffuse_reflection_bsdf( + tint: ao_weighted_base_color, + roughness: 0.0f + ), + base: df::diffuse_transmission_bsdf(tint: diffuse_transmission_color), + normal: enable_clearcoat ? normal : state::normal() + ); + + bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_u, + roughness_v: roughness_v, + tint: color(1.0, 1.0, 1.0), + mode: df::scatter_reflect + ); + + bsdf custom_curve_layer_bsdf = df::custom_curve_layer( + normal_reflectivity: 0.03, + grazing_reflectivity: 1.0, + exponent: 5.0, + weight: specular, + layer: ggx_smith_bsdf, + base: diffuse_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + // + // Begin RETROREFLECTION SUPPORT + // + color final_retroreflection_color = multiply_colors(retroreflection_tint, base_color, 1.0).tint; + bsdf backscattering_glossy_bsdf = df::backscattering_glossy_reflection_bsdf( + tint: final_retroreflection_color, + roughness_u: squared_roughness + ); + + /*bsdf retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: 1.-normal_reflectivity, + grazing_reflectivity: 1.-grazing_reflectivity, + base: backscattering_glossy_bsdf, + layer: custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + );*/ + + // if normal_reflectivity and grazing_reflectivity are 1 and weight is 1, just the layer is used + bsdf opt_retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: enable_retroreflection ? 1.-normal_reflectivity : 1, + grazing_reflectivity: enable_retroreflection ? 1.-grazing_reflectivity : 1, + base: backscattering_glossy_bsdf, + layer: custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + // + // End RETROREFLECTION SUPPORT + // + + bsdf directional_factor_bsdf = df::directional_factor( + normal_tint: ao_weighted_base_color, + grazing_tint: color(1.0, 1.0, 1.0), + exponent: 5.0f, + base: ggx_smith_bsdf + ); + + // CLEARCOAT + bsdf omni_PBR_bsdf = df::weighted_layer( + weight: metallic, + layer: directional_factor_bsdf, + base: opt_retroreflection_bsdf, //enable_retroreflection ? retroreflection_bsdf : custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + bsdf clearcoat_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + roughness_v: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + 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 opt_opaque_clearcoat = df::weighted_layer( + weight: enable_clearcoat ? clearcoat_transparency : 1, + layer: ::df::tint(tint: enable_clearcoat ? clearcoat_tint : color(1), base: omni_PBR_bsdf), + base: ::df::diffuse_reflection_bsdf(tint: clearcoat_tint) + ); + + bsdf opt_omni_PBR_coated_bsdf = df::fresnel_layer( + ior: clearcoat_ior, + weight: enable_clearcoat ? clearcoat_weight : 0, + layer: clearcoat_bsdf, + base: opt_opaque_clearcoat, + normal: clearcoat_normal + ); + + bsdf final_bsdf = opt_omni_PBR_coated_bsdf; +} in material( + thin_walled: false, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + geometry: material_geometry( + normal: enable_clearcoat ? state::normal() : normal, + cutout_opacity: enable_opacity ? (enable_opacity_cutout ? (alpha < alpha_cutout_cutoff ? 0.0 : 1.0) : alpha) : 1.0 + ) +); diff --git a/assets/objects/vomp/fork_small/materials/SimPBR_Opacity.mdl b/assets/objects/vomp/fork_small/materials/SimPBR_Opacity.mdl new file mode 100644 index 0000000000000000000000000000000000000000..cf0a3ba759fc0b873d174b410b31759b1d426307 --- /dev/null +++ b/assets/objects/vomp/fork_small/materials/SimPBR_Opacity.mdl @@ -0,0 +1,651 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +import ::nvidia::core_definitions::file_texture; +import ::nvidia::core_definitions::normalmap_texture; + +float4 raw_file_texture( + uniform texture_2d texture + [[ anno::description("The input texture") ]], + base::texture_coordinate_info uvw = base::texture_coordinate_info() + [[ anno::description("Custom value for texture coordinate") ]], + 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") ]] +) +[[ + anno::description("General texturing function for 2D bitmap texture stored in a file"), + anno::noinline() +]] +{ + return tex::lookup_float4(texture, float2(uvw.position.x, uvw.position.y), wrap_u, wrap_v, crop_u, crop_v); +} + +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 SimPBR_Opacity( + // -------------------- DIFFUSE REFLECTION ---------------------- + uniform color diffuse_color_constant = color(0.2f) + [[ + anno::display_name("Albedo Base Color"), + anno::description("The base albedo color to use if no texture is specified"), + anno::in_group("Diffuse") + ]], + uniform texture_2d diffuse_texture = texture_2d() + [[ + anno::display_name("Albedo Map"), + anno::description("The texture specifying the albedo value to use"), + anno::in_group("Diffuse") + ]], + uniform color diffuse_tint = color(1.0f) + [[ + anno::display_name("Albedo Tint"), + anno::description("This tints the albedo color or texture contant"), + anno::in_group("Diffuse") + ]], + + // -------------------- SPECULAR REFLECTION ---------------------- + uniform 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + uniform float anisotropy_constant = 0.0f + [[ + anno::display_name("Anisotropy Amount"), + anno::hard_range(-1.,1.), + anno::description("0 for isotropic, extents of -1 to 1 for anisotropy"), + anno::in_group("Specular") + ]], + uniform float anisotropy_texture_influence = 0.0f + [[ + anno::display_name("Anisotropy Map Influence"), + anno::hard_range(0.0, 1.), + anno::description("Blends between the constant value and the lookup of the anisotropy texture"), + anno::in_group("Specular") + ]], + uniform texture_2d anisotropy_texture = texture_2d() + [[ + anno::display_name("Anisotropy Map"), + anno::in_group("Specular") + ]], + + uniform float metallic_constant = 0.f + [[ + anno::display_name("Metallic Amount"), + anno::hard_range(0.0,1.), + anno::description("Metallic Material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d metallic_texture = texture_2d() + [[ + anno::display_name("Metallic Map"), + anno::in_group("Specular") + ]], + + // -------------------- ORM ---------------------- + uniform bool enable_ORM_texture = true + [[ + 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") + ]], + + // -------------------- 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") + ]], + 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") + ]], + 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") + ]], + + // -------------------- REFLECTIVITY ---------------------- + uniform bool enable_retroreflection = false + [[ + anno::display_name("Enable Retroreflection"), + anno::in_group("Reflectivity") + ]], + color retroreflection_color = color(.182,.800,.000) + [[ + anno::display_name("Retro-reflection color"), + anno::description("The color of the retroreflection"), + anno::in_group("Reflectivity") + ]], + uniform float normal_reflectivity = 0.5 + [[ + anno::display_name("Retro-reflection weight facing"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for geometry facing the viewer"), + anno::in_group("Reflectivity") + ]], + uniform float grazing_reflectivity = 1.0 + [[ + anno::display_name("Retro-reflection weight edge"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for the reflectivity at geometry edges"), + anno::in_group("Reflectivity") + ]], + + // -------------------- AMBIENT OCCLUSION ---------------------- + 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") + ]], + 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") + ]], + uniform 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_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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- ALPHA ---------------------- + uniform bool enable_alpha = true + [[ + anno::display_name("Enable Alpha"), + anno::description("Enables or disables alpha functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_constant = 1.0 + [[ + anno::display_name("Alpha Fallback Constant"), + anno::description("The base alpha constant to use if no texture is specified"), + anno::in_group("Alpha") + ]], + uniform texture_2d opacity_texture = texture_2d() + [[ + anno::display_name("Opacity Map"), + anno::description("The texture specifying the opacity value to use"), + anno::in_group("Alpha") + ]], + uniform bool enable_alpha_cutout = false + [[ + anno::display_name("Enable Alpha Cutout"), + anno::description("Enables or disables alpha cutout functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_cutout_cutoff = 1.f + [[ + anno::enable_if("enable_alpha_cutout == true"), + anno::hard_range(0.0, 1.0), + anno::display_name("Alpha Cutout Cutoff"), + anno::description("The cutoff value to to render as transparent up to and opaque past"), + anno::in_group("Alpha") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("Normal Map"), + anno::in_group("Normal") + ]], + + // -------------------- UV ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Scale"), + anno::description("Larger number increases size of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR Opaque Alpha Cutout"), + anno::description("Supports the opaque alpha cutout material model of the Sim Renderer"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "opaque", "alpha", "cutout", "omniverse", "generic")) +]] + = let { + + 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: 0, + projection_type: base::projection_cubic ) : + base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw ); + + // Diffuse Color Lookup and AO + float4 base_lookup = tex::texture_isvalid(diffuse_texture) ? raw_file_texture(texture: diffuse_texture, uvw: transformed_uvw) : float4(1, 1, 1, 1); + + float opacityValue = tex::texture_isvalid(opacity_texture) ? raw_file_texture(texture: opacity_texture, uvw: transformed_uvw).x : alpha_constant; + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw + ) : state::normal(); + + float3 clearcoat_normal = base::tangent_space_normal_texture( + texture: clearcoat_normalmap_texture, + factor: clearcoat_bump_factor, + uvw: uvw + ); + + float3 flattened_clearcoat_normal = ::math::lerp(normal_lookup, ::state::normal(), clearcoat_flatten); + float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? clearcoat_normal : flattened_clearcoat_normal; + + float ao_lookup = tex::texture_isvalid(ao_texture) ? + raw_file_texture(texture: ao_texture, uvw: transformed_uvw).x : + 1.0f + [[anno::unused("Currently unused in material, may be utilized in the future")]]; + + color diffuse_color = tex::texture_isvalid(diffuse_texture) ? color(base_lookup.x, base_lookup.y, base_lookup.z) : diffuse_color_constant; + color base_color = multiply_colors(diffuse_color, diffuse_tint, 1.0).tint; + + float3 ORM_lookup = tex::lookup_float3( + tex: ORM_texture, + coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) + ); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + raw_file_texture(texture: reflectionroughness_texture, uvw: transformed_uvw).x : + reflection_roughness_constant; + float anisotropy_lookup = tex::texture_isvalid(anisotropy_texture) ? + (raw_file_texture(texture: anisotropy_texture, uvw: transformed_uvw).x * 2.0f - 1.0f) : + anisotropy_constant; + float metallic_lookup = tex::texture_isvalid(metallic_texture) ? + raw_file_texture(texture: metallic_texture, uvw: transformed_uvw).x : + metallic_constant; + + float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup; + float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup; + color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : color(ao_lookup); + + color ao_weighted_base_color = multiply_colors(base_color, ao_color, ao_to_diffuse).tint; + + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); + float anisotropy = math::lerp(anisotropy_constant, anisotropy_lookup, anisotropy_texture_influence); + float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); + + float squared_roughness = reflection_roughness * reflection_roughness; + float roughness_u = squared_roughness * (1 + anisotropy); + float roughness_v = squared_roughness * (1 - anisotropy); + + bsdf diffuse_bsdf = df::weighted_layer( + weight: 1.0, + layer: df::diffuse_reflection_bsdf( + tint: ao_weighted_base_color, + roughness: 0.f ), + base: bsdf(), + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_u, + roughness_v: roughness_v, + tint: color(1.0, 1.0, 1.0), + mode: df::scatter_reflect + ); + + bsdf custom_curve_layer_bsdf = df::custom_curve_layer( + normal_reflectivity: 0.03, + grazing_reflectivity: 1.0, + exponent: 5.0, + weight: float(1.0), + layer: ggx_smith_bsdf, + base: diffuse_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + // + // Begin RETROREFLECTION SUPPORT + // + bsdf backscattering_glossy_bsdf = df::backscattering_glossy_reflection_bsdf( + tint: retroreflection_color, + roughness_u: reflection_roughness * reflection_roughness + ); + + bsdf retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: 1.-normal_reflectivity, + grazing_reflectivity: 1.-grazing_reflectivity, + base: backscattering_glossy_bsdf, + layer: diffuse_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + // + // End RETROREFLECTION SUPPORT + // + + bsdf directional_factor_bsdf = df::directional_factor( + normal_tint: ao_weighted_base_color, + grazing_tint: color(1.0, 1.0, 1.0), + exponent: 5.0f, + base: ggx_smith_bsdf + ); + + // CLEARCOAT + + bsdf omni_PBR_bsdf = df::weighted_layer( + weight: metallic, + layer: directional_factor_bsdf, + base: enable_retroreflection ? retroreflection_bsdf : custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + bsdf clearcoat_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + roughness_v: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + 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; + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook + ? ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) + : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) + ? tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) + : color(1.0); + +} in material( + thin_walled: false, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission ( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + geometry: material_geometry( + normal: enable_clearcoat ? state::normal() : normal_lookup, + cutout_opacity: enable_alpha ? (enable_alpha_cutout ? (opacityValue < alpha_cutout_cutoff ? 0.0 : 1.0) : opacityValue) : 1.0 + ) +); diff --git a/assets/objects/vomp/fork_small/materials/SimPBR_Translucent.mdl b/assets/objects/vomp/fork_small/materials/SimPBR_Translucent.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a60a90d1b946f94c266dabd515d5a15b6c3c9bd --- /dev/null +++ b/assets/objects/vomp/fork_small/materials/SimPBR_Translucent.mdl @@ -0,0 +1,290 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +import ::nvidia::core_definitions::file_texture; +import ::nvidia::core_definitions::normalmap_texture; + +export material SimPBR_Translucent( + // -------------------- SPECULAR REFLECTION/TRANSMISSION ---------------------- + uniform float ior_constant = 1.1f + [[ + anno::display_name("Index of Refraction"), + anno::hard_range(0.0,5.), + anno::description("Index of Refraction of the material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + // -------------------- VOLUME ---------------------- + color transmittance_color = color(1.0, 1.0f, 1.0f) + [[ + anno::display_name("Transmittance Color"), + anno::description("Expected transmittance after the specified transmittance distance through the volume."), + anno::in_group("Volume") + ]], + float transmittance_measurement_distance = 1.0f + [[ + anno::display_name("Transmittance Measurement Distance"), + anno::description("Distance to match the transmittance through the volume at."), + anno::in_group("Volume") + ]], + + // -------------------- EMISSIVE ---------------------- + uniform bool enable_thin_walled = false + [[ + anno::display_name("Enable Thin Walled"), + anno::description("Enables thin walled logic"), + anno::in_group("Geometry") + ]], + + // -------------------- 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_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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("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 ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Tiling"), + anno::description("Controls the repetition of the texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR Translucent"), + anno::description("Supports the translucent material model of the Sim Renderer"), + anno::in_group("SimReady"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "translucent", "omniverse", "generic")) +]] + = let { + 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: 0, + projection_type: base::projection_cubic + ) : base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw + ); + float2 uv = float2(transformed_uvw.position.x, transformed_uvw.position.y); + + color volume_absorption_coefficient = -math::log(transmittance_color) / (transmittance_measurement_distance*0.01); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + tex::lookup_float4(tex: reflectionroughness_texture, coord: uv).x : reflection_roughness_constant; + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_lookup, reflection_roughness_texture_influence); + + float roughness_squared = reflection_roughness * reflection_roughness; + + bsdf final_bsdf(enable_thin_walled ? + ::df::fresnel_layer( + ior_constant, + 1.f, + ::df::microfacet_ggx_smith_bsdf( + roughness_squared, + roughness_squared, + color(1.f, 1.f, 1.f), + ::state::texture_tangent_u(0), + ::df::scatter_reflect, + "" + ), + ::df::specular_bsdf( + transmittance_color, + ::df::scatter_transmit, + "" + ), ::state::normal()) + : ::df::microfacet_ggx_smith_bsdf( + roughness_squared, + roughness_squared, + color(1.f, 1.f, 1.f), + ::state::texture_tangent_u(0), + ::df::scatter_reflect_transmit, + "" + )); + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook ? + ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) ? + tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) : color(1.0); + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw, + flip_tangent_u: flip_tangent_u, + flip_tangent_v: flip_tangent_v + ) : state::normal(); +} in material( + thin_walled: enable_thin_walled, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission ( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + ior: color(ior_constant), + volume: material_volume( + scattering: df::anisotropic_vdf(), + absorption_coefficient: volume_absorption_coefficient, + scattering_coefficient: color(0.0f, 0.0f, 0.0f) + ), + geometry: material_geometry( + normal: normal_lookup + ) +); diff --git a/assets/objects/vomp/fork_small/textures/Fork_Small_BaseColor.png b/assets/objects/vomp/fork_small/textures/Fork_Small_BaseColor.png new file mode 100644 index 0000000000000000000000000000000000000000..0a0b3e581106ecd40d20e3b9ab1ff1dc034341ae Binary files /dev/null and b/assets/objects/vomp/fork_small/textures/Fork_Small_BaseColor.png differ diff --git a/assets/objects/vomp/fork_small/textures/Fork_Small_Metallic.png b/assets/objects/vomp/fork_small/textures/Fork_Small_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..2c9753944df3c23d1f0814c3a509302fdcece6a1 Binary files /dev/null and b/assets/objects/vomp/fork_small/textures/Fork_Small_Metallic.png differ diff --git a/assets/objects/vomp/fork_small/textures/Fork_Small_Normal.png b/assets/objects/vomp/fork_small/textures/Fork_Small_Normal.png new file mode 100644 index 0000000000000000000000000000000000000000..76d6e68f742935f2761b6bb59a4966217d206786 Binary files /dev/null and b/assets/objects/vomp/fork_small/textures/Fork_Small_Normal.png differ diff --git a/assets/objects/vomp/milkjug_a01/materials/Natural_Plastic_E.mdl b/assets/objects/vomp/milkjug_a01/materials/Natural_Plastic_E.mdl new file mode 100644 index 0000000000000000000000000000000000000000..720c324b820731f7873a9d1abe45dc74bfa4b6cd --- /dev/null +++ b/assets/objects/vomp/milkjug_a01/materials/Natural_Plastic_E.mdl @@ -0,0 +1,171 @@ +mdl 1.7; + +using m_mdl = "mdl"; + +import ::state::normal; +import ::OmniSurface::OmniImage::alpha_mode; +import ::OmniSurface::OmniImage::projection_mode; +import ::OmniSurface::OmniImage::tangent_bitangent_mapping; +import ::OmniSurface::OmniImage::wrap_mode; +import ::OmniSurface::OmniShared::displacement_mode; +import ::OmniSurface::OmniShared::emission_mode; +import ::OmniSurface::OmniShared::ior_presets; +import ::OmniSurface::OmniShared::scattering_colors_presets; +import ::OmniSurface::OmniSurface; +import ::base::texture_coordinate_system; +import ::tex::gamma_mode; + +export material Natural_Plastic_E(*) + = ::OmniSurface::OmniSurface( + diffuse_reflection_weight: 1.f, + diffuse_reflection_weight_image: texture_2d(), + diffuse_reflection_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + diffuse_reflection_color: color(1.f, 1.f, 1.f), + diffuse_reflection_color_image: texture_2d(), + diffuse_reflection_roughness: 0.f, + diffuse_reflection_roughness_image: texture_2d(), + diffuse_reflection_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + metalness: 0.049999997f, + metalness_image: texture_2d(), + metalness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_reflection_weight: 0.f, + specular_reflection_weight_image: texture_2d(), + specular_reflection_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_reflection_color: color(1.f, 1.f, 1.f), + specular_reflection_color_image: texture_2d(), + specular_reflection_roughness: 0.299999982f, + specular_reflection_roughness_image: texture_2d(), + specular_reflection_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_reflection_ior_preset: OmniSurface::OmniShared::ior_custom, + specular_reflection_ior: 2.f, + specular_reflection_anisotropy: 0.f, + specular_reflection_anisotropy_image: texture_2d(), + specular_reflection_anisotropy_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_reflection_anisotropy_rotation: 0.f, + specular_reflection_anisotropy_rotation_image: texture_2d(), + specular_reflection_anisotropy_rotation_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + enable_specular_transmission: true, + specular_transmission_weight: 0.799999952f, + specular_transmission_weight_image: texture_2d(), + specular_transmission_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_transmission_color: color(1.f, 1.f, 1.f), + specular_transmission_color_image: texture_2d(), + specular_transmission_scattering_depth: 0.f, + specular_transmission_scattering_depth_image: texture_2d(), + specular_transmission_scattering_depth_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_transmission_scattering_color: color(0.f, 0.f, 0.f), + specular_transmission_scattering_color_image: texture_2d(), + specular_transmission_scatter_anisotropy: 0.f, + specular_transmission_scatter_anisotropy_image: texture_2d(), + specular_transmission_scatter_anisotropy_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_transmission_dispersion_abbe: 0.f, + enable_diffuse_transmission: true, + subsurface_weight: 1.f, + subsurface_weight_image: texture_2d(), + subsurface_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + subsurface_scattering_colors_preset: OmniSurface::OmniShared::scattering_colors_custom, + subsurface_transmission_color: color(1.f, 1.f, 1.f), + subsurface_transmission_color_image: texture_2d(), + subsurface_scattering_color: color(1.f, 1.f, 1.f), + subsurface_scattering_color_image: texture_2d(), + subsurface_scale: 1.f, + subsurface_scale_image: texture_2d(), + subsurface_scale_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + subsurface_anisotropy: 0.f, + subsurface_anisotropy_image: texture_2d(), + subsurface_anisotropy_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_weight: 1.f, + coat_weight_image: texture_2d(), + coat_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_color: color(1.f, 1.f, 1.f), + coat_color_image: texture_2d(), + coat_roughness: 0.299999982f, + coat_roughness_image: texture_2d(), + coat_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_ior_preset: OmniSurface::OmniShared::ior_custom, + coat_ior: 1.5f, + coat_anisotropy: 0.f, + coat_anisotropy_image: texture_2d(), + coat_anisotropy_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_anisotropy_rotation: 0.f, + coat_anisotropy_rotation_image: texture_2d(), + coat_anisotropy_rotation_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_affect_color: 0.f, + coat_affect_color_image: texture_2d(), + coat_affect_color_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_affect_roughness: 0.f, + coat_affect_roughness_image: texture_2d(), + coat_affect_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_normal_strength: 1.f, + coat_normal: state::normal(), + coat_normal_image: texture_2d(), + coat_normal_image_flip_r_channel: false, + coat_normal_image_flip_g_channel: false, + coat_normal_image_flip_b_channel: false, + specular_retro_reflection_weight: 0.699999988f, + specular_retro_reflection_weight_image: texture_2d(), + specular_retro_reflection_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_retro_reflection_color: color(1.f, 1.f, 1.f), + specular_retro_reflection_color_image: texture_2d(), + specular_retro_reflection_roughness: 0.300000012f, + specular_retro_reflection_roughness_image: texture_2d(), + specular_retro_reflection_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + emission_weight: 0.f, + emission_weight_image: texture_2d(), + emission_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + emission_mode: OmniSurface::OmniShared::emission_lx, + emission_intensity: 1.f, + emission_intensity_image: texture_2d(), + emission_intensity_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + emission_color: color(1.f, 1.f, 1.f), + emission_color_image: texture_2d(), + emission_use_temperature: false, + emission_temperature: 6500.f, + emission_temperature_image: texture_2d(), + emission_temperature_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + enable_thin_film: false, + thin_film_thickness: 400.f, + thin_film_thickness_image: texture_2d(), + thin_film_thickness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + thin_film_ior_preset: OmniSurface::OmniShared::ior_custom, + thin_film_ior: 1.5f, + thin_walled: false, + enable_opacity: false, + geometry_opacity: 1.f, + geometry_opacity_image: texture_2d(), + geometry_opacity_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + geometry_opacity_threshold: 0.f, + geometry_normal_strength: 1.f, + geometry_normal: state::normal(), + geometry_normal_image: texture_2d(), + geometry_normal_image_flip_r_channel: false, + geometry_normal_image_flip_g_channel: false, + geometry_normal_image_flip_b_channel: false, + geometry_tangent_bitangent_mapping: OmniSurface::OmniImage::red_green, + geometry_displacement: float3(0.f), + geometry_displacement_mode: OmniSurface::OmniShared::displacement_height, + geometry_displacement_image: texture_2d(), + geometry_displacement_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + geometry_displacement_scale: 1.f, + geometry_displacement_scale_image: texture_2d(), + geometry_displacement_scale_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + geometry_displacement_scalar_zero_value: 0.f, + uvw_texture_coordinate_system: base::texture_coordinate_uvw, + uvw_uv_set: 0, + uvw_ignore_missing_textures: false, + uvw_missing_texture_color: color(0.f, 0.f, 0.f), + uvw_use_uv_coords: false, + uvw_uv_coords: float2(0.f), + uvw_s_offset: 0.f, + uvw_t_offset: 0.f, + uvw_s_wrap: OmniSurface::OmniImage::wrap_periodic, + uvw_t_wrap: OmniSurface::OmniImage::wrap_periodic, + uvw_s_scale: 1.f, + uvw_t_scale: 1.f, + uvw_s_flip: false, + uvw_t_flip: false, + uvw_swap_st: false, + uvw_projection_mode: OmniSurface::OmniImage::projection_cubic, + uvw_projection_translate: float3(0.f), + uvw_projection_rotate: float3(0.f), + uvw_projection_scale: float3(1.f)); \ No newline at end of file diff --git a/assets/objects/vomp/milkjug_a01/materials/Plastic_Glossy_White_A.mdl b/assets/objects/vomp/milkjug_a01/materials/Plastic_Glossy_White_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..65d67b36eece6ffda7b8a68c7b94feb2106d6313 --- /dev/null +++ b/assets/objects/vomp/milkjug_a01/materials/Plastic_Glossy_White_A.mdl @@ -0,0 +1,36 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_Glossy_White_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T_Plastic_Glossy_White_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_texture_influence: 1.0, + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_Glossy_White_A_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + enable_opacity: false, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Glossy_White_A_Normal.png", ::tex::gamma_linear), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(1, 1), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/milkjug_a02/materials/Natural_Plastic_E.mdl b/assets/objects/vomp/milkjug_a02/materials/Natural_Plastic_E.mdl new file mode 100644 index 0000000000000000000000000000000000000000..720c324b820731f7873a9d1abe45dc74bfa4b6cd --- /dev/null +++ b/assets/objects/vomp/milkjug_a02/materials/Natural_Plastic_E.mdl @@ -0,0 +1,171 @@ +mdl 1.7; + +using m_mdl = "mdl"; + +import ::state::normal; +import ::OmniSurface::OmniImage::alpha_mode; +import ::OmniSurface::OmniImage::projection_mode; +import ::OmniSurface::OmniImage::tangent_bitangent_mapping; +import ::OmniSurface::OmniImage::wrap_mode; +import ::OmniSurface::OmniShared::displacement_mode; +import ::OmniSurface::OmniShared::emission_mode; +import ::OmniSurface::OmniShared::ior_presets; +import ::OmniSurface::OmniShared::scattering_colors_presets; +import ::OmniSurface::OmniSurface; +import ::base::texture_coordinate_system; +import ::tex::gamma_mode; + +export material Natural_Plastic_E(*) + = ::OmniSurface::OmniSurface( + diffuse_reflection_weight: 1.f, + diffuse_reflection_weight_image: texture_2d(), + diffuse_reflection_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + diffuse_reflection_color: color(1.f, 1.f, 1.f), + diffuse_reflection_color_image: texture_2d(), + diffuse_reflection_roughness: 0.f, + diffuse_reflection_roughness_image: texture_2d(), + diffuse_reflection_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + metalness: 0.049999997f, + metalness_image: texture_2d(), + metalness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_reflection_weight: 0.f, + specular_reflection_weight_image: texture_2d(), + specular_reflection_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_reflection_color: color(1.f, 1.f, 1.f), + specular_reflection_color_image: texture_2d(), + specular_reflection_roughness: 0.299999982f, + specular_reflection_roughness_image: texture_2d(), + specular_reflection_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_reflection_ior_preset: OmniSurface::OmniShared::ior_custom, + specular_reflection_ior: 2.f, + specular_reflection_anisotropy: 0.f, + specular_reflection_anisotropy_image: texture_2d(), + specular_reflection_anisotropy_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_reflection_anisotropy_rotation: 0.f, + specular_reflection_anisotropy_rotation_image: texture_2d(), + specular_reflection_anisotropy_rotation_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + enable_specular_transmission: true, + specular_transmission_weight: 0.799999952f, + specular_transmission_weight_image: texture_2d(), + specular_transmission_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_transmission_color: color(1.f, 1.f, 1.f), + specular_transmission_color_image: texture_2d(), + specular_transmission_scattering_depth: 0.f, + specular_transmission_scattering_depth_image: texture_2d(), + specular_transmission_scattering_depth_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_transmission_scattering_color: color(0.f, 0.f, 0.f), + specular_transmission_scattering_color_image: texture_2d(), + specular_transmission_scatter_anisotropy: 0.f, + specular_transmission_scatter_anisotropy_image: texture_2d(), + specular_transmission_scatter_anisotropy_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_transmission_dispersion_abbe: 0.f, + enable_diffuse_transmission: true, + subsurface_weight: 1.f, + subsurface_weight_image: texture_2d(), + subsurface_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + subsurface_scattering_colors_preset: OmniSurface::OmniShared::scattering_colors_custom, + subsurface_transmission_color: color(1.f, 1.f, 1.f), + subsurface_transmission_color_image: texture_2d(), + subsurface_scattering_color: color(1.f, 1.f, 1.f), + subsurface_scattering_color_image: texture_2d(), + subsurface_scale: 1.f, + subsurface_scale_image: texture_2d(), + subsurface_scale_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + subsurface_anisotropy: 0.f, + subsurface_anisotropy_image: texture_2d(), + subsurface_anisotropy_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_weight: 1.f, + coat_weight_image: texture_2d(), + coat_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_color: color(1.f, 1.f, 1.f), + coat_color_image: texture_2d(), + coat_roughness: 0.299999982f, + coat_roughness_image: texture_2d(), + coat_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_ior_preset: OmniSurface::OmniShared::ior_custom, + coat_ior: 1.5f, + coat_anisotropy: 0.f, + coat_anisotropy_image: texture_2d(), + coat_anisotropy_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_anisotropy_rotation: 0.f, + coat_anisotropy_rotation_image: texture_2d(), + coat_anisotropy_rotation_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_affect_color: 0.f, + coat_affect_color_image: texture_2d(), + coat_affect_color_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_affect_roughness: 0.f, + coat_affect_roughness_image: texture_2d(), + coat_affect_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_normal_strength: 1.f, + coat_normal: state::normal(), + coat_normal_image: texture_2d(), + coat_normal_image_flip_r_channel: false, + coat_normal_image_flip_g_channel: false, + coat_normal_image_flip_b_channel: false, + specular_retro_reflection_weight: 0.699999988f, + specular_retro_reflection_weight_image: texture_2d(), + specular_retro_reflection_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_retro_reflection_color: color(1.f, 1.f, 1.f), + specular_retro_reflection_color_image: texture_2d(), + specular_retro_reflection_roughness: 0.300000012f, + specular_retro_reflection_roughness_image: texture_2d(), + specular_retro_reflection_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + emission_weight: 0.f, + emission_weight_image: texture_2d(), + emission_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + emission_mode: OmniSurface::OmniShared::emission_lx, + emission_intensity: 1.f, + emission_intensity_image: texture_2d(), + emission_intensity_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + emission_color: color(1.f, 1.f, 1.f), + emission_color_image: texture_2d(), + emission_use_temperature: false, + emission_temperature: 6500.f, + emission_temperature_image: texture_2d(), + emission_temperature_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + enable_thin_film: false, + thin_film_thickness: 400.f, + thin_film_thickness_image: texture_2d(), + thin_film_thickness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + thin_film_ior_preset: OmniSurface::OmniShared::ior_custom, + thin_film_ior: 1.5f, + thin_walled: false, + enable_opacity: false, + geometry_opacity: 1.f, + geometry_opacity_image: texture_2d(), + geometry_opacity_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + geometry_opacity_threshold: 0.f, + geometry_normal_strength: 1.f, + geometry_normal: state::normal(), + geometry_normal_image: texture_2d(), + geometry_normal_image_flip_r_channel: false, + geometry_normal_image_flip_g_channel: false, + geometry_normal_image_flip_b_channel: false, + geometry_tangent_bitangent_mapping: OmniSurface::OmniImage::red_green, + geometry_displacement: float3(0.f), + geometry_displacement_mode: OmniSurface::OmniShared::displacement_height, + geometry_displacement_image: texture_2d(), + geometry_displacement_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + geometry_displacement_scale: 1.f, + geometry_displacement_scale_image: texture_2d(), + geometry_displacement_scale_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + geometry_displacement_scalar_zero_value: 0.f, + uvw_texture_coordinate_system: base::texture_coordinate_uvw, + uvw_uv_set: 0, + uvw_ignore_missing_textures: false, + uvw_missing_texture_color: color(0.f, 0.f, 0.f), + uvw_use_uv_coords: false, + uvw_uv_coords: float2(0.f), + uvw_s_offset: 0.f, + uvw_t_offset: 0.f, + uvw_s_wrap: OmniSurface::OmniImage::wrap_periodic, + uvw_t_wrap: OmniSurface::OmniImage::wrap_periodic, + uvw_s_scale: 1.f, + uvw_t_scale: 1.f, + uvw_s_flip: false, + uvw_t_flip: false, + uvw_swap_st: false, + uvw_projection_mode: OmniSurface::OmniImage::projection_cubic, + uvw_projection_translate: float3(0.f), + uvw_projection_rotate: float3(0.f), + uvw_projection_scale: float3(1.f)); \ No newline at end of file diff --git a/assets/objects/vomp/milkjug_a02/materials/Plastic_Glossy_White_A.mdl b/assets/objects/vomp/milkjug_a02/materials/Plastic_Glossy_White_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..65d67b36eece6ffda7b8a68c7b94feb2106d6313 --- /dev/null +++ b/assets/objects/vomp/milkjug_a02/materials/Plastic_Glossy_White_A.mdl @@ -0,0 +1,36 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_Glossy_White_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T_Plastic_Glossy_White_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_texture_influence: 1.0, + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_Glossy_White_A_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + enable_opacity: false, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Glossy_White_A_Normal.png", ::tex::gamma_linear), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(1, 1), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/naturalbostonroundbottle_a02/materials/Natural_Plastic_E.mdl b/assets/objects/vomp/naturalbostonroundbottle_a02/materials/Natural_Plastic_E.mdl new file mode 100644 index 0000000000000000000000000000000000000000..720c324b820731f7873a9d1abe45dc74bfa4b6cd --- /dev/null +++ b/assets/objects/vomp/naturalbostonroundbottle_a02/materials/Natural_Plastic_E.mdl @@ -0,0 +1,171 @@ +mdl 1.7; + +using m_mdl = "mdl"; + +import ::state::normal; +import ::OmniSurface::OmniImage::alpha_mode; +import ::OmniSurface::OmniImage::projection_mode; +import ::OmniSurface::OmniImage::tangent_bitangent_mapping; +import ::OmniSurface::OmniImage::wrap_mode; +import ::OmniSurface::OmniShared::displacement_mode; +import ::OmniSurface::OmniShared::emission_mode; +import ::OmniSurface::OmniShared::ior_presets; +import ::OmniSurface::OmniShared::scattering_colors_presets; +import ::OmniSurface::OmniSurface; +import ::base::texture_coordinate_system; +import ::tex::gamma_mode; + +export material Natural_Plastic_E(*) + = ::OmniSurface::OmniSurface( + diffuse_reflection_weight: 1.f, + diffuse_reflection_weight_image: texture_2d(), + diffuse_reflection_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + diffuse_reflection_color: color(1.f, 1.f, 1.f), + diffuse_reflection_color_image: texture_2d(), + diffuse_reflection_roughness: 0.f, + diffuse_reflection_roughness_image: texture_2d(), + diffuse_reflection_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + metalness: 0.049999997f, + metalness_image: texture_2d(), + metalness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_reflection_weight: 0.f, + specular_reflection_weight_image: texture_2d(), + specular_reflection_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_reflection_color: color(1.f, 1.f, 1.f), + specular_reflection_color_image: texture_2d(), + specular_reflection_roughness: 0.299999982f, + specular_reflection_roughness_image: texture_2d(), + specular_reflection_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_reflection_ior_preset: OmniSurface::OmniShared::ior_custom, + specular_reflection_ior: 2.f, + specular_reflection_anisotropy: 0.f, + specular_reflection_anisotropy_image: texture_2d(), + specular_reflection_anisotropy_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_reflection_anisotropy_rotation: 0.f, + specular_reflection_anisotropy_rotation_image: texture_2d(), + specular_reflection_anisotropy_rotation_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + enable_specular_transmission: true, + specular_transmission_weight: 0.799999952f, + specular_transmission_weight_image: texture_2d(), + specular_transmission_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_transmission_color: color(1.f, 1.f, 1.f), + specular_transmission_color_image: texture_2d(), + specular_transmission_scattering_depth: 0.f, + specular_transmission_scattering_depth_image: texture_2d(), + specular_transmission_scattering_depth_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_transmission_scattering_color: color(0.f, 0.f, 0.f), + specular_transmission_scattering_color_image: texture_2d(), + specular_transmission_scatter_anisotropy: 0.f, + specular_transmission_scatter_anisotropy_image: texture_2d(), + specular_transmission_scatter_anisotropy_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_transmission_dispersion_abbe: 0.f, + enable_diffuse_transmission: true, + subsurface_weight: 1.f, + subsurface_weight_image: texture_2d(), + subsurface_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + subsurface_scattering_colors_preset: OmniSurface::OmniShared::scattering_colors_custom, + subsurface_transmission_color: color(1.f, 1.f, 1.f), + subsurface_transmission_color_image: texture_2d(), + subsurface_scattering_color: color(1.f, 1.f, 1.f), + subsurface_scattering_color_image: texture_2d(), + subsurface_scale: 1.f, + subsurface_scale_image: texture_2d(), + subsurface_scale_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + subsurface_anisotropy: 0.f, + subsurface_anisotropy_image: texture_2d(), + subsurface_anisotropy_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_weight: 1.f, + coat_weight_image: texture_2d(), + coat_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_color: color(1.f, 1.f, 1.f), + coat_color_image: texture_2d(), + coat_roughness: 0.299999982f, + coat_roughness_image: texture_2d(), + coat_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_ior_preset: OmniSurface::OmniShared::ior_custom, + coat_ior: 1.5f, + coat_anisotropy: 0.f, + coat_anisotropy_image: texture_2d(), + coat_anisotropy_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_anisotropy_rotation: 0.f, + coat_anisotropy_rotation_image: texture_2d(), + coat_anisotropy_rotation_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_affect_color: 0.f, + coat_affect_color_image: texture_2d(), + coat_affect_color_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_affect_roughness: 0.f, + coat_affect_roughness_image: texture_2d(), + coat_affect_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_normal_strength: 1.f, + coat_normal: state::normal(), + coat_normal_image: texture_2d(), + coat_normal_image_flip_r_channel: false, + coat_normal_image_flip_g_channel: false, + coat_normal_image_flip_b_channel: false, + specular_retro_reflection_weight: 0.699999988f, + specular_retro_reflection_weight_image: texture_2d(), + specular_retro_reflection_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_retro_reflection_color: color(1.f, 1.f, 1.f), + specular_retro_reflection_color_image: texture_2d(), + specular_retro_reflection_roughness: 0.300000012f, + specular_retro_reflection_roughness_image: texture_2d(), + specular_retro_reflection_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + emission_weight: 0.f, + emission_weight_image: texture_2d(), + emission_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + emission_mode: OmniSurface::OmniShared::emission_lx, + emission_intensity: 1.f, + emission_intensity_image: texture_2d(), + emission_intensity_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + emission_color: color(1.f, 1.f, 1.f), + emission_color_image: texture_2d(), + emission_use_temperature: false, + emission_temperature: 6500.f, + emission_temperature_image: texture_2d(), + emission_temperature_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + enable_thin_film: false, + thin_film_thickness: 400.f, + thin_film_thickness_image: texture_2d(), + thin_film_thickness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + thin_film_ior_preset: OmniSurface::OmniShared::ior_custom, + thin_film_ior: 1.5f, + thin_walled: false, + enable_opacity: false, + geometry_opacity: 1.f, + geometry_opacity_image: texture_2d(), + geometry_opacity_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + geometry_opacity_threshold: 0.f, + geometry_normal_strength: 1.f, + geometry_normal: state::normal(), + geometry_normal_image: texture_2d(), + geometry_normal_image_flip_r_channel: false, + geometry_normal_image_flip_g_channel: false, + geometry_normal_image_flip_b_channel: false, + geometry_tangent_bitangent_mapping: OmniSurface::OmniImage::red_green, + geometry_displacement: float3(0.f), + geometry_displacement_mode: OmniSurface::OmniShared::displacement_height, + geometry_displacement_image: texture_2d(), + geometry_displacement_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + geometry_displacement_scale: 1.f, + geometry_displacement_scale_image: texture_2d(), + geometry_displacement_scale_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + geometry_displacement_scalar_zero_value: 0.f, + uvw_texture_coordinate_system: base::texture_coordinate_uvw, + uvw_uv_set: 0, + uvw_ignore_missing_textures: false, + uvw_missing_texture_color: color(0.f, 0.f, 0.f), + uvw_use_uv_coords: false, + uvw_uv_coords: float2(0.f), + uvw_s_offset: 0.f, + uvw_t_offset: 0.f, + uvw_s_wrap: OmniSurface::OmniImage::wrap_periodic, + uvw_t_wrap: OmniSurface::OmniImage::wrap_periodic, + uvw_s_scale: 1.f, + uvw_t_scale: 1.f, + uvw_s_flip: false, + uvw_t_flip: false, + uvw_swap_st: false, + uvw_projection_mode: OmniSurface::OmniImage::projection_cubic, + uvw_projection_translate: float3(0.f), + uvw_projection_rotate: float3(0.f), + uvw_projection_scale: float3(1.f)); \ No newline at end of file diff --git a/assets/objects/vomp/naturalbostonroundbottle_a02/materials/Plastic_Glossy_White_A.mdl b/assets/objects/vomp/naturalbostonroundbottle_a02/materials/Plastic_Glossy_White_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..65d67b36eece6ffda7b8a68c7b94feb2106d6313 --- /dev/null +++ b/assets/objects/vomp/naturalbostonroundbottle_a02/materials/Plastic_Glossy_White_A.mdl @@ -0,0 +1,36 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_Glossy_White_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T_Plastic_Glossy_White_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_texture_influence: 1.0, + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_Glossy_White_A_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + enable_opacity: false, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Glossy_White_A_Normal.png", ::tex::gamma_linear), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(1, 1), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/plasticjerrican_a/materials/Natural_Plastic_E.mdl b/assets/objects/vomp/plasticjerrican_a/materials/Natural_Plastic_E.mdl new file mode 100644 index 0000000000000000000000000000000000000000..720c324b820731f7873a9d1abe45dc74bfa4b6cd --- /dev/null +++ b/assets/objects/vomp/plasticjerrican_a/materials/Natural_Plastic_E.mdl @@ -0,0 +1,171 @@ +mdl 1.7; + +using m_mdl = "mdl"; + +import ::state::normal; +import ::OmniSurface::OmniImage::alpha_mode; +import ::OmniSurface::OmniImage::projection_mode; +import ::OmniSurface::OmniImage::tangent_bitangent_mapping; +import ::OmniSurface::OmniImage::wrap_mode; +import ::OmniSurface::OmniShared::displacement_mode; +import ::OmniSurface::OmniShared::emission_mode; +import ::OmniSurface::OmniShared::ior_presets; +import ::OmniSurface::OmniShared::scattering_colors_presets; +import ::OmniSurface::OmniSurface; +import ::base::texture_coordinate_system; +import ::tex::gamma_mode; + +export material Natural_Plastic_E(*) + = ::OmniSurface::OmniSurface( + diffuse_reflection_weight: 1.f, + diffuse_reflection_weight_image: texture_2d(), + diffuse_reflection_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + diffuse_reflection_color: color(1.f, 1.f, 1.f), + diffuse_reflection_color_image: texture_2d(), + diffuse_reflection_roughness: 0.f, + diffuse_reflection_roughness_image: texture_2d(), + diffuse_reflection_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + metalness: 0.049999997f, + metalness_image: texture_2d(), + metalness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_reflection_weight: 0.f, + specular_reflection_weight_image: texture_2d(), + specular_reflection_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_reflection_color: color(1.f, 1.f, 1.f), + specular_reflection_color_image: texture_2d(), + specular_reflection_roughness: 0.299999982f, + specular_reflection_roughness_image: texture_2d(), + specular_reflection_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_reflection_ior_preset: OmniSurface::OmniShared::ior_custom, + specular_reflection_ior: 2.f, + specular_reflection_anisotropy: 0.f, + specular_reflection_anisotropy_image: texture_2d(), + specular_reflection_anisotropy_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_reflection_anisotropy_rotation: 0.f, + specular_reflection_anisotropy_rotation_image: texture_2d(), + specular_reflection_anisotropy_rotation_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + enable_specular_transmission: true, + specular_transmission_weight: 0.799999952f, + specular_transmission_weight_image: texture_2d(), + specular_transmission_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_transmission_color: color(1.f, 1.f, 1.f), + specular_transmission_color_image: texture_2d(), + specular_transmission_scattering_depth: 0.f, + specular_transmission_scattering_depth_image: texture_2d(), + specular_transmission_scattering_depth_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_transmission_scattering_color: color(0.f, 0.f, 0.f), + specular_transmission_scattering_color_image: texture_2d(), + specular_transmission_scatter_anisotropy: 0.f, + specular_transmission_scatter_anisotropy_image: texture_2d(), + specular_transmission_scatter_anisotropy_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_transmission_dispersion_abbe: 0.f, + enable_diffuse_transmission: true, + subsurface_weight: 1.f, + subsurface_weight_image: texture_2d(), + subsurface_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + subsurface_scattering_colors_preset: OmniSurface::OmniShared::scattering_colors_custom, + subsurface_transmission_color: color(1.f, 1.f, 1.f), + subsurface_transmission_color_image: texture_2d(), + subsurface_scattering_color: color(1.f, 1.f, 1.f), + subsurface_scattering_color_image: texture_2d(), + subsurface_scale: 1.f, + subsurface_scale_image: texture_2d(), + subsurface_scale_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + subsurface_anisotropy: 0.f, + subsurface_anisotropy_image: texture_2d(), + subsurface_anisotropy_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_weight: 1.f, + coat_weight_image: texture_2d(), + coat_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_color: color(1.f, 1.f, 1.f), + coat_color_image: texture_2d(), + coat_roughness: 0.299999982f, + coat_roughness_image: texture_2d(), + coat_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_ior_preset: OmniSurface::OmniShared::ior_custom, + coat_ior: 1.5f, + coat_anisotropy: 0.f, + coat_anisotropy_image: texture_2d(), + coat_anisotropy_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_anisotropy_rotation: 0.f, + coat_anisotropy_rotation_image: texture_2d(), + coat_anisotropy_rotation_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_affect_color: 0.f, + coat_affect_color_image: texture_2d(), + coat_affect_color_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_affect_roughness: 0.f, + coat_affect_roughness_image: texture_2d(), + coat_affect_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_normal_strength: 1.f, + coat_normal: state::normal(), + coat_normal_image: texture_2d(), + coat_normal_image_flip_r_channel: false, + coat_normal_image_flip_g_channel: false, + coat_normal_image_flip_b_channel: false, + specular_retro_reflection_weight: 0.699999988f, + specular_retro_reflection_weight_image: texture_2d(), + specular_retro_reflection_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_retro_reflection_color: color(1.f, 1.f, 1.f), + specular_retro_reflection_color_image: texture_2d(), + specular_retro_reflection_roughness: 0.300000012f, + specular_retro_reflection_roughness_image: texture_2d(), + specular_retro_reflection_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + emission_weight: 0.f, + emission_weight_image: texture_2d(), + emission_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + emission_mode: OmniSurface::OmniShared::emission_lx, + emission_intensity: 1.f, + emission_intensity_image: texture_2d(), + emission_intensity_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + emission_color: color(1.f, 1.f, 1.f), + emission_color_image: texture_2d(), + emission_use_temperature: false, + emission_temperature: 6500.f, + emission_temperature_image: texture_2d(), + emission_temperature_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + enable_thin_film: false, + thin_film_thickness: 400.f, + thin_film_thickness_image: texture_2d(), + thin_film_thickness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + thin_film_ior_preset: OmniSurface::OmniShared::ior_custom, + thin_film_ior: 1.5f, + thin_walled: false, + enable_opacity: false, + geometry_opacity: 1.f, + geometry_opacity_image: texture_2d(), + geometry_opacity_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + geometry_opacity_threshold: 0.f, + geometry_normal_strength: 1.f, + geometry_normal: state::normal(), + geometry_normal_image: texture_2d(), + geometry_normal_image_flip_r_channel: false, + geometry_normal_image_flip_g_channel: false, + geometry_normal_image_flip_b_channel: false, + geometry_tangent_bitangent_mapping: OmniSurface::OmniImage::red_green, + geometry_displacement: float3(0.f), + geometry_displacement_mode: OmniSurface::OmniShared::displacement_height, + geometry_displacement_image: texture_2d(), + geometry_displacement_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + geometry_displacement_scale: 1.f, + geometry_displacement_scale_image: texture_2d(), + geometry_displacement_scale_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + geometry_displacement_scalar_zero_value: 0.f, + uvw_texture_coordinate_system: base::texture_coordinate_uvw, + uvw_uv_set: 0, + uvw_ignore_missing_textures: false, + uvw_missing_texture_color: color(0.f, 0.f, 0.f), + uvw_use_uv_coords: false, + uvw_uv_coords: float2(0.f), + uvw_s_offset: 0.f, + uvw_t_offset: 0.f, + uvw_s_wrap: OmniSurface::OmniImage::wrap_periodic, + uvw_t_wrap: OmniSurface::OmniImage::wrap_periodic, + uvw_s_scale: 1.f, + uvw_t_scale: 1.f, + uvw_s_flip: false, + uvw_t_flip: false, + uvw_swap_st: false, + uvw_projection_mode: OmniSurface::OmniImage::projection_cubic, + uvw_projection_translate: float3(0.f), + uvw_projection_rotate: float3(0.f), + uvw_projection_scale: float3(1.f)); \ No newline at end of file diff --git a/assets/objects/vomp/plasticjerrican_a/materials/Plastic_Black_A.mdl b/assets/objects/vomp/plasticjerrican_a/materials/Plastic_Black_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..1764e75479a520a2344e841fbde8c49541177a86 --- /dev/null +++ b/assets/objects/vomp/plasticjerrican_a/materials/Plastic_Black_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_Black_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T_Plastic_Black_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_Black_A_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Black_A_Normal.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/plasticjerrican_a01/materials/Natural_Plastic_E.mdl b/assets/objects/vomp/plasticjerrican_a01/materials/Natural_Plastic_E.mdl new file mode 100644 index 0000000000000000000000000000000000000000..720c324b820731f7873a9d1abe45dc74bfa4b6cd --- /dev/null +++ b/assets/objects/vomp/plasticjerrican_a01/materials/Natural_Plastic_E.mdl @@ -0,0 +1,171 @@ +mdl 1.7; + +using m_mdl = "mdl"; + +import ::state::normal; +import ::OmniSurface::OmniImage::alpha_mode; +import ::OmniSurface::OmniImage::projection_mode; +import ::OmniSurface::OmniImage::tangent_bitangent_mapping; +import ::OmniSurface::OmniImage::wrap_mode; +import ::OmniSurface::OmniShared::displacement_mode; +import ::OmniSurface::OmniShared::emission_mode; +import ::OmniSurface::OmniShared::ior_presets; +import ::OmniSurface::OmniShared::scattering_colors_presets; +import ::OmniSurface::OmniSurface; +import ::base::texture_coordinate_system; +import ::tex::gamma_mode; + +export material Natural_Plastic_E(*) + = ::OmniSurface::OmniSurface( + diffuse_reflection_weight: 1.f, + diffuse_reflection_weight_image: texture_2d(), + diffuse_reflection_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + diffuse_reflection_color: color(1.f, 1.f, 1.f), + diffuse_reflection_color_image: texture_2d(), + diffuse_reflection_roughness: 0.f, + diffuse_reflection_roughness_image: texture_2d(), + diffuse_reflection_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + metalness: 0.049999997f, + metalness_image: texture_2d(), + metalness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_reflection_weight: 0.f, + specular_reflection_weight_image: texture_2d(), + specular_reflection_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_reflection_color: color(1.f, 1.f, 1.f), + specular_reflection_color_image: texture_2d(), + specular_reflection_roughness: 0.299999982f, + specular_reflection_roughness_image: texture_2d(), + specular_reflection_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_reflection_ior_preset: OmniSurface::OmniShared::ior_custom, + specular_reflection_ior: 2.f, + specular_reflection_anisotropy: 0.f, + specular_reflection_anisotropy_image: texture_2d(), + specular_reflection_anisotropy_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_reflection_anisotropy_rotation: 0.f, + specular_reflection_anisotropy_rotation_image: texture_2d(), + specular_reflection_anisotropy_rotation_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + enable_specular_transmission: true, + specular_transmission_weight: 0.799999952f, + specular_transmission_weight_image: texture_2d(), + specular_transmission_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_transmission_color: color(1.f, 1.f, 1.f), + specular_transmission_color_image: texture_2d(), + specular_transmission_scattering_depth: 0.f, + specular_transmission_scattering_depth_image: texture_2d(), + specular_transmission_scattering_depth_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_transmission_scattering_color: color(0.f, 0.f, 0.f), + specular_transmission_scattering_color_image: texture_2d(), + specular_transmission_scatter_anisotropy: 0.f, + specular_transmission_scatter_anisotropy_image: texture_2d(), + specular_transmission_scatter_anisotropy_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_transmission_dispersion_abbe: 0.f, + enable_diffuse_transmission: true, + subsurface_weight: 1.f, + subsurface_weight_image: texture_2d(), + subsurface_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + subsurface_scattering_colors_preset: OmniSurface::OmniShared::scattering_colors_custom, + subsurface_transmission_color: color(1.f, 1.f, 1.f), + subsurface_transmission_color_image: texture_2d(), + subsurface_scattering_color: color(1.f, 1.f, 1.f), + subsurface_scattering_color_image: texture_2d(), + subsurface_scale: 1.f, + subsurface_scale_image: texture_2d(), + subsurface_scale_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + subsurface_anisotropy: 0.f, + subsurface_anisotropy_image: texture_2d(), + subsurface_anisotropy_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_weight: 1.f, + coat_weight_image: texture_2d(), + coat_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_color: color(1.f, 1.f, 1.f), + coat_color_image: texture_2d(), + coat_roughness: 0.299999982f, + coat_roughness_image: texture_2d(), + coat_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_ior_preset: OmniSurface::OmniShared::ior_custom, + coat_ior: 1.5f, + coat_anisotropy: 0.f, + coat_anisotropy_image: texture_2d(), + coat_anisotropy_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_anisotropy_rotation: 0.f, + coat_anisotropy_rotation_image: texture_2d(), + coat_anisotropy_rotation_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_affect_color: 0.f, + coat_affect_color_image: texture_2d(), + coat_affect_color_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_affect_roughness: 0.f, + coat_affect_roughness_image: texture_2d(), + coat_affect_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_normal_strength: 1.f, + coat_normal: state::normal(), + coat_normal_image: texture_2d(), + coat_normal_image_flip_r_channel: false, + coat_normal_image_flip_g_channel: false, + coat_normal_image_flip_b_channel: false, + specular_retro_reflection_weight: 0.699999988f, + specular_retro_reflection_weight_image: texture_2d(), + specular_retro_reflection_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_retro_reflection_color: color(1.f, 1.f, 1.f), + specular_retro_reflection_color_image: texture_2d(), + specular_retro_reflection_roughness: 0.300000012f, + specular_retro_reflection_roughness_image: texture_2d(), + specular_retro_reflection_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + emission_weight: 0.f, + emission_weight_image: texture_2d(), + emission_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + emission_mode: OmniSurface::OmniShared::emission_lx, + emission_intensity: 1.f, + emission_intensity_image: texture_2d(), + emission_intensity_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + emission_color: color(1.f, 1.f, 1.f), + emission_color_image: texture_2d(), + emission_use_temperature: false, + emission_temperature: 6500.f, + emission_temperature_image: texture_2d(), + emission_temperature_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + enable_thin_film: false, + thin_film_thickness: 400.f, + thin_film_thickness_image: texture_2d(), + thin_film_thickness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + thin_film_ior_preset: OmniSurface::OmniShared::ior_custom, + thin_film_ior: 1.5f, + thin_walled: false, + enable_opacity: false, + geometry_opacity: 1.f, + geometry_opacity_image: texture_2d(), + geometry_opacity_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + geometry_opacity_threshold: 0.f, + geometry_normal_strength: 1.f, + geometry_normal: state::normal(), + geometry_normal_image: texture_2d(), + geometry_normal_image_flip_r_channel: false, + geometry_normal_image_flip_g_channel: false, + geometry_normal_image_flip_b_channel: false, + geometry_tangent_bitangent_mapping: OmniSurface::OmniImage::red_green, + geometry_displacement: float3(0.f), + geometry_displacement_mode: OmniSurface::OmniShared::displacement_height, + geometry_displacement_image: texture_2d(), + geometry_displacement_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + geometry_displacement_scale: 1.f, + geometry_displacement_scale_image: texture_2d(), + geometry_displacement_scale_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + geometry_displacement_scalar_zero_value: 0.f, + uvw_texture_coordinate_system: base::texture_coordinate_uvw, + uvw_uv_set: 0, + uvw_ignore_missing_textures: false, + uvw_missing_texture_color: color(0.f, 0.f, 0.f), + uvw_use_uv_coords: false, + uvw_uv_coords: float2(0.f), + uvw_s_offset: 0.f, + uvw_t_offset: 0.f, + uvw_s_wrap: OmniSurface::OmniImage::wrap_periodic, + uvw_t_wrap: OmniSurface::OmniImage::wrap_periodic, + uvw_s_scale: 1.f, + uvw_t_scale: 1.f, + uvw_s_flip: false, + uvw_t_flip: false, + uvw_swap_st: false, + uvw_projection_mode: OmniSurface::OmniImage::projection_cubic, + uvw_projection_translate: float3(0.f), + uvw_projection_rotate: float3(0.f), + uvw_projection_scale: float3(1.f)); \ No newline at end of file diff --git a/assets/objects/vomp/plasticjerrican_a01/materials/Plastic_Black_A.mdl b/assets/objects/vomp/plasticjerrican_a01/materials/Plastic_Black_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..1764e75479a520a2344e841fbde8c49541177a86 --- /dev/null +++ b/assets/objects/vomp/plasticjerrican_a01/materials/Plastic_Black_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_Black_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T_Plastic_Black_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_Black_A_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Black_A_Normal.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/plasticjerrican_a02/materials/Natural_Plastic_E.mdl b/assets/objects/vomp/plasticjerrican_a02/materials/Natural_Plastic_E.mdl new file mode 100644 index 0000000000000000000000000000000000000000..720c324b820731f7873a9d1abe45dc74bfa4b6cd --- /dev/null +++ b/assets/objects/vomp/plasticjerrican_a02/materials/Natural_Plastic_E.mdl @@ -0,0 +1,171 @@ +mdl 1.7; + +using m_mdl = "mdl"; + +import ::state::normal; +import ::OmniSurface::OmniImage::alpha_mode; +import ::OmniSurface::OmniImage::projection_mode; +import ::OmniSurface::OmniImage::tangent_bitangent_mapping; +import ::OmniSurface::OmniImage::wrap_mode; +import ::OmniSurface::OmniShared::displacement_mode; +import ::OmniSurface::OmniShared::emission_mode; +import ::OmniSurface::OmniShared::ior_presets; +import ::OmniSurface::OmniShared::scattering_colors_presets; +import ::OmniSurface::OmniSurface; +import ::base::texture_coordinate_system; +import ::tex::gamma_mode; + +export material Natural_Plastic_E(*) + = ::OmniSurface::OmniSurface( + diffuse_reflection_weight: 1.f, + diffuse_reflection_weight_image: texture_2d(), + diffuse_reflection_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + diffuse_reflection_color: color(1.f, 1.f, 1.f), + diffuse_reflection_color_image: texture_2d(), + diffuse_reflection_roughness: 0.f, + diffuse_reflection_roughness_image: texture_2d(), + diffuse_reflection_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + metalness: 0.049999997f, + metalness_image: texture_2d(), + metalness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_reflection_weight: 0.f, + specular_reflection_weight_image: texture_2d(), + specular_reflection_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_reflection_color: color(1.f, 1.f, 1.f), + specular_reflection_color_image: texture_2d(), + specular_reflection_roughness: 0.299999982f, + specular_reflection_roughness_image: texture_2d(), + specular_reflection_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_reflection_ior_preset: OmniSurface::OmniShared::ior_custom, + specular_reflection_ior: 2.f, + specular_reflection_anisotropy: 0.f, + specular_reflection_anisotropy_image: texture_2d(), + specular_reflection_anisotropy_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_reflection_anisotropy_rotation: 0.f, + specular_reflection_anisotropy_rotation_image: texture_2d(), + specular_reflection_anisotropy_rotation_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + enable_specular_transmission: true, + specular_transmission_weight: 0.799999952f, + specular_transmission_weight_image: texture_2d(), + specular_transmission_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_transmission_color: color(1.f, 1.f, 1.f), + specular_transmission_color_image: texture_2d(), + specular_transmission_scattering_depth: 0.f, + specular_transmission_scattering_depth_image: texture_2d(), + specular_transmission_scattering_depth_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_transmission_scattering_color: color(0.f, 0.f, 0.f), + specular_transmission_scattering_color_image: texture_2d(), + specular_transmission_scatter_anisotropy: 0.f, + specular_transmission_scatter_anisotropy_image: texture_2d(), + specular_transmission_scatter_anisotropy_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_transmission_dispersion_abbe: 0.f, + enable_diffuse_transmission: true, + subsurface_weight: 1.f, + subsurface_weight_image: texture_2d(), + subsurface_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + subsurface_scattering_colors_preset: OmniSurface::OmniShared::scattering_colors_custom, + subsurface_transmission_color: color(1.f, 1.f, 1.f), + subsurface_transmission_color_image: texture_2d(), + subsurface_scattering_color: color(1.f, 1.f, 1.f), + subsurface_scattering_color_image: texture_2d(), + subsurface_scale: 1.f, + subsurface_scale_image: texture_2d(), + subsurface_scale_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + subsurface_anisotropy: 0.f, + subsurface_anisotropy_image: texture_2d(), + subsurface_anisotropy_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_weight: 1.f, + coat_weight_image: texture_2d(), + coat_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_color: color(1.f, 1.f, 1.f), + coat_color_image: texture_2d(), + coat_roughness: 0.299999982f, + coat_roughness_image: texture_2d(), + coat_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_ior_preset: OmniSurface::OmniShared::ior_custom, + coat_ior: 1.5f, + coat_anisotropy: 0.f, + coat_anisotropy_image: texture_2d(), + coat_anisotropy_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_anisotropy_rotation: 0.f, + coat_anisotropy_rotation_image: texture_2d(), + coat_anisotropy_rotation_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_affect_color: 0.f, + coat_affect_color_image: texture_2d(), + coat_affect_color_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_affect_roughness: 0.f, + coat_affect_roughness_image: texture_2d(), + coat_affect_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_normal_strength: 1.f, + coat_normal: state::normal(), + coat_normal_image: texture_2d(), + coat_normal_image_flip_r_channel: false, + coat_normal_image_flip_g_channel: false, + coat_normal_image_flip_b_channel: false, + specular_retro_reflection_weight: 0.699999988f, + specular_retro_reflection_weight_image: texture_2d(), + specular_retro_reflection_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_retro_reflection_color: color(1.f, 1.f, 1.f), + specular_retro_reflection_color_image: texture_2d(), + specular_retro_reflection_roughness: 0.300000012f, + specular_retro_reflection_roughness_image: texture_2d(), + specular_retro_reflection_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + emission_weight: 0.f, + emission_weight_image: texture_2d(), + emission_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + emission_mode: OmniSurface::OmniShared::emission_lx, + emission_intensity: 1.f, + emission_intensity_image: texture_2d(), + emission_intensity_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + emission_color: color(1.f, 1.f, 1.f), + emission_color_image: texture_2d(), + emission_use_temperature: false, + emission_temperature: 6500.f, + emission_temperature_image: texture_2d(), + emission_temperature_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + enable_thin_film: false, + thin_film_thickness: 400.f, + thin_film_thickness_image: texture_2d(), + thin_film_thickness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + thin_film_ior_preset: OmniSurface::OmniShared::ior_custom, + thin_film_ior: 1.5f, + thin_walled: false, + enable_opacity: false, + geometry_opacity: 1.f, + geometry_opacity_image: texture_2d(), + geometry_opacity_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + geometry_opacity_threshold: 0.f, + geometry_normal_strength: 1.f, + geometry_normal: state::normal(), + geometry_normal_image: texture_2d(), + geometry_normal_image_flip_r_channel: false, + geometry_normal_image_flip_g_channel: false, + geometry_normal_image_flip_b_channel: false, + geometry_tangent_bitangent_mapping: OmniSurface::OmniImage::red_green, + geometry_displacement: float3(0.f), + geometry_displacement_mode: OmniSurface::OmniShared::displacement_height, + geometry_displacement_image: texture_2d(), + geometry_displacement_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + geometry_displacement_scale: 1.f, + geometry_displacement_scale_image: texture_2d(), + geometry_displacement_scale_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + geometry_displacement_scalar_zero_value: 0.f, + uvw_texture_coordinate_system: base::texture_coordinate_uvw, + uvw_uv_set: 0, + uvw_ignore_missing_textures: false, + uvw_missing_texture_color: color(0.f, 0.f, 0.f), + uvw_use_uv_coords: false, + uvw_uv_coords: float2(0.f), + uvw_s_offset: 0.f, + uvw_t_offset: 0.f, + uvw_s_wrap: OmniSurface::OmniImage::wrap_periodic, + uvw_t_wrap: OmniSurface::OmniImage::wrap_periodic, + uvw_s_scale: 1.f, + uvw_t_scale: 1.f, + uvw_s_flip: false, + uvw_t_flip: false, + uvw_swap_st: false, + uvw_projection_mode: OmniSurface::OmniImage::projection_cubic, + uvw_projection_translate: float3(0.f), + uvw_projection_rotate: float3(0.f), + uvw_projection_scale: float3(1.f)); \ No newline at end of file diff --git a/assets/objects/vomp/plasticjerrican_a02/materials/Plastic_Blue_B.mdl b/assets/objects/vomp/plasticjerrican_a02/materials/Plastic_Blue_B.mdl new file mode 100644 index 0000000000000000000000000000000000000000..456c1f2cfdfda8f78d9b450b16c94ab599b14f8e --- /dev/null +++ b/assets/objects/vomp/plasticjerrican_a02/materials/Plastic_Blue_B.mdl @@ -0,0 +1,22 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_Blue_B(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T_Plastic_Blue_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 0.78, + diffuse_tint: color(0.57865864, 0.7281282, 0.87644786), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_Blue_A_ORM.png", ::tex::gamma_linear), + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Blue_A_Normal.png", ::tex::gamma_linear)); \ No newline at end of file diff --git a/assets/objects/vomp/plasticjerrican_a02/materials/Plastic_Glossy_White_A.mdl b/assets/objects/vomp/plasticjerrican_a02/materials/Plastic_Glossy_White_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..65d67b36eece6ffda7b8a68c7b94feb2106d6313 --- /dev/null +++ b/assets/objects/vomp/plasticjerrican_a02/materials/Plastic_Glossy_White_A.mdl @@ -0,0 +1,36 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_Glossy_White_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T_Plastic_Glossy_White_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_texture_influence: 1.0, + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_Glossy_White_A_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + enable_opacity: false, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Glossy_White_A_Normal.png", ::tex::gamma_linear), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(1, 1), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/plasticpail_a04/materials/Metal_Glossy_A.mdl b/assets/objects/vomp/plasticpail_a04/materials/Metal_Glossy_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..a0055fbb8cda5c91a10c30f92a6f80c495ac79ef --- /dev/null +++ b/assets/objects/vomp/plasticpail_a04/materials/Metal_Glossy_A.mdl @@ -0,0 +1,16 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Metal_Glossy_A(*) + = OmniPBR( + diffuse_texture: texture_2d("../textures/T_Metal_Glossy_A_Albedo.png", ::tex::gamma_srgb), + enable_ORM_texture: true, + metallic_texture_influence: 1.0, + normalmap_texture: texture_2d("../textures/T_Metal_Glossy_A_Normal.png", ::tex::gamma_linear), + ORM_texture: texture_2d("../textures/T_Metal_Glossy_A_ORM.png", ::tex::gamma_linear), + reflection_roughness_texture_influence: 1.0, + texture_scale: float2(2, 2)); \ No newline at end of file diff --git a/assets/objects/vomp/plasticpail_a04/materials/Natural_Plastic_E.mdl b/assets/objects/vomp/plasticpail_a04/materials/Natural_Plastic_E.mdl new file mode 100644 index 0000000000000000000000000000000000000000..720c324b820731f7873a9d1abe45dc74bfa4b6cd --- /dev/null +++ b/assets/objects/vomp/plasticpail_a04/materials/Natural_Plastic_E.mdl @@ -0,0 +1,171 @@ +mdl 1.7; + +using m_mdl = "mdl"; + +import ::state::normal; +import ::OmniSurface::OmniImage::alpha_mode; +import ::OmniSurface::OmniImage::projection_mode; +import ::OmniSurface::OmniImage::tangent_bitangent_mapping; +import ::OmniSurface::OmniImage::wrap_mode; +import ::OmniSurface::OmniShared::displacement_mode; +import ::OmniSurface::OmniShared::emission_mode; +import ::OmniSurface::OmniShared::ior_presets; +import ::OmniSurface::OmniShared::scattering_colors_presets; +import ::OmniSurface::OmniSurface; +import ::base::texture_coordinate_system; +import ::tex::gamma_mode; + +export material Natural_Plastic_E(*) + = ::OmniSurface::OmniSurface( + diffuse_reflection_weight: 1.f, + diffuse_reflection_weight_image: texture_2d(), + diffuse_reflection_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + diffuse_reflection_color: color(1.f, 1.f, 1.f), + diffuse_reflection_color_image: texture_2d(), + diffuse_reflection_roughness: 0.f, + diffuse_reflection_roughness_image: texture_2d(), + diffuse_reflection_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + metalness: 0.049999997f, + metalness_image: texture_2d(), + metalness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_reflection_weight: 0.f, + specular_reflection_weight_image: texture_2d(), + specular_reflection_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_reflection_color: color(1.f, 1.f, 1.f), + specular_reflection_color_image: texture_2d(), + specular_reflection_roughness: 0.299999982f, + specular_reflection_roughness_image: texture_2d(), + specular_reflection_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_reflection_ior_preset: OmniSurface::OmniShared::ior_custom, + specular_reflection_ior: 2.f, + specular_reflection_anisotropy: 0.f, + specular_reflection_anisotropy_image: texture_2d(), + specular_reflection_anisotropy_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_reflection_anisotropy_rotation: 0.f, + specular_reflection_anisotropy_rotation_image: texture_2d(), + specular_reflection_anisotropy_rotation_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + enable_specular_transmission: true, + specular_transmission_weight: 0.799999952f, + specular_transmission_weight_image: texture_2d(), + specular_transmission_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_transmission_color: color(1.f, 1.f, 1.f), + specular_transmission_color_image: texture_2d(), + specular_transmission_scattering_depth: 0.f, + specular_transmission_scattering_depth_image: texture_2d(), + specular_transmission_scattering_depth_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_transmission_scattering_color: color(0.f, 0.f, 0.f), + specular_transmission_scattering_color_image: texture_2d(), + specular_transmission_scatter_anisotropy: 0.f, + specular_transmission_scatter_anisotropy_image: texture_2d(), + specular_transmission_scatter_anisotropy_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_transmission_dispersion_abbe: 0.f, + enable_diffuse_transmission: true, + subsurface_weight: 1.f, + subsurface_weight_image: texture_2d(), + subsurface_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + subsurface_scattering_colors_preset: OmniSurface::OmniShared::scattering_colors_custom, + subsurface_transmission_color: color(1.f, 1.f, 1.f), + subsurface_transmission_color_image: texture_2d(), + subsurface_scattering_color: color(1.f, 1.f, 1.f), + subsurface_scattering_color_image: texture_2d(), + subsurface_scale: 1.f, + subsurface_scale_image: texture_2d(), + subsurface_scale_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + subsurface_anisotropy: 0.f, + subsurface_anisotropy_image: texture_2d(), + subsurface_anisotropy_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_weight: 1.f, + coat_weight_image: texture_2d(), + coat_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_color: color(1.f, 1.f, 1.f), + coat_color_image: texture_2d(), + coat_roughness: 0.299999982f, + coat_roughness_image: texture_2d(), + coat_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_ior_preset: OmniSurface::OmniShared::ior_custom, + coat_ior: 1.5f, + coat_anisotropy: 0.f, + coat_anisotropy_image: texture_2d(), + coat_anisotropy_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_anisotropy_rotation: 0.f, + coat_anisotropy_rotation_image: texture_2d(), + coat_anisotropy_rotation_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_affect_color: 0.f, + coat_affect_color_image: texture_2d(), + coat_affect_color_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_affect_roughness: 0.f, + coat_affect_roughness_image: texture_2d(), + coat_affect_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + coat_normal_strength: 1.f, + coat_normal: state::normal(), + coat_normal_image: texture_2d(), + coat_normal_image_flip_r_channel: false, + coat_normal_image_flip_g_channel: false, + coat_normal_image_flip_b_channel: false, + specular_retro_reflection_weight: 0.699999988f, + specular_retro_reflection_weight_image: texture_2d(), + specular_retro_reflection_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + specular_retro_reflection_color: color(1.f, 1.f, 1.f), + specular_retro_reflection_color_image: texture_2d(), + specular_retro_reflection_roughness: 0.300000012f, + specular_retro_reflection_roughness_image: texture_2d(), + specular_retro_reflection_roughness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + emission_weight: 0.f, + emission_weight_image: texture_2d(), + emission_weight_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + emission_mode: OmniSurface::OmniShared::emission_lx, + emission_intensity: 1.f, + emission_intensity_image: texture_2d(), + emission_intensity_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + emission_color: color(1.f, 1.f, 1.f), + emission_color_image: texture_2d(), + emission_use_temperature: false, + emission_temperature: 6500.f, + emission_temperature_image: texture_2d(), + emission_temperature_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + enable_thin_film: false, + thin_film_thickness: 400.f, + thin_film_thickness_image: texture_2d(), + thin_film_thickness_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + thin_film_ior_preset: OmniSurface::OmniShared::ior_custom, + thin_film_ior: 1.5f, + thin_walled: false, + enable_opacity: false, + geometry_opacity: 1.f, + geometry_opacity_image: texture_2d(), + geometry_opacity_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + geometry_opacity_threshold: 0.f, + geometry_normal_strength: 1.f, + geometry_normal: state::normal(), + geometry_normal_image: texture_2d(), + geometry_normal_image_flip_r_channel: false, + geometry_normal_image_flip_g_channel: false, + geometry_normal_image_flip_b_channel: false, + geometry_tangent_bitangent_mapping: OmniSurface::OmniImage::red_green, + geometry_displacement: float3(0.f), + geometry_displacement_mode: OmniSurface::OmniShared::displacement_height, + geometry_displacement_image: texture_2d(), + geometry_displacement_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + geometry_displacement_scale: 1.f, + geometry_displacement_scale_image: texture_2d(), + geometry_displacement_scale_image_alpha_mode: OmniSurface::OmniImage::alpha_default, + geometry_displacement_scalar_zero_value: 0.f, + uvw_texture_coordinate_system: base::texture_coordinate_uvw, + uvw_uv_set: 0, + uvw_ignore_missing_textures: false, + uvw_missing_texture_color: color(0.f, 0.f, 0.f), + uvw_use_uv_coords: false, + uvw_uv_coords: float2(0.f), + uvw_s_offset: 0.f, + uvw_t_offset: 0.f, + uvw_s_wrap: OmniSurface::OmniImage::wrap_periodic, + uvw_t_wrap: OmniSurface::OmniImage::wrap_periodic, + uvw_s_scale: 1.f, + uvw_t_scale: 1.f, + uvw_s_flip: false, + uvw_t_flip: false, + uvw_swap_st: false, + uvw_projection_mode: OmniSurface::OmniImage::projection_cubic, + uvw_projection_translate: float3(0.f), + uvw_projection_rotate: float3(0.f), + uvw_projection_scale: float3(1.f)); \ No newline at end of file diff --git a/assets/objects/vomp/plasticpail_a04/materials/PlasticPails_Black_A.mdl b/assets/objects/vomp/plasticpail_a04/materials/PlasticPails_Black_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..b61acf73d4a56b571de7109612b9490302d5624a --- /dev/null +++ b/assets/objects/vomp/plasticpail_a04/materials/PlasticPails_Black_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material PlasticPails_Black_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("./textures/T__WhiteTint_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(0.042470627, 0.042470794, 0.04247105), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 0.8499999642372131, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 0.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: false, + ORM_texture: texture_2d(), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d(), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(1, 1), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/plasticpail_a04/materials/PlasticPails_Blue_A.mdl b/assets/objects/vomp/plasticpail_a04/materials/PlasticPails_Blue_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..8016934cb94a675d85da7939dd7c805c00c745fa --- /dev/null +++ b/assets/objects/vomp/plasticpail_a04/materials/PlasticPails_Blue_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material PlasticPails_Blue_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("./textures/T__WhiteTint_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.47999998927116394, + albedo_brightness: 0.05999999865889549, + diffuse_tint: color(0.03109675, 0.20356119, 0.5752896), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 0.8499999642372131, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 0.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: false, + ORM_texture: texture_2d(), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d(), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(1, 1), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/plasticpail_a04/materials/PlasticPails_Green_A.mdl b/assets/objects/vomp/plasticpail_a04/materials/PlasticPails_Green_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..bd1a00cc3bdb9cf056ebdb75a5b1a52b41fce9c6 --- /dev/null +++ b/assets/objects/vomp/plasticpail_a04/materials/PlasticPails_Green_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material PlasticPails_Green_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("./textures/T__WhiteTint_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.17999999225139618, + albedo_brightness: 1.0, + diffuse_tint: color(0.04668982, 0.22393823, 0.0740641), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 0.8499999642372131, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 0.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: false, + ORM_texture: texture_2d(), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d(), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(1, 1), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/plasticpail_a04/materials/PlasticPails_Orange_A.mdl b/assets/objects/vomp/plasticpail_a04/materials/PlasticPails_Orange_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..2ba94972f3b8122cc2c8abd2295d4401b80f7e5d --- /dev/null +++ b/assets/objects/vomp/plasticpail_a04/materials/PlasticPails_Orange_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material PlasticPails_Orange_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("./textures/T__WhiteTint_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(0.9977, 0.49019, 0.3578), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_Orange_A_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Orange_A_Normal.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(1, 1), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/plasticpail_a04/materials/PlasticPails_Red_A.mdl b/assets/objects/vomp/plasticpail_a04/materials/PlasticPails_Red_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..b5dfac31f1d986aae7c48c900b36b48987aa6c7a --- /dev/null +++ b/assets/objects/vomp/plasticpail_a04/materials/PlasticPails_Red_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material PlasticPails_Red_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("./textures/T__WhiteTint_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: -0.019999999552965164, + albedo_brightness: 1.0, + diffuse_tint: color(0.71724, 0.0, 0.0), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 0.8499999642372131, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 0.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: false, + ORM_texture: texture_2d(), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d(), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(1, 1), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/plasticpail_a04/materials/PlasticPails_Violet_A.mdl b/assets/objects/vomp/plasticpail_a04/materials/PlasticPails_Violet_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..7d699f82da09b5e20ac6d0b03ba3ee5028b25224 --- /dev/null +++ b/assets/objects/vomp/plasticpail_a04/materials/PlasticPails_Violet_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material PlasticPails_Violet_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("./textures/T__WhiteTint_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.2199999988079071, + albedo_brightness: 1.0, + diffuse_tint: color(0.057592425, 0.042307068, 0.1660232), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 0.8499999642372131, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 0.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: false, + ORM_texture: texture_2d(), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d(), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(1, 1), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/plasticpail_a04/materials/PlasticPails_White_A.mdl b/assets/objects/vomp/plasticpail_a04/materials/PlasticPails_White_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..3dc458de7448a20e645c6df7e28b76ad9b203eab --- /dev/null +++ b/assets/objects/vomp/plasticpail_a04/materials/PlasticPails_White_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material PlasticPails_White_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("./textures/T__WhiteTint_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(0.94593644, 0.94593996, 0.9459459), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 0.8499999642372131, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 0.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: false, + ORM_texture: texture_2d(), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d(), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(1, 1), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/plasticpail_a04/materials/PlasticPails_Yellow_A.mdl b/assets/objects/vomp/plasticpail_a04/materials/PlasticPails_Yellow_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..fc4e2bff900c6e9940116d8b25fa13afd56cf975 --- /dev/null +++ b/assets/objects/vomp/plasticpail_a04/materials/PlasticPails_Yellow_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material PlasticPails_Yellow_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("./textures/T__WhiteTint_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1.0, 0.85517, 0), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 0.8499999642372131, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 0.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: false, + ORM_texture: texture_2d(), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d(), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(1, 1), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/plasticpail_a04/materials/Plastic_Glossy_White_A.mdl b/assets/objects/vomp/plasticpail_a04/materials/Plastic_Glossy_White_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..65d67b36eece6ffda7b8a68c7b94feb2106d6313 --- /dev/null +++ b/assets/objects/vomp/plasticpail_a04/materials/Plastic_Glossy_White_A.mdl @@ -0,0 +1,36 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_Glossy_White_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T_Plastic_Glossy_White_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_texture_influence: 1.0, + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_Glossy_White_A_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + enable_opacity: false, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Glossy_White_A_Normal.png", ::tex::gamma_linear), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(1, 1), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/plasticpail_a04/materials/Plastic_Gray_A.mdl b/assets/objects/vomp/plasticpail_a04/materials/Plastic_Gray_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5b2fef2870b5ae447d1e98b4bb1fd657c5708c20 --- /dev/null +++ b/assets/objects/vomp/plasticpail_a04/materials/Plastic_Gray_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_Gray_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T_Plastic_Gray_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.05, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_Gray_A_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Gray_A_Normal.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/pumpkinlarge/materials/SimPBR.mdl b/assets/objects/vomp/pumpkinlarge/materials/SimPBR.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5883146f569e93208db72c08a810b7d71eaeece7 --- /dev/null +++ b/assets/objects/vomp/pumpkinlarge/materials/SimPBR.mdl @@ -0,0 +1,562 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + + +using .::SimPBR_Model import *; +using .::baking_annotations import *; + +export material SimPBR( + // -------------------- DIFFUSE REFLECTION ---------------------- + uniform color diffuse_color_constant = color(0.2f) + [[ + anno::display_name("Albedo Base Color"), + anno::description("The base albedo color to use if no texture is specified"), + anno::in_group("Diffuse") + ]], + uniform texture_2d diffuse_texture = texture_2d() + [[ + anno::display_name("Albedo Map"), + anno::description("The texture specifying the albedo value to use"), + anno::in_group("Diffuse") + ]], + uniform color diffuse_tint = color(1.0f) + [[ + anno::display_name("Albedo Tint"), + anno::description("This tints the albedo color or texture contant"), + anno::in_group("Diffuse") + ]], + uniform bool enable_transmission = false + [[ + anno::display_name("Enable Diffuse Transmission"), + anno::description("Enables the diffuse transmission of light through thin diffuse scattering layer"), + anno::in_group("Diffuse") + ]], + uniform float opacity_ratio = 1.f + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Opacity Ratio"), + anno::description("Amount of opacity"), + anno::in_group("Diffuse") + ]], + uniform color opacity_tint = color(1.0f) + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Diffuse transmission tint"), + anno::description("Base diffuse transmission color"), + anno::in_group("Diffuse") + ]], + uniform float opacity_multiplier = 1.f + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Diffuse transmission multiplier"), + anno::description("Base diffuse transmission multiplier"), + anno::in_group("Diffuse") + ]], + + // -------------------- SPECULAR REFLECTION ---------------------- + 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + float anisotropy_constant = 0.0f + [[ + anno::display_name("Anisotropy Amount"), + anno::hard_range(-1.,1.), + anno::description("0 for isotropic, extents of -1 to 1 for anisotropy"), + anno::in_group("Specular") + ]], + uniform float anisotropy_texture_influence = 0.0f + [[ + anno::display_name("Anisotropy Map Influence"), + anno::hard_range(0.0, 1.), + anno::description("Blends between the constant value and the lookup of the anisotropy texture"), + anno::in_group("Specular") + ]], + uniform texture_2d anisotropy_texture = texture_2d() + [[ + anno::display_name("Anisotropy Map"), + anno::in_group("Specular") + ]], + + float metallic_constant = 0.f + [[ + anno::display_name("Metallic Amount"), + anno::hard_range(0.0,1.), + anno::description("Metallic Material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d metallic_texture = texture_2d() + [[ + anno::display_name("Metallic Map"), + anno::in_group("Specular") + ]], + + float specular_constant = 1.f + [[ + anno::display_name("Specular amount"), + anno::hard_range(0.0, 1.0), + anno::description("Scale of the specular component"), + anno::in_group("Specular") + ]], + uniform texture_2d specular_texture = texture_2d() + [[ + anno::display_name("Specular Map"), + anno::in_group("Specular") + ]], + + // -------------------- ORM ---------------------- + uniform bool enable_ORM_texture = true + [[ + 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") + ]], + + // -------------------- 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") + ]], + 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") + ]], + + float3 clearcoat_normal_input = float3(0.0, 0.0, 0.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") + ]], + + uniform bool clearcoat_flip_tangent_u = false + [[ + anno::display_name("Clearcoat Normal Map Flip U Tangent"), + anno::in_group("Clearcoat") + ]], + uniform bool clearcoat_flip_tangent_v = true + [[ + anno::display_name("Clearcoat Normal Map Flip V Tangent"), + anno::in_group("Clearcoat") + ]], + + + // -------------------- REFLECTIVITY ---------------------- + uniform bool enable_retroreflection = false + [[ + anno::display_name("Enable Retroreflection"), + anno::in_group("Reflectivity") + ]], + color retroreflection_tint = color(.182,.800,.000) + [[ + anno::display_name("Retro-reflection tint"), + anno::description("The tint of the retroreflection"), + anno::in_group("Reflectivity") + ]], + uniform float normal_reflectivity = 0.5 + [[ + anno::display_name("Retro-reflection weight facing"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for geometry facing the viewer"), + anno::in_group("Reflectivity") + ]], + uniform float grazing_reflectivity = 1.0 + [[ + anno::display_name("Retro-reflection weight edge"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for the reflectivity at geometry edges"), + anno::in_group("Reflectivity") + ]], + + // -------------------- AMBIENT OCCLUSION ---------------------- + 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") + ]], + float ao_input = 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") + ]], + + // -------------------- 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") + ]], + uniform 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") + ]], + + color emissive_mask_input = color(1.0), + 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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- ALPHA ---------------------- + uniform bool enable_opacity = false + [[ + anno::display_name("Enable Opacity"), + anno::description("Enables or disables alpha functionality"), + anno::in_group("Alpha") + ]], + float alpha_constant = 1.0 + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Opacity Fallback Constant"), + anno::hard_range(0.0, 1.0), + anno::description("The base alpha constant to use if no texture is specified"), + anno::in_group("Alpha") + ]], + uniform texture_2d opacity_texture = texture_2d() + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Opacity Map"), + anno::description("The texture specifying the opacity value to use"), + anno::in_group("Alpha") + ]], + uniform bool enable_opacity_cutout = false + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Enable Alpha Cutout"), + anno::description("Enables or disables alpha cutout functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_cutout_cutoff = 1.f + [[ + anno::enable_if("enable_opacity == true"), + anno::enable_if("enable_opacity_cutout == true"), + anno::hard_range(0.0, 1.0), + anno::display_name("Alpha Cutout Cutoff"), + anno::description("The cutoff value to to render as transparent up to and opaque past"), + anno::in_group("Alpha") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + + float3 normal_input = state::normal(), + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("Normal Map"), + anno::in_group("Normal") + ]], + uniform bool flip_tangent_u = false + [[ + anno::display_name("Normal Map Flip U Tangent"), + anno::description("Flips the U Tangent vector."), + anno::in_group("Normal") + ]], + uniform bool flip_tangent_v = true + [[ + anno::display_name("Normal Map Flip V Tangent"), + anno::description("Flips the V Tangent vector. By Default, SimPBR materials setup for DirectX normal maps. Set Normal Map Flip V = false for OpenGL."), + anno::in_group("Normal") + ]], + + // -------------------- UV ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Tiling"), + anno::description("Controls repetition of the texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR"), + anno::description("Supports the opaque alpha cutout material model of the Sim Renderer"), + anno::in_group("SimReady"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "opaque", "alpha", "cutout", "omniverse", "generic")) +]] + = let { + 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: 0, + projection_type: base::projection_cubic + ) : base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw + ); + float2 uv = float2(transformed_uvw.position.x, transformed_uvw.position.y); + + // Diffuse Color Lookup and AO + float4 base_lookup = tex::texture_isvalid(diffuse_texture) ? tex::lookup_float4(tex: diffuse_texture, coord: uv) : float4(1, 1, 1, 1); + + float opacityValue = tex::texture_isvalid(opacity_texture) ? tex::lookup_float4(tex: opacity_texture, coord: uv).w : alpha_constant; + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw, + flip_tangent_u: flip_tangent_u, + flip_tangent_v: flip_tangent_v + ) : normal_input; + + float3 clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? + base::tangent_space_normal_texture( + texture: clearcoat_normalmap_texture, + factor: clearcoat_bump_factor, + uvw: uvw, + flip_tangent_u: clearcoat_flip_tangent_u, + flip_tangent_v: clearcoat_flip_tangent_v + ) : clearcoat_normal_input; + + float3 flattened_clearcoat_normal = ::math::lerp(normal_lookup, ::state::normal(), clearcoat_flatten); + float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? clearcoat_normal : flattened_clearcoat_normal; + + float ao_lookup = tex::texture_isvalid(ao_texture) ? tex::lookup_float4(tex: ao_texture, coord: uv).x : ao_input; + + color diffuse_color = tex::texture_isvalid(diffuse_texture) ? color(base_lookup.x, base_lookup.y, base_lookup.z) : diffuse_color_constant; + + float3 ORM_lookup = tex::lookup_float3( + tex: ORM_texture, + coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) + ); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + tex::lookup_float4(tex: reflectionroughness_texture, coord: uv).x : reflection_roughness_constant; + float anisotropy_lookup = tex::texture_isvalid(anisotropy_texture) ? + (tex::lookup_float4(tex: anisotropy_texture, coord: uv).x * 2.0f - 1.0f) : anisotropy_constant; + float metallic_lookup = tex::texture_isvalid(metallic_texture) ? + tex::lookup_float4(tex: metallic_texture, coord: uv).x : metallic_constant; + float specular_lookup = tex::texture_isvalid(specular_texture) ? + tex::lookup_float4(tex: specular_texture, coord: uv).x : specular_constant; + + float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup; + float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup; + float ao = enable_ORM_texture ? ORM_lookup.x : ao_lookup; + + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); + float anisotropy = math::lerp(anisotropy_constant, anisotropy_lookup, anisotropy_texture_influence); + float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook ? + ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) ? + tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) : emissive_mask_input; + +} in SimPBR_Model( + diffuse_color: diffuse_color, + diffuse_tint: diffuse_tint, + roughness: reflection_roughness, + anisotropy: anisotropy, + metallic: metallic, + specular: specular_lookup, + normal: normal_lookup, + enable_clearcoat: enable_clearcoat, + clearcoat_tint: clearcoat_tint, + clearcoat_transparency: clearcoat_transparency, + clearcoat_reflection_roughness: clearcoat_reflection_roughness, + clearcoat_weight: clearcoat_weight, + clearcoat_ior: clearcoat_ior, + clearcoat_normal: final_clearcoat_normal, + enable_retroreflection: enable_retroreflection, + retroreflection_tint: retroreflection_tint, + normal_reflectivity: normal_reflectivity, + grazing_reflectivity: grazing_reflectivity, + ao_to_diffuse: ao_to_diffuse, + ao: ao, + enable_emission: enable_emission, + emissive_color: emissive_color, + emissive_mask: emissive_mask, + emissive_intensity: emissive_intensity, + enable_opacity: enable_opacity, + alpha: opacityValue, + enable_opacity_cutout: enable_opacity_cutout, + alpha_cutout_cutoff: alpha_cutout_cutoff, + opacity_ratio: enable_transmission ? opacity_ratio : 1.0, + opacity_tint : opacity_tint, + opacity_multiplier : opacity_multiplier +); diff --git a/assets/objects/vomp/pumpkinlarge/materials/SimPBR_Model.mdl b/assets/objects/vomp/pumpkinlarge/materials/SimPBR_Model.mdl new file mode 100644 index 0000000000000000000000000000000000000000..dccd3808942cb243a4e03f77f684935081b31ec5 --- /dev/null +++ b/assets/objects/vomp/pumpkinlarge/materials/SimPBR_Model.mdl @@ -0,0 +1,212 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +using .::baking_annotations import *; + +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 + ); +} + +export material SimPBR_Model( + color diffuse_color = color(0.2f) [[ target_baked_argument("diffuse_texture", "diffuse_color_constant", "RGBA8_UNORM") ]], + uniform color diffuse_tint = color(1.0f), + float roughness = 0.5f [[ target_baked_argument("reflectionroughness_texture", "reflection_roughness_constant", "R8_UNORM") ]], + float anisotropy = 0.0f [[ target_baked_argument("anisotropy_texture", "anisotropy_constant", "R8_SNORM") ]], + float metallic = 0.f [[ target_baked_argument("metallic_texture", "metallic_constant", "R8_UNORM") ]], + float specular = 1.f [[ target_baked_argument("specular_texture", "specular_constant", "R8_UNORM") ]], + float3 normal = float3(0.0, 0.0, 0.0) [[ target_baked_argument("normalmap_texture", "normal_input", "RGBA8_SNORM", baking_annotations::TRANSFORM_UNORM_VECTOR) ]], + uniform bool enable_clearcoat = false, + color clearcoat_tint = color(1.0f), + float clearcoat_transparency = 1.0f, + float clearcoat_reflection_roughness = 0.0f, + float clearcoat_weight = 1.0f, + float clearcoat_ior = 1.56f, + float3 clearcoat_normal = float3(0.0, 0.0, 0.0) [[ target_baked_argument("clearcoat_normalmap_texture", "clearcoat_normal_input", "RGBA8_SNORM", baking_annotations::TRANSFORM_UNORM_VECTOR) ]], + uniform bool enable_retroreflection = false, + color retroreflection_tint = color(.182,.800,.000), + uniform float normal_reflectivity = 0.5, + uniform float grazing_reflectivity = 1.0, + float ao_to_diffuse = 0.0, + float ao = 1.0f [[ target_baked_argument("ao_texture", "ao_input", "R8_UNORM") ]], + uniform bool enable_emission = false, + uniform color emissive_color = color(1.0, 0.1, 0.1), + color emissive_mask = color(1.0, 0.1, 0.1) [[ target_baked_argument("emissive_mask_texture", "emissive_mask_input", "R8_UNORM") ]], + uniform float emissive_intensity = 40.f, + uniform bool enable_opacity = false, + float alpha = 1.0, + uniform bool enable_opacity_cutout = false, + uniform float alpha_cutout_cutoff = 1.f, + uniform float opacity_ratio = 1.f, + uniform color opacity_tint = color(1.0f), + uniform float opacity_multiplier = 1.f +) +[[ + target_material_model(), + target_material_rendering("..::SimPBR::SimPBR") +]] + = let { + color base_color = multiply_colors(diffuse_color, diffuse_tint, 1.0).tint; + color ao_weighted_base_color = multiply_colors(base_color, color(ao), ao_to_diffuse).tint; + + float squared_roughness = roughness * roughness; + float roughness_u = squared_roughness * (1 + anisotropy); + float roughness_v = squared_roughness * (1 - anisotropy); + + color diffuse_transmission_color = base_color * opacity_tint * opacity_multiplier; + + bsdf diffuse_bsdf = df::weighted_layer( + weight: opacity_ratio, + layer: df::diffuse_reflection_bsdf( + tint: ao_weighted_base_color, + roughness: 0.0f + ), + base: df::diffuse_transmission_bsdf(tint: diffuse_transmission_color), + normal: enable_clearcoat ? normal : state::normal() + ); + + bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_u, + roughness_v: roughness_v, + tint: color(1.0, 1.0, 1.0), + mode: df::scatter_reflect + ); + + bsdf custom_curve_layer_bsdf = df::custom_curve_layer( + normal_reflectivity: 0.03, + grazing_reflectivity: 1.0, + exponent: 5.0, + weight: specular, + layer: ggx_smith_bsdf, + base: diffuse_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + // + // Begin RETROREFLECTION SUPPORT + // + color final_retroreflection_color = multiply_colors(retroreflection_tint, base_color, 1.0).tint; + bsdf backscattering_glossy_bsdf = df::backscattering_glossy_reflection_bsdf( + tint: final_retroreflection_color, + roughness_u: squared_roughness + ); + + /*bsdf retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: 1.-normal_reflectivity, + grazing_reflectivity: 1.-grazing_reflectivity, + base: backscattering_glossy_bsdf, + layer: custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + );*/ + + // if normal_reflectivity and grazing_reflectivity are 1 and weight is 1, just the layer is used + bsdf opt_retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: enable_retroreflection ? 1.-normal_reflectivity : 1, + grazing_reflectivity: enable_retroreflection ? 1.-grazing_reflectivity : 1, + base: backscattering_glossy_bsdf, + layer: custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + // + // End RETROREFLECTION SUPPORT + // + + bsdf directional_factor_bsdf = df::directional_factor( + normal_tint: ao_weighted_base_color, + grazing_tint: color(1.0, 1.0, 1.0), + exponent: 5.0f, + base: ggx_smith_bsdf + ); + + // CLEARCOAT + bsdf omni_PBR_bsdf = df::weighted_layer( + weight: metallic, + layer: directional_factor_bsdf, + base: opt_retroreflection_bsdf, //enable_retroreflection ? retroreflection_bsdf : custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + bsdf clearcoat_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + roughness_v: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + 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 opt_opaque_clearcoat = df::weighted_layer( + weight: enable_clearcoat ? clearcoat_transparency : 1, + layer: ::df::tint(tint: enable_clearcoat ? clearcoat_tint : color(1), base: omni_PBR_bsdf), + base: ::df::diffuse_reflection_bsdf(tint: clearcoat_tint) + ); + + bsdf opt_omni_PBR_coated_bsdf = df::fresnel_layer( + ior: clearcoat_ior, + weight: enable_clearcoat ? clearcoat_weight : 0, + layer: clearcoat_bsdf, + base: opt_opaque_clearcoat, + normal: clearcoat_normal + ); + + bsdf final_bsdf = opt_omni_PBR_coated_bsdf; +} in material( + thin_walled: false, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + geometry: material_geometry( + normal: enable_clearcoat ? state::normal() : normal, + cutout_opacity: enable_opacity ? (enable_opacity_cutout ? (alpha < alpha_cutout_cutoff ? 0.0 : 1.0) : alpha) : 1.0 + ) +); diff --git a/assets/objects/vomp/pumpkinlarge/materials/SimPBR_Opacity.mdl b/assets/objects/vomp/pumpkinlarge/materials/SimPBR_Opacity.mdl new file mode 100644 index 0000000000000000000000000000000000000000..cf0a3ba759fc0b873d174b410b31759b1d426307 --- /dev/null +++ b/assets/objects/vomp/pumpkinlarge/materials/SimPBR_Opacity.mdl @@ -0,0 +1,651 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +import ::nvidia::core_definitions::file_texture; +import ::nvidia::core_definitions::normalmap_texture; + +float4 raw_file_texture( + uniform texture_2d texture + [[ anno::description("The input texture") ]], + base::texture_coordinate_info uvw = base::texture_coordinate_info() + [[ anno::description("Custom value for texture coordinate") ]], + 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") ]] +) +[[ + anno::description("General texturing function for 2D bitmap texture stored in a file"), + anno::noinline() +]] +{ + return tex::lookup_float4(texture, float2(uvw.position.x, uvw.position.y), wrap_u, wrap_v, crop_u, crop_v); +} + +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 SimPBR_Opacity( + // -------------------- DIFFUSE REFLECTION ---------------------- + uniform color diffuse_color_constant = color(0.2f) + [[ + anno::display_name("Albedo Base Color"), + anno::description("The base albedo color to use if no texture is specified"), + anno::in_group("Diffuse") + ]], + uniform texture_2d diffuse_texture = texture_2d() + [[ + anno::display_name("Albedo Map"), + anno::description("The texture specifying the albedo value to use"), + anno::in_group("Diffuse") + ]], + uniform color diffuse_tint = color(1.0f) + [[ + anno::display_name("Albedo Tint"), + anno::description("This tints the albedo color or texture contant"), + anno::in_group("Diffuse") + ]], + + // -------------------- SPECULAR REFLECTION ---------------------- + uniform 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + uniform float anisotropy_constant = 0.0f + [[ + anno::display_name("Anisotropy Amount"), + anno::hard_range(-1.,1.), + anno::description("0 for isotropic, extents of -1 to 1 for anisotropy"), + anno::in_group("Specular") + ]], + uniform float anisotropy_texture_influence = 0.0f + [[ + anno::display_name("Anisotropy Map Influence"), + anno::hard_range(0.0, 1.), + anno::description("Blends between the constant value and the lookup of the anisotropy texture"), + anno::in_group("Specular") + ]], + uniform texture_2d anisotropy_texture = texture_2d() + [[ + anno::display_name("Anisotropy Map"), + anno::in_group("Specular") + ]], + + uniform float metallic_constant = 0.f + [[ + anno::display_name("Metallic Amount"), + anno::hard_range(0.0,1.), + anno::description("Metallic Material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d metallic_texture = texture_2d() + [[ + anno::display_name("Metallic Map"), + anno::in_group("Specular") + ]], + + // -------------------- ORM ---------------------- + uniform bool enable_ORM_texture = true + [[ + 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") + ]], + + // -------------------- 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") + ]], + 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") + ]], + 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") + ]], + + // -------------------- REFLECTIVITY ---------------------- + uniform bool enable_retroreflection = false + [[ + anno::display_name("Enable Retroreflection"), + anno::in_group("Reflectivity") + ]], + color retroreflection_color = color(.182,.800,.000) + [[ + anno::display_name("Retro-reflection color"), + anno::description("The color of the retroreflection"), + anno::in_group("Reflectivity") + ]], + uniform float normal_reflectivity = 0.5 + [[ + anno::display_name("Retro-reflection weight facing"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for geometry facing the viewer"), + anno::in_group("Reflectivity") + ]], + uniform float grazing_reflectivity = 1.0 + [[ + anno::display_name("Retro-reflection weight edge"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for the reflectivity at geometry edges"), + anno::in_group("Reflectivity") + ]], + + // -------------------- AMBIENT OCCLUSION ---------------------- + 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") + ]], + 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") + ]], + uniform 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_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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- ALPHA ---------------------- + uniform bool enable_alpha = true + [[ + anno::display_name("Enable Alpha"), + anno::description("Enables or disables alpha functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_constant = 1.0 + [[ + anno::display_name("Alpha Fallback Constant"), + anno::description("The base alpha constant to use if no texture is specified"), + anno::in_group("Alpha") + ]], + uniform texture_2d opacity_texture = texture_2d() + [[ + anno::display_name("Opacity Map"), + anno::description("The texture specifying the opacity value to use"), + anno::in_group("Alpha") + ]], + uniform bool enable_alpha_cutout = false + [[ + anno::display_name("Enable Alpha Cutout"), + anno::description("Enables or disables alpha cutout functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_cutout_cutoff = 1.f + [[ + anno::enable_if("enable_alpha_cutout == true"), + anno::hard_range(0.0, 1.0), + anno::display_name("Alpha Cutout Cutoff"), + anno::description("The cutoff value to to render as transparent up to and opaque past"), + anno::in_group("Alpha") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("Normal Map"), + anno::in_group("Normal") + ]], + + // -------------------- UV ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Scale"), + anno::description("Larger number increases size of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR Opaque Alpha Cutout"), + anno::description("Supports the opaque alpha cutout material model of the Sim Renderer"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "opaque", "alpha", "cutout", "omniverse", "generic")) +]] + = let { + + 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: 0, + projection_type: base::projection_cubic ) : + base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw ); + + // Diffuse Color Lookup and AO + float4 base_lookup = tex::texture_isvalid(diffuse_texture) ? raw_file_texture(texture: diffuse_texture, uvw: transformed_uvw) : float4(1, 1, 1, 1); + + float opacityValue = tex::texture_isvalid(opacity_texture) ? raw_file_texture(texture: opacity_texture, uvw: transformed_uvw).x : alpha_constant; + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw + ) : state::normal(); + + float3 clearcoat_normal = base::tangent_space_normal_texture( + texture: clearcoat_normalmap_texture, + factor: clearcoat_bump_factor, + uvw: uvw + ); + + float3 flattened_clearcoat_normal = ::math::lerp(normal_lookup, ::state::normal(), clearcoat_flatten); + float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? clearcoat_normal : flattened_clearcoat_normal; + + float ao_lookup = tex::texture_isvalid(ao_texture) ? + raw_file_texture(texture: ao_texture, uvw: transformed_uvw).x : + 1.0f + [[anno::unused("Currently unused in material, may be utilized in the future")]]; + + color diffuse_color = tex::texture_isvalid(diffuse_texture) ? color(base_lookup.x, base_lookup.y, base_lookup.z) : diffuse_color_constant; + color base_color = multiply_colors(diffuse_color, diffuse_tint, 1.0).tint; + + float3 ORM_lookup = tex::lookup_float3( + tex: ORM_texture, + coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) + ); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + raw_file_texture(texture: reflectionroughness_texture, uvw: transformed_uvw).x : + reflection_roughness_constant; + float anisotropy_lookup = tex::texture_isvalid(anisotropy_texture) ? + (raw_file_texture(texture: anisotropy_texture, uvw: transformed_uvw).x * 2.0f - 1.0f) : + anisotropy_constant; + float metallic_lookup = tex::texture_isvalid(metallic_texture) ? + raw_file_texture(texture: metallic_texture, uvw: transformed_uvw).x : + metallic_constant; + + float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup; + float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup; + color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : color(ao_lookup); + + color ao_weighted_base_color = multiply_colors(base_color, ao_color, ao_to_diffuse).tint; + + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); + float anisotropy = math::lerp(anisotropy_constant, anisotropy_lookup, anisotropy_texture_influence); + float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); + + float squared_roughness = reflection_roughness * reflection_roughness; + float roughness_u = squared_roughness * (1 + anisotropy); + float roughness_v = squared_roughness * (1 - anisotropy); + + bsdf diffuse_bsdf = df::weighted_layer( + weight: 1.0, + layer: df::diffuse_reflection_bsdf( + tint: ao_weighted_base_color, + roughness: 0.f ), + base: bsdf(), + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_u, + roughness_v: roughness_v, + tint: color(1.0, 1.0, 1.0), + mode: df::scatter_reflect + ); + + bsdf custom_curve_layer_bsdf = df::custom_curve_layer( + normal_reflectivity: 0.03, + grazing_reflectivity: 1.0, + exponent: 5.0, + weight: float(1.0), + layer: ggx_smith_bsdf, + base: diffuse_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + // + // Begin RETROREFLECTION SUPPORT + // + bsdf backscattering_glossy_bsdf = df::backscattering_glossy_reflection_bsdf( + tint: retroreflection_color, + roughness_u: reflection_roughness * reflection_roughness + ); + + bsdf retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: 1.-normal_reflectivity, + grazing_reflectivity: 1.-grazing_reflectivity, + base: backscattering_glossy_bsdf, + layer: diffuse_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + // + // End RETROREFLECTION SUPPORT + // + + bsdf directional_factor_bsdf = df::directional_factor( + normal_tint: ao_weighted_base_color, + grazing_tint: color(1.0, 1.0, 1.0), + exponent: 5.0f, + base: ggx_smith_bsdf + ); + + // CLEARCOAT + + bsdf omni_PBR_bsdf = df::weighted_layer( + weight: metallic, + layer: directional_factor_bsdf, + base: enable_retroreflection ? retroreflection_bsdf : custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + bsdf clearcoat_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + roughness_v: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + 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; + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook + ? ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) + : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) + ? tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) + : color(1.0); + +} in material( + thin_walled: false, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission ( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + geometry: material_geometry( + normal: enable_clearcoat ? state::normal() : normal_lookup, + cutout_opacity: enable_alpha ? (enable_alpha_cutout ? (opacityValue < alpha_cutout_cutoff ? 0.0 : 1.0) : opacityValue) : 1.0 + ) +); diff --git a/assets/objects/vomp/pumpkinlarge/materials/SimPBR_Translucent.mdl b/assets/objects/vomp/pumpkinlarge/materials/SimPBR_Translucent.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a60a90d1b946f94c266dabd515d5a15b6c3c9bd --- /dev/null +++ b/assets/objects/vomp/pumpkinlarge/materials/SimPBR_Translucent.mdl @@ -0,0 +1,290 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +import ::nvidia::core_definitions::file_texture; +import ::nvidia::core_definitions::normalmap_texture; + +export material SimPBR_Translucent( + // -------------------- SPECULAR REFLECTION/TRANSMISSION ---------------------- + uniform float ior_constant = 1.1f + [[ + anno::display_name("Index of Refraction"), + anno::hard_range(0.0,5.), + anno::description("Index of Refraction of the material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + // -------------------- VOLUME ---------------------- + color transmittance_color = color(1.0, 1.0f, 1.0f) + [[ + anno::display_name("Transmittance Color"), + anno::description("Expected transmittance after the specified transmittance distance through the volume."), + anno::in_group("Volume") + ]], + float transmittance_measurement_distance = 1.0f + [[ + anno::display_name("Transmittance Measurement Distance"), + anno::description("Distance to match the transmittance through the volume at."), + anno::in_group("Volume") + ]], + + // -------------------- EMISSIVE ---------------------- + uniform bool enable_thin_walled = false + [[ + anno::display_name("Enable Thin Walled"), + anno::description("Enables thin walled logic"), + anno::in_group("Geometry") + ]], + + // -------------------- 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_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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("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 ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Tiling"), + anno::description("Controls the repetition of the texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR Translucent"), + anno::description("Supports the translucent material model of the Sim Renderer"), + anno::in_group("SimReady"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "translucent", "omniverse", "generic")) +]] + = let { + 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: 0, + projection_type: base::projection_cubic + ) : base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw + ); + float2 uv = float2(transformed_uvw.position.x, transformed_uvw.position.y); + + color volume_absorption_coefficient = -math::log(transmittance_color) / (transmittance_measurement_distance*0.01); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + tex::lookup_float4(tex: reflectionroughness_texture, coord: uv).x : reflection_roughness_constant; + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_lookup, reflection_roughness_texture_influence); + + float roughness_squared = reflection_roughness * reflection_roughness; + + bsdf final_bsdf(enable_thin_walled ? + ::df::fresnel_layer( + ior_constant, + 1.f, + ::df::microfacet_ggx_smith_bsdf( + roughness_squared, + roughness_squared, + color(1.f, 1.f, 1.f), + ::state::texture_tangent_u(0), + ::df::scatter_reflect, + "" + ), + ::df::specular_bsdf( + transmittance_color, + ::df::scatter_transmit, + "" + ), ::state::normal()) + : ::df::microfacet_ggx_smith_bsdf( + roughness_squared, + roughness_squared, + color(1.f, 1.f, 1.f), + ::state::texture_tangent_u(0), + ::df::scatter_reflect_transmit, + "" + )); + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook ? + ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) ? + tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) : color(1.0); + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw, + flip_tangent_u: flip_tangent_u, + flip_tangent_v: flip_tangent_v + ) : state::normal(); +} in material( + thin_walled: enable_thin_walled, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission ( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + ior: color(ior_constant), + volume: material_volume( + scattering: df::anisotropic_vdf(), + absorption_coefficient: volume_absorption_coefficient, + scattering_coefficient: color(0.0f, 0.0f, 0.0f) + ), + geometry: material_geometry( + normal: normal_lookup + ) +); diff --git a/assets/objects/vomp/pumpkinsmall/materials/SimPBR.mdl b/assets/objects/vomp/pumpkinsmall/materials/SimPBR.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5883146f569e93208db72c08a810b7d71eaeece7 --- /dev/null +++ b/assets/objects/vomp/pumpkinsmall/materials/SimPBR.mdl @@ -0,0 +1,562 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + + +using .::SimPBR_Model import *; +using .::baking_annotations import *; + +export material SimPBR( + // -------------------- DIFFUSE REFLECTION ---------------------- + uniform color diffuse_color_constant = color(0.2f) + [[ + anno::display_name("Albedo Base Color"), + anno::description("The base albedo color to use if no texture is specified"), + anno::in_group("Diffuse") + ]], + uniform texture_2d diffuse_texture = texture_2d() + [[ + anno::display_name("Albedo Map"), + anno::description("The texture specifying the albedo value to use"), + anno::in_group("Diffuse") + ]], + uniform color diffuse_tint = color(1.0f) + [[ + anno::display_name("Albedo Tint"), + anno::description("This tints the albedo color or texture contant"), + anno::in_group("Diffuse") + ]], + uniform bool enable_transmission = false + [[ + anno::display_name("Enable Diffuse Transmission"), + anno::description("Enables the diffuse transmission of light through thin diffuse scattering layer"), + anno::in_group("Diffuse") + ]], + uniform float opacity_ratio = 1.f + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Opacity Ratio"), + anno::description("Amount of opacity"), + anno::in_group("Diffuse") + ]], + uniform color opacity_tint = color(1.0f) + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Diffuse transmission tint"), + anno::description("Base diffuse transmission color"), + anno::in_group("Diffuse") + ]], + uniform float opacity_multiplier = 1.f + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Diffuse transmission multiplier"), + anno::description("Base diffuse transmission multiplier"), + anno::in_group("Diffuse") + ]], + + // -------------------- SPECULAR REFLECTION ---------------------- + 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + float anisotropy_constant = 0.0f + [[ + anno::display_name("Anisotropy Amount"), + anno::hard_range(-1.,1.), + anno::description("0 for isotropic, extents of -1 to 1 for anisotropy"), + anno::in_group("Specular") + ]], + uniform float anisotropy_texture_influence = 0.0f + [[ + anno::display_name("Anisotropy Map Influence"), + anno::hard_range(0.0, 1.), + anno::description("Blends between the constant value and the lookup of the anisotropy texture"), + anno::in_group("Specular") + ]], + uniform texture_2d anisotropy_texture = texture_2d() + [[ + anno::display_name("Anisotropy Map"), + anno::in_group("Specular") + ]], + + float metallic_constant = 0.f + [[ + anno::display_name("Metallic Amount"), + anno::hard_range(0.0,1.), + anno::description("Metallic Material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d metallic_texture = texture_2d() + [[ + anno::display_name("Metallic Map"), + anno::in_group("Specular") + ]], + + float specular_constant = 1.f + [[ + anno::display_name("Specular amount"), + anno::hard_range(0.0, 1.0), + anno::description("Scale of the specular component"), + anno::in_group("Specular") + ]], + uniform texture_2d specular_texture = texture_2d() + [[ + anno::display_name("Specular Map"), + anno::in_group("Specular") + ]], + + // -------------------- ORM ---------------------- + uniform bool enable_ORM_texture = true + [[ + 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") + ]], + + // -------------------- 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") + ]], + 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") + ]], + + float3 clearcoat_normal_input = float3(0.0, 0.0, 0.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") + ]], + + uniform bool clearcoat_flip_tangent_u = false + [[ + anno::display_name("Clearcoat Normal Map Flip U Tangent"), + anno::in_group("Clearcoat") + ]], + uniform bool clearcoat_flip_tangent_v = true + [[ + anno::display_name("Clearcoat Normal Map Flip V Tangent"), + anno::in_group("Clearcoat") + ]], + + + // -------------------- REFLECTIVITY ---------------------- + uniform bool enable_retroreflection = false + [[ + anno::display_name("Enable Retroreflection"), + anno::in_group("Reflectivity") + ]], + color retroreflection_tint = color(.182,.800,.000) + [[ + anno::display_name("Retro-reflection tint"), + anno::description("The tint of the retroreflection"), + anno::in_group("Reflectivity") + ]], + uniform float normal_reflectivity = 0.5 + [[ + anno::display_name("Retro-reflection weight facing"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for geometry facing the viewer"), + anno::in_group("Reflectivity") + ]], + uniform float grazing_reflectivity = 1.0 + [[ + anno::display_name("Retro-reflection weight edge"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for the reflectivity at geometry edges"), + anno::in_group("Reflectivity") + ]], + + // -------------------- AMBIENT OCCLUSION ---------------------- + 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") + ]], + float ao_input = 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") + ]], + + // -------------------- 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") + ]], + uniform 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") + ]], + + color emissive_mask_input = color(1.0), + 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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- ALPHA ---------------------- + uniform bool enable_opacity = false + [[ + anno::display_name("Enable Opacity"), + anno::description("Enables or disables alpha functionality"), + anno::in_group("Alpha") + ]], + float alpha_constant = 1.0 + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Opacity Fallback Constant"), + anno::hard_range(0.0, 1.0), + anno::description("The base alpha constant to use if no texture is specified"), + anno::in_group("Alpha") + ]], + uniform texture_2d opacity_texture = texture_2d() + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Opacity Map"), + anno::description("The texture specifying the opacity value to use"), + anno::in_group("Alpha") + ]], + uniform bool enable_opacity_cutout = false + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Enable Alpha Cutout"), + anno::description("Enables or disables alpha cutout functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_cutout_cutoff = 1.f + [[ + anno::enable_if("enable_opacity == true"), + anno::enable_if("enable_opacity_cutout == true"), + anno::hard_range(0.0, 1.0), + anno::display_name("Alpha Cutout Cutoff"), + anno::description("The cutoff value to to render as transparent up to and opaque past"), + anno::in_group("Alpha") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + + float3 normal_input = state::normal(), + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("Normal Map"), + anno::in_group("Normal") + ]], + uniform bool flip_tangent_u = false + [[ + anno::display_name("Normal Map Flip U Tangent"), + anno::description("Flips the U Tangent vector."), + anno::in_group("Normal") + ]], + uniform bool flip_tangent_v = true + [[ + anno::display_name("Normal Map Flip V Tangent"), + anno::description("Flips the V Tangent vector. By Default, SimPBR materials setup for DirectX normal maps. Set Normal Map Flip V = false for OpenGL."), + anno::in_group("Normal") + ]], + + // -------------------- UV ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Tiling"), + anno::description("Controls repetition of the texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR"), + anno::description("Supports the opaque alpha cutout material model of the Sim Renderer"), + anno::in_group("SimReady"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "opaque", "alpha", "cutout", "omniverse", "generic")) +]] + = let { + 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: 0, + projection_type: base::projection_cubic + ) : base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw + ); + float2 uv = float2(transformed_uvw.position.x, transformed_uvw.position.y); + + // Diffuse Color Lookup and AO + float4 base_lookup = tex::texture_isvalid(diffuse_texture) ? tex::lookup_float4(tex: diffuse_texture, coord: uv) : float4(1, 1, 1, 1); + + float opacityValue = tex::texture_isvalid(opacity_texture) ? tex::lookup_float4(tex: opacity_texture, coord: uv).w : alpha_constant; + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw, + flip_tangent_u: flip_tangent_u, + flip_tangent_v: flip_tangent_v + ) : normal_input; + + float3 clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? + base::tangent_space_normal_texture( + texture: clearcoat_normalmap_texture, + factor: clearcoat_bump_factor, + uvw: uvw, + flip_tangent_u: clearcoat_flip_tangent_u, + flip_tangent_v: clearcoat_flip_tangent_v + ) : clearcoat_normal_input; + + float3 flattened_clearcoat_normal = ::math::lerp(normal_lookup, ::state::normal(), clearcoat_flatten); + float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? clearcoat_normal : flattened_clearcoat_normal; + + float ao_lookup = tex::texture_isvalid(ao_texture) ? tex::lookup_float4(tex: ao_texture, coord: uv).x : ao_input; + + color diffuse_color = tex::texture_isvalid(diffuse_texture) ? color(base_lookup.x, base_lookup.y, base_lookup.z) : diffuse_color_constant; + + float3 ORM_lookup = tex::lookup_float3( + tex: ORM_texture, + coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) + ); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + tex::lookup_float4(tex: reflectionroughness_texture, coord: uv).x : reflection_roughness_constant; + float anisotropy_lookup = tex::texture_isvalid(anisotropy_texture) ? + (tex::lookup_float4(tex: anisotropy_texture, coord: uv).x * 2.0f - 1.0f) : anisotropy_constant; + float metallic_lookup = tex::texture_isvalid(metallic_texture) ? + tex::lookup_float4(tex: metallic_texture, coord: uv).x : metallic_constant; + float specular_lookup = tex::texture_isvalid(specular_texture) ? + tex::lookup_float4(tex: specular_texture, coord: uv).x : specular_constant; + + float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup; + float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup; + float ao = enable_ORM_texture ? ORM_lookup.x : ao_lookup; + + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); + float anisotropy = math::lerp(anisotropy_constant, anisotropy_lookup, anisotropy_texture_influence); + float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook ? + ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) ? + tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) : emissive_mask_input; + +} in SimPBR_Model( + diffuse_color: diffuse_color, + diffuse_tint: diffuse_tint, + roughness: reflection_roughness, + anisotropy: anisotropy, + metallic: metallic, + specular: specular_lookup, + normal: normal_lookup, + enable_clearcoat: enable_clearcoat, + clearcoat_tint: clearcoat_tint, + clearcoat_transparency: clearcoat_transparency, + clearcoat_reflection_roughness: clearcoat_reflection_roughness, + clearcoat_weight: clearcoat_weight, + clearcoat_ior: clearcoat_ior, + clearcoat_normal: final_clearcoat_normal, + enable_retroreflection: enable_retroreflection, + retroreflection_tint: retroreflection_tint, + normal_reflectivity: normal_reflectivity, + grazing_reflectivity: grazing_reflectivity, + ao_to_diffuse: ao_to_diffuse, + ao: ao, + enable_emission: enable_emission, + emissive_color: emissive_color, + emissive_mask: emissive_mask, + emissive_intensity: emissive_intensity, + enable_opacity: enable_opacity, + alpha: opacityValue, + enable_opacity_cutout: enable_opacity_cutout, + alpha_cutout_cutoff: alpha_cutout_cutoff, + opacity_ratio: enable_transmission ? opacity_ratio : 1.0, + opacity_tint : opacity_tint, + opacity_multiplier : opacity_multiplier +); diff --git a/assets/objects/vomp/pumpkinsmall/materials/SimPBR_Model.mdl b/assets/objects/vomp/pumpkinsmall/materials/SimPBR_Model.mdl new file mode 100644 index 0000000000000000000000000000000000000000..dccd3808942cb243a4e03f77f684935081b31ec5 --- /dev/null +++ b/assets/objects/vomp/pumpkinsmall/materials/SimPBR_Model.mdl @@ -0,0 +1,212 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +using .::baking_annotations import *; + +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 + ); +} + +export material SimPBR_Model( + color diffuse_color = color(0.2f) [[ target_baked_argument("diffuse_texture", "diffuse_color_constant", "RGBA8_UNORM") ]], + uniform color diffuse_tint = color(1.0f), + float roughness = 0.5f [[ target_baked_argument("reflectionroughness_texture", "reflection_roughness_constant", "R8_UNORM") ]], + float anisotropy = 0.0f [[ target_baked_argument("anisotropy_texture", "anisotropy_constant", "R8_SNORM") ]], + float metallic = 0.f [[ target_baked_argument("metallic_texture", "metallic_constant", "R8_UNORM") ]], + float specular = 1.f [[ target_baked_argument("specular_texture", "specular_constant", "R8_UNORM") ]], + float3 normal = float3(0.0, 0.0, 0.0) [[ target_baked_argument("normalmap_texture", "normal_input", "RGBA8_SNORM", baking_annotations::TRANSFORM_UNORM_VECTOR) ]], + uniform bool enable_clearcoat = false, + color clearcoat_tint = color(1.0f), + float clearcoat_transparency = 1.0f, + float clearcoat_reflection_roughness = 0.0f, + float clearcoat_weight = 1.0f, + float clearcoat_ior = 1.56f, + float3 clearcoat_normal = float3(0.0, 0.0, 0.0) [[ target_baked_argument("clearcoat_normalmap_texture", "clearcoat_normal_input", "RGBA8_SNORM", baking_annotations::TRANSFORM_UNORM_VECTOR) ]], + uniform bool enable_retroreflection = false, + color retroreflection_tint = color(.182,.800,.000), + uniform float normal_reflectivity = 0.5, + uniform float grazing_reflectivity = 1.0, + float ao_to_diffuse = 0.0, + float ao = 1.0f [[ target_baked_argument("ao_texture", "ao_input", "R8_UNORM") ]], + uniform bool enable_emission = false, + uniform color emissive_color = color(1.0, 0.1, 0.1), + color emissive_mask = color(1.0, 0.1, 0.1) [[ target_baked_argument("emissive_mask_texture", "emissive_mask_input", "R8_UNORM") ]], + uniform float emissive_intensity = 40.f, + uniform bool enable_opacity = false, + float alpha = 1.0, + uniform bool enable_opacity_cutout = false, + uniform float alpha_cutout_cutoff = 1.f, + uniform float opacity_ratio = 1.f, + uniform color opacity_tint = color(1.0f), + uniform float opacity_multiplier = 1.f +) +[[ + target_material_model(), + target_material_rendering("..::SimPBR::SimPBR") +]] + = let { + color base_color = multiply_colors(diffuse_color, diffuse_tint, 1.0).tint; + color ao_weighted_base_color = multiply_colors(base_color, color(ao), ao_to_diffuse).tint; + + float squared_roughness = roughness * roughness; + float roughness_u = squared_roughness * (1 + anisotropy); + float roughness_v = squared_roughness * (1 - anisotropy); + + color diffuse_transmission_color = base_color * opacity_tint * opacity_multiplier; + + bsdf diffuse_bsdf = df::weighted_layer( + weight: opacity_ratio, + layer: df::diffuse_reflection_bsdf( + tint: ao_weighted_base_color, + roughness: 0.0f + ), + base: df::diffuse_transmission_bsdf(tint: diffuse_transmission_color), + normal: enable_clearcoat ? normal : state::normal() + ); + + bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_u, + roughness_v: roughness_v, + tint: color(1.0, 1.0, 1.0), + mode: df::scatter_reflect + ); + + bsdf custom_curve_layer_bsdf = df::custom_curve_layer( + normal_reflectivity: 0.03, + grazing_reflectivity: 1.0, + exponent: 5.0, + weight: specular, + layer: ggx_smith_bsdf, + base: diffuse_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + // + // Begin RETROREFLECTION SUPPORT + // + color final_retroreflection_color = multiply_colors(retroreflection_tint, base_color, 1.0).tint; + bsdf backscattering_glossy_bsdf = df::backscattering_glossy_reflection_bsdf( + tint: final_retroreflection_color, + roughness_u: squared_roughness + ); + + /*bsdf retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: 1.-normal_reflectivity, + grazing_reflectivity: 1.-grazing_reflectivity, + base: backscattering_glossy_bsdf, + layer: custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + );*/ + + // if normal_reflectivity and grazing_reflectivity are 1 and weight is 1, just the layer is used + bsdf opt_retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: enable_retroreflection ? 1.-normal_reflectivity : 1, + grazing_reflectivity: enable_retroreflection ? 1.-grazing_reflectivity : 1, + base: backscattering_glossy_bsdf, + layer: custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + // + // End RETROREFLECTION SUPPORT + // + + bsdf directional_factor_bsdf = df::directional_factor( + normal_tint: ao_weighted_base_color, + grazing_tint: color(1.0, 1.0, 1.0), + exponent: 5.0f, + base: ggx_smith_bsdf + ); + + // CLEARCOAT + bsdf omni_PBR_bsdf = df::weighted_layer( + weight: metallic, + layer: directional_factor_bsdf, + base: opt_retroreflection_bsdf, //enable_retroreflection ? retroreflection_bsdf : custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + bsdf clearcoat_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + roughness_v: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + 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 opt_opaque_clearcoat = df::weighted_layer( + weight: enable_clearcoat ? clearcoat_transparency : 1, + layer: ::df::tint(tint: enable_clearcoat ? clearcoat_tint : color(1), base: omni_PBR_bsdf), + base: ::df::diffuse_reflection_bsdf(tint: clearcoat_tint) + ); + + bsdf opt_omni_PBR_coated_bsdf = df::fresnel_layer( + ior: clearcoat_ior, + weight: enable_clearcoat ? clearcoat_weight : 0, + layer: clearcoat_bsdf, + base: opt_opaque_clearcoat, + normal: clearcoat_normal + ); + + bsdf final_bsdf = opt_omni_PBR_coated_bsdf; +} in material( + thin_walled: false, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + geometry: material_geometry( + normal: enable_clearcoat ? state::normal() : normal, + cutout_opacity: enable_opacity ? (enable_opacity_cutout ? (alpha < alpha_cutout_cutoff ? 0.0 : 1.0) : alpha) : 1.0 + ) +); diff --git a/assets/objects/vomp/pumpkinsmall/materials/SimPBR_Opacity.mdl b/assets/objects/vomp/pumpkinsmall/materials/SimPBR_Opacity.mdl new file mode 100644 index 0000000000000000000000000000000000000000..cf0a3ba759fc0b873d174b410b31759b1d426307 --- /dev/null +++ b/assets/objects/vomp/pumpkinsmall/materials/SimPBR_Opacity.mdl @@ -0,0 +1,651 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +import ::nvidia::core_definitions::file_texture; +import ::nvidia::core_definitions::normalmap_texture; + +float4 raw_file_texture( + uniform texture_2d texture + [[ anno::description("The input texture") ]], + base::texture_coordinate_info uvw = base::texture_coordinate_info() + [[ anno::description("Custom value for texture coordinate") ]], + 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") ]] +) +[[ + anno::description("General texturing function for 2D bitmap texture stored in a file"), + anno::noinline() +]] +{ + return tex::lookup_float4(texture, float2(uvw.position.x, uvw.position.y), wrap_u, wrap_v, crop_u, crop_v); +} + +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 SimPBR_Opacity( + // -------------------- DIFFUSE REFLECTION ---------------------- + uniform color diffuse_color_constant = color(0.2f) + [[ + anno::display_name("Albedo Base Color"), + anno::description("The base albedo color to use if no texture is specified"), + anno::in_group("Diffuse") + ]], + uniform texture_2d diffuse_texture = texture_2d() + [[ + anno::display_name("Albedo Map"), + anno::description("The texture specifying the albedo value to use"), + anno::in_group("Diffuse") + ]], + uniform color diffuse_tint = color(1.0f) + [[ + anno::display_name("Albedo Tint"), + anno::description("This tints the albedo color or texture contant"), + anno::in_group("Diffuse") + ]], + + // -------------------- SPECULAR REFLECTION ---------------------- + uniform 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + uniform float anisotropy_constant = 0.0f + [[ + anno::display_name("Anisotropy Amount"), + anno::hard_range(-1.,1.), + anno::description("0 for isotropic, extents of -1 to 1 for anisotropy"), + anno::in_group("Specular") + ]], + uniform float anisotropy_texture_influence = 0.0f + [[ + anno::display_name("Anisotropy Map Influence"), + anno::hard_range(0.0, 1.), + anno::description("Blends between the constant value and the lookup of the anisotropy texture"), + anno::in_group("Specular") + ]], + uniform texture_2d anisotropy_texture = texture_2d() + [[ + anno::display_name("Anisotropy Map"), + anno::in_group("Specular") + ]], + + uniform float metallic_constant = 0.f + [[ + anno::display_name("Metallic Amount"), + anno::hard_range(0.0,1.), + anno::description("Metallic Material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d metallic_texture = texture_2d() + [[ + anno::display_name("Metallic Map"), + anno::in_group("Specular") + ]], + + // -------------------- ORM ---------------------- + uniform bool enable_ORM_texture = true + [[ + 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") + ]], + + // -------------------- 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") + ]], + 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") + ]], + 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") + ]], + + // -------------------- REFLECTIVITY ---------------------- + uniform bool enable_retroreflection = false + [[ + anno::display_name("Enable Retroreflection"), + anno::in_group("Reflectivity") + ]], + color retroreflection_color = color(.182,.800,.000) + [[ + anno::display_name("Retro-reflection color"), + anno::description("The color of the retroreflection"), + anno::in_group("Reflectivity") + ]], + uniform float normal_reflectivity = 0.5 + [[ + anno::display_name("Retro-reflection weight facing"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for geometry facing the viewer"), + anno::in_group("Reflectivity") + ]], + uniform float grazing_reflectivity = 1.0 + [[ + anno::display_name("Retro-reflection weight edge"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for the reflectivity at geometry edges"), + anno::in_group("Reflectivity") + ]], + + // -------------------- AMBIENT OCCLUSION ---------------------- + 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") + ]], + 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") + ]], + uniform 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_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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- ALPHA ---------------------- + uniform bool enable_alpha = true + [[ + anno::display_name("Enable Alpha"), + anno::description("Enables or disables alpha functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_constant = 1.0 + [[ + anno::display_name("Alpha Fallback Constant"), + anno::description("The base alpha constant to use if no texture is specified"), + anno::in_group("Alpha") + ]], + uniform texture_2d opacity_texture = texture_2d() + [[ + anno::display_name("Opacity Map"), + anno::description("The texture specifying the opacity value to use"), + anno::in_group("Alpha") + ]], + uniform bool enable_alpha_cutout = false + [[ + anno::display_name("Enable Alpha Cutout"), + anno::description("Enables or disables alpha cutout functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_cutout_cutoff = 1.f + [[ + anno::enable_if("enable_alpha_cutout == true"), + anno::hard_range(0.0, 1.0), + anno::display_name("Alpha Cutout Cutoff"), + anno::description("The cutoff value to to render as transparent up to and opaque past"), + anno::in_group("Alpha") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("Normal Map"), + anno::in_group("Normal") + ]], + + // -------------------- UV ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Scale"), + anno::description("Larger number increases size of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR Opaque Alpha Cutout"), + anno::description("Supports the opaque alpha cutout material model of the Sim Renderer"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "opaque", "alpha", "cutout", "omniverse", "generic")) +]] + = let { + + 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: 0, + projection_type: base::projection_cubic ) : + base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw ); + + // Diffuse Color Lookup and AO + float4 base_lookup = tex::texture_isvalid(diffuse_texture) ? raw_file_texture(texture: diffuse_texture, uvw: transformed_uvw) : float4(1, 1, 1, 1); + + float opacityValue = tex::texture_isvalid(opacity_texture) ? raw_file_texture(texture: opacity_texture, uvw: transformed_uvw).x : alpha_constant; + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw + ) : state::normal(); + + float3 clearcoat_normal = base::tangent_space_normal_texture( + texture: clearcoat_normalmap_texture, + factor: clearcoat_bump_factor, + uvw: uvw + ); + + float3 flattened_clearcoat_normal = ::math::lerp(normal_lookup, ::state::normal(), clearcoat_flatten); + float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? clearcoat_normal : flattened_clearcoat_normal; + + float ao_lookup = tex::texture_isvalid(ao_texture) ? + raw_file_texture(texture: ao_texture, uvw: transformed_uvw).x : + 1.0f + [[anno::unused("Currently unused in material, may be utilized in the future")]]; + + color diffuse_color = tex::texture_isvalid(diffuse_texture) ? color(base_lookup.x, base_lookup.y, base_lookup.z) : diffuse_color_constant; + color base_color = multiply_colors(diffuse_color, diffuse_tint, 1.0).tint; + + float3 ORM_lookup = tex::lookup_float3( + tex: ORM_texture, + coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) + ); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + raw_file_texture(texture: reflectionroughness_texture, uvw: transformed_uvw).x : + reflection_roughness_constant; + float anisotropy_lookup = tex::texture_isvalid(anisotropy_texture) ? + (raw_file_texture(texture: anisotropy_texture, uvw: transformed_uvw).x * 2.0f - 1.0f) : + anisotropy_constant; + float metallic_lookup = tex::texture_isvalid(metallic_texture) ? + raw_file_texture(texture: metallic_texture, uvw: transformed_uvw).x : + metallic_constant; + + float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup; + float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup; + color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : color(ao_lookup); + + color ao_weighted_base_color = multiply_colors(base_color, ao_color, ao_to_diffuse).tint; + + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); + float anisotropy = math::lerp(anisotropy_constant, anisotropy_lookup, anisotropy_texture_influence); + float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); + + float squared_roughness = reflection_roughness * reflection_roughness; + float roughness_u = squared_roughness * (1 + anisotropy); + float roughness_v = squared_roughness * (1 - anisotropy); + + bsdf diffuse_bsdf = df::weighted_layer( + weight: 1.0, + layer: df::diffuse_reflection_bsdf( + tint: ao_weighted_base_color, + roughness: 0.f ), + base: bsdf(), + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_u, + roughness_v: roughness_v, + tint: color(1.0, 1.0, 1.0), + mode: df::scatter_reflect + ); + + bsdf custom_curve_layer_bsdf = df::custom_curve_layer( + normal_reflectivity: 0.03, + grazing_reflectivity: 1.0, + exponent: 5.0, + weight: float(1.0), + layer: ggx_smith_bsdf, + base: diffuse_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + // + // Begin RETROREFLECTION SUPPORT + // + bsdf backscattering_glossy_bsdf = df::backscattering_glossy_reflection_bsdf( + tint: retroreflection_color, + roughness_u: reflection_roughness * reflection_roughness + ); + + bsdf retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: 1.-normal_reflectivity, + grazing_reflectivity: 1.-grazing_reflectivity, + base: backscattering_glossy_bsdf, + layer: diffuse_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + // + // End RETROREFLECTION SUPPORT + // + + bsdf directional_factor_bsdf = df::directional_factor( + normal_tint: ao_weighted_base_color, + grazing_tint: color(1.0, 1.0, 1.0), + exponent: 5.0f, + base: ggx_smith_bsdf + ); + + // CLEARCOAT + + bsdf omni_PBR_bsdf = df::weighted_layer( + weight: metallic, + layer: directional_factor_bsdf, + base: enable_retroreflection ? retroreflection_bsdf : custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + bsdf clearcoat_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + roughness_v: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + 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; + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook + ? ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) + : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) + ? tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) + : color(1.0); + +} in material( + thin_walled: false, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission ( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + geometry: material_geometry( + normal: enable_clearcoat ? state::normal() : normal_lookup, + cutout_opacity: enable_alpha ? (enable_alpha_cutout ? (opacityValue < alpha_cutout_cutoff ? 0.0 : 1.0) : opacityValue) : 1.0 + ) +); diff --git a/assets/objects/vomp/pumpkinsmall/materials/SimPBR_Translucent.mdl b/assets/objects/vomp/pumpkinsmall/materials/SimPBR_Translucent.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a60a90d1b946f94c266dabd515d5a15b6c3c9bd --- /dev/null +++ b/assets/objects/vomp/pumpkinsmall/materials/SimPBR_Translucent.mdl @@ -0,0 +1,290 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +import ::nvidia::core_definitions::file_texture; +import ::nvidia::core_definitions::normalmap_texture; + +export material SimPBR_Translucent( + // -------------------- SPECULAR REFLECTION/TRANSMISSION ---------------------- + uniform float ior_constant = 1.1f + [[ + anno::display_name("Index of Refraction"), + anno::hard_range(0.0,5.), + anno::description("Index of Refraction of the material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + // -------------------- VOLUME ---------------------- + color transmittance_color = color(1.0, 1.0f, 1.0f) + [[ + anno::display_name("Transmittance Color"), + anno::description("Expected transmittance after the specified transmittance distance through the volume."), + anno::in_group("Volume") + ]], + float transmittance_measurement_distance = 1.0f + [[ + anno::display_name("Transmittance Measurement Distance"), + anno::description("Distance to match the transmittance through the volume at."), + anno::in_group("Volume") + ]], + + // -------------------- EMISSIVE ---------------------- + uniform bool enable_thin_walled = false + [[ + anno::display_name("Enable Thin Walled"), + anno::description("Enables thin walled logic"), + anno::in_group("Geometry") + ]], + + // -------------------- 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_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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("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 ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Tiling"), + anno::description("Controls the repetition of the texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR Translucent"), + anno::description("Supports the translucent material model of the Sim Renderer"), + anno::in_group("SimReady"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "translucent", "omniverse", "generic")) +]] + = let { + 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: 0, + projection_type: base::projection_cubic + ) : base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw + ); + float2 uv = float2(transformed_uvw.position.x, transformed_uvw.position.y); + + color volume_absorption_coefficient = -math::log(transmittance_color) / (transmittance_measurement_distance*0.01); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + tex::lookup_float4(tex: reflectionroughness_texture, coord: uv).x : reflection_roughness_constant; + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_lookup, reflection_roughness_texture_influence); + + float roughness_squared = reflection_roughness * reflection_roughness; + + bsdf final_bsdf(enable_thin_walled ? + ::df::fresnel_layer( + ior_constant, + 1.f, + ::df::microfacet_ggx_smith_bsdf( + roughness_squared, + roughness_squared, + color(1.f, 1.f, 1.f), + ::state::texture_tangent_u(0), + ::df::scatter_reflect, + "" + ), + ::df::specular_bsdf( + transmittance_color, + ::df::scatter_transmit, + "" + ), ::state::normal()) + : ::df::microfacet_ggx_smith_bsdf( + roughness_squared, + roughness_squared, + color(1.f, 1.f, 1.f), + ::state::texture_tangent_u(0), + ::df::scatter_reflect_transmit, + "" + )); + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook ? + ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) ? + tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) : color(1.0); + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw, + flip_tangent_u: flip_tangent_u, + flip_tangent_v: flip_tangent_v + ) : state::normal(); +} in material( + thin_walled: enable_thin_walled, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission ( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + ior: color(ior_constant), + volume: material_volume( + scattering: df::anisotropic_vdf(), + absorption_coefficient: volume_absorption_coefficient, + scattering_coefficient: color(0.0f, 0.0f, 0.0f) + ), + geometry: material_geometry( + normal: normal_lookup + ) +); diff --git a/assets/objects/vomp/screwtoppail_a02/materials/PlasticPails_Blue_A.mdl b/assets/objects/vomp/screwtoppail_a02/materials/PlasticPails_Blue_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..423e62d936f39e90bd71c719ff7e1ba919a15d67 --- /dev/null +++ b/assets/objects/vomp/screwtoppail_a02/materials/PlasticPails_Blue_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material PlasticPails_Blue_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T__WhiteTint_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.47999998927116394, + albedo_brightness: 0.05999999865889549, + diffuse_tint: color(0.03109675, 0.20356119, 0.5752896), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 0.8499999642372131, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 0.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: false, + ORM_texture: texture_2d(), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d(), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(1, 1), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/screwtoppail_a02/materials/PlasticPails_Red_A.mdl b/assets/objects/vomp/screwtoppail_a02/materials/PlasticPails_Red_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..28493e669c44f30ed30cc649cb792902424b8778 --- /dev/null +++ b/assets/objects/vomp/screwtoppail_a02/materials/PlasticPails_Red_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material PlasticPails_Red_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T__WhiteTint_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: -0.019999999552965164, + albedo_brightness: 1.0, + diffuse_tint: color(0.71724, 0.0, 0.0), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 0.8499999642372131, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 0.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: false, + ORM_texture: texture_2d(), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d(), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(1, 1), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/screwtoppail_a02/materials/Plastic_Glossy_White_A.mdl b/assets/objects/vomp/screwtoppail_a02/materials/Plastic_Glossy_White_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..65d67b36eece6ffda7b8a68c7b94feb2106d6313 --- /dev/null +++ b/assets/objects/vomp/screwtoppail_a02/materials/Plastic_Glossy_White_A.mdl @@ -0,0 +1,36 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_Glossy_White_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T_Plastic_Glossy_White_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_texture_influence: 1.0, + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_Glossy_White_A_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + enable_opacity: false, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Glossy_White_A_Normal.png", ::tex::gamma_linear), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(1, 1), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/screwtoppail_a02/materials/Plastic_White_A.mdl b/assets/objects/vomp/screwtoppail_a02/materials/Plastic_White_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..9a5311ce69392acdff1353bbb153622c7c0ebae7 --- /dev/null +++ b/assets/objects/vomp/screwtoppail_a02/materials/Plastic_White_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_White_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T_Plastic_White_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_White_A_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_White_A_Normal.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/spatula_08/materials/SimPBR.mdl b/assets/objects/vomp/spatula_08/materials/SimPBR.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5883146f569e93208db72c08a810b7d71eaeece7 --- /dev/null +++ b/assets/objects/vomp/spatula_08/materials/SimPBR.mdl @@ -0,0 +1,562 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + + +using .::SimPBR_Model import *; +using .::baking_annotations import *; + +export material SimPBR( + // -------------------- DIFFUSE REFLECTION ---------------------- + uniform color diffuse_color_constant = color(0.2f) + [[ + anno::display_name("Albedo Base Color"), + anno::description("The base albedo color to use if no texture is specified"), + anno::in_group("Diffuse") + ]], + uniform texture_2d diffuse_texture = texture_2d() + [[ + anno::display_name("Albedo Map"), + anno::description("The texture specifying the albedo value to use"), + anno::in_group("Diffuse") + ]], + uniform color diffuse_tint = color(1.0f) + [[ + anno::display_name("Albedo Tint"), + anno::description("This tints the albedo color or texture contant"), + anno::in_group("Diffuse") + ]], + uniform bool enable_transmission = false + [[ + anno::display_name("Enable Diffuse Transmission"), + anno::description("Enables the diffuse transmission of light through thin diffuse scattering layer"), + anno::in_group("Diffuse") + ]], + uniform float opacity_ratio = 1.f + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Opacity Ratio"), + anno::description("Amount of opacity"), + anno::in_group("Diffuse") + ]], + uniform color opacity_tint = color(1.0f) + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Diffuse transmission tint"), + anno::description("Base diffuse transmission color"), + anno::in_group("Diffuse") + ]], + uniform float opacity_multiplier = 1.f + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Diffuse transmission multiplier"), + anno::description("Base diffuse transmission multiplier"), + anno::in_group("Diffuse") + ]], + + // -------------------- SPECULAR REFLECTION ---------------------- + 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + float anisotropy_constant = 0.0f + [[ + anno::display_name("Anisotropy Amount"), + anno::hard_range(-1.,1.), + anno::description("0 for isotropic, extents of -1 to 1 for anisotropy"), + anno::in_group("Specular") + ]], + uniform float anisotropy_texture_influence = 0.0f + [[ + anno::display_name("Anisotropy Map Influence"), + anno::hard_range(0.0, 1.), + anno::description("Blends between the constant value and the lookup of the anisotropy texture"), + anno::in_group("Specular") + ]], + uniform texture_2d anisotropy_texture = texture_2d() + [[ + anno::display_name("Anisotropy Map"), + anno::in_group("Specular") + ]], + + float metallic_constant = 0.f + [[ + anno::display_name("Metallic Amount"), + anno::hard_range(0.0,1.), + anno::description("Metallic Material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d metallic_texture = texture_2d() + [[ + anno::display_name("Metallic Map"), + anno::in_group("Specular") + ]], + + float specular_constant = 1.f + [[ + anno::display_name("Specular amount"), + anno::hard_range(0.0, 1.0), + anno::description("Scale of the specular component"), + anno::in_group("Specular") + ]], + uniform texture_2d specular_texture = texture_2d() + [[ + anno::display_name("Specular Map"), + anno::in_group("Specular") + ]], + + // -------------------- ORM ---------------------- + uniform bool enable_ORM_texture = true + [[ + 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") + ]], + + // -------------------- 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") + ]], + 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") + ]], + + float3 clearcoat_normal_input = float3(0.0, 0.0, 0.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") + ]], + + uniform bool clearcoat_flip_tangent_u = false + [[ + anno::display_name("Clearcoat Normal Map Flip U Tangent"), + anno::in_group("Clearcoat") + ]], + uniform bool clearcoat_flip_tangent_v = true + [[ + anno::display_name("Clearcoat Normal Map Flip V Tangent"), + anno::in_group("Clearcoat") + ]], + + + // -------------------- REFLECTIVITY ---------------------- + uniform bool enable_retroreflection = false + [[ + anno::display_name("Enable Retroreflection"), + anno::in_group("Reflectivity") + ]], + color retroreflection_tint = color(.182,.800,.000) + [[ + anno::display_name("Retro-reflection tint"), + anno::description("The tint of the retroreflection"), + anno::in_group("Reflectivity") + ]], + uniform float normal_reflectivity = 0.5 + [[ + anno::display_name("Retro-reflection weight facing"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for geometry facing the viewer"), + anno::in_group("Reflectivity") + ]], + uniform float grazing_reflectivity = 1.0 + [[ + anno::display_name("Retro-reflection weight edge"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for the reflectivity at geometry edges"), + anno::in_group("Reflectivity") + ]], + + // -------------------- AMBIENT OCCLUSION ---------------------- + 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") + ]], + float ao_input = 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") + ]], + + // -------------------- 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") + ]], + uniform 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") + ]], + + color emissive_mask_input = color(1.0), + 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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- ALPHA ---------------------- + uniform bool enable_opacity = false + [[ + anno::display_name("Enable Opacity"), + anno::description("Enables or disables alpha functionality"), + anno::in_group("Alpha") + ]], + float alpha_constant = 1.0 + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Opacity Fallback Constant"), + anno::hard_range(0.0, 1.0), + anno::description("The base alpha constant to use if no texture is specified"), + anno::in_group("Alpha") + ]], + uniform texture_2d opacity_texture = texture_2d() + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Opacity Map"), + anno::description("The texture specifying the opacity value to use"), + anno::in_group("Alpha") + ]], + uniform bool enable_opacity_cutout = false + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Enable Alpha Cutout"), + anno::description("Enables or disables alpha cutout functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_cutout_cutoff = 1.f + [[ + anno::enable_if("enable_opacity == true"), + anno::enable_if("enable_opacity_cutout == true"), + anno::hard_range(0.0, 1.0), + anno::display_name("Alpha Cutout Cutoff"), + anno::description("The cutoff value to to render as transparent up to and opaque past"), + anno::in_group("Alpha") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + + float3 normal_input = state::normal(), + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("Normal Map"), + anno::in_group("Normal") + ]], + uniform bool flip_tangent_u = false + [[ + anno::display_name("Normal Map Flip U Tangent"), + anno::description("Flips the U Tangent vector."), + anno::in_group("Normal") + ]], + uniform bool flip_tangent_v = true + [[ + anno::display_name("Normal Map Flip V Tangent"), + anno::description("Flips the V Tangent vector. By Default, SimPBR materials setup for DirectX normal maps. Set Normal Map Flip V = false for OpenGL."), + anno::in_group("Normal") + ]], + + // -------------------- UV ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Tiling"), + anno::description("Controls repetition of the texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR"), + anno::description("Supports the opaque alpha cutout material model of the Sim Renderer"), + anno::in_group("SimReady"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "opaque", "alpha", "cutout", "omniverse", "generic")) +]] + = let { + 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: 0, + projection_type: base::projection_cubic + ) : base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw + ); + float2 uv = float2(transformed_uvw.position.x, transformed_uvw.position.y); + + // Diffuse Color Lookup and AO + float4 base_lookup = tex::texture_isvalid(diffuse_texture) ? tex::lookup_float4(tex: diffuse_texture, coord: uv) : float4(1, 1, 1, 1); + + float opacityValue = tex::texture_isvalid(opacity_texture) ? tex::lookup_float4(tex: opacity_texture, coord: uv).w : alpha_constant; + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw, + flip_tangent_u: flip_tangent_u, + flip_tangent_v: flip_tangent_v + ) : normal_input; + + float3 clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? + base::tangent_space_normal_texture( + texture: clearcoat_normalmap_texture, + factor: clearcoat_bump_factor, + uvw: uvw, + flip_tangent_u: clearcoat_flip_tangent_u, + flip_tangent_v: clearcoat_flip_tangent_v + ) : clearcoat_normal_input; + + float3 flattened_clearcoat_normal = ::math::lerp(normal_lookup, ::state::normal(), clearcoat_flatten); + float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? clearcoat_normal : flattened_clearcoat_normal; + + float ao_lookup = tex::texture_isvalid(ao_texture) ? tex::lookup_float4(tex: ao_texture, coord: uv).x : ao_input; + + color diffuse_color = tex::texture_isvalid(diffuse_texture) ? color(base_lookup.x, base_lookup.y, base_lookup.z) : diffuse_color_constant; + + float3 ORM_lookup = tex::lookup_float3( + tex: ORM_texture, + coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) + ); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + tex::lookup_float4(tex: reflectionroughness_texture, coord: uv).x : reflection_roughness_constant; + float anisotropy_lookup = tex::texture_isvalid(anisotropy_texture) ? + (tex::lookup_float4(tex: anisotropy_texture, coord: uv).x * 2.0f - 1.0f) : anisotropy_constant; + float metallic_lookup = tex::texture_isvalid(metallic_texture) ? + tex::lookup_float4(tex: metallic_texture, coord: uv).x : metallic_constant; + float specular_lookup = tex::texture_isvalid(specular_texture) ? + tex::lookup_float4(tex: specular_texture, coord: uv).x : specular_constant; + + float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup; + float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup; + float ao = enable_ORM_texture ? ORM_lookup.x : ao_lookup; + + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); + float anisotropy = math::lerp(anisotropy_constant, anisotropy_lookup, anisotropy_texture_influence); + float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook ? + ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) ? + tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) : emissive_mask_input; + +} in SimPBR_Model( + diffuse_color: diffuse_color, + diffuse_tint: diffuse_tint, + roughness: reflection_roughness, + anisotropy: anisotropy, + metallic: metallic, + specular: specular_lookup, + normal: normal_lookup, + enable_clearcoat: enable_clearcoat, + clearcoat_tint: clearcoat_tint, + clearcoat_transparency: clearcoat_transparency, + clearcoat_reflection_roughness: clearcoat_reflection_roughness, + clearcoat_weight: clearcoat_weight, + clearcoat_ior: clearcoat_ior, + clearcoat_normal: final_clearcoat_normal, + enable_retroreflection: enable_retroreflection, + retroreflection_tint: retroreflection_tint, + normal_reflectivity: normal_reflectivity, + grazing_reflectivity: grazing_reflectivity, + ao_to_diffuse: ao_to_diffuse, + ao: ao, + enable_emission: enable_emission, + emissive_color: emissive_color, + emissive_mask: emissive_mask, + emissive_intensity: emissive_intensity, + enable_opacity: enable_opacity, + alpha: opacityValue, + enable_opacity_cutout: enable_opacity_cutout, + alpha_cutout_cutoff: alpha_cutout_cutoff, + opacity_ratio: enable_transmission ? opacity_ratio : 1.0, + opacity_tint : opacity_tint, + opacity_multiplier : opacity_multiplier +); diff --git a/assets/objects/vomp/spatula_08/materials/SimPBR_Model.mdl b/assets/objects/vomp/spatula_08/materials/SimPBR_Model.mdl new file mode 100644 index 0000000000000000000000000000000000000000..dccd3808942cb243a4e03f77f684935081b31ec5 --- /dev/null +++ b/assets/objects/vomp/spatula_08/materials/SimPBR_Model.mdl @@ -0,0 +1,212 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +using .::baking_annotations import *; + +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 + ); +} + +export material SimPBR_Model( + color diffuse_color = color(0.2f) [[ target_baked_argument("diffuse_texture", "diffuse_color_constant", "RGBA8_UNORM") ]], + uniform color diffuse_tint = color(1.0f), + float roughness = 0.5f [[ target_baked_argument("reflectionroughness_texture", "reflection_roughness_constant", "R8_UNORM") ]], + float anisotropy = 0.0f [[ target_baked_argument("anisotropy_texture", "anisotropy_constant", "R8_SNORM") ]], + float metallic = 0.f [[ target_baked_argument("metallic_texture", "metallic_constant", "R8_UNORM") ]], + float specular = 1.f [[ target_baked_argument("specular_texture", "specular_constant", "R8_UNORM") ]], + float3 normal = float3(0.0, 0.0, 0.0) [[ target_baked_argument("normalmap_texture", "normal_input", "RGBA8_SNORM", baking_annotations::TRANSFORM_UNORM_VECTOR) ]], + uniform bool enable_clearcoat = false, + color clearcoat_tint = color(1.0f), + float clearcoat_transparency = 1.0f, + float clearcoat_reflection_roughness = 0.0f, + float clearcoat_weight = 1.0f, + float clearcoat_ior = 1.56f, + float3 clearcoat_normal = float3(0.0, 0.0, 0.0) [[ target_baked_argument("clearcoat_normalmap_texture", "clearcoat_normal_input", "RGBA8_SNORM", baking_annotations::TRANSFORM_UNORM_VECTOR) ]], + uniform bool enable_retroreflection = false, + color retroreflection_tint = color(.182,.800,.000), + uniform float normal_reflectivity = 0.5, + uniform float grazing_reflectivity = 1.0, + float ao_to_diffuse = 0.0, + float ao = 1.0f [[ target_baked_argument("ao_texture", "ao_input", "R8_UNORM") ]], + uniform bool enable_emission = false, + uniform color emissive_color = color(1.0, 0.1, 0.1), + color emissive_mask = color(1.0, 0.1, 0.1) [[ target_baked_argument("emissive_mask_texture", "emissive_mask_input", "R8_UNORM") ]], + uniform float emissive_intensity = 40.f, + uniform bool enable_opacity = false, + float alpha = 1.0, + uniform bool enable_opacity_cutout = false, + uniform float alpha_cutout_cutoff = 1.f, + uniform float opacity_ratio = 1.f, + uniform color opacity_tint = color(1.0f), + uniform float opacity_multiplier = 1.f +) +[[ + target_material_model(), + target_material_rendering("..::SimPBR::SimPBR") +]] + = let { + color base_color = multiply_colors(diffuse_color, diffuse_tint, 1.0).tint; + color ao_weighted_base_color = multiply_colors(base_color, color(ao), ao_to_diffuse).tint; + + float squared_roughness = roughness * roughness; + float roughness_u = squared_roughness * (1 + anisotropy); + float roughness_v = squared_roughness * (1 - anisotropy); + + color diffuse_transmission_color = base_color * opacity_tint * opacity_multiplier; + + bsdf diffuse_bsdf = df::weighted_layer( + weight: opacity_ratio, + layer: df::diffuse_reflection_bsdf( + tint: ao_weighted_base_color, + roughness: 0.0f + ), + base: df::diffuse_transmission_bsdf(tint: diffuse_transmission_color), + normal: enable_clearcoat ? normal : state::normal() + ); + + bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_u, + roughness_v: roughness_v, + tint: color(1.0, 1.0, 1.0), + mode: df::scatter_reflect + ); + + bsdf custom_curve_layer_bsdf = df::custom_curve_layer( + normal_reflectivity: 0.03, + grazing_reflectivity: 1.0, + exponent: 5.0, + weight: specular, + layer: ggx_smith_bsdf, + base: diffuse_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + // + // Begin RETROREFLECTION SUPPORT + // + color final_retroreflection_color = multiply_colors(retroreflection_tint, base_color, 1.0).tint; + bsdf backscattering_glossy_bsdf = df::backscattering_glossy_reflection_bsdf( + tint: final_retroreflection_color, + roughness_u: squared_roughness + ); + + /*bsdf retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: 1.-normal_reflectivity, + grazing_reflectivity: 1.-grazing_reflectivity, + base: backscattering_glossy_bsdf, + layer: custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + );*/ + + // if normal_reflectivity and grazing_reflectivity are 1 and weight is 1, just the layer is used + bsdf opt_retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: enable_retroreflection ? 1.-normal_reflectivity : 1, + grazing_reflectivity: enable_retroreflection ? 1.-grazing_reflectivity : 1, + base: backscattering_glossy_bsdf, + layer: custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + // + // End RETROREFLECTION SUPPORT + // + + bsdf directional_factor_bsdf = df::directional_factor( + normal_tint: ao_weighted_base_color, + grazing_tint: color(1.0, 1.0, 1.0), + exponent: 5.0f, + base: ggx_smith_bsdf + ); + + // CLEARCOAT + bsdf omni_PBR_bsdf = df::weighted_layer( + weight: metallic, + layer: directional_factor_bsdf, + base: opt_retroreflection_bsdf, //enable_retroreflection ? retroreflection_bsdf : custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + bsdf clearcoat_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + roughness_v: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + 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 opt_opaque_clearcoat = df::weighted_layer( + weight: enable_clearcoat ? clearcoat_transparency : 1, + layer: ::df::tint(tint: enable_clearcoat ? clearcoat_tint : color(1), base: omni_PBR_bsdf), + base: ::df::diffuse_reflection_bsdf(tint: clearcoat_tint) + ); + + bsdf opt_omni_PBR_coated_bsdf = df::fresnel_layer( + ior: clearcoat_ior, + weight: enable_clearcoat ? clearcoat_weight : 0, + layer: clearcoat_bsdf, + base: opt_opaque_clearcoat, + normal: clearcoat_normal + ); + + bsdf final_bsdf = opt_omni_PBR_coated_bsdf; +} in material( + thin_walled: false, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + geometry: material_geometry( + normal: enable_clearcoat ? state::normal() : normal, + cutout_opacity: enable_opacity ? (enable_opacity_cutout ? (alpha < alpha_cutout_cutoff ? 0.0 : 1.0) : alpha) : 1.0 + ) +); diff --git a/assets/objects/vomp/spatula_08/materials/SimPBR_Opacity.mdl b/assets/objects/vomp/spatula_08/materials/SimPBR_Opacity.mdl new file mode 100644 index 0000000000000000000000000000000000000000..cf0a3ba759fc0b873d174b410b31759b1d426307 --- /dev/null +++ b/assets/objects/vomp/spatula_08/materials/SimPBR_Opacity.mdl @@ -0,0 +1,651 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +import ::nvidia::core_definitions::file_texture; +import ::nvidia::core_definitions::normalmap_texture; + +float4 raw_file_texture( + uniform texture_2d texture + [[ anno::description("The input texture") ]], + base::texture_coordinate_info uvw = base::texture_coordinate_info() + [[ anno::description("Custom value for texture coordinate") ]], + 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") ]] +) +[[ + anno::description("General texturing function for 2D bitmap texture stored in a file"), + anno::noinline() +]] +{ + return tex::lookup_float4(texture, float2(uvw.position.x, uvw.position.y), wrap_u, wrap_v, crop_u, crop_v); +} + +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 SimPBR_Opacity( + // -------------------- DIFFUSE REFLECTION ---------------------- + uniform color diffuse_color_constant = color(0.2f) + [[ + anno::display_name("Albedo Base Color"), + anno::description("The base albedo color to use if no texture is specified"), + anno::in_group("Diffuse") + ]], + uniform texture_2d diffuse_texture = texture_2d() + [[ + anno::display_name("Albedo Map"), + anno::description("The texture specifying the albedo value to use"), + anno::in_group("Diffuse") + ]], + uniform color diffuse_tint = color(1.0f) + [[ + anno::display_name("Albedo Tint"), + anno::description("This tints the albedo color or texture contant"), + anno::in_group("Diffuse") + ]], + + // -------------------- SPECULAR REFLECTION ---------------------- + uniform 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + uniform float anisotropy_constant = 0.0f + [[ + anno::display_name("Anisotropy Amount"), + anno::hard_range(-1.,1.), + anno::description("0 for isotropic, extents of -1 to 1 for anisotropy"), + anno::in_group("Specular") + ]], + uniform float anisotropy_texture_influence = 0.0f + [[ + anno::display_name("Anisotropy Map Influence"), + anno::hard_range(0.0, 1.), + anno::description("Blends between the constant value and the lookup of the anisotropy texture"), + anno::in_group("Specular") + ]], + uniform texture_2d anisotropy_texture = texture_2d() + [[ + anno::display_name("Anisotropy Map"), + anno::in_group("Specular") + ]], + + uniform float metallic_constant = 0.f + [[ + anno::display_name("Metallic Amount"), + anno::hard_range(0.0,1.), + anno::description("Metallic Material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d metallic_texture = texture_2d() + [[ + anno::display_name("Metallic Map"), + anno::in_group("Specular") + ]], + + // -------------------- ORM ---------------------- + uniform bool enable_ORM_texture = true + [[ + 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") + ]], + + // -------------------- 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") + ]], + 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") + ]], + 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") + ]], + + // -------------------- REFLECTIVITY ---------------------- + uniform bool enable_retroreflection = false + [[ + anno::display_name("Enable Retroreflection"), + anno::in_group("Reflectivity") + ]], + color retroreflection_color = color(.182,.800,.000) + [[ + anno::display_name("Retro-reflection color"), + anno::description("The color of the retroreflection"), + anno::in_group("Reflectivity") + ]], + uniform float normal_reflectivity = 0.5 + [[ + anno::display_name("Retro-reflection weight facing"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for geometry facing the viewer"), + anno::in_group("Reflectivity") + ]], + uniform float grazing_reflectivity = 1.0 + [[ + anno::display_name("Retro-reflection weight edge"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for the reflectivity at geometry edges"), + anno::in_group("Reflectivity") + ]], + + // -------------------- AMBIENT OCCLUSION ---------------------- + 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") + ]], + 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") + ]], + uniform 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_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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- ALPHA ---------------------- + uniform bool enable_alpha = true + [[ + anno::display_name("Enable Alpha"), + anno::description("Enables or disables alpha functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_constant = 1.0 + [[ + anno::display_name("Alpha Fallback Constant"), + anno::description("The base alpha constant to use if no texture is specified"), + anno::in_group("Alpha") + ]], + uniform texture_2d opacity_texture = texture_2d() + [[ + anno::display_name("Opacity Map"), + anno::description("The texture specifying the opacity value to use"), + anno::in_group("Alpha") + ]], + uniform bool enable_alpha_cutout = false + [[ + anno::display_name("Enable Alpha Cutout"), + anno::description("Enables or disables alpha cutout functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_cutout_cutoff = 1.f + [[ + anno::enable_if("enable_alpha_cutout == true"), + anno::hard_range(0.0, 1.0), + anno::display_name("Alpha Cutout Cutoff"), + anno::description("The cutoff value to to render as transparent up to and opaque past"), + anno::in_group("Alpha") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("Normal Map"), + anno::in_group("Normal") + ]], + + // -------------------- UV ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Scale"), + anno::description("Larger number increases size of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR Opaque Alpha Cutout"), + anno::description("Supports the opaque alpha cutout material model of the Sim Renderer"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "opaque", "alpha", "cutout", "omniverse", "generic")) +]] + = let { + + 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: 0, + projection_type: base::projection_cubic ) : + base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw ); + + // Diffuse Color Lookup and AO + float4 base_lookup = tex::texture_isvalid(diffuse_texture) ? raw_file_texture(texture: diffuse_texture, uvw: transformed_uvw) : float4(1, 1, 1, 1); + + float opacityValue = tex::texture_isvalid(opacity_texture) ? raw_file_texture(texture: opacity_texture, uvw: transformed_uvw).x : alpha_constant; + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw + ) : state::normal(); + + float3 clearcoat_normal = base::tangent_space_normal_texture( + texture: clearcoat_normalmap_texture, + factor: clearcoat_bump_factor, + uvw: uvw + ); + + float3 flattened_clearcoat_normal = ::math::lerp(normal_lookup, ::state::normal(), clearcoat_flatten); + float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? clearcoat_normal : flattened_clearcoat_normal; + + float ao_lookup = tex::texture_isvalid(ao_texture) ? + raw_file_texture(texture: ao_texture, uvw: transformed_uvw).x : + 1.0f + [[anno::unused("Currently unused in material, may be utilized in the future")]]; + + color diffuse_color = tex::texture_isvalid(diffuse_texture) ? color(base_lookup.x, base_lookup.y, base_lookup.z) : diffuse_color_constant; + color base_color = multiply_colors(diffuse_color, diffuse_tint, 1.0).tint; + + float3 ORM_lookup = tex::lookup_float3( + tex: ORM_texture, + coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) + ); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + raw_file_texture(texture: reflectionroughness_texture, uvw: transformed_uvw).x : + reflection_roughness_constant; + float anisotropy_lookup = tex::texture_isvalid(anisotropy_texture) ? + (raw_file_texture(texture: anisotropy_texture, uvw: transformed_uvw).x * 2.0f - 1.0f) : + anisotropy_constant; + float metallic_lookup = tex::texture_isvalid(metallic_texture) ? + raw_file_texture(texture: metallic_texture, uvw: transformed_uvw).x : + metallic_constant; + + float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup; + float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup; + color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : color(ao_lookup); + + color ao_weighted_base_color = multiply_colors(base_color, ao_color, ao_to_diffuse).tint; + + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); + float anisotropy = math::lerp(anisotropy_constant, anisotropy_lookup, anisotropy_texture_influence); + float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); + + float squared_roughness = reflection_roughness * reflection_roughness; + float roughness_u = squared_roughness * (1 + anisotropy); + float roughness_v = squared_roughness * (1 - anisotropy); + + bsdf diffuse_bsdf = df::weighted_layer( + weight: 1.0, + layer: df::diffuse_reflection_bsdf( + tint: ao_weighted_base_color, + roughness: 0.f ), + base: bsdf(), + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_u, + roughness_v: roughness_v, + tint: color(1.0, 1.0, 1.0), + mode: df::scatter_reflect + ); + + bsdf custom_curve_layer_bsdf = df::custom_curve_layer( + normal_reflectivity: 0.03, + grazing_reflectivity: 1.0, + exponent: 5.0, + weight: float(1.0), + layer: ggx_smith_bsdf, + base: diffuse_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + // + // Begin RETROREFLECTION SUPPORT + // + bsdf backscattering_glossy_bsdf = df::backscattering_glossy_reflection_bsdf( + tint: retroreflection_color, + roughness_u: reflection_roughness * reflection_roughness + ); + + bsdf retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: 1.-normal_reflectivity, + grazing_reflectivity: 1.-grazing_reflectivity, + base: backscattering_glossy_bsdf, + layer: diffuse_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + // + // End RETROREFLECTION SUPPORT + // + + bsdf directional_factor_bsdf = df::directional_factor( + normal_tint: ao_weighted_base_color, + grazing_tint: color(1.0, 1.0, 1.0), + exponent: 5.0f, + base: ggx_smith_bsdf + ); + + // CLEARCOAT + + bsdf omni_PBR_bsdf = df::weighted_layer( + weight: metallic, + layer: directional_factor_bsdf, + base: enable_retroreflection ? retroreflection_bsdf : custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + bsdf clearcoat_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + roughness_v: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + 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; + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook + ? ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) + : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) + ? tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) + : color(1.0); + +} in material( + thin_walled: false, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission ( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + geometry: material_geometry( + normal: enable_clearcoat ? state::normal() : normal_lookup, + cutout_opacity: enable_alpha ? (enable_alpha_cutout ? (opacityValue < alpha_cutout_cutoff ? 0.0 : 1.0) : opacityValue) : 1.0 + ) +); diff --git a/assets/objects/vomp/spatula_08/materials/SimPBR_Translucent.mdl b/assets/objects/vomp/spatula_08/materials/SimPBR_Translucent.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a60a90d1b946f94c266dabd515d5a15b6c3c9bd --- /dev/null +++ b/assets/objects/vomp/spatula_08/materials/SimPBR_Translucent.mdl @@ -0,0 +1,290 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +import ::nvidia::core_definitions::file_texture; +import ::nvidia::core_definitions::normalmap_texture; + +export material SimPBR_Translucent( + // -------------------- SPECULAR REFLECTION/TRANSMISSION ---------------------- + uniform float ior_constant = 1.1f + [[ + anno::display_name("Index of Refraction"), + anno::hard_range(0.0,5.), + anno::description("Index of Refraction of the material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + // -------------------- VOLUME ---------------------- + color transmittance_color = color(1.0, 1.0f, 1.0f) + [[ + anno::display_name("Transmittance Color"), + anno::description("Expected transmittance after the specified transmittance distance through the volume."), + anno::in_group("Volume") + ]], + float transmittance_measurement_distance = 1.0f + [[ + anno::display_name("Transmittance Measurement Distance"), + anno::description("Distance to match the transmittance through the volume at."), + anno::in_group("Volume") + ]], + + // -------------------- EMISSIVE ---------------------- + uniform bool enable_thin_walled = false + [[ + anno::display_name("Enable Thin Walled"), + anno::description("Enables thin walled logic"), + anno::in_group("Geometry") + ]], + + // -------------------- 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_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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("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 ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Tiling"), + anno::description("Controls the repetition of the texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR Translucent"), + anno::description("Supports the translucent material model of the Sim Renderer"), + anno::in_group("SimReady"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "translucent", "omniverse", "generic")) +]] + = let { + 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: 0, + projection_type: base::projection_cubic + ) : base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw + ); + float2 uv = float2(transformed_uvw.position.x, transformed_uvw.position.y); + + color volume_absorption_coefficient = -math::log(transmittance_color) / (transmittance_measurement_distance*0.01); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + tex::lookup_float4(tex: reflectionroughness_texture, coord: uv).x : reflection_roughness_constant; + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_lookup, reflection_roughness_texture_influence); + + float roughness_squared = reflection_roughness * reflection_roughness; + + bsdf final_bsdf(enable_thin_walled ? + ::df::fresnel_layer( + ior_constant, + 1.f, + ::df::microfacet_ggx_smith_bsdf( + roughness_squared, + roughness_squared, + color(1.f, 1.f, 1.f), + ::state::texture_tangent_u(0), + ::df::scatter_reflect, + "" + ), + ::df::specular_bsdf( + transmittance_color, + ::df::scatter_transmit, + "" + ), ::state::normal()) + : ::df::microfacet_ggx_smith_bsdf( + roughness_squared, + roughness_squared, + color(1.f, 1.f, 1.f), + ::state::texture_tangent_u(0), + ::df::scatter_reflect_transmit, + "" + )); + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook ? + ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) ? + tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) : color(1.0); + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw, + flip_tangent_u: flip_tangent_u, + flip_tangent_v: flip_tangent_v + ) : state::normal(); +} in material( + thin_walled: enable_thin_walled, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission ( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + ior: color(ior_constant), + volume: material_volume( + scattering: df::anisotropic_vdf(), + absorption_coefficient: volume_absorption_coefficient, + scattering_coefficient: color(0.0f, 0.0f, 0.0f) + ), + geometry: material_geometry( + normal: normal_lookup + ) +); diff --git a/assets/objects/vomp/spatula_08/textures/Spatulas_Set02_Opacity.png b/assets/objects/vomp/spatula_08/textures/Spatulas_Set02_Opacity.png new file mode 100644 index 0000000000000000000000000000000000000000..776aabedf22973ce066a9728e1d4a2e65365db5d Binary files /dev/null and b/assets/objects/vomp/spatula_08/textures/Spatulas_Set02_Opacity.png differ diff --git a/assets/objects/vomp/spatula_12/materials/SimPBR.mdl b/assets/objects/vomp/spatula_12/materials/SimPBR.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5883146f569e93208db72c08a810b7d71eaeece7 --- /dev/null +++ b/assets/objects/vomp/spatula_12/materials/SimPBR.mdl @@ -0,0 +1,562 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + + +using .::SimPBR_Model import *; +using .::baking_annotations import *; + +export material SimPBR( + // -------------------- DIFFUSE REFLECTION ---------------------- + uniform color diffuse_color_constant = color(0.2f) + [[ + anno::display_name("Albedo Base Color"), + anno::description("The base albedo color to use if no texture is specified"), + anno::in_group("Diffuse") + ]], + uniform texture_2d diffuse_texture = texture_2d() + [[ + anno::display_name("Albedo Map"), + anno::description("The texture specifying the albedo value to use"), + anno::in_group("Diffuse") + ]], + uniform color diffuse_tint = color(1.0f) + [[ + anno::display_name("Albedo Tint"), + anno::description("This tints the albedo color or texture contant"), + anno::in_group("Diffuse") + ]], + uniform bool enable_transmission = false + [[ + anno::display_name("Enable Diffuse Transmission"), + anno::description("Enables the diffuse transmission of light through thin diffuse scattering layer"), + anno::in_group("Diffuse") + ]], + uniform float opacity_ratio = 1.f + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Opacity Ratio"), + anno::description("Amount of opacity"), + anno::in_group("Diffuse") + ]], + uniform color opacity_tint = color(1.0f) + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Diffuse transmission tint"), + anno::description("Base diffuse transmission color"), + anno::in_group("Diffuse") + ]], + uniform float opacity_multiplier = 1.f + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Diffuse transmission multiplier"), + anno::description("Base diffuse transmission multiplier"), + anno::in_group("Diffuse") + ]], + + // -------------------- SPECULAR REFLECTION ---------------------- + 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + float anisotropy_constant = 0.0f + [[ + anno::display_name("Anisotropy Amount"), + anno::hard_range(-1.,1.), + anno::description("0 for isotropic, extents of -1 to 1 for anisotropy"), + anno::in_group("Specular") + ]], + uniform float anisotropy_texture_influence = 0.0f + [[ + anno::display_name("Anisotropy Map Influence"), + anno::hard_range(0.0, 1.), + anno::description("Blends between the constant value and the lookup of the anisotropy texture"), + anno::in_group("Specular") + ]], + uniform texture_2d anisotropy_texture = texture_2d() + [[ + anno::display_name("Anisotropy Map"), + anno::in_group("Specular") + ]], + + float metallic_constant = 0.f + [[ + anno::display_name("Metallic Amount"), + anno::hard_range(0.0,1.), + anno::description("Metallic Material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d metallic_texture = texture_2d() + [[ + anno::display_name("Metallic Map"), + anno::in_group("Specular") + ]], + + float specular_constant = 1.f + [[ + anno::display_name("Specular amount"), + anno::hard_range(0.0, 1.0), + anno::description("Scale of the specular component"), + anno::in_group("Specular") + ]], + uniform texture_2d specular_texture = texture_2d() + [[ + anno::display_name("Specular Map"), + anno::in_group("Specular") + ]], + + // -------------------- ORM ---------------------- + uniform bool enable_ORM_texture = true + [[ + 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") + ]], + + // -------------------- 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") + ]], + 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") + ]], + + float3 clearcoat_normal_input = float3(0.0, 0.0, 0.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") + ]], + + uniform bool clearcoat_flip_tangent_u = false + [[ + anno::display_name("Clearcoat Normal Map Flip U Tangent"), + anno::in_group("Clearcoat") + ]], + uniform bool clearcoat_flip_tangent_v = true + [[ + anno::display_name("Clearcoat Normal Map Flip V Tangent"), + anno::in_group("Clearcoat") + ]], + + + // -------------------- REFLECTIVITY ---------------------- + uniform bool enable_retroreflection = false + [[ + anno::display_name("Enable Retroreflection"), + anno::in_group("Reflectivity") + ]], + color retroreflection_tint = color(.182,.800,.000) + [[ + anno::display_name("Retro-reflection tint"), + anno::description("The tint of the retroreflection"), + anno::in_group("Reflectivity") + ]], + uniform float normal_reflectivity = 0.5 + [[ + anno::display_name("Retro-reflection weight facing"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for geometry facing the viewer"), + anno::in_group("Reflectivity") + ]], + uniform float grazing_reflectivity = 1.0 + [[ + anno::display_name("Retro-reflection weight edge"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for the reflectivity at geometry edges"), + anno::in_group("Reflectivity") + ]], + + // -------------------- AMBIENT OCCLUSION ---------------------- + 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") + ]], + float ao_input = 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") + ]], + + // -------------------- 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") + ]], + uniform 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") + ]], + + color emissive_mask_input = color(1.0), + 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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- ALPHA ---------------------- + uniform bool enable_opacity = false + [[ + anno::display_name("Enable Opacity"), + anno::description("Enables or disables alpha functionality"), + anno::in_group("Alpha") + ]], + float alpha_constant = 1.0 + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Opacity Fallback Constant"), + anno::hard_range(0.0, 1.0), + anno::description("The base alpha constant to use if no texture is specified"), + anno::in_group("Alpha") + ]], + uniform texture_2d opacity_texture = texture_2d() + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Opacity Map"), + anno::description("The texture specifying the opacity value to use"), + anno::in_group("Alpha") + ]], + uniform bool enable_opacity_cutout = false + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Enable Alpha Cutout"), + anno::description("Enables or disables alpha cutout functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_cutout_cutoff = 1.f + [[ + anno::enable_if("enable_opacity == true"), + anno::enable_if("enable_opacity_cutout == true"), + anno::hard_range(0.0, 1.0), + anno::display_name("Alpha Cutout Cutoff"), + anno::description("The cutoff value to to render as transparent up to and opaque past"), + anno::in_group("Alpha") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + + float3 normal_input = state::normal(), + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("Normal Map"), + anno::in_group("Normal") + ]], + uniform bool flip_tangent_u = false + [[ + anno::display_name("Normal Map Flip U Tangent"), + anno::description("Flips the U Tangent vector."), + anno::in_group("Normal") + ]], + uniform bool flip_tangent_v = true + [[ + anno::display_name("Normal Map Flip V Tangent"), + anno::description("Flips the V Tangent vector. By Default, SimPBR materials setup for DirectX normal maps. Set Normal Map Flip V = false for OpenGL."), + anno::in_group("Normal") + ]], + + // -------------------- UV ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Tiling"), + anno::description("Controls repetition of the texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR"), + anno::description("Supports the opaque alpha cutout material model of the Sim Renderer"), + anno::in_group("SimReady"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "opaque", "alpha", "cutout", "omniverse", "generic")) +]] + = let { + 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: 0, + projection_type: base::projection_cubic + ) : base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw + ); + float2 uv = float2(transformed_uvw.position.x, transformed_uvw.position.y); + + // Diffuse Color Lookup and AO + float4 base_lookup = tex::texture_isvalid(diffuse_texture) ? tex::lookup_float4(tex: diffuse_texture, coord: uv) : float4(1, 1, 1, 1); + + float opacityValue = tex::texture_isvalid(opacity_texture) ? tex::lookup_float4(tex: opacity_texture, coord: uv).w : alpha_constant; + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw, + flip_tangent_u: flip_tangent_u, + flip_tangent_v: flip_tangent_v + ) : normal_input; + + float3 clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? + base::tangent_space_normal_texture( + texture: clearcoat_normalmap_texture, + factor: clearcoat_bump_factor, + uvw: uvw, + flip_tangent_u: clearcoat_flip_tangent_u, + flip_tangent_v: clearcoat_flip_tangent_v + ) : clearcoat_normal_input; + + float3 flattened_clearcoat_normal = ::math::lerp(normal_lookup, ::state::normal(), clearcoat_flatten); + float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? clearcoat_normal : flattened_clearcoat_normal; + + float ao_lookup = tex::texture_isvalid(ao_texture) ? tex::lookup_float4(tex: ao_texture, coord: uv).x : ao_input; + + color diffuse_color = tex::texture_isvalid(diffuse_texture) ? color(base_lookup.x, base_lookup.y, base_lookup.z) : diffuse_color_constant; + + float3 ORM_lookup = tex::lookup_float3( + tex: ORM_texture, + coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) + ); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + tex::lookup_float4(tex: reflectionroughness_texture, coord: uv).x : reflection_roughness_constant; + float anisotropy_lookup = tex::texture_isvalid(anisotropy_texture) ? + (tex::lookup_float4(tex: anisotropy_texture, coord: uv).x * 2.0f - 1.0f) : anisotropy_constant; + float metallic_lookup = tex::texture_isvalid(metallic_texture) ? + tex::lookup_float4(tex: metallic_texture, coord: uv).x : metallic_constant; + float specular_lookup = tex::texture_isvalid(specular_texture) ? + tex::lookup_float4(tex: specular_texture, coord: uv).x : specular_constant; + + float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup; + float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup; + float ao = enable_ORM_texture ? ORM_lookup.x : ao_lookup; + + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); + float anisotropy = math::lerp(anisotropy_constant, anisotropy_lookup, anisotropy_texture_influence); + float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook ? + ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) ? + tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) : emissive_mask_input; + +} in SimPBR_Model( + diffuse_color: diffuse_color, + diffuse_tint: diffuse_tint, + roughness: reflection_roughness, + anisotropy: anisotropy, + metallic: metallic, + specular: specular_lookup, + normal: normal_lookup, + enable_clearcoat: enable_clearcoat, + clearcoat_tint: clearcoat_tint, + clearcoat_transparency: clearcoat_transparency, + clearcoat_reflection_roughness: clearcoat_reflection_roughness, + clearcoat_weight: clearcoat_weight, + clearcoat_ior: clearcoat_ior, + clearcoat_normal: final_clearcoat_normal, + enable_retroreflection: enable_retroreflection, + retroreflection_tint: retroreflection_tint, + normal_reflectivity: normal_reflectivity, + grazing_reflectivity: grazing_reflectivity, + ao_to_diffuse: ao_to_diffuse, + ao: ao, + enable_emission: enable_emission, + emissive_color: emissive_color, + emissive_mask: emissive_mask, + emissive_intensity: emissive_intensity, + enable_opacity: enable_opacity, + alpha: opacityValue, + enable_opacity_cutout: enable_opacity_cutout, + alpha_cutout_cutoff: alpha_cutout_cutoff, + opacity_ratio: enable_transmission ? opacity_ratio : 1.0, + opacity_tint : opacity_tint, + opacity_multiplier : opacity_multiplier +); diff --git a/assets/objects/vomp/spatula_12/materials/SimPBR_Model.mdl b/assets/objects/vomp/spatula_12/materials/SimPBR_Model.mdl new file mode 100644 index 0000000000000000000000000000000000000000..dccd3808942cb243a4e03f77f684935081b31ec5 --- /dev/null +++ b/assets/objects/vomp/spatula_12/materials/SimPBR_Model.mdl @@ -0,0 +1,212 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +using .::baking_annotations import *; + +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 + ); +} + +export material SimPBR_Model( + color diffuse_color = color(0.2f) [[ target_baked_argument("diffuse_texture", "diffuse_color_constant", "RGBA8_UNORM") ]], + uniform color diffuse_tint = color(1.0f), + float roughness = 0.5f [[ target_baked_argument("reflectionroughness_texture", "reflection_roughness_constant", "R8_UNORM") ]], + float anisotropy = 0.0f [[ target_baked_argument("anisotropy_texture", "anisotropy_constant", "R8_SNORM") ]], + float metallic = 0.f [[ target_baked_argument("metallic_texture", "metallic_constant", "R8_UNORM") ]], + float specular = 1.f [[ target_baked_argument("specular_texture", "specular_constant", "R8_UNORM") ]], + float3 normal = float3(0.0, 0.0, 0.0) [[ target_baked_argument("normalmap_texture", "normal_input", "RGBA8_SNORM", baking_annotations::TRANSFORM_UNORM_VECTOR) ]], + uniform bool enable_clearcoat = false, + color clearcoat_tint = color(1.0f), + float clearcoat_transparency = 1.0f, + float clearcoat_reflection_roughness = 0.0f, + float clearcoat_weight = 1.0f, + float clearcoat_ior = 1.56f, + float3 clearcoat_normal = float3(0.0, 0.0, 0.0) [[ target_baked_argument("clearcoat_normalmap_texture", "clearcoat_normal_input", "RGBA8_SNORM", baking_annotations::TRANSFORM_UNORM_VECTOR) ]], + uniform bool enable_retroreflection = false, + color retroreflection_tint = color(.182,.800,.000), + uniform float normal_reflectivity = 0.5, + uniform float grazing_reflectivity = 1.0, + float ao_to_diffuse = 0.0, + float ao = 1.0f [[ target_baked_argument("ao_texture", "ao_input", "R8_UNORM") ]], + uniform bool enable_emission = false, + uniform color emissive_color = color(1.0, 0.1, 0.1), + color emissive_mask = color(1.0, 0.1, 0.1) [[ target_baked_argument("emissive_mask_texture", "emissive_mask_input", "R8_UNORM") ]], + uniform float emissive_intensity = 40.f, + uniform bool enable_opacity = false, + float alpha = 1.0, + uniform bool enable_opacity_cutout = false, + uniform float alpha_cutout_cutoff = 1.f, + uniform float opacity_ratio = 1.f, + uniform color opacity_tint = color(1.0f), + uniform float opacity_multiplier = 1.f +) +[[ + target_material_model(), + target_material_rendering("..::SimPBR::SimPBR") +]] + = let { + color base_color = multiply_colors(diffuse_color, diffuse_tint, 1.0).tint; + color ao_weighted_base_color = multiply_colors(base_color, color(ao), ao_to_diffuse).tint; + + float squared_roughness = roughness * roughness; + float roughness_u = squared_roughness * (1 + anisotropy); + float roughness_v = squared_roughness * (1 - anisotropy); + + color diffuse_transmission_color = base_color * opacity_tint * opacity_multiplier; + + bsdf diffuse_bsdf = df::weighted_layer( + weight: opacity_ratio, + layer: df::diffuse_reflection_bsdf( + tint: ao_weighted_base_color, + roughness: 0.0f + ), + base: df::diffuse_transmission_bsdf(tint: diffuse_transmission_color), + normal: enable_clearcoat ? normal : state::normal() + ); + + bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_u, + roughness_v: roughness_v, + tint: color(1.0, 1.0, 1.0), + mode: df::scatter_reflect + ); + + bsdf custom_curve_layer_bsdf = df::custom_curve_layer( + normal_reflectivity: 0.03, + grazing_reflectivity: 1.0, + exponent: 5.0, + weight: specular, + layer: ggx_smith_bsdf, + base: diffuse_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + // + // Begin RETROREFLECTION SUPPORT + // + color final_retroreflection_color = multiply_colors(retroreflection_tint, base_color, 1.0).tint; + bsdf backscattering_glossy_bsdf = df::backscattering_glossy_reflection_bsdf( + tint: final_retroreflection_color, + roughness_u: squared_roughness + ); + + /*bsdf retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: 1.-normal_reflectivity, + grazing_reflectivity: 1.-grazing_reflectivity, + base: backscattering_glossy_bsdf, + layer: custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + );*/ + + // if normal_reflectivity and grazing_reflectivity are 1 and weight is 1, just the layer is used + bsdf opt_retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: enable_retroreflection ? 1.-normal_reflectivity : 1, + grazing_reflectivity: enable_retroreflection ? 1.-grazing_reflectivity : 1, + base: backscattering_glossy_bsdf, + layer: custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + // + // End RETROREFLECTION SUPPORT + // + + bsdf directional_factor_bsdf = df::directional_factor( + normal_tint: ao_weighted_base_color, + grazing_tint: color(1.0, 1.0, 1.0), + exponent: 5.0f, + base: ggx_smith_bsdf + ); + + // CLEARCOAT + bsdf omni_PBR_bsdf = df::weighted_layer( + weight: metallic, + layer: directional_factor_bsdf, + base: opt_retroreflection_bsdf, //enable_retroreflection ? retroreflection_bsdf : custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + bsdf clearcoat_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + roughness_v: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + 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 opt_opaque_clearcoat = df::weighted_layer( + weight: enable_clearcoat ? clearcoat_transparency : 1, + layer: ::df::tint(tint: enable_clearcoat ? clearcoat_tint : color(1), base: omni_PBR_bsdf), + base: ::df::diffuse_reflection_bsdf(tint: clearcoat_tint) + ); + + bsdf opt_omni_PBR_coated_bsdf = df::fresnel_layer( + ior: clearcoat_ior, + weight: enable_clearcoat ? clearcoat_weight : 0, + layer: clearcoat_bsdf, + base: opt_opaque_clearcoat, + normal: clearcoat_normal + ); + + bsdf final_bsdf = opt_omni_PBR_coated_bsdf; +} in material( + thin_walled: false, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + geometry: material_geometry( + normal: enable_clearcoat ? state::normal() : normal, + cutout_opacity: enable_opacity ? (enable_opacity_cutout ? (alpha < alpha_cutout_cutoff ? 0.0 : 1.0) : alpha) : 1.0 + ) +); diff --git a/assets/objects/vomp/spatula_12/materials/SimPBR_Opacity.mdl b/assets/objects/vomp/spatula_12/materials/SimPBR_Opacity.mdl new file mode 100644 index 0000000000000000000000000000000000000000..cf0a3ba759fc0b873d174b410b31759b1d426307 --- /dev/null +++ b/assets/objects/vomp/spatula_12/materials/SimPBR_Opacity.mdl @@ -0,0 +1,651 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +import ::nvidia::core_definitions::file_texture; +import ::nvidia::core_definitions::normalmap_texture; + +float4 raw_file_texture( + uniform texture_2d texture + [[ anno::description("The input texture") ]], + base::texture_coordinate_info uvw = base::texture_coordinate_info() + [[ anno::description("Custom value for texture coordinate") ]], + 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") ]] +) +[[ + anno::description("General texturing function for 2D bitmap texture stored in a file"), + anno::noinline() +]] +{ + return tex::lookup_float4(texture, float2(uvw.position.x, uvw.position.y), wrap_u, wrap_v, crop_u, crop_v); +} + +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 SimPBR_Opacity( + // -------------------- DIFFUSE REFLECTION ---------------------- + uniform color diffuse_color_constant = color(0.2f) + [[ + anno::display_name("Albedo Base Color"), + anno::description("The base albedo color to use if no texture is specified"), + anno::in_group("Diffuse") + ]], + uniform texture_2d diffuse_texture = texture_2d() + [[ + anno::display_name("Albedo Map"), + anno::description("The texture specifying the albedo value to use"), + anno::in_group("Diffuse") + ]], + uniform color diffuse_tint = color(1.0f) + [[ + anno::display_name("Albedo Tint"), + anno::description("This tints the albedo color or texture contant"), + anno::in_group("Diffuse") + ]], + + // -------------------- SPECULAR REFLECTION ---------------------- + uniform 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + uniform float anisotropy_constant = 0.0f + [[ + anno::display_name("Anisotropy Amount"), + anno::hard_range(-1.,1.), + anno::description("0 for isotropic, extents of -1 to 1 for anisotropy"), + anno::in_group("Specular") + ]], + uniform float anisotropy_texture_influence = 0.0f + [[ + anno::display_name("Anisotropy Map Influence"), + anno::hard_range(0.0, 1.), + anno::description("Blends between the constant value and the lookup of the anisotropy texture"), + anno::in_group("Specular") + ]], + uniform texture_2d anisotropy_texture = texture_2d() + [[ + anno::display_name("Anisotropy Map"), + anno::in_group("Specular") + ]], + + uniform float metallic_constant = 0.f + [[ + anno::display_name("Metallic Amount"), + anno::hard_range(0.0,1.), + anno::description("Metallic Material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d metallic_texture = texture_2d() + [[ + anno::display_name("Metallic Map"), + anno::in_group("Specular") + ]], + + // -------------------- ORM ---------------------- + uniform bool enable_ORM_texture = true + [[ + 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") + ]], + + // -------------------- 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") + ]], + 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") + ]], + 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") + ]], + + // -------------------- REFLECTIVITY ---------------------- + uniform bool enable_retroreflection = false + [[ + anno::display_name("Enable Retroreflection"), + anno::in_group("Reflectivity") + ]], + color retroreflection_color = color(.182,.800,.000) + [[ + anno::display_name("Retro-reflection color"), + anno::description("The color of the retroreflection"), + anno::in_group("Reflectivity") + ]], + uniform float normal_reflectivity = 0.5 + [[ + anno::display_name("Retro-reflection weight facing"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for geometry facing the viewer"), + anno::in_group("Reflectivity") + ]], + uniform float grazing_reflectivity = 1.0 + [[ + anno::display_name("Retro-reflection weight edge"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for the reflectivity at geometry edges"), + anno::in_group("Reflectivity") + ]], + + // -------------------- AMBIENT OCCLUSION ---------------------- + 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") + ]], + 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") + ]], + uniform 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_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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- ALPHA ---------------------- + uniform bool enable_alpha = true + [[ + anno::display_name("Enable Alpha"), + anno::description("Enables or disables alpha functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_constant = 1.0 + [[ + anno::display_name("Alpha Fallback Constant"), + anno::description("The base alpha constant to use if no texture is specified"), + anno::in_group("Alpha") + ]], + uniform texture_2d opacity_texture = texture_2d() + [[ + anno::display_name("Opacity Map"), + anno::description("The texture specifying the opacity value to use"), + anno::in_group("Alpha") + ]], + uniform bool enable_alpha_cutout = false + [[ + anno::display_name("Enable Alpha Cutout"), + anno::description("Enables or disables alpha cutout functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_cutout_cutoff = 1.f + [[ + anno::enable_if("enable_alpha_cutout == true"), + anno::hard_range(0.0, 1.0), + anno::display_name("Alpha Cutout Cutoff"), + anno::description("The cutoff value to to render as transparent up to and opaque past"), + anno::in_group("Alpha") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("Normal Map"), + anno::in_group("Normal") + ]], + + // -------------------- UV ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Scale"), + anno::description("Larger number increases size of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR Opaque Alpha Cutout"), + anno::description("Supports the opaque alpha cutout material model of the Sim Renderer"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "opaque", "alpha", "cutout", "omniverse", "generic")) +]] + = let { + + 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: 0, + projection_type: base::projection_cubic ) : + base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw ); + + // Diffuse Color Lookup and AO + float4 base_lookup = tex::texture_isvalid(diffuse_texture) ? raw_file_texture(texture: diffuse_texture, uvw: transformed_uvw) : float4(1, 1, 1, 1); + + float opacityValue = tex::texture_isvalid(opacity_texture) ? raw_file_texture(texture: opacity_texture, uvw: transformed_uvw).x : alpha_constant; + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw + ) : state::normal(); + + float3 clearcoat_normal = base::tangent_space_normal_texture( + texture: clearcoat_normalmap_texture, + factor: clearcoat_bump_factor, + uvw: uvw + ); + + float3 flattened_clearcoat_normal = ::math::lerp(normal_lookup, ::state::normal(), clearcoat_flatten); + float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? clearcoat_normal : flattened_clearcoat_normal; + + float ao_lookup = tex::texture_isvalid(ao_texture) ? + raw_file_texture(texture: ao_texture, uvw: transformed_uvw).x : + 1.0f + [[anno::unused("Currently unused in material, may be utilized in the future")]]; + + color diffuse_color = tex::texture_isvalid(diffuse_texture) ? color(base_lookup.x, base_lookup.y, base_lookup.z) : diffuse_color_constant; + color base_color = multiply_colors(diffuse_color, diffuse_tint, 1.0).tint; + + float3 ORM_lookup = tex::lookup_float3( + tex: ORM_texture, + coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) + ); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + raw_file_texture(texture: reflectionroughness_texture, uvw: transformed_uvw).x : + reflection_roughness_constant; + float anisotropy_lookup = tex::texture_isvalid(anisotropy_texture) ? + (raw_file_texture(texture: anisotropy_texture, uvw: transformed_uvw).x * 2.0f - 1.0f) : + anisotropy_constant; + float metallic_lookup = tex::texture_isvalid(metallic_texture) ? + raw_file_texture(texture: metallic_texture, uvw: transformed_uvw).x : + metallic_constant; + + float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup; + float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup; + color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : color(ao_lookup); + + color ao_weighted_base_color = multiply_colors(base_color, ao_color, ao_to_diffuse).tint; + + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); + float anisotropy = math::lerp(anisotropy_constant, anisotropy_lookup, anisotropy_texture_influence); + float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); + + float squared_roughness = reflection_roughness * reflection_roughness; + float roughness_u = squared_roughness * (1 + anisotropy); + float roughness_v = squared_roughness * (1 - anisotropy); + + bsdf diffuse_bsdf = df::weighted_layer( + weight: 1.0, + layer: df::diffuse_reflection_bsdf( + tint: ao_weighted_base_color, + roughness: 0.f ), + base: bsdf(), + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_u, + roughness_v: roughness_v, + tint: color(1.0, 1.0, 1.0), + mode: df::scatter_reflect + ); + + bsdf custom_curve_layer_bsdf = df::custom_curve_layer( + normal_reflectivity: 0.03, + grazing_reflectivity: 1.0, + exponent: 5.0, + weight: float(1.0), + layer: ggx_smith_bsdf, + base: diffuse_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + // + // Begin RETROREFLECTION SUPPORT + // + bsdf backscattering_glossy_bsdf = df::backscattering_glossy_reflection_bsdf( + tint: retroreflection_color, + roughness_u: reflection_roughness * reflection_roughness + ); + + bsdf retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: 1.-normal_reflectivity, + grazing_reflectivity: 1.-grazing_reflectivity, + base: backscattering_glossy_bsdf, + layer: diffuse_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + // + // End RETROREFLECTION SUPPORT + // + + bsdf directional_factor_bsdf = df::directional_factor( + normal_tint: ao_weighted_base_color, + grazing_tint: color(1.0, 1.0, 1.0), + exponent: 5.0f, + base: ggx_smith_bsdf + ); + + // CLEARCOAT + + bsdf omni_PBR_bsdf = df::weighted_layer( + weight: metallic, + layer: directional_factor_bsdf, + base: enable_retroreflection ? retroreflection_bsdf : custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + bsdf clearcoat_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + roughness_v: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + 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; + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook + ? ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) + : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) + ? tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) + : color(1.0); + +} in material( + thin_walled: false, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission ( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + geometry: material_geometry( + normal: enable_clearcoat ? state::normal() : normal_lookup, + cutout_opacity: enable_alpha ? (enable_alpha_cutout ? (opacityValue < alpha_cutout_cutoff ? 0.0 : 1.0) : opacityValue) : 1.0 + ) +); diff --git a/assets/objects/vomp/spatula_12/materials/SimPBR_Translucent.mdl b/assets/objects/vomp/spatula_12/materials/SimPBR_Translucent.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a60a90d1b946f94c266dabd515d5a15b6c3c9bd --- /dev/null +++ b/assets/objects/vomp/spatula_12/materials/SimPBR_Translucent.mdl @@ -0,0 +1,290 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +import ::nvidia::core_definitions::file_texture; +import ::nvidia::core_definitions::normalmap_texture; + +export material SimPBR_Translucent( + // -------------------- SPECULAR REFLECTION/TRANSMISSION ---------------------- + uniform float ior_constant = 1.1f + [[ + anno::display_name("Index of Refraction"), + anno::hard_range(0.0,5.), + anno::description("Index of Refraction of the material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + // -------------------- VOLUME ---------------------- + color transmittance_color = color(1.0, 1.0f, 1.0f) + [[ + anno::display_name("Transmittance Color"), + anno::description("Expected transmittance after the specified transmittance distance through the volume."), + anno::in_group("Volume") + ]], + float transmittance_measurement_distance = 1.0f + [[ + anno::display_name("Transmittance Measurement Distance"), + anno::description("Distance to match the transmittance through the volume at."), + anno::in_group("Volume") + ]], + + // -------------------- EMISSIVE ---------------------- + uniform bool enable_thin_walled = false + [[ + anno::display_name("Enable Thin Walled"), + anno::description("Enables thin walled logic"), + anno::in_group("Geometry") + ]], + + // -------------------- 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_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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("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 ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Tiling"), + anno::description("Controls the repetition of the texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR Translucent"), + anno::description("Supports the translucent material model of the Sim Renderer"), + anno::in_group("SimReady"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "translucent", "omniverse", "generic")) +]] + = let { + 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: 0, + projection_type: base::projection_cubic + ) : base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw + ); + float2 uv = float2(transformed_uvw.position.x, transformed_uvw.position.y); + + color volume_absorption_coefficient = -math::log(transmittance_color) / (transmittance_measurement_distance*0.01); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + tex::lookup_float4(tex: reflectionroughness_texture, coord: uv).x : reflection_roughness_constant; + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_lookup, reflection_roughness_texture_influence); + + float roughness_squared = reflection_roughness * reflection_roughness; + + bsdf final_bsdf(enable_thin_walled ? + ::df::fresnel_layer( + ior_constant, + 1.f, + ::df::microfacet_ggx_smith_bsdf( + roughness_squared, + roughness_squared, + color(1.f, 1.f, 1.f), + ::state::texture_tangent_u(0), + ::df::scatter_reflect, + "" + ), + ::df::specular_bsdf( + transmittance_color, + ::df::scatter_transmit, + "" + ), ::state::normal()) + : ::df::microfacet_ggx_smith_bsdf( + roughness_squared, + roughness_squared, + color(1.f, 1.f, 1.f), + ::state::texture_tangent_u(0), + ::df::scatter_reflect_transmit, + "" + )); + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook ? + ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) ? + tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) : color(1.0); + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw, + flip_tangent_u: flip_tangent_u, + flip_tangent_v: flip_tangent_v + ) : state::normal(); +} in material( + thin_walled: enable_thin_walled, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission ( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + ior: color(ior_constant), + volume: material_volume( + scattering: df::anisotropic_vdf(), + absorption_coefficient: volume_absorption_coefficient, + scattering_coefficient: color(0.0f, 0.0f, 0.0f) + ), + geometry: material_geometry( + normal: normal_lookup + ) +); diff --git a/assets/objects/vomp/spatula_12/textures/Spatulas_Set02_Opacity.png b/assets/objects/vomp/spatula_12/textures/Spatulas_Set02_Opacity.png new file mode 100644 index 0000000000000000000000000000000000000000..776aabedf22973ce066a9728e1d4a2e65365db5d Binary files /dev/null and b/assets/objects/vomp/spatula_12/textures/Spatulas_Set02_Opacity.png differ diff --git a/assets/objects/vomp/spatula_13/materials/SimPBR.mdl b/assets/objects/vomp/spatula_13/materials/SimPBR.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5883146f569e93208db72c08a810b7d71eaeece7 --- /dev/null +++ b/assets/objects/vomp/spatula_13/materials/SimPBR.mdl @@ -0,0 +1,562 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + + +using .::SimPBR_Model import *; +using .::baking_annotations import *; + +export material SimPBR( + // -------------------- DIFFUSE REFLECTION ---------------------- + uniform color diffuse_color_constant = color(0.2f) + [[ + anno::display_name("Albedo Base Color"), + anno::description("The base albedo color to use if no texture is specified"), + anno::in_group("Diffuse") + ]], + uniform texture_2d diffuse_texture = texture_2d() + [[ + anno::display_name("Albedo Map"), + anno::description("The texture specifying the albedo value to use"), + anno::in_group("Diffuse") + ]], + uniform color diffuse_tint = color(1.0f) + [[ + anno::display_name("Albedo Tint"), + anno::description("This tints the albedo color or texture contant"), + anno::in_group("Diffuse") + ]], + uniform bool enable_transmission = false + [[ + anno::display_name("Enable Diffuse Transmission"), + anno::description("Enables the diffuse transmission of light through thin diffuse scattering layer"), + anno::in_group("Diffuse") + ]], + uniform float opacity_ratio = 1.f + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Opacity Ratio"), + anno::description("Amount of opacity"), + anno::in_group("Diffuse") + ]], + uniform color opacity_tint = color(1.0f) + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Diffuse transmission tint"), + anno::description("Base diffuse transmission color"), + anno::in_group("Diffuse") + ]], + uniform float opacity_multiplier = 1.f + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Diffuse transmission multiplier"), + anno::description("Base diffuse transmission multiplier"), + anno::in_group("Diffuse") + ]], + + // -------------------- SPECULAR REFLECTION ---------------------- + 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + float anisotropy_constant = 0.0f + [[ + anno::display_name("Anisotropy Amount"), + anno::hard_range(-1.,1.), + anno::description("0 for isotropic, extents of -1 to 1 for anisotropy"), + anno::in_group("Specular") + ]], + uniform float anisotropy_texture_influence = 0.0f + [[ + anno::display_name("Anisotropy Map Influence"), + anno::hard_range(0.0, 1.), + anno::description("Blends between the constant value and the lookup of the anisotropy texture"), + anno::in_group("Specular") + ]], + uniform texture_2d anisotropy_texture = texture_2d() + [[ + anno::display_name("Anisotropy Map"), + anno::in_group("Specular") + ]], + + float metallic_constant = 0.f + [[ + anno::display_name("Metallic Amount"), + anno::hard_range(0.0,1.), + anno::description("Metallic Material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d metallic_texture = texture_2d() + [[ + anno::display_name("Metallic Map"), + anno::in_group("Specular") + ]], + + float specular_constant = 1.f + [[ + anno::display_name("Specular amount"), + anno::hard_range(0.0, 1.0), + anno::description("Scale of the specular component"), + anno::in_group("Specular") + ]], + uniform texture_2d specular_texture = texture_2d() + [[ + anno::display_name("Specular Map"), + anno::in_group("Specular") + ]], + + // -------------------- ORM ---------------------- + uniform bool enable_ORM_texture = true + [[ + 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") + ]], + + // -------------------- 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") + ]], + 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") + ]], + + float3 clearcoat_normal_input = float3(0.0, 0.0, 0.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") + ]], + + uniform bool clearcoat_flip_tangent_u = false + [[ + anno::display_name("Clearcoat Normal Map Flip U Tangent"), + anno::in_group("Clearcoat") + ]], + uniform bool clearcoat_flip_tangent_v = true + [[ + anno::display_name("Clearcoat Normal Map Flip V Tangent"), + anno::in_group("Clearcoat") + ]], + + + // -------------------- REFLECTIVITY ---------------------- + uniform bool enable_retroreflection = false + [[ + anno::display_name("Enable Retroreflection"), + anno::in_group("Reflectivity") + ]], + color retroreflection_tint = color(.182,.800,.000) + [[ + anno::display_name("Retro-reflection tint"), + anno::description("The tint of the retroreflection"), + anno::in_group("Reflectivity") + ]], + uniform float normal_reflectivity = 0.5 + [[ + anno::display_name("Retro-reflection weight facing"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for geometry facing the viewer"), + anno::in_group("Reflectivity") + ]], + uniform float grazing_reflectivity = 1.0 + [[ + anno::display_name("Retro-reflection weight edge"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for the reflectivity at geometry edges"), + anno::in_group("Reflectivity") + ]], + + // -------------------- AMBIENT OCCLUSION ---------------------- + 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") + ]], + float ao_input = 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") + ]], + + // -------------------- 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") + ]], + uniform 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") + ]], + + color emissive_mask_input = color(1.0), + 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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- ALPHA ---------------------- + uniform bool enable_opacity = false + [[ + anno::display_name("Enable Opacity"), + anno::description("Enables or disables alpha functionality"), + anno::in_group("Alpha") + ]], + float alpha_constant = 1.0 + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Opacity Fallback Constant"), + anno::hard_range(0.0, 1.0), + anno::description("The base alpha constant to use if no texture is specified"), + anno::in_group("Alpha") + ]], + uniform texture_2d opacity_texture = texture_2d() + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Opacity Map"), + anno::description("The texture specifying the opacity value to use"), + anno::in_group("Alpha") + ]], + uniform bool enable_opacity_cutout = false + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Enable Alpha Cutout"), + anno::description("Enables or disables alpha cutout functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_cutout_cutoff = 1.f + [[ + anno::enable_if("enable_opacity == true"), + anno::enable_if("enable_opacity_cutout == true"), + anno::hard_range(0.0, 1.0), + anno::display_name("Alpha Cutout Cutoff"), + anno::description("The cutoff value to to render as transparent up to and opaque past"), + anno::in_group("Alpha") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + + float3 normal_input = state::normal(), + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("Normal Map"), + anno::in_group("Normal") + ]], + uniform bool flip_tangent_u = false + [[ + anno::display_name("Normal Map Flip U Tangent"), + anno::description("Flips the U Tangent vector."), + anno::in_group("Normal") + ]], + uniform bool flip_tangent_v = true + [[ + anno::display_name("Normal Map Flip V Tangent"), + anno::description("Flips the V Tangent vector. By Default, SimPBR materials setup for DirectX normal maps. Set Normal Map Flip V = false for OpenGL."), + anno::in_group("Normal") + ]], + + // -------------------- UV ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Tiling"), + anno::description("Controls repetition of the texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR"), + anno::description("Supports the opaque alpha cutout material model of the Sim Renderer"), + anno::in_group("SimReady"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "opaque", "alpha", "cutout", "omniverse", "generic")) +]] + = let { + 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: 0, + projection_type: base::projection_cubic + ) : base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw + ); + float2 uv = float2(transformed_uvw.position.x, transformed_uvw.position.y); + + // Diffuse Color Lookup and AO + float4 base_lookup = tex::texture_isvalid(diffuse_texture) ? tex::lookup_float4(tex: diffuse_texture, coord: uv) : float4(1, 1, 1, 1); + + float opacityValue = tex::texture_isvalid(opacity_texture) ? tex::lookup_float4(tex: opacity_texture, coord: uv).w : alpha_constant; + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw, + flip_tangent_u: flip_tangent_u, + flip_tangent_v: flip_tangent_v + ) : normal_input; + + float3 clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? + base::tangent_space_normal_texture( + texture: clearcoat_normalmap_texture, + factor: clearcoat_bump_factor, + uvw: uvw, + flip_tangent_u: clearcoat_flip_tangent_u, + flip_tangent_v: clearcoat_flip_tangent_v + ) : clearcoat_normal_input; + + float3 flattened_clearcoat_normal = ::math::lerp(normal_lookup, ::state::normal(), clearcoat_flatten); + float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? clearcoat_normal : flattened_clearcoat_normal; + + float ao_lookup = tex::texture_isvalid(ao_texture) ? tex::lookup_float4(tex: ao_texture, coord: uv).x : ao_input; + + color diffuse_color = tex::texture_isvalid(diffuse_texture) ? color(base_lookup.x, base_lookup.y, base_lookup.z) : diffuse_color_constant; + + float3 ORM_lookup = tex::lookup_float3( + tex: ORM_texture, + coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) + ); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + tex::lookup_float4(tex: reflectionroughness_texture, coord: uv).x : reflection_roughness_constant; + float anisotropy_lookup = tex::texture_isvalid(anisotropy_texture) ? + (tex::lookup_float4(tex: anisotropy_texture, coord: uv).x * 2.0f - 1.0f) : anisotropy_constant; + float metallic_lookup = tex::texture_isvalid(metallic_texture) ? + tex::lookup_float4(tex: metallic_texture, coord: uv).x : metallic_constant; + float specular_lookup = tex::texture_isvalid(specular_texture) ? + tex::lookup_float4(tex: specular_texture, coord: uv).x : specular_constant; + + float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup; + float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup; + float ao = enable_ORM_texture ? ORM_lookup.x : ao_lookup; + + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); + float anisotropy = math::lerp(anisotropy_constant, anisotropy_lookup, anisotropy_texture_influence); + float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook ? + ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) ? + tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) : emissive_mask_input; + +} in SimPBR_Model( + diffuse_color: diffuse_color, + diffuse_tint: diffuse_tint, + roughness: reflection_roughness, + anisotropy: anisotropy, + metallic: metallic, + specular: specular_lookup, + normal: normal_lookup, + enable_clearcoat: enable_clearcoat, + clearcoat_tint: clearcoat_tint, + clearcoat_transparency: clearcoat_transparency, + clearcoat_reflection_roughness: clearcoat_reflection_roughness, + clearcoat_weight: clearcoat_weight, + clearcoat_ior: clearcoat_ior, + clearcoat_normal: final_clearcoat_normal, + enable_retroreflection: enable_retroreflection, + retroreflection_tint: retroreflection_tint, + normal_reflectivity: normal_reflectivity, + grazing_reflectivity: grazing_reflectivity, + ao_to_diffuse: ao_to_diffuse, + ao: ao, + enable_emission: enable_emission, + emissive_color: emissive_color, + emissive_mask: emissive_mask, + emissive_intensity: emissive_intensity, + enable_opacity: enable_opacity, + alpha: opacityValue, + enable_opacity_cutout: enable_opacity_cutout, + alpha_cutout_cutoff: alpha_cutout_cutoff, + opacity_ratio: enable_transmission ? opacity_ratio : 1.0, + opacity_tint : opacity_tint, + opacity_multiplier : opacity_multiplier +); diff --git a/assets/objects/vomp/spatula_13/materials/SimPBR_Model.mdl b/assets/objects/vomp/spatula_13/materials/SimPBR_Model.mdl new file mode 100644 index 0000000000000000000000000000000000000000..dccd3808942cb243a4e03f77f684935081b31ec5 --- /dev/null +++ b/assets/objects/vomp/spatula_13/materials/SimPBR_Model.mdl @@ -0,0 +1,212 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +using .::baking_annotations import *; + +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 + ); +} + +export material SimPBR_Model( + color diffuse_color = color(0.2f) [[ target_baked_argument("diffuse_texture", "diffuse_color_constant", "RGBA8_UNORM") ]], + uniform color diffuse_tint = color(1.0f), + float roughness = 0.5f [[ target_baked_argument("reflectionroughness_texture", "reflection_roughness_constant", "R8_UNORM") ]], + float anisotropy = 0.0f [[ target_baked_argument("anisotropy_texture", "anisotropy_constant", "R8_SNORM") ]], + float metallic = 0.f [[ target_baked_argument("metallic_texture", "metallic_constant", "R8_UNORM") ]], + float specular = 1.f [[ target_baked_argument("specular_texture", "specular_constant", "R8_UNORM") ]], + float3 normal = float3(0.0, 0.0, 0.0) [[ target_baked_argument("normalmap_texture", "normal_input", "RGBA8_SNORM", baking_annotations::TRANSFORM_UNORM_VECTOR) ]], + uniform bool enable_clearcoat = false, + color clearcoat_tint = color(1.0f), + float clearcoat_transparency = 1.0f, + float clearcoat_reflection_roughness = 0.0f, + float clearcoat_weight = 1.0f, + float clearcoat_ior = 1.56f, + float3 clearcoat_normal = float3(0.0, 0.0, 0.0) [[ target_baked_argument("clearcoat_normalmap_texture", "clearcoat_normal_input", "RGBA8_SNORM", baking_annotations::TRANSFORM_UNORM_VECTOR) ]], + uniform bool enable_retroreflection = false, + color retroreflection_tint = color(.182,.800,.000), + uniform float normal_reflectivity = 0.5, + uniform float grazing_reflectivity = 1.0, + float ao_to_diffuse = 0.0, + float ao = 1.0f [[ target_baked_argument("ao_texture", "ao_input", "R8_UNORM") ]], + uniform bool enable_emission = false, + uniform color emissive_color = color(1.0, 0.1, 0.1), + color emissive_mask = color(1.0, 0.1, 0.1) [[ target_baked_argument("emissive_mask_texture", "emissive_mask_input", "R8_UNORM") ]], + uniform float emissive_intensity = 40.f, + uniform bool enable_opacity = false, + float alpha = 1.0, + uniform bool enable_opacity_cutout = false, + uniform float alpha_cutout_cutoff = 1.f, + uniform float opacity_ratio = 1.f, + uniform color opacity_tint = color(1.0f), + uniform float opacity_multiplier = 1.f +) +[[ + target_material_model(), + target_material_rendering("..::SimPBR::SimPBR") +]] + = let { + color base_color = multiply_colors(diffuse_color, diffuse_tint, 1.0).tint; + color ao_weighted_base_color = multiply_colors(base_color, color(ao), ao_to_diffuse).tint; + + float squared_roughness = roughness * roughness; + float roughness_u = squared_roughness * (1 + anisotropy); + float roughness_v = squared_roughness * (1 - anisotropy); + + color diffuse_transmission_color = base_color * opacity_tint * opacity_multiplier; + + bsdf diffuse_bsdf = df::weighted_layer( + weight: opacity_ratio, + layer: df::diffuse_reflection_bsdf( + tint: ao_weighted_base_color, + roughness: 0.0f + ), + base: df::diffuse_transmission_bsdf(tint: diffuse_transmission_color), + normal: enable_clearcoat ? normal : state::normal() + ); + + bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_u, + roughness_v: roughness_v, + tint: color(1.0, 1.0, 1.0), + mode: df::scatter_reflect + ); + + bsdf custom_curve_layer_bsdf = df::custom_curve_layer( + normal_reflectivity: 0.03, + grazing_reflectivity: 1.0, + exponent: 5.0, + weight: specular, + layer: ggx_smith_bsdf, + base: diffuse_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + // + // Begin RETROREFLECTION SUPPORT + // + color final_retroreflection_color = multiply_colors(retroreflection_tint, base_color, 1.0).tint; + bsdf backscattering_glossy_bsdf = df::backscattering_glossy_reflection_bsdf( + tint: final_retroreflection_color, + roughness_u: squared_roughness + ); + + /*bsdf retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: 1.-normal_reflectivity, + grazing_reflectivity: 1.-grazing_reflectivity, + base: backscattering_glossy_bsdf, + layer: custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + );*/ + + // if normal_reflectivity and grazing_reflectivity are 1 and weight is 1, just the layer is used + bsdf opt_retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: enable_retroreflection ? 1.-normal_reflectivity : 1, + grazing_reflectivity: enable_retroreflection ? 1.-grazing_reflectivity : 1, + base: backscattering_glossy_bsdf, + layer: custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + // + // End RETROREFLECTION SUPPORT + // + + bsdf directional_factor_bsdf = df::directional_factor( + normal_tint: ao_weighted_base_color, + grazing_tint: color(1.0, 1.0, 1.0), + exponent: 5.0f, + base: ggx_smith_bsdf + ); + + // CLEARCOAT + bsdf omni_PBR_bsdf = df::weighted_layer( + weight: metallic, + layer: directional_factor_bsdf, + base: opt_retroreflection_bsdf, //enable_retroreflection ? retroreflection_bsdf : custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + bsdf clearcoat_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + roughness_v: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + 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 opt_opaque_clearcoat = df::weighted_layer( + weight: enable_clearcoat ? clearcoat_transparency : 1, + layer: ::df::tint(tint: enable_clearcoat ? clearcoat_tint : color(1), base: omni_PBR_bsdf), + base: ::df::diffuse_reflection_bsdf(tint: clearcoat_tint) + ); + + bsdf opt_omni_PBR_coated_bsdf = df::fresnel_layer( + ior: clearcoat_ior, + weight: enable_clearcoat ? clearcoat_weight : 0, + layer: clearcoat_bsdf, + base: opt_opaque_clearcoat, + normal: clearcoat_normal + ); + + bsdf final_bsdf = opt_omni_PBR_coated_bsdf; +} in material( + thin_walled: false, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + geometry: material_geometry( + normal: enable_clearcoat ? state::normal() : normal, + cutout_opacity: enable_opacity ? (enable_opacity_cutout ? (alpha < alpha_cutout_cutoff ? 0.0 : 1.0) : alpha) : 1.0 + ) +); diff --git a/assets/objects/vomp/spatula_13/materials/SimPBR_Opacity.mdl b/assets/objects/vomp/spatula_13/materials/SimPBR_Opacity.mdl new file mode 100644 index 0000000000000000000000000000000000000000..cf0a3ba759fc0b873d174b410b31759b1d426307 --- /dev/null +++ b/assets/objects/vomp/spatula_13/materials/SimPBR_Opacity.mdl @@ -0,0 +1,651 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +import ::nvidia::core_definitions::file_texture; +import ::nvidia::core_definitions::normalmap_texture; + +float4 raw_file_texture( + uniform texture_2d texture + [[ anno::description("The input texture") ]], + base::texture_coordinate_info uvw = base::texture_coordinate_info() + [[ anno::description("Custom value for texture coordinate") ]], + 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") ]] +) +[[ + anno::description("General texturing function for 2D bitmap texture stored in a file"), + anno::noinline() +]] +{ + return tex::lookup_float4(texture, float2(uvw.position.x, uvw.position.y), wrap_u, wrap_v, crop_u, crop_v); +} + +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 SimPBR_Opacity( + // -------------------- DIFFUSE REFLECTION ---------------------- + uniform color diffuse_color_constant = color(0.2f) + [[ + anno::display_name("Albedo Base Color"), + anno::description("The base albedo color to use if no texture is specified"), + anno::in_group("Diffuse") + ]], + uniform texture_2d diffuse_texture = texture_2d() + [[ + anno::display_name("Albedo Map"), + anno::description("The texture specifying the albedo value to use"), + anno::in_group("Diffuse") + ]], + uniform color diffuse_tint = color(1.0f) + [[ + anno::display_name("Albedo Tint"), + anno::description("This tints the albedo color or texture contant"), + anno::in_group("Diffuse") + ]], + + // -------------------- SPECULAR REFLECTION ---------------------- + uniform 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + uniform float anisotropy_constant = 0.0f + [[ + anno::display_name("Anisotropy Amount"), + anno::hard_range(-1.,1.), + anno::description("0 for isotropic, extents of -1 to 1 for anisotropy"), + anno::in_group("Specular") + ]], + uniform float anisotropy_texture_influence = 0.0f + [[ + anno::display_name("Anisotropy Map Influence"), + anno::hard_range(0.0, 1.), + anno::description("Blends between the constant value and the lookup of the anisotropy texture"), + anno::in_group("Specular") + ]], + uniform texture_2d anisotropy_texture = texture_2d() + [[ + anno::display_name("Anisotropy Map"), + anno::in_group("Specular") + ]], + + uniform float metallic_constant = 0.f + [[ + anno::display_name("Metallic Amount"), + anno::hard_range(0.0,1.), + anno::description("Metallic Material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d metallic_texture = texture_2d() + [[ + anno::display_name("Metallic Map"), + anno::in_group("Specular") + ]], + + // -------------------- ORM ---------------------- + uniform bool enable_ORM_texture = true + [[ + 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") + ]], + + // -------------------- 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") + ]], + 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") + ]], + 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") + ]], + + // -------------------- REFLECTIVITY ---------------------- + uniform bool enable_retroreflection = false + [[ + anno::display_name("Enable Retroreflection"), + anno::in_group("Reflectivity") + ]], + color retroreflection_color = color(.182,.800,.000) + [[ + anno::display_name("Retro-reflection color"), + anno::description("The color of the retroreflection"), + anno::in_group("Reflectivity") + ]], + uniform float normal_reflectivity = 0.5 + [[ + anno::display_name("Retro-reflection weight facing"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for geometry facing the viewer"), + anno::in_group("Reflectivity") + ]], + uniform float grazing_reflectivity = 1.0 + [[ + anno::display_name("Retro-reflection weight edge"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for the reflectivity at geometry edges"), + anno::in_group("Reflectivity") + ]], + + // -------------------- AMBIENT OCCLUSION ---------------------- + 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") + ]], + 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") + ]], + uniform 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_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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- ALPHA ---------------------- + uniform bool enable_alpha = true + [[ + anno::display_name("Enable Alpha"), + anno::description("Enables or disables alpha functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_constant = 1.0 + [[ + anno::display_name("Alpha Fallback Constant"), + anno::description("The base alpha constant to use if no texture is specified"), + anno::in_group("Alpha") + ]], + uniform texture_2d opacity_texture = texture_2d() + [[ + anno::display_name("Opacity Map"), + anno::description("The texture specifying the opacity value to use"), + anno::in_group("Alpha") + ]], + uniform bool enable_alpha_cutout = false + [[ + anno::display_name("Enable Alpha Cutout"), + anno::description("Enables or disables alpha cutout functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_cutout_cutoff = 1.f + [[ + anno::enable_if("enable_alpha_cutout == true"), + anno::hard_range(0.0, 1.0), + anno::display_name("Alpha Cutout Cutoff"), + anno::description("The cutoff value to to render as transparent up to and opaque past"), + anno::in_group("Alpha") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("Normal Map"), + anno::in_group("Normal") + ]], + + // -------------------- UV ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Scale"), + anno::description("Larger number increases size of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR Opaque Alpha Cutout"), + anno::description("Supports the opaque alpha cutout material model of the Sim Renderer"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "opaque", "alpha", "cutout", "omniverse", "generic")) +]] + = let { + + 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: 0, + projection_type: base::projection_cubic ) : + base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw ); + + // Diffuse Color Lookup and AO + float4 base_lookup = tex::texture_isvalid(diffuse_texture) ? raw_file_texture(texture: diffuse_texture, uvw: transformed_uvw) : float4(1, 1, 1, 1); + + float opacityValue = tex::texture_isvalid(opacity_texture) ? raw_file_texture(texture: opacity_texture, uvw: transformed_uvw).x : alpha_constant; + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw + ) : state::normal(); + + float3 clearcoat_normal = base::tangent_space_normal_texture( + texture: clearcoat_normalmap_texture, + factor: clearcoat_bump_factor, + uvw: uvw + ); + + float3 flattened_clearcoat_normal = ::math::lerp(normal_lookup, ::state::normal(), clearcoat_flatten); + float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? clearcoat_normal : flattened_clearcoat_normal; + + float ao_lookup = tex::texture_isvalid(ao_texture) ? + raw_file_texture(texture: ao_texture, uvw: transformed_uvw).x : + 1.0f + [[anno::unused("Currently unused in material, may be utilized in the future")]]; + + color diffuse_color = tex::texture_isvalid(diffuse_texture) ? color(base_lookup.x, base_lookup.y, base_lookup.z) : diffuse_color_constant; + color base_color = multiply_colors(diffuse_color, diffuse_tint, 1.0).tint; + + float3 ORM_lookup = tex::lookup_float3( + tex: ORM_texture, + coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) + ); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + raw_file_texture(texture: reflectionroughness_texture, uvw: transformed_uvw).x : + reflection_roughness_constant; + float anisotropy_lookup = tex::texture_isvalid(anisotropy_texture) ? + (raw_file_texture(texture: anisotropy_texture, uvw: transformed_uvw).x * 2.0f - 1.0f) : + anisotropy_constant; + float metallic_lookup = tex::texture_isvalid(metallic_texture) ? + raw_file_texture(texture: metallic_texture, uvw: transformed_uvw).x : + metallic_constant; + + float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup; + float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup; + color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : color(ao_lookup); + + color ao_weighted_base_color = multiply_colors(base_color, ao_color, ao_to_diffuse).tint; + + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); + float anisotropy = math::lerp(anisotropy_constant, anisotropy_lookup, anisotropy_texture_influence); + float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); + + float squared_roughness = reflection_roughness * reflection_roughness; + float roughness_u = squared_roughness * (1 + anisotropy); + float roughness_v = squared_roughness * (1 - anisotropy); + + bsdf diffuse_bsdf = df::weighted_layer( + weight: 1.0, + layer: df::diffuse_reflection_bsdf( + tint: ao_weighted_base_color, + roughness: 0.f ), + base: bsdf(), + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_u, + roughness_v: roughness_v, + tint: color(1.0, 1.0, 1.0), + mode: df::scatter_reflect + ); + + bsdf custom_curve_layer_bsdf = df::custom_curve_layer( + normal_reflectivity: 0.03, + grazing_reflectivity: 1.0, + exponent: 5.0, + weight: float(1.0), + layer: ggx_smith_bsdf, + base: diffuse_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + // + // Begin RETROREFLECTION SUPPORT + // + bsdf backscattering_glossy_bsdf = df::backscattering_glossy_reflection_bsdf( + tint: retroreflection_color, + roughness_u: reflection_roughness * reflection_roughness + ); + + bsdf retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: 1.-normal_reflectivity, + grazing_reflectivity: 1.-grazing_reflectivity, + base: backscattering_glossy_bsdf, + layer: diffuse_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + // + // End RETROREFLECTION SUPPORT + // + + bsdf directional_factor_bsdf = df::directional_factor( + normal_tint: ao_weighted_base_color, + grazing_tint: color(1.0, 1.0, 1.0), + exponent: 5.0f, + base: ggx_smith_bsdf + ); + + // CLEARCOAT + + bsdf omni_PBR_bsdf = df::weighted_layer( + weight: metallic, + layer: directional_factor_bsdf, + base: enable_retroreflection ? retroreflection_bsdf : custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + bsdf clearcoat_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + roughness_v: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + 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; + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook + ? ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) + : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) + ? tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) + : color(1.0); + +} in material( + thin_walled: false, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission ( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + geometry: material_geometry( + normal: enable_clearcoat ? state::normal() : normal_lookup, + cutout_opacity: enable_alpha ? (enable_alpha_cutout ? (opacityValue < alpha_cutout_cutoff ? 0.0 : 1.0) : opacityValue) : 1.0 + ) +); diff --git a/assets/objects/vomp/spatula_13/materials/SimPBR_Translucent.mdl b/assets/objects/vomp/spatula_13/materials/SimPBR_Translucent.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a60a90d1b946f94c266dabd515d5a15b6c3c9bd --- /dev/null +++ b/assets/objects/vomp/spatula_13/materials/SimPBR_Translucent.mdl @@ -0,0 +1,290 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +import ::nvidia::core_definitions::file_texture; +import ::nvidia::core_definitions::normalmap_texture; + +export material SimPBR_Translucent( + // -------------------- SPECULAR REFLECTION/TRANSMISSION ---------------------- + uniform float ior_constant = 1.1f + [[ + anno::display_name("Index of Refraction"), + anno::hard_range(0.0,5.), + anno::description("Index of Refraction of the material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + // -------------------- VOLUME ---------------------- + color transmittance_color = color(1.0, 1.0f, 1.0f) + [[ + anno::display_name("Transmittance Color"), + anno::description("Expected transmittance after the specified transmittance distance through the volume."), + anno::in_group("Volume") + ]], + float transmittance_measurement_distance = 1.0f + [[ + anno::display_name("Transmittance Measurement Distance"), + anno::description("Distance to match the transmittance through the volume at."), + anno::in_group("Volume") + ]], + + // -------------------- EMISSIVE ---------------------- + uniform bool enable_thin_walled = false + [[ + anno::display_name("Enable Thin Walled"), + anno::description("Enables thin walled logic"), + anno::in_group("Geometry") + ]], + + // -------------------- 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_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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("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 ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Tiling"), + anno::description("Controls the repetition of the texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR Translucent"), + anno::description("Supports the translucent material model of the Sim Renderer"), + anno::in_group("SimReady"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "translucent", "omniverse", "generic")) +]] + = let { + 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: 0, + projection_type: base::projection_cubic + ) : base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw + ); + float2 uv = float2(transformed_uvw.position.x, transformed_uvw.position.y); + + color volume_absorption_coefficient = -math::log(transmittance_color) / (transmittance_measurement_distance*0.01); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + tex::lookup_float4(tex: reflectionroughness_texture, coord: uv).x : reflection_roughness_constant; + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_lookup, reflection_roughness_texture_influence); + + float roughness_squared = reflection_roughness * reflection_roughness; + + bsdf final_bsdf(enable_thin_walled ? + ::df::fresnel_layer( + ior_constant, + 1.f, + ::df::microfacet_ggx_smith_bsdf( + roughness_squared, + roughness_squared, + color(1.f, 1.f, 1.f), + ::state::texture_tangent_u(0), + ::df::scatter_reflect, + "" + ), + ::df::specular_bsdf( + transmittance_color, + ::df::scatter_transmit, + "" + ), ::state::normal()) + : ::df::microfacet_ggx_smith_bsdf( + roughness_squared, + roughness_squared, + color(1.f, 1.f, 1.f), + ::state::texture_tangent_u(0), + ::df::scatter_reflect_transmit, + "" + )); + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook ? + ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) ? + tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) : color(1.0); + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw, + flip_tangent_u: flip_tangent_u, + flip_tangent_v: flip_tangent_v + ) : state::normal(); +} in material( + thin_walled: enable_thin_walled, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission ( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + ior: color(ior_constant), + volume: material_volume( + scattering: df::anisotropic_vdf(), + absorption_coefficient: volume_absorption_coefficient, + scattering_coefficient: color(0.0f, 0.0f, 0.0f) + ), + geometry: material_geometry( + normal: normal_lookup + ) +); diff --git a/assets/objects/vomp/spatula_13/textures/Spatulas_Set02_Opacity.png b/assets/objects/vomp/spatula_13/textures/Spatulas_Set02_Opacity.png new file mode 100644 index 0000000000000000000000000000000000000000..776aabedf22973ce066a9728e1d4a2e65365db5d Binary files /dev/null and b/assets/objects/vomp/spatula_13/textures/Spatulas_Set02_Opacity.png differ diff --git a/assets/objects/vomp/spatula_14/materials/SimPBR.mdl b/assets/objects/vomp/spatula_14/materials/SimPBR.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5883146f569e93208db72c08a810b7d71eaeece7 --- /dev/null +++ b/assets/objects/vomp/spatula_14/materials/SimPBR.mdl @@ -0,0 +1,562 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + + +using .::SimPBR_Model import *; +using .::baking_annotations import *; + +export material SimPBR( + // -------------------- DIFFUSE REFLECTION ---------------------- + uniform color diffuse_color_constant = color(0.2f) + [[ + anno::display_name("Albedo Base Color"), + anno::description("The base albedo color to use if no texture is specified"), + anno::in_group("Diffuse") + ]], + uniform texture_2d diffuse_texture = texture_2d() + [[ + anno::display_name("Albedo Map"), + anno::description("The texture specifying the albedo value to use"), + anno::in_group("Diffuse") + ]], + uniform color diffuse_tint = color(1.0f) + [[ + anno::display_name("Albedo Tint"), + anno::description("This tints the albedo color or texture contant"), + anno::in_group("Diffuse") + ]], + uniform bool enable_transmission = false + [[ + anno::display_name("Enable Diffuse Transmission"), + anno::description("Enables the diffuse transmission of light through thin diffuse scattering layer"), + anno::in_group("Diffuse") + ]], + uniform float opacity_ratio = 1.f + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Opacity Ratio"), + anno::description("Amount of opacity"), + anno::in_group("Diffuse") + ]], + uniform color opacity_tint = color(1.0f) + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Diffuse transmission tint"), + anno::description("Base diffuse transmission color"), + anno::in_group("Diffuse") + ]], + uniform float opacity_multiplier = 1.f + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Diffuse transmission multiplier"), + anno::description("Base diffuse transmission multiplier"), + anno::in_group("Diffuse") + ]], + + // -------------------- SPECULAR REFLECTION ---------------------- + 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + float anisotropy_constant = 0.0f + [[ + anno::display_name("Anisotropy Amount"), + anno::hard_range(-1.,1.), + anno::description("0 for isotropic, extents of -1 to 1 for anisotropy"), + anno::in_group("Specular") + ]], + uniform float anisotropy_texture_influence = 0.0f + [[ + anno::display_name("Anisotropy Map Influence"), + anno::hard_range(0.0, 1.), + anno::description("Blends between the constant value and the lookup of the anisotropy texture"), + anno::in_group("Specular") + ]], + uniform texture_2d anisotropy_texture = texture_2d() + [[ + anno::display_name("Anisotropy Map"), + anno::in_group("Specular") + ]], + + float metallic_constant = 0.f + [[ + anno::display_name("Metallic Amount"), + anno::hard_range(0.0,1.), + anno::description("Metallic Material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d metallic_texture = texture_2d() + [[ + anno::display_name("Metallic Map"), + anno::in_group("Specular") + ]], + + float specular_constant = 1.f + [[ + anno::display_name("Specular amount"), + anno::hard_range(0.0, 1.0), + anno::description("Scale of the specular component"), + anno::in_group("Specular") + ]], + uniform texture_2d specular_texture = texture_2d() + [[ + anno::display_name("Specular Map"), + anno::in_group("Specular") + ]], + + // -------------------- ORM ---------------------- + uniform bool enable_ORM_texture = true + [[ + 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") + ]], + + // -------------------- 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") + ]], + 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") + ]], + + float3 clearcoat_normal_input = float3(0.0, 0.0, 0.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") + ]], + + uniform bool clearcoat_flip_tangent_u = false + [[ + anno::display_name("Clearcoat Normal Map Flip U Tangent"), + anno::in_group("Clearcoat") + ]], + uniform bool clearcoat_flip_tangent_v = true + [[ + anno::display_name("Clearcoat Normal Map Flip V Tangent"), + anno::in_group("Clearcoat") + ]], + + + // -------------------- REFLECTIVITY ---------------------- + uniform bool enable_retroreflection = false + [[ + anno::display_name("Enable Retroreflection"), + anno::in_group("Reflectivity") + ]], + color retroreflection_tint = color(.182,.800,.000) + [[ + anno::display_name("Retro-reflection tint"), + anno::description("The tint of the retroreflection"), + anno::in_group("Reflectivity") + ]], + uniform float normal_reflectivity = 0.5 + [[ + anno::display_name("Retro-reflection weight facing"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for geometry facing the viewer"), + anno::in_group("Reflectivity") + ]], + uniform float grazing_reflectivity = 1.0 + [[ + anno::display_name("Retro-reflection weight edge"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for the reflectivity at geometry edges"), + anno::in_group("Reflectivity") + ]], + + // -------------------- AMBIENT OCCLUSION ---------------------- + 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") + ]], + float ao_input = 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") + ]], + + // -------------------- 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") + ]], + uniform 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") + ]], + + color emissive_mask_input = color(1.0), + 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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- ALPHA ---------------------- + uniform bool enable_opacity = false + [[ + anno::display_name("Enable Opacity"), + anno::description("Enables or disables alpha functionality"), + anno::in_group("Alpha") + ]], + float alpha_constant = 1.0 + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Opacity Fallback Constant"), + anno::hard_range(0.0, 1.0), + anno::description("The base alpha constant to use if no texture is specified"), + anno::in_group("Alpha") + ]], + uniform texture_2d opacity_texture = texture_2d() + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Opacity Map"), + anno::description("The texture specifying the opacity value to use"), + anno::in_group("Alpha") + ]], + uniform bool enable_opacity_cutout = false + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Enable Alpha Cutout"), + anno::description("Enables or disables alpha cutout functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_cutout_cutoff = 1.f + [[ + anno::enable_if("enable_opacity == true"), + anno::enable_if("enable_opacity_cutout == true"), + anno::hard_range(0.0, 1.0), + anno::display_name("Alpha Cutout Cutoff"), + anno::description("The cutoff value to to render as transparent up to and opaque past"), + anno::in_group("Alpha") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + + float3 normal_input = state::normal(), + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("Normal Map"), + anno::in_group("Normal") + ]], + uniform bool flip_tangent_u = false + [[ + anno::display_name("Normal Map Flip U Tangent"), + anno::description("Flips the U Tangent vector."), + anno::in_group("Normal") + ]], + uniform bool flip_tangent_v = true + [[ + anno::display_name("Normal Map Flip V Tangent"), + anno::description("Flips the V Tangent vector. By Default, SimPBR materials setup for DirectX normal maps. Set Normal Map Flip V = false for OpenGL."), + anno::in_group("Normal") + ]], + + // -------------------- UV ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Tiling"), + anno::description("Controls repetition of the texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR"), + anno::description("Supports the opaque alpha cutout material model of the Sim Renderer"), + anno::in_group("SimReady"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "opaque", "alpha", "cutout", "omniverse", "generic")) +]] + = let { + 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: 0, + projection_type: base::projection_cubic + ) : base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw + ); + float2 uv = float2(transformed_uvw.position.x, transformed_uvw.position.y); + + // Diffuse Color Lookup and AO + float4 base_lookup = tex::texture_isvalid(diffuse_texture) ? tex::lookup_float4(tex: diffuse_texture, coord: uv) : float4(1, 1, 1, 1); + + float opacityValue = tex::texture_isvalid(opacity_texture) ? tex::lookup_float4(tex: opacity_texture, coord: uv).w : alpha_constant; + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw, + flip_tangent_u: flip_tangent_u, + flip_tangent_v: flip_tangent_v + ) : normal_input; + + float3 clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? + base::tangent_space_normal_texture( + texture: clearcoat_normalmap_texture, + factor: clearcoat_bump_factor, + uvw: uvw, + flip_tangent_u: clearcoat_flip_tangent_u, + flip_tangent_v: clearcoat_flip_tangent_v + ) : clearcoat_normal_input; + + float3 flattened_clearcoat_normal = ::math::lerp(normal_lookup, ::state::normal(), clearcoat_flatten); + float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? clearcoat_normal : flattened_clearcoat_normal; + + float ao_lookup = tex::texture_isvalid(ao_texture) ? tex::lookup_float4(tex: ao_texture, coord: uv).x : ao_input; + + color diffuse_color = tex::texture_isvalid(diffuse_texture) ? color(base_lookup.x, base_lookup.y, base_lookup.z) : diffuse_color_constant; + + float3 ORM_lookup = tex::lookup_float3( + tex: ORM_texture, + coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) + ); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + tex::lookup_float4(tex: reflectionroughness_texture, coord: uv).x : reflection_roughness_constant; + float anisotropy_lookup = tex::texture_isvalid(anisotropy_texture) ? + (tex::lookup_float4(tex: anisotropy_texture, coord: uv).x * 2.0f - 1.0f) : anisotropy_constant; + float metallic_lookup = tex::texture_isvalid(metallic_texture) ? + tex::lookup_float4(tex: metallic_texture, coord: uv).x : metallic_constant; + float specular_lookup = tex::texture_isvalid(specular_texture) ? + tex::lookup_float4(tex: specular_texture, coord: uv).x : specular_constant; + + float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup; + float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup; + float ao = enable_ORM_texture ? ORM_lookup.x : ao_lookup; + + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); + float anisotropy = math::lerp(anisotropy_constant, anisotropy_lookup, anisotropy_texture_influence); + float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook ? + ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) ? + tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) : emissive_mask_input; + +} in SimPBR_Model( + diffuse_color: diffuse_color, + diffuse_tint: diffuse_tint, + roughness: reflection_roughness, + anisotropy: anisotropy, + metallic: metallic, + specular: specular_lookup, + normal: normal_lookup, + enable_clearcoat: enable_clearcoat, + clearcoat_tint: clearcoat_tint, + clearcoat_transparency: clearcoat_transparency, + clearcoat_reflection_roughness: clearcoat_reflection_roughness, + clearcoat_weight: clearcoat_weight, + clearcoat_ior: clearcoat_ior, + clearcoat_normal: final_clearcoat_normal, + enable_retroreflection: enable_retroreflection, + retroreflection_tint: retroreflection_tint, + normal_reflectivity: normal_reflectivity, + grazing_reflectivity: grazing_reflectivity, + ao_to_diffuse: ao_to_diffuse, + ao: ao, + enable_emission: enable_emission, + emissive_color: emissive_color, + emissive_mask: emissive_mask, + emissive_intensity: emissive_intensity, + enable_opacity: enable_opacity, + alpha: opacityValue, + enable_opacity_cutout: enable_opacity_cutout, + alpha_cutout_cutoff: alpha_cutout_cutoff, + opacity_ratio: enable_transmission ? opacity_ratio : 1.0, + opacity_tint : opacity_tint, + opacity_multiplier : opacity_multiplier +); diff --git a/assets/objects/vomp/spatula_14/materials/SimPBR_Model.mdl b/assets/objects/vomp/spatula_14/materials/SimPBR_Model.mdl new file mode 100644 index 0000000000000000000000000000000000000000..dccd3808942cb243a4e03f77f684935081b31ec5 --- /dev/null +++ b/assets/objects/vomp/spatula_14/materials/SimPBR_Model.mdl @@ -0,0 +1,212 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +using .::baking_annotations import *; + +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 + ); +} + +export material SimPBR_Model( + color diffuse_color = color(0.2f) [[ target_baked_argument("diffuse_texture", "diffuse_color_constant", "RGBA8_UNORM") ]], + uniform color diffuse_tint = color(1.0f), + float roughness = 0.5f [[ target_baked_argument("reflectionroughness_texture", "reflection_roughness_constant", "R8_UNORM") ]], + float anisotropy = 0.0f [[ target_baked_argument("anisotropy_texture", "anisotropy_constant", "R8_SNORM") ]], + float metallic = 0.f [[ target_baked_argument("metallic_texture", "metallic_constant", "R8_UNORM") ]], + float specular = 1.f [[ target_baked_argument("specular_texture", "specular_constant", "R8_UNORM") ]], + float3 normal = float3(0.0, 0.0, 0.0) [[ target_baked_argument("normalmap_texture", "normal_input", "RGBA8_SNORM", baking_annotations::TRANSFORM_UNORM_VECTOR) ]], + uniform bool enable_clearcoat = false, + color clearcoat_tint = color(1.0f), + float clearcoat_transparency = 1.0f, + float clearcoat_reflection_roughness = 0.0f, + float clearcoat_weight = 1.0f, + float clearcoat_ior = 1.56f, + float3 clearcoat_normal = float3(0.0, 0.0, 0.0) [[ target_baked_argument("clearcoat_normalmap_texture", "clearcoat_normal_input", "RGBA8_SNORM", baking_annotations::TRANSFORM_UNORM_VECTOR) ]], + uniform bool enable_retroreflection = false, + color retroreflection_tint = color(.182,.800,.000), + uniform float normal_reflectivity = 0.5, + uniform float grazing_reflectivity = 1.0, + float ao_to_diffuse = 0.0, + float ao = 1.0f [[ target_baked_argument("ao_texture", "ao_input", "R8_UNORM") ]], + uniform bool enable_emission = false, + uniform color emissive_color = color(1.0, 0.1, 0.1), + color emissive_mask = color(1.0, 0.1, 0.1) [[ target_baked_argument("emissive_mask_texture", "emissive_mask_input", "R8_UNORM") ]], + uniform float emissive_intensity = 40.f, + uniform bool enable_opacity = false, + float alpha = 1.0, + uniform bool enable_opacity_cutout = false, + uniform float alpha_cutout_cutoff = 1.f, + uniform float opacity_ratio = 1.f, + uniform color opacity_tint = color(1.0f), + uniform float opacity_multiplier = 1.f +) +[[ + target_material_model(), + target_material_rendering("..::SimPBR::SimPBR") +]] + = let { + color base_color = multiply_colors(diffuse_color, diffuse_tint, 1.0).tint; + color ao_weighted_base_color = multiply_colors(base_color, color(ao), ao_to_diffuse).tint; + + float squared_roughness = roughness * roughness; + float roughness_u = squared_roughness * (1 + anisotropy); + float roughness_v = squared_roughness * (1 - anisotropy); + + color diffuse_transmission_color = base_color * opacity_tint * opacity_multiplier; + + bsdf diffuse_bsdf = df::weighted_layer( + weight: opacity_ratio, + layer: df::diffuse_reflection_bsdf( + tint: ao_weighted_base_color, + roughness: 0.0f + ), + base: df::diffuse_transmission_bsdf(tint: diffuse_transmission_color), + normal: enable_clearcoat ? normal : state::normal() + ); + + bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_u, + roughness_v: roughness_v, + tint: color(1.0, 1.0, 1.0), + mode: df::scatter_reflect + ); + + bsdf custom_curve_layer_bsdf = df::custom_curve_layer( + normal_reflectivity: 0.03, + grazing_reflectivity: 1.0, + exponent: 5.0, + weight: specular, + layer: ggx_smith_bsdf, + base: diffuse_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + // + // Begin RETROREFLECTION SUPPORT + // + color final_retroreflection_color = multiply_colors(retroreflection_tint, base_color, 1.0).tint; + bsdf backscattering_glossy_bsdf = df::backscattering_glossy_reflection_bsdf( + tint: final_retroreflection_color, + roughness_u: squared_roughness + ); + + /*bsdf retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: 1.-normal_reflectivity, + grazing_reflectivity: 1.-grazing_reflectivity, + base: backscattering_glossy_bsdf, + layer: custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + );*/ + + // if normal_reflectivity and grazing_reflectivity are 1 and weight is 1, just the layer is used + bsdf opt_retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: enable_retroreflection ? 1.-normal_reflectivity : 1, + grazing_reflectivity: enable_retroreflection ? 1.-grazing_reflectivity : 1, + base: backscattering_glossy_bsdf, + layer: custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + // + // End RETROREFLECTION SUPPORT + // + + bsdf directional_factor_bsdf = df::directional_factor( + normal_tint: ao_weighted_base_color, + grazing_tint: color(1.0, 1.0, 1.0), + exponent: 5.0f, + base: ggx_smith_bsdf + ); + + // CLEARCOAT + bsdf omni_PBR_bsdf = df::weighted_layer( + weight: metallic, + layer: directional_factor_bsdf, + base: opt_retroreflection_bsdf, //enable_retroreflection ? retroreflection_bsdf : custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + bsdf clearcoat_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + roughness_v: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + 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 opt_opaque_clearcoat = df::weighted_layer( + weight: enable_clearcoat ? clearcoat_transparency : 1, + layer: ::df::tint(tint: enable_clearcoat ? clearcoat_tint : color(1), base: omni_PBR_bsdf), + base: ::df::diffuse_reflection_bsdf(tint: clearcoat_tint) + ); + + bsdf opt_omni_PBR_coated_bsdf = df::fresnel_layer( + ior: clearcoat_ior, + weight: enable_clearcoat ? clearcoat_weight : 0, + layer: clearcoat_bsdf, + base: opt_opaque_clearcoat, + normal: clearcoat_normal + ); + + bsdf final_bsdf = opt_omni_PBR_coated_bsdf; +} in material( + thin_walled: false, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + geometry: material_geometry( + normal: enable_clearcoat ? state::normal() : normal, + cutout_opacity: enable_opacity ? (enable_opacity_cutout ? (alpha < alpha_cutout_cutoff ? 0.0 : 1.0) : alpha) : 1.0 + ) +); diff --git a/assets/objects/vomp/spatula_14/materials/SimPBR_Opacity.mdl b/assets/objects/vomp/spatula_14/materials/SimPBR_Opacity.mdl new file mode 100644 index 0000000000000000000000000000000000000000..cf0a3ba759fc0b873d174b410b31759b1d426307 --- /dev/null +++ b/assets/objects/vomp/spatula_14/materials/SimPBR_Opacity.mdl @@ -0,0 +1,651 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +import ::nvidia::core_definitions::file_texture; +import ::nvidia::core_definitions::normalmap_texture; + +float4 raw_file_texture( + uniform texture_2d texture + [[ anno::description("The input texture") ]], + base::texture_coordinate_info uvw = base::texture_coordinate_info() + [[ anno::description("Custom value for texture coordinate") ]], + 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") ]] +) +[[ + anno::description("General texturing function for 2D bitmap texture stored in a file"), + anno::noinline() +]] +{ + return tex::lookup_float4(texture, float2(uvw.position.x, uvw.position.y), wrap_u, wrap_v, crop_u, crop_v); +} + +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 SimPBR_Opacity( + // -------------------- DIFFUSE REFLECTION ---------------------- + uniform color diffuse_color_constant = color(0.2f) + [[ + anno::display_name("Albedo Base Color"), + anno::description("The base albedo color to use if no texture is specified"), + anno::in_group("Diffuse") + ]], + uniform texture_2d diffuse_texture = texture_2d() + [[ + anno::display_name("Albedo Map"), + anno::description("The texture specifying the albedo value to use"), + anno::in_group("Diffuse") + ]], + uniform color diffuse_tint = color(1.0f) + [[ + anno::display_name("Albedo Tint"), + anno::description("This tints the albedo color or texture contant"), + anno::in_group("Diffuse") + ]], + + // -------------------- SPECULAR REFLECTION ---------------------- + uniform 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + uniform float anisotropy_constant = 0.0f + [[ + anno::display_name("Anisotropy Amount"), + anno::hard_range(-1.,1.), + anno::description("0 for isotropic, extents of -1 to 1 for anisotropy"), + anno::in_group("Specular") + ]], + uniform float anisotropy_texture_influence = 0.0f + [[ + anno::display_name("Anisotropy Map Influence"), + anno::hard_range(0.0, 1.), + anno::description("Blends between the constant value and the lookup of the anisotropy texture"), + anno::in_group("Specular") + ]], + uniform texture_2d anisotropy_texture = texture_2d() + [[ + anno::display_name("Anisotropy Map"), + anno::in_group("Specular") + ]], + + uniform float metallic_constant = 0.f + [[ + anno::display_name("Metallic Amount"), + anno::hard_range(0.0,1.), + anno::description("Metallic Material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d metallic_texture = texture_2d() + [[ + anno::display_name("Metallic Map"), + anno::in_group("Specular") + ]], + + // -------------------- ORM ---------------------- + uniform bool enable_ORM_texture = true + [[ + 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") + ]], + + // -------------------- 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") + ]], + 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") + ]], + 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") + ]], + + // -------------------- REFLECTIVITY ---------------------- + uniform bool enable_retroreflection = false + [[ + anno::display_name("Enable Retroreflection"), + anno::in_group("Reflectivity") + ]], + color retroreflection_color = color(.182,.800,.000) + [[ + anno::display_name("Retro-reflection color"), + anno::description("The color of the retroreflection"), + anno::in_group("Reflectivity") + ]], + uniform float normal_reflectivity = 0.5 + [[ + anno::display_name("Retro-reflection weight facing"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for geometry facing the viewer"), + anno::in_group("Reflectivity") + ]], + uniform float grazing_reflectivity = 1.0 + [[ + anno::display_name("Retro-reflection weight edge"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for the reflectivity at geometry edges"), + anno::in_group("Reflectivity") + ]], + + // -------------------- AMBIENT OCCLUSION ---------------------- + 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") + ]], + 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") + ]], + uniform 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_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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- ALPHA ---------------------- + uniform bool enable_alpha = true + [[ + anno::display_name("Enable Alpha"), + anno::description("Enables or disables alpha functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_constant = 1.0 + [[ + anno::display_name("Alpha Fallback Constant"), + anno::description("The base alpha constant to use if no texture is specified"), + anno::in_group("Alpha") + ]], + uniform texture_2d opacity_texture = texture_2d() + [[ + anno::display_name("Opacity Map"), + anno::description("The texture specifying the opacity value to use"), + anno::in_group("Alpha") + ]], + uniform bool enable_alpha_cutout = false + [[ + anno::display_name("Enable Alpha Cutout"), + anno::description("Enables or disables alpha cutout functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_cutout_cutoff = 1.f + [[ + anno::enable_if("enable_alpha_cutout == true"), + anno::hard_range(0.0, 1.0), + anno::display_name("Alpha Cutout Cutoff"), + anno::description("The cutoff value to to render as transparent up to and opaque past"), + anno::in_group("Alpha") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("Normal Map"), + anno::in_group("Normal") + ]], + + // -------------------- UV ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Scale"), + anno::description("Larger number increases size of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR Opaque Alpha Cutout"), + anno::description("Supports the opaque alpha cutout material model of the Sim Renderer"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "opaque", "alpha", "cutout", "omniverse", "generic")) +]] + = let { + + 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: 0, + projection_type: base::projection_cubic ) : + base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw ); + + // Diffuse Color Lookup and AO + float4 base_lookup = tex::texture_isvalid(diffuse_texture) ? raw_file_texture(texture: diffuse_texture, uvw: transformed_uvw) : float4(1, 1, 1, 1); + + float opacityValue = tex::texture_isvalid(opacity_texture) ? raw_file_texture(texture: opacity_texture, uvw: transformed_uvw).x : alpha_constant; + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw + ) : state::normal(); + + float3 clearcoat_normal = base::tangent_space_normal_texture( + texture: clearcoat_normalmap_texture, + factor: clearcoat_bump_factor, + uvw: uvw + ); + + float3 flattened_clearcoat_normal = ::math::lerp(normal_lookup, ::state::normal(), clearcoat_flatten); + float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? clearcoat_normal : flattened_clearcoat_normal; + + float ao_lookup = tex::texture_isvalid(ao_texture) ? + raw_file_texture(texture: ao_texture, uvw: transformed_uvw).x : + 1.0f + [[anno::unused("Currently unused in material, may be utilized in the future")]]; + + color diffuse_color = tex::texture_isvalid(diffuse_texture) ? color(base_lookup.x, base_lookup.y, base_lookup.z) : diffuse_color_constant; + color base_color = multiply_colors(diffuse_color, diffuse_tint, 1.0).tint; + + float3 ORM_lookup = tex::lookup_float3( + tex: ORM_texture, + coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) + ); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + raw_file_texture(texture: reflectionroughness_texture, uvw: transformed_uvw).x : + reflection_roughness_constant; + float anisotropy_lookup = tex::texture_isvalid(anisotropy_texture) ? + (raw_file_texture(texture: anisotropy_texture, uvw: transformed_uvw).x * 2.0f - 1.0f) : + anisotropy_constant; + float metallic_lookup = tex::texture_isvalid(metallic_texture) ? + raw_file_texture(texture: metallic_texture, uvw: transformed_uvw).x : + metallic_constant; + + float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup; + float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup; + color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : color(ao_lookup); + + color ao_weighted_base_color = multiply_colors(base_color, ao_color, ao_to_diffuse).tint; + + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); + float anisotropy = math::lerp(anisotropy_constant, anisotropy_lookup, anisotropy_texture_influence); + float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); + + float squared_roughness = reflection_roughness * reflection_roughness; + float roughness_u = squared_roughness * (1 + anisotropy); + float roughness_v = squared_roughness * (1 - anisotropy); + + bsdf diffuse_bsdf = df::weighted_layer( + weight: 1.0, + layer: df::diffuse_reflection_bsdf( + tint: ao_weighted_base_color, + roughness: 0.f ), + base: bsdf(), + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_u, + roughness_v: roughness_v, + tint: color(1.0, 1.0, 1.0), + mode: df::scatter_reflect + ); + + bsdf custom_curve_layer_bsdf = df::custom_curve_layer( + normal_reflectivity: 0.03, + grazing_reflectivity: 1.0, + exponent: 5.0, + weight: float(1.0), + layer: ggx_smith_bsdf, + base: diffuse_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + // + // Begin RETROREFLECTION SUPPORT + // + bsdf backscattering_glossy_bsdf = df::backscattering_glossy_reflection_bsdf( + tint: retroreflection_color, + roughness_u: reflection_roughness * reflection_roughness + ); + + bsdf retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: 1.-normal_reflectivity, + grazing_reflectivity: 1.-grazing_reflectivity, + base: backscattering_glossy_bsdf, + layer: diffuse_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + // + // End RETROREFLECTION SUPPORT + // + + bsdf directional_factor_bsdf = df::directional_factor( + normal_tint: ao_weighted_base_color, + grazing_tint: color(1.0, 1.0, 1.0), + exponent: 5.0f, + base: ggx_smith_bsdf + ); + + // CLEARCOAT + + bsdf omni_PBR_bsdf = df::weighted_layer( + weight: metallic, + layer: directional_factor_bsdf, + base: enable_retroreflection ? retroreflection_bsdf : custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + bsdf clearcoat_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + roughness_v: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + 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; + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook + ? ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) + : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) + ? tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) + : color(1.0); + +} in material( + thin_walled: false, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission ( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + geometry: material_geometry( + normal: enable_clearcoat ? state::normal() : normal_lookup, + cutout_opacity: enable_alpha ? (enable_alpha_cutout ? (opacityValue < alpha_cutout_cutoff ? 0.0 : 1.0) : opacityValue) : 1.0 + ) +); diff --git a/assets/objects/vomp/spatula_14/materials/SimPBR_Translucent.mdl b/assets/objects/vomp/spatula_14/materials/SimPBR_Translucent.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a60a90d1b946f94c266dabd515d5a15b6c3c9bd --- /dev/null +++ b/assets/objects/vomp/spatula_14/materials/SimPBR_Translucent.mdl @@ -0,0 +1,290 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +import ::nvidia::core_definitions::file_texture; +import ::nvidia::core_definitions::normalmap_texture; + +export material SimPBR_Translucent( + // -------------------- SPECULAR REFLECTION/TRANSMISSION ---------------------- + uniform float ior_constant = 1.1f + [[ + anno::display_name("Index of Refraction"), + anno::hard_range(0.0,5.), + anno::description("Index of Refraction of the material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + // -------------------- VOLUME ---------------------- + color transmittance_color = color(1.0, 1.0f, 1.0f) + [[ + anno::display_name("Transmittance Color"), + anno::description("Expected transmittance after the specified transmittance distance through the volume."), + anno::in_group("Volume") + ]], + float transmittance_measurement_distance = 1.0f + [[ + anno::display_name("Transmittance Measurement Distance"), + anno::description("Distance to match the transmittance through the volume at."), + anno::in_group("Volume") + ]], + + // -------------------- EMISSIVE ---------------------- + uniform bool enable_thin_walled = false + [[ + anno::display_name("Enable Thin Walled"), + anno::description("Enables thin walled logic"), + anno::in_group("Geometry") + ]], + + // -------------------- 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_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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("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 ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Tiling"), + anno::description("Controls the repetition of the texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR Translucent"), + anno::description("Supports the translucent material model of the Sim Renderer"), + anno::in_group("SimReady"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "translucent", "omniverse", "generic")) +]] + = let { + 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: 0, + projection_type: base::projection_cubic + ) : base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw + ); + float2 uv = float2(transformed_uvw.position.x, transformed_uvw.position.y); + + color volume_absorption_coefficient = -math::log(transmittance_color) / (transmittance_measurement_distance*0.01); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + tex::lookup_float4(tex: reflectionroughness_texture, coord: uv).x : reflection_roughness_constant; + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_lookup, reflection_roughness_texture_influence); + + float roughness_squared = reflection_roughness * reflection_roughness; + + bsdf final_bsdf(enable_thin_walled ? + ::df::fresnel_layer( + ior_constant, + 1.f, + ::df::microfacet_ggx_smith_bsdf( + roughness_squared, + roughness_squared, + color(1.f, 1.f, 1.f), + ::state::texture_tangent_u(0), + ::df::scatter_reflect, + "" + ), + ::df::specular_bsdf( + transmittance_color, + ::df::scatter_transmit, + "" + ), ::state::normal()) + : ::df::microfacet_ggx_smith_bsdf( + roughness_squared, + roughness_squared, + color(1.f, 1.f, 1.f), + ::state::texture_tangent_u(0), + ::df::scatter_reflect_transmit, + "" + )); + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook ? + ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) ? + tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) : color(1.0); + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw, + flip_tangent_u: flip_tangent_u, + flip_tangent_v: flip_tangent_v + ) : state::normal(); +} in material( + thin_walled: enable_thin_walled, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission ( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + ior: color(ior_constant), + volume: material_volume( + scattering: df::anisotropic_vdf(), + absorption_coefficient: volume_absorption_coefficient, + scattering_coefficient: color(0.0f, 0.0f, 0.0f) + ), + geometry: material_geometry( + normal: normal_lookup + ) +); diff --git a/assets/objects/vomp/spatula_14/textures/Spatulas_Set02_Opacity.png b/assets/objects/vomp/spatula_14/textures/Spatulas_Set02_Opacity.png new file mode 100644 index 0000000000000000000000000000000000000000..776aabedf22973ce066a9728e1d4a2e65365db5d Binary files /dev/null and b/assets/objects/vomp/spatula_14/textures/Spatulas_Set02_Opacity.png differ diff --git a/assets/objects/vomp/spatula_15/materials/SimPBR.mdl b/assets/objects/vomp/spatula_15/materials/SimPBR.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5883146f569e93208db72c08a810b7d71eaeece7 --- /dev/null +++ b/assets/objects/vomp/spatula_15/materials/SimPBR.mdl @@ -0,0 +1,562 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + + +using .::SimPBR_Model import *; +using .::baking_annotations import *; + +export material SimPBR( + // -------------------- DIFFUSE REFLECTION ---------------------- + uniform color diffuse_color_constant = color(0.2f) + [[ + anno::display_name("Albedo Base Color"), + anno::description("The base albedo color to use if no texture is specified"), + anno::in_group("Diffuse") + ]], + uniform texture_2d diffuse_texture = texture_2d() + [[ + anno::display_name("Albedo Map"), + anno::description("The texture specifying the albedo value to use"), + anno::in_group("Diffuse") + ]], + uniform color diffuse_tint = color(1.0f) + [[ + anno::display_name("Albedo Tint"), + anno::description("This tints the albedo color or texture contant"), + anno::in_group("Diffuse") + ]], + uniform bool enable_transmission = false + [[ + anno::display_name("Enable Diffuse Transmission"), + anno::description("Enables the diffuse transmission of light through thin diffuse scattering layer"), + anno::in_group("Diffuse") + ]], + uniform float opacity_ratio = 1.f + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Opacity Ratio"), + anno::description("Amount of opacity"), + anno::in_group("Diffuse") + ]], + uniform color opacity_tint = color(1.0f) + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Diffuse transmission tint"), + anno::description("Base diffuse transmission color"), + anno::in_group("Diffuse") + ]], + uniform float opacity_multiplier = 1.f + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Diffuse transmission multiplier"), + anno::description("Base diffuse transmission multiplier"), + anno::in_group("Diffuse") + ]], + + // -------------------- SPECULAR REFLECTION ---------------------- + 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + float anisotropy_constant = 0.0f + [[ + anno::display_name("Anisotropy Amount"), + anno::hard_range(-1.,1.), + anno::description("0 for isotropic, extents of -1 to 1 for anisotropy"), + anno::in_group("Specular") + ]], + uniform float anisotropy_texture_influence = 0.0f + [[ + anno::display_name("Anisotropy Map Influence"), + anno::hard_range(0.0, 1.), + anno::description("Blends between the constant value and the lookup of the anisotropy texture"), + anno::in_group("Specular") + ]], + uniform texture_2d anisotropy_texture = texture_2d() + [[ + anno::display_name("Anisotropy Map"), + anno::in_group("Specular") + ]], + + float metallic_constant = 0.f + [[ + anno::display_name("Metallic Amount"), + anno::hard_range(0.0,1.), + anno::description("Metallic Material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d metallic_texture = texture_2d() + [[ + anno::display_name("Metallic Map"), + anno::in_group("Specular") + ]], + + float specular_constant = 1.f + [[ + anno::display_name("Specular amount"), + anno::hard_range(0.0, 1.0), + anno::description("Scale of the specular component"), + anno::in_group("Specular") + ]], + uniform texture_2d specular_texture = texture_2d() + [[ + anno::display_name("Specular Map"), + anno::in_group("Specular") + ]], + + // -------------------- ORM ---------------------- + uniform bool enable_ORM_texture = true + [[ + 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") + ]], + + // -------------------- 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") + ]], + 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") + ]], + + float3 clearcoat_normal_input = float3(0.0, 0.0, 0.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") + ]], + + uniform bool clearcoat_flip_tangent_u = false + [[ + anno::display_name("Clearcoat Normal Map Flip U Tangent"), + anno::in_group("Clearcoat") + ]], + uniform bool clearcoat_flip_tangent_v = true + [[ + anno::display_name("Clearcoat Normal Map Flip V Tangent"), + anno::in_group("Clearcoat") + ]], + + + // -------------------- REFLECTIVITY ---------------------- + uniform bool enable_retroreflection = false + [[ + anno::display_name("Enable Retroreflection"), + anno::in_group("Reflectivity") + ]], + color retroreflection_tint = color(.182,.800,.000) + [[ + anno::display_name("Retro-reflection tint"), + anno::description("The tint of the retroreflection"), + anno::in_group("Reflectivity") + ]], + uniform float normal_reflectivity = 0.5 + [[ + anno::display_name("Retro-reflection weight facing"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for geometry facing the viewer"), + anno::in_group("Reflectivity") + ]], + uniform float grazing_reflectivity = 1.0 + [[ + anno::display_name("Retro-reflection weight edge"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for the reflectivity at geometry edges"), + anno::in_group("Reflectivity") + ]], + + // -------------------- AMBIENT OCCLUSION ---------------------- + 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") + ]], + float ao_input = 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") + ]], + + // -------------------- 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") + ]], + uniform 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") + ]], + + color emissive_mask_input = color(1.0), + 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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- ALPHA ---------------------- + uniform bool enable_opacity = false + [[ + anno::display_name("Enable Opacity"), + anno::description("Enables or disables alpha functionality"), + anno::in_group("Alpha") + ]], + float alpha_constant = 1.0 + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Opacity Fallback Constant"), + anno::hard_range(0.0, 1.0), + anno::description("The base alpha constant to use if no texture is specified"), + anno::in_group("Alpha") + ]], + uniform texture_2d opacity_texture = texture_2d() + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Opacity Map"), + anno::description("The texture specifying the opacity value to use"), + anno::in_group("Alpha") + ]], + uniform bool enable_opacity_cutout = false + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Enable Alpha Cutout"), + anno::description("Enables or disables alpha cutout functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_cutout_cutoff = 1.f + [[ + anno::enable_if("enable_opacity == true"), + anno::enable_if("enable_opacity_cutout == true"), + anno::hard_range(0.0, 1.0), + anno::display_name("Alpha Cutout Cutoff"), + anno::description("The cutoff value to to render as transparent up to and opaque past"), + anno::in_group("Alpha") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + + float3 normal_input = state::normal(), + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("Normal Map"), + anno::in_group("Normal") + ]], + uniform bool flip_tangent_u = false + [[ + anno::display_name("Normal Map Flip U Tangent"), + anno::description("Flips the U Tangent vector."), + anno::in_group("Normal") + ]], + uniform bool flip_tangent_v = true + [[ + anno::display_name("Normal Map Flip V Tangent"), + anno::description("Flips the V Tangent vector. By Default, SimPBR materials setup for DirectX normal maps. Set Normal Map Flip V = false for OpenGL."), + anno::in_group("Normal") + ]], + + // -------------------- UV ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Tiling"), + anno::description("Controls repetition of the texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR"), + anno::description("Supports the opaque alpha cutout material model of the Sim Renderer"), + anno::in_group("SimReady"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "opaque", "alpha", "cutout", "omniverse", "generic")) +]] + = let { + 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: 0, + projection_type: base::projection_cubic + ) : base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw + ); + float2 uv = float2(transformed_uvw.position.x, transformed_uvw.position.y); + + // Diffuse Color Lookup and AO + float4 base_lookup = tex::texture_isvalid(diffuse_texture) ? tex::lookup_float4(tex: diffuse_texture, coord: uv) : float4(1, 1, 1, 1); + + float opacityValue = tex::texture_isvalid(opacity_texture) ? tex::lookup_float4(tex: opacity_texture, coord: uv).w : alpha_constant; + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw, + flip_tangent_u: flip_tangent_u, + flip_tangent_v: flip_tangent_v + ) : normal_input; + + float3 clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? + base::tangent_space_normal_texture( + texture: clearcoat_normalmap_texture, + factor: clearcoat_bump_factor, + uvw: uvw, + flip_tangent_u: clearcoat_flip_tangent_u, + flip_tangent_v: clearcoat_flip_tangent_v + ) : clearcoat_normal_input; + + float3 flattened_clearcoat_normal = ::math::lerp(normal_lookup, ::state::normal(), clearcoat_flatten); + float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? clearcoat_normal : flattened_clearcoat_normal; + + float ao_lookup = tex::texture_isvalid(ao_texture) ? tex::lookup_float4(tex: ao_texture, coord: uv).x : ao_input; + + color diffuse_color = tex::texture_isvalid(diffuse_texture) ? color(base_lookup.x, base_lookup.y, base_lookup.z) : diffuse_color_constant; + + float3 ORM_lookup = tex::lookup_float3( + tex: ORM_texture, + coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) + ); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + tex::lookup_float4(tex: reflectionroughness_texture, coord: uv).x : reflection_roughness_constant; + float anisotropy_lookup = tex::texture_isvalid(anisotropy_texture) ? + (tex::lookup_float4(tex: anisotropy_texture, coord: uv).x * 2.0f - 1.0f) : anisotropy_constant; + float metallic_lookup = tex::texture_isvalid(metallic_texture) ? + tex::lookup_float4(tex: metallic_texture, coord: uv).x : metallic_constant; + float specular_lookup = tex::texture_isvalid(specular_texture) ? + tex::lookup_float4(tex: specular_texture, coord: uv).x : specular_constant; + + float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup; + float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup; + float ao = enable_ORM_texture ? ORM_lookup.x : ao_lookup; + + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); + float anisotropy = math::lerp(anisotropy_constant, anisotropy_lookup, anisotropy_texture_influence); + float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook ? + ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) ? + tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) : emissive_mask_input; + +} in SimPBR_Model( + diffuse_color: diffuse_color, + diffuse_tint: diffuse_tint, + roughness: reflection_roughness, + anisotropy: anisotropy, + metallic: metallic, + specular: specular_lookup, + normal: normal_lookup, + enable_clearcoat: enable_clearcoat, + clearcoat_tint: clearcoat_tint, + clearcoat_transparency: clearcoat_transparency, + clearcoat_reflection_roughness: clearcoat_reflection_roughness, + clearcoat_weight: clearcoat_weight, + clearcoat_ior: clearcoat_ior, + clearcoat_normal: final_clearcoat_normal, + enable_retroreflection: enable_retroreflection, + retroreflection_tint: retroreflection_tint, + normal_reflectivity: normal_reflectivity, + grazing_reflectivity: grazing_reflectivity, + ao_to_diffuse: ao_to_diffuse, + ao: ao, + enable_emission: enable_emission, + emissive_color: emissive_color, + emissive_mask: emissive_mask, + emissive_intensity: emissive_intensity, + enable_opacity: enable_opacity, + alpha: opacityValue, + enable_opacity_cutout: enable_opacity_cutout, + alpha_cutout_cutoff: alpha_cutout_cutoff, + opacity_ratio: enable_transmission ? opacity_ratio : 1.0, + opacity_tint : opacity_tint, + opacity_multiplier : opacity_multiplier +); diff --git a/assets/objects/vomp/spatula_15/materials/SimPBR_Model.mdl b/assets/objects/vomp/spatula_15/materials/SimPBR_Model.mdl new file mode 100644 index 0000000000000000000000000000000000000000..dccd3808942cb243a4e03f77f684935081b31ec5 --- /dev/null +++ b/assets/objects/vomp/spatula_15/materials/SimPBR_Model.mdl @@ -0,0 +1,212 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +using .::baking_annotations import *; + +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 + ); +} + +export material SimPBR_Model( + color diffuse_color = color(0.2f) [[ target_baked_argument("diffuse_texture", "diffuse_color_constant", "RGBA8_UNORM") ]], + uniform color diffuse_tint = color(1.0f), + float roughness = 0.5f [[ target_baked_argument("reflectionroughness_texture", "reflection_roughness_constant", "R8_UNORM") ]], + float anisotropy = 0.0f [[ target_baked_argument("anisotropy_texture", "anisotropy_constant", "R8_SNORM") ]], + float metallic = 0.f [[ target_baked_argument("metallic_texture", "metallic_constant", "R8_UNORM") ]], + float specular = 1.f [[ target_baked_argument("specular_texture", "specular_constant", "R8_UNORM") ]], + float3 normal = float3(0.0, 0.0, 0.0) [[ target_baked_argument("normalmap_texture", "normal_input", "RGBA8_SNORM", baking_annotations::TRANSFORM_UNORM_VECTOR) ]], + uniform bool enable_clearcoat = false, + color clearcoat_tint = color(1.0f), + float clearcoat_transparency = 1.0f, + float clearcoat_reflection_roughness = 0.0f, + float clearcoat_weight = 1.0f, + float clearcoat_ior = 1.56f, + float3 clearcoat_normal = float3(0.0, 0.0, 0.0) [[ target_baked_argument("clearcoat_normalmap_texture", "clearcoat_normal_input", "RGBA8_SNORM", baking_annotations::TRANSFORM_UNORM_VECTOR) ]], + uniform bool enable_retroreflection = false, + color retroreflection_tint = color(.182,.800,.000), + uniform float normal_reflectivity = 0.5, + uniform float grazing_reflectivity = 1.0, + float ao_to_diffuse = 0.0, + float ao = 1.0f [[ target_baked_argument("ao_texture", "ao_input", "R8_UNORM") ]], + uniform bool enable_emission = false, + uniform color emissive_color = color(1.0, 0.1, 0.1), + color emissive_mask = color(1.0, 0.1, 0.1) [[ target_baked_argument("emissive_mask_texture", "emissive_mask_input", "R8_UNORM") ]], + uniform float emissive_intensity = 40.f, + uniform bool enable_opacity = false, + float alpha = 1.0, + uniform bool enable_opacity_cutout = false, + uniform float alpha_cutout_cutoff = 1.f, + uniform float opacity_ratio = 1.f, + uniform color opacity_tint = color(1.0f), + uniform float opacity_multiplier = 1.f +) +[[ + target_material_model(), + target_material_rendering("..::SimPBR::SimPBR") +]] + = let { + color base_color = multiply_colors(diffuse_color, diffuse_tint, 1.0).tint; + color ao_weighted_base_color = multiply_colors(base_color, color(ao), ao_to_diffuse).tint; + + float squared_roughness = roughness * roughness; + float roughness_u = squared_roughness * (1 + anisotropy); + float roughness_v = squared_roughness * (1 - anisotropy); + + color diffuse_transmission_color = base_color * opacity_tint * opacity_multiplier; + + bsdf diffuse_bsdf = df::weighted_layer( + weight: opacity_ratio, + layer: df::diffuse_reflection_bsdf( + tint: ao_weighted_base_color, + roughness: 0.0f + ), + base: df::diffuse_transmission_bsdf(tint: diffuse_transmission_color), + normal: enable_clearcoat ? normal : state::normal() + ); + + bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_u, + roughness_v: roughness_v, + tint: color(1.0, 1.0, 1.0), + mode: df::scatter_reflect + ); + + bsdf custom_curve_layer_bsdf = df::custom_curve_layer( + normal_reflectivity: 0.03, + grazing_reflectivity: 1.0, + exponent: 5.0, + weight: specular, + layer: ggx_smith_bsdf, + base: diffuse_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + // + // Begin RETROREFLECTION SUPPORT + // + color final_retroreflection_color = multiply_colors(retroreflection_tint, base_color, 1.0).tint; + bsdf backscattering_glossy_bsdf = df::backscattering_glossy_reflection_bsdf( + tint: final_retroreflection_color, + roughness_u: squared_roughness + ); + + /*bsdf retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: 1.-normal_reflectivity, + grazing_reflectivity: 1.-grazing_reflectivity, + base: backscattering_glossy_bsdf, + layer: custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + );*/ + + // if normal_reflectivity and grazing_reflectivity are 1 and weight is 1, just the layer is used + bsdf opt_retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: enable_retroreflection ? 1.-normal_reflectivity : 1, + grazing_reflectivity: enable_retroreflection ? 1.-grazing_reflectivity : 1, + base: backscattering_glossy_bsdf, + layer: custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + // + // End RETROREFLECTION SUPPORT + // + + bsdf directional_factor_bsdf = df::directional_factor( + normal_tint: ao_weighted_base_color, + grazing_tint: color(1.0, 1.0, 1.0), + exponent: 5.0f, + base: ggx_smith_bsdf + ); + + // CLEARCOAT + bsdf omni_PBR_bsdf = df::weighted_layer( + weight: metallic, + layer: directional_factor_bsdf, + base: opt_retroreflection_bsdf, //enable_retroreflection ? retroreflection_bsdf : custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + bsdf clearcoat_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + roughness_v: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + 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 opt_opaque_clearcoat = df::weighted_layer( + weight: enable_clearcoat ? clearcoat_transparency : 1, + layer: ::df::tint(tint: enable_clearcoat ? clearcoat_tint : color(1), base: omni_PBR_bsdf), + base: ::df::diffuse_reflection_bsdf(tint: clearcoat_tint) + ); + + bsdf opt_omni_PBR_coated_bsdf = df::fresnel_layer( + ior: clearcoat_ior, + weight: enable_clearcoat ? clearcoat_weight : 0, + layer: clearcoat_bsdf, + base: opt_opaque_clearcoat, + normal: clearcoat_normal + ); + + bsdf final_bsdf = opt_omni_PBR_coated_bsdf; +} in material( + thin_walled: false, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + geometry: material_geometry( + normal: enable_clearcoat ? state::normal() : normal, + cutout_opacity: enable_opacity ? (enable_opacity_cutout ? (alpha < alpha_cutout_cutoff ? 0.0 : 1.0) : alpha) : 1.0 + ) +); diff --git a/assets/objects/vomp/spatula_15/materials/SimPBR_Opacity.mdl b/assets/objects/vomp/spatula_15/materials/SimPBR_Opacity.mdl new file mode 100644 index 0000000000000000000000000000000000000000..cf0a3ba759fc0b873d174b410b31759b1d426307 --- /dev/null +++ b/assets/objects/vomp/spatula_15/materials/SimPBR_Opacity.mdl @@ -0,0 +1,651 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +import ::nvidia::core_definitions::file_texture; +import ::nvidia::core_definitions::normalmap_texture; + +float4 raw_file_texture( + uniform texture_2d texture + [[ anno::description("The input texture") ]], + base::texture_coordinate_info uvw = base::texture_coordinate_info() + [[ anno::description("Custom value for texture coordinate") ]], + 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") ]] +) +[[ + anno::description("General texturing function for 2D bitmap texture stored in a file"), + anno::noinline() +]] +{ + return tex::lookup_float4(texture, float2(uvw.position.x, uvw.position.y), wrap_u, wrap_v, crop_u, crop_v); +} + +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 SimPBR_Opacity( + // -------------------- DIFFUSE REFLECTION ---------------------- + uniform color diffuse_color_constant = color(0.2f) + [[ + anno::display_name("Albedo Base Color"), + anno::description("The base albedo color to use if no texture is specified"), + anno::in_group("Diffuse") + ]], + uniform texture_2d diffuse_texture = texture_2d() + [[ + anno::display_name("Albedo Map"), + anno::description("The texture specifying the albedo value to use"), + anno::in_group("Diffuse") + ]], + uniform color diffuse_tint = color(1.0f) + [[ + anno::display_name("Albedo Tint"), + anno::description("This tints the albedo color or texture contant"), + anno::in_group("Diffuse") + ]], + + // -------------------- SPECULAR REFLECTION ---------------------- + uniform 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + uniform float anisotropy_constant = 0.0f + [[ + anno::display_name("Anisotropy Amount"), + anno::hard_range(-1.,1.), + anno::description("0 for isotropic, extents of -1 to 1 for anisotropy"), + anno::in_group("Specular") + ]], + uniform float anisotropy_texture_influence = 0.0f + [[ + anno::display_name("Anisotropy Map Influence"), + anno::hard_range(0.0, 1.), + anno::description("Blends between the constant value and the lookup of the anisotropy texture"), + anno::in_group("Specular") + ]], + uniform texture_2d anisotropy_texture = texture_2d() + [[ + anno::display_name("Anisotropy Map"), + anno::in_group("Specular") + ]], + + uniform float metallic_constant = 0.f + [[ + anno::display_name("Metallic Amount"), + anno::hard_range(0.0,1.), + anno::description("Metallic Material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d metallic_texture = texture_2d() + [[ + anno::display_name("Metallic Map"), + anno::in_group("Specular") + ]], + + // -------------------- ORM ---------------------- + uniform bool enable_ORM_texture = true + [[ + 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") + ]], + + // -------------------- 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") + ]], + 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") + ]], + 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") + ]], + + // -------------------- REFLECTIVITY ---------------------- + uniform bool enable_retroreflection = false + [[ + anno::display_name("Enable Retroreflection"), + anno::in_group("Reflectivity") + ]], + color retroreflection_color = color(.182,.800,.000) + [[ + anno::display_name("Retro-reflection color"), + anno::description("The color of the retroreflection"), + anno::in_group("Reflectivity") + ]], + uniform float normal_reflectivity = 0.5 + [[ + anno::display_name("Retro-reflection weight facing"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for geometry facing the viewer"), + anno::in_group("Reflectivity") + ]], + uniform float grazing_reflectivity = 1.0 + [[ + anno::display_name("Retro-reflection weight edge"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for the reflectivity at geometry edges"), + anno::in_group("Reflectivity") + ]], + + // -------------------- AMBIENT OCCLUSION ---------------------- + 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") + ]], + 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") + ]], + uniform 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_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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- ALPHA ---------------------- + uniform bool enable_alpha = true + [[ + anno::display_name("Enable Alpha"), + anno::description("Enables or disables alpha functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_constant = 1.0 + [[ + anno::display_name("Alpha Fallback Constant"), + anno::description("The base alpha constant to use if no texture is specified"), + anno::in_group("Alpha") + ]], + uniform texture_2d opacity_texture = texture_2d() + [[ + anno::display_name("Opacity Map"), + anno::description("The texture specifying the opacity value to use"), + anno::in_group("Alpha") + ]], + uniform bool enable_alpha_cutout = false + [[ + anno::display_name("Enable Alpha Cutout"), + anno::description("Enables or disables alpha cutout functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_cutout_cutoff = 1.f + [[ + anno::enable_if("enable_alpha_cutout == true"), + anno::hard_range(0.0, 1.0), + anno::display_name("Alpha Cutout Cutoff"), + anno::description("The cutoff value to to render as transparent up to and opaque past"), + anno::in_group("Alpha") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("Normal Map"), + anno::in_group("Normal") + ]], + + // -------------------- UV ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Scale"), + anno::description("Larger number increases size of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR Opaque Alpha Cutout"), + anno::description("Supports the opaque alpha cutout material model of the Sim Renderer"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "opaque", "alpha", "cutout", "omniverse", "generic")) +]] + = let { + + 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: 0, + projection_type: base::projection_cubic ) : + base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw ); + + // Diffuse Color Lookup and AO + float4 base_lookup = tex::texture_isvalid(diffuse_texture) ? raw_file_texture(texture: diffuse_texture, uvw: transformed_uvw) : float4(1, 1, 1, 1); + + float opacityValue = tex::texture_isvalid(opacity_texture) ? raw_file_texture(texture: opacity_texture, uvw: transformed_uvw).x : alpha_constant; + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw + ) : state::normal(); + + float3 clearcoat_normal = base::tangent_space_normal_texture( + texture: clearcoat_normalmap_texture, + factor: clearcoat_bump_factor, + uvw: uvw + ); + + float3 flattened_clearcoat_normal = ::math::lerp(normal_lookup, ::state::normal(), clearcoat_flatten); + float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? clearcoat_normal : flattened_clearcoat_normal; + + float ao_lookup = tex::texture_isvalid(ao_texture) ? + raw_file_texture(texture: ao_texture, uvw: transformed_uvw).x : + 1.0f + [[anno::unused("Currently unused in material, may be utilized in the future")]]; + + color diffuse_color = tex::texture_isvalid(diffuse_texture) ? color(base_lookup.x, base_lookup.y, base_lookup.z) : diffuse_color_constant; + color base_color = multiply_colors(diffuse_color, diffuse_tint, 1.0).tint; + + float3 ORM_lookup = tex::lookup_float3( + tex: ORM_texture, + coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) + ); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + raw_file_texture(texture: reflectionroughness_texture, uvw: transformed_uvw).x : + reflection_roughness_constant; + float anisotropy_lookup = tex::texture_isvalid(anisotropy_texture) ? + (raw_file_texture(texture: anisotropy_texture, uvw: transformed_uvw).x * 2.0f - 1.0f) : + anisotropy_constant; + float metallic_lookup = tex::texture_isvalid(metallic_texture) ? + raw_file_texture(texture: metallic_texture, uvw: transformed_uvw).x : + metallic_constant; + + float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup; + float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup; + color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : color(ao_lookup); + + color ao_weighted_base_color = multiply_colors(base_color, ao_color, ao_to_diffuse).tint; + + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); + float anisotropy = math::lerp(anisotropy_constant, anisotropy_lookup, anisotropy_texture_influence); + float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); + + float squared_roughness = reflection_roughness * reflection_roughness; + float roughness_u = squared_roughness * (1 + anisotropy); + float roughness_v = squared_roughness * (1 - anisotropy); + + bsdf diffuse_bsdf = df::weighted_layer( + weight: 1.0, + layer: df::diffuse_reflection_bsdf( + tint: ao_weighted_base_color, + roughness: 0.f ), + base: bsdf(), + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_u, + roughness_v: roughness_v, + tint: color(1.0, 1.0, 1.0), + mode: df::scatter_reflect + ); + + bsdf custom_curve_layer_bsdf = df::custom_curve_layer( + normal_reflectivity: 0.03, + grazing_reflectivity: 1.0, + exponent: 5.0, + weight: float(1.0), + layer: ggx_smith_bsdf, + base: diffuse_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + // + // Begin RETROREFLECTION SUPPORT + // + bsdf backscattering_glossy_bsdf = df::backscattering_glossy_reflection_bsdf( + tint: retroreflection_color, + roughness_u: reflection_roughness * reflection_roughness + ); + + bsdf retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: 1.-normal_reflectivity, + grazing_reflectivity: 1.-grazing_reflectivity, + base: backscattering_glossy_bsdf, + layer: diffuse_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + // + // End RETROREFLECTION SUPPORT + // + + bsdf directional_factor_bsdf = df::directional_factor( + normal_tint: ao_weighted_base_color, + grazing_tint: color(1.0, 1.0, 1.0), + exponent: 5.0f, + base: ggx_smith_bsdf + ); + + // CLEARCOAT + + bsdf omni_PBR_bsdf = df::weighted_layer( + weight: metallic, + layer: directional_factor_bsdf, + base: enable_retroreflection ? retroreflection_bsdf : custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + bsdf clearcoat_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + roughness_v: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + 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; + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook + ? ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) + : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) + ? tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) + : color(1.0); + +} in material( + thin_walled: false, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission ( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + geometry: material_geometry( + normal: enable_clearcoat ? state::normal() : normal_lookup, + cutout_opacity: enable_alpha ? (enable_alpha_cutout ? (opacityValue < alpha_cutout_cutoff ? 0.0 : 1.0) : opacityValue) : 1.0 + ) +); diff --git a/assets/objects/vomp/spatula_15/materials/SimPBR_Translucent.mdl b/assets/objects/vomp/spatula_15/materials/SimPBR_Translucent.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a60a90d1b946f94c266dabd515d5a15b6c3c9bd --- /dev/null +++ b/assets/objects/vomp/spatula_15/materials/SimPBR_Translucent.mdl @@ -0,0 +1,290 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +import ::nvidia::core_definitions::file_texture; +import ::nvidia::core_definitions::normalmap_texture; + +export material SimPBR_Translucent( + // -------------------- SPECULAR REFLECTION/TRANSMISSION ---------------------- + uniform float ior_constant = 1.1f + [[ + anno::display_name("Index of Refraction"), + anno::hard_range(0.0,5.), + anno::description("Index of Refraction of the material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + // -------------------- VOLUME ---------------------- + color transmittance_color = color(1.0, 1.0f, 1.0f) + [[ + anno::display_name("Transmittance Color"), + anno::description("Expected transmittance after the specified transmittance distance through the volume."), + anno::in_group("Volume") + ]], + float transmittance_measurement_distance = 1.0f + [[ + anno::display_name("Transmittance Measurement Distance"), + anno::description("Distance to match the transmittance through the volume at."), + anno::in_group("Volume") + ]], + + // -------------------- EMISSIVE ---------------------- + uniform bool enable_thin_walled = false + [[ + anno::display_name("Enable Thin Walled"), + anno::description("Enables thin walled logic"), + anno::in_group("Geometry") + ]], + + // -------------------- 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_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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("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 ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Tiling"), + anno::description("Controls the repetition of the texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR Translucent"), + anno::description("Supports the translucent material model of the Sim Renderer"), + anno::in_group("SimReady"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "translucent", "omniverse", "generic")) +]] + = let { + 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: 0, + projection_type: base::projection_cubic + ) : base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw + ); + float2 uv = float2(transformed_uvw.position.x, transformed_uvw.position.y); + + color volume_absorption_coefficient = -math::log(transmittance_color) / (transmittance_measurement_distance*0.01); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + tex::lookup_float4(tex: reflectionroughness_texture, coord: uv).x : reflection_roughness_constant; + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_lookup, reflection_roughness_texture_influence); + + float roughness_squared = reflection_roughness * reflection_roughness; + + bsdf final_bsdf(enable_thin_walled ? + ::df::fresnel_layer( + ior_constant, + 1.f, + ::df::microfacet_ggx_smith_bsdf( + roughness_squared, + roughness_squared, + color(1.f, 1.f, 1.f), + ::state::texture_tangent_u(0), + ::df::scatter_reflect, + "" + ), + ::df::specular_bsdf( + transmittance_color, + ::df::scatter_transmit, + "" + ), ::state::normal()) + : ::df::microfacet_ggx_smith_bsdf( + roughness_squared, + roughness_squared, + color(1.f, 1.f, 1.f), + ::state::texture_tangent_u(0), + ::df::scatter_reflect_transmit, + "" + )); + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook ? + ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) ? + tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) : color(1.0); + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw, + flip_tangent_u: flip_tangent_u, + flip_tangent_v: flip_tangent_v + ) : state::normal(); +} in material( + thin_walled: enable_thin_walled, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission ( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + ior: color(ior_constant), + volume: material_volume( + scattering: df::anisotropic_vdf(), + absorption_coefficient: volume_absorption_coefficient, + scattering_coefficient: color(0.0f, 0.0f, 0.0f) + ), + geometry: material_geometry( + normal: normal_lookup + ) +); diff --git a/assets/objects/vomp/spatula_15/textures/Spatulas_Set02_Opacity.png b/assets/objects/vomp/spatula_15/textures/Spatulas_Set02_Opacity.png new file mode 100644 index 0000000000000000000000000000000000000000..776aabedf22973ce066a9728e1d4a2e65365db5d Binary files /dev/null and b/assets/objects/vomp/spatula_15/textures/Spatulas_Set02_Opacity.png differ diff --git a/assets/objects/vomp/spatula_16/materials/SimPBR.mdl b/assets/objects/vomp/spatula_16/materials/SimPBR.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5883146f569e93208db72c08a810b7d71eaeece7 --- /dev/null +++ b/assets/objects/vomp/spatula_16/materials/SimPBR.mdl @@ -0,0 +1,562 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + + +using .::SimPBR_Model import *; +using .::baking_annotations import *; + +export material SimPBR( + // -------------------- DIFFUSE REFLECTION ---------------------- + uniform color diffuse_color_constant = color(0.2f) + [[ + anno::display_name("Albedo Base Color"), + anno::description("The base albedo color to use if no texture is specified"), + anno::in_group("Diffuse") + ]], + uniform texture_2d diffuse_texture = texture_2d() + [[ + anno::display_name("Albedo Map"), + anno::description("The texture specifying the albedo value to use"), + anno::in_group("Diffuse") + ]], + uniform color diffuse_tint = color(1.0f) + [[ + anno::display_name("Albedo Tint"), + anno::description("This tints the albedo color or texture contant"), + anno::in_group("Diffuse") + ]], + uniform bool enable_transmission = false + [[ + anno::display_name("Enable Diffuse Transmission"), + anno::description("Enables the diffuse transmission of light through thin diffuse scattering layer"), + anno::in_group("Diffuse") + ]], + uniform float opacity_ratio = 1.f + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Opacity Ratio"), + anno::description("Amount of opacity"), + anno::in_group("Diffuse") + ]], + uniform color opacity_tint = color(1.0f) + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Diffuse transmission tint"), + anno::description("Base diffuse transmission color"), + anno::in_group("Diffuse") + ]], + uniform float opacity_multiplier = 1.f + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Diffuse transmission multiplier"), + anno::description("Base diffuse transmission multiplier"), + anno::in_group("Diffuse") + ]], + + // -------------------- SPECULAR REFLECTION ---------------------- + 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + float anisotropy_constant = 0.0f + [[ + anno::display_name("Anisotropy Amount"), + anno::hard_range(-1.,1.), + anno::description("0 for isotropic, extents of -1 to 1 for anisotropy"), + anno::in_group("Specular") + ]], + uniform float anisotropy_texture_influence = 0.0f + [[ + anno::display_name("Anisotropy Map Influence"), + anno::hard_range(0.0, 1.), + anno::description("Blends between the constant value and the lookup of the anisotropy texture"), + anno::in_group("Specular") + ]], + uniform texture_2d anisotropy_texture = texture_2d() + [[ + anno::display_name("Anisotropy Map"), + anno::in_group("Specular") + ]], + + float metallic_constant = 0.f + [[ + anno::display_name("Metallic Amount"), + anno::hard_range(0.0,1.), + anno::description("Metallic Material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d metallic_texture = texture_2d() + [[ + anno::display_name("Metallic Map"), + anno::in_group("Specular") + ]], + + float specular_constant = 1.f + [[ + anno::display_name("Specular amount"), + anno::hard_range(0.0, 1.0), + anno::description("Scale of the specular component"), + anno::in_group("Specular") + ]], + uniform texture_2d specular_texture = texture_2d() + [[ + anno::display_name("Specular Map"), + anno::in_group("Specular") + ]], + + // -------------------- ORM ---------------------- + uniform bool enable_ORM_texture = true + [[ + 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") + ]], + + // -------------------- 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") + ]], + 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") + ]], + + float3 clearcoat_normal_input = float3(0.0, 0.0, 0.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") + ]], + + uniform bool clearcoat_flip_tangent_u = false + [[ + anno::display_name("Clearcoat Normal Map Flip U Tangent"), + anno::in_group("Clearcoat") + ]], + uniform bool clearcoat_flip_tangent_v = true + [[ + anno::display_name("Clearcoat Normal Map Flip V Tangent"), + anno::in_group("Clearcoat") + ]], + + + // -------------------- REFLECTIVITY ---------------------- + uniform bool enable_retroreflection = false + [[ + anno::display_name("Enable Retroreflection"), + anno::in_group("Reflectivity") + ]], + color retroreflection_tint = color(.182,.800,.000) + [[ + anno::display_name("Retro-reflection tint"), + anno::description("The tint of the retroreflection"), + anno::in_group("Reflectivity") + ]], + uniform float normal_reflectivity = 0.5 + [[ + anno::display_name("Retro-reflection weight facing"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for geometry facing the viewer"), + anno::in_group("Reflectivity") + ]], + uniform float grazing_reflectivity = 1.0 + [[ + anno::display_name("Retro-reflection weight edge"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for the reflectivity at geometry edges"), + anno::in_group("Reflectivity") + ]], + + // -------------------- AMBIENT OCCLUSION ---------------------- + 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") + ]], + float ao_input = 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") + ]], + + // -------------------- 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") + ]], + uniform 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") + ]], + + color emissive_mask_input = color(1.0), + 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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- ALPHA ---------------------- + uniform bool enable_opacity = false + [[ + anno::display_name("Enable Opacity"), + anno::description("Enables or disables alpha functionality"), + anno::in_group("Alpha") + ]], + float alpha_constant = 1.0 + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Opacity Fallback Constant"), + anno::hard_range(0.0, 1.0), + anno::description("The base alpha constant to use if no texture is specified"), + anno::in_group("Alpha") + ]], + uniform texture_2d opacity_texture = texture_2d() + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Opacity Map"), + anno::description("The texture specifying the opacity value to use"), + anno::in_group("Alpha") + ]], + uniform bool enable_opacity_cutout = false + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Enable Alpha Cutout"), + anno::description("Enables or disables alpha cutout functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_cutout_cutoff = 1.f + [[ + anno::enable_if("enable_opacity == true"), + anno::enable_if("enable_opacity_cutout == true"), + anno::hard_range(0.0, 1.0), + anno::display_name("Alpha Cutout Cutoff"), + anno::description("The cutoff value to to render as transparent up to and opaque past"), + anno::in_group("Alpha") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + + float3 normal_input = state::normal(), + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("Normal Map"), + anno::in_group("Normal") + ]], + uniform bool flip_tangent_u = false + [[ + anno::display_name("Normal Map Flip U Tangent"), + anno::description("Flips the U Tangent vector."), + anno::in_group("Normal") + ]], + uniform bool flip_tangent_v = true + [[ + anno::display_name("Normal Map Flip V Tangent"), + anno::description("Flips the V Tangent vector. By Default, SimPBR materials setup for DirectX normal maps. Set Normal Map Flip V = false for OpenGL."), + anno::in_group("Normal") + ]], + + // -------------------- UV ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Tiling"), + anno::description("Controls repetition of the texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR"), + anno::description("Supports the opaque alpha cutout material model of the Sim Renderer"), + anno::in_group("SimReady"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "opaque", "alpha", "cutout", "omniverse", "generic")) +]] + = let { + 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: 0, + projection_type: base::projection_cubic + ) : base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw + ); + float2 uv = float2(transformed_uvw.position.x, transformed_uvw.position.y); + + // Diffuse Color Lookup and AO + float4 base_lookup = tex::texture_isvalid(diffuse_texture) ? tex::lookup_float4(tex: diffuse_texture, coord: uv) : float4(1, 1, 1, 1); + + float opacityValue = tex::texture_isvalid(opacity_texture) ? tex::lookup_float4(tex: opacity_texture, coord: uv).w : alpha_constant; + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw, + flip_tangent_u: flip_tangent_u, + flip_tangent_v: flip_tangent_v + ) : normal_input; + + float3 clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? + base::tangent_space_normal_texture( + texture: clearcoat_normalmap_texture, + factor: clearcoat_bump_factor, + uvw: uvw, + flip_tangent_u: clearcoat_flip_tangent_u, + flip_tangent_v: clearcoat_flip_tangent_v + ) : clearcoat_normal_input; + + float3 flattened_clearcoat_normal = ::math::lerp(normal_lookup, ::state::normal(), clearcoat_flatten); + float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? clearcoat_normal : flattened_clearcoat_normal; + + float ao_lookup = tex::texture_isvalid(ao_texture) ? tex::lookup_float4(tex: ao_texture, coord: uv).x : ao_input; + + color diffuse_color = tex::texture_isvalid(diffuse_texture) ? color(base_lookup.x, base_lookup.y, base_lookup.z) : diffuse_color_constant; + + float3 ORM_lookup = tex::lookup_float3( + tex: ORM_texture, + coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) + ); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + tex::lookup_float4(tex: reflectionroughness_texture, coord: uv).x : reflection_roughness_constant; + float anisotropy_lookup = tex::texture_isvalid(anisotropy_texture) ? + (tex::lookup_float4(tex: anisotropy_texture, coord: uv).x * 2.0f - 1.0f) : anisotropy_constant; + float metallic_lookup = tex::texture_isvalid(metallic_texture) ? + tex::lookup_float4(tex: metallic_texture, coord: uv).x : metallic_constant; + float specular_lookup = tex::texture_isvalid(specular_texture) ? + tex::lookup_float4(tex: specular_texture, coord: uv).x : specular_constant; + + float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup; + float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup; + float ao = enable_ORM_texture ? ORM_lookup.x : ao_lookup; + + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); + float anisotropy = math::lerp(anisotropy_constant, anisotropy_lookup, anisotropy_texture_influence); + float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook ? + ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) ? + tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) : emissive_mask_input; + +} in SimPBR_Model( + diffuse_color: diffuse_color, + diffuse_tint: diffuse_tint, + roughness: reflection_roughness, + anisotropy: anisotropy, + metallic: metallic, + specular: specular_lookup, + normal: normal_lookup, + enable_clearcoat: enable_clearcoat, + clearcoat_tint: clearcoat_tint, + clearcoat_transparency: clearcoat_transparency, + clearcoat_reflection_roughness: clearcoat_reflection_roughness, + clearcoat_weight: clearcoat_weight, + clearcoat_ior: clearcoat_ior, + clearcoat_normal: final_clearcoat_normal, + enable_retroreflection: enable_retroreflection, + retroreflection_tint: retroreflection_tint, + normal_reflectivity: normal_reflectivity, + grazing_reflectivity: grazing_reflectivity, + ao_to_diffuse: ao_to_diffuse, + ao: ao, + enable_emission: enable_emission, + emissive_color: emissive_color, + emissive_mask: emissive_mask, + emissive_intensity: emissive_intensity, + enable_opacity: enable_opacity, + alpha: opacityValue, + enable_opacity_cutout: enable_opacity_cutout, + alpha_cutout_cutoff: alpha_cutout_cutoff, + opacity_ratio: enable_transmission ? opacity_ratio : 1.0, + opacity_tint : opacity_tint, + opacity_multiplier : opacity_multiplier +); diff --git a/assets/objects/vomp/spatula_16/materials/SimPBR_Model.mdl b/assets/objects/vomp/spatula_16/materials/SimPBR_Model.mdl new file mode 100644 index 0000000000000000000000000000000000000000..dccd3808942cb243a4e03f77f684935081b31ec5 --- /dev/null +++ b/assets/objects/vomp/spatula_16/materials/SimPBR_Model.mdl @@ -0,0 +1,212 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +using .::baking_annotations import *; + +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 + ); +} + +export material SimPBR_Model( + color diffuse_color = color(0.2f) [[ target_baked_argument("diffuse_texture", "diffuse_color_constant", "RGBA8_UNORM") ]], + uniform color diffuse_tint = color(1.0f), + float roughness = 0.5f [[ target_baked_argument("reflectionroughness_texture", "reflection_roughness_constant", "R8_UNORM") ]], + float anisotropy = 0.0f [[ target_baked_argument("anisotropy_texture", "anisotropy_constant", "R8_SNORM") ]], + float metallic = 0.f [[ target_baked_argument("metallic_texture", "metallic_constant", "R8_UNORM") ]], + float specular = 1.f [[ target_baked_argument("specular_texture", "specular_constant", "R8_UNORM") ]], + float3 normal = float3(0.0, 0.0, 0.0) [[ target_baked_argument("normalmap_texture", "normal_input", "RGBA8_SNORM", baking_annotations::TRANSFORM_UNORM_VECTOR) ]], + uniform bool enable_clearcoat = false, + color clearcoat_tint = color(1.0f), + float clearcoat_transparency = 1.0f, + float clearcoat_reflection_roughness = 0.0f, + float clearcoat_weight = 1.0f, + float clearcoat_ior = 1.56f, + float3 clearcoat_normal = float3(0.0, 0.0, 0.0) [[ target_baked_argument("clearcoat_normalmap_texture", "clearcoat_normal_input", "RGBA8_SNORM", baking_annotations::TRANSFORM_UNORM_VECTOR) ]], + uniform bool enable_retroreflection = false, + color retroreflection_tint = color(.182,.800,.000), + uniform float normal_reflectivity = 0.5, + uniform float grazing_reflectivity = 1.0, + float ao_to_diffuse = 0.0, + float ao = 1.0f [[ target_baked_argument("ao_texture", "ao_input", "R8_UNORM") ]], + uniform bool enable_emission = false, + uniform color emissive_color = color(1.0, 0.1, 0.1), + color emissive_mask = color(1.0, 0.1, 0.1) [[ target_baked_argument("emissive_mask_texture", "emissive_mask_input", "R8_UNORM") ]], + uniform float emissive_intensity = 40.f, + uniform bool enable_opacity = false, + float alpha = 1.0, + uniform bool enable_opacity_cutout = false, + uniform float alpha_cutout_cutoff = 1.f, + uniform float opacity_ratio = 1.f, + uniform color opacity_tint = color(1.0f), + uniform float opacity_multiplier = 1.f +) +[[ + target_material_model(), + target_material_rendering("..::SimPBR::SimPBR") +]] + = let { + color base_color = multiply_colors(diffuse_color, diffuse_tint, 1.0).tint; + color ao_weighted_base_color = multiply_colors(base_color, color(ao), ao_to_diffuse).tint; + + float squared_roughness = roughness * roughness; + float roughness_u = squared_roughness * (1 + anisotropy); + float roughness_v = squared_roughness * (1 - anisotropy); + + color diffuse_transmission_color = base_color * opacity_tint * opacity_multiplier; + + bsdf diffuse_bsdf = df::weighted_layer( + weight: opacity_ratio, + layer: df::diffuse_reflection_bsdf( + tint: ao_weighted_base_color, + roughness: 0.0f + ), + base: df::diffuse_transmission_bsdf(tint: diffuse_transmission_color), + normal: enable_clearcoat ? normal : state::normal() + ); + + bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_u, + roughness_v: roughness_v, + tint: color(1.0, 1.0, 1.0), + mode: df::scatter_reflect + ); + + bsdf custom_curve_layer_bsdf = df::custom_curve_layer( + normal_reflectivity: 0.03, + grazing_reflectivity: 1.0, + exponent: 5.0, + weight: specular, + layer: ggx_smith_bsdf, + base: diffuse_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + // + // Begin RETROREFLECTION SUPPORT + // + color final_retroreflection_color = multiply_colors(retroreflection_tint, base_color, 1.0).tint; + bsdf backscattering_glossy_bsdf = df::backscattering_glossy_reflection_bsdf( + tint: final_retroreflection_color, + roughness_u: squared_roughness + ); + + /*bsdf retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: 1.-normal_reflectivity, + grazing_reflectivity: 1.-grazing_reflectivity, + base: backscattering_glossy_bsdf, + layer: custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + );*/ + + // if normal_reflectivity and grazing_reflectivity are 1 and weight is 1, just the layer is used + bsdf opt_retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: enable_retroreflection ? 1.-normal_reflectivity : 1, + grazing_reflectivity: enable_retroreflection ? 1.-grazing_reflectivity : 1, + base: backscattering_glossy_bsdf, + layer: custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + // + // End RETROREFLECTION SUPPORT + // + + bsdf directional_factor_bsdf = df::directional_factor( + normal_tint: ao_weighted_base_color, + grazing_tint: color(1.0, 1.0, 1.0), + exponent: 5.0f, + base: ggx_smith_bsdf + ); + + // CLEARCOAT + bsdf omni_PBR_bsdf = df::weighted_layer( + weight: metallic, + layer: directional_factor_bsdf, + base: opt_retroreflection_bsdf, //enable_retroreflection ? retroreflection_bsdf : custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + bsdf clearcoat_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + roughness_v: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + 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 opt_opaque_clearcoat = df::weighted_layer( + weight: enable_clearcoat ? clearcoat_transparency : 1, + layer: ::df::tint(tint: enable_clearcoat ? clearcoat_tint : color(1), base: omni_PBR_bsdf), + base: ::df::diffuse_reflection_bsdf(tint: clearcoat_tint) + ); + + bsdf opt_omni_PBR_coated_bsdf = df::fresnel_layer( + ior: clearcoat_ior, + weight: enable_clearcoat ? clearcoat_weight : 0, + layer: clearcoat_bsdf, + base: opt_opaque_clearcoat, + normal: clearcoat_normal + ); + + bsdf final_bsdf = opt_omni_PBR_coated_bsdf; +} in material( + thin_walled: false, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + geometry: material_geometry( + normal: enable_clearcoat ? state::normal() : normal, + cutout_opacity: enable_opacity ? (enable_opacity_cutout ? (alpha < alpha_cutout_cutoff ? 0.0 : 1.0) : alpha) : 1.0 + ) +); diff --git a/assets/objects/vomp/spatula_16/materials/SimPBR_Opacity.mdl b/assets/objects/vomp/spatula_16/materials/SimPBR_Opacity.mdl new file mode 100644 index 0000000000000000000000000000000000000000..cf0a3ba759fc0b873d174b410b31759b1d426307 --- /dev/null +++ b/assets/objects/vomp/spatula_16/materials/SimPBR_Opacity.mdl @@ -0,0 +1,651 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +import ::nvidia::core_definitions::file_texture; +import ::nvidia::core_definitions::normalmap_texture; + +float4 raw_file_texture( + uniform texture_2d texture + [[ anno::description("The input texture") ]], + base::texture_coordinate_info uvw = base::texture_coordinate_info() + [[ anno::description("Custom value for texture coordinate") ]], + 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") ]] +) +[[ + anno::description("General texturing function for 2D bitmap texture stored in a file"), + anno::noinline() +]] +{ + return tex::lookup_float4(texture, float2(uvw.position.x, uvw.position.y), wrap_u, wrap_v, crop_u, crop_v); +} + +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 SimPBR_Opacity( + // -------------------- DIFFUSE REFLECTION ---------------------- + uniform color diffuse_color_constant = color(0.2f) + [[ + anno::display_name("Albedo Base Color"), + anno::description("The base albedo color to use if no texture is specified"), + anno::in_group("Diffuse") + ]], + uniform texture_2d diffuse_texture = texture_2d() + [[ + anno::display_name("Albedo Map"), + anno::description("The texture specifying the albedo value to use"), + anno::in_group("Diffuse") + ]], + uniform color diffuse_tint = color(1.0f) + [[ + anno::display_name("Albedo Tint"), + anno::description("This tints the albedo color or texture contant"), + anno::in_group("Diffuse") + ]], + + // -------------------- SPECULAR REFLECTION ---------------------- + uniform 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + uniform float anisotropy_constant = 0.0f + [[ + anno::display_name("Anisotropy Amount"), + anno::hard_range(-1.,1.), + anno::description("0 for isotropic, extents of -1 to 1 for anisotropy"), + anno::in_group("Specular") + ]], + uniform float anisotropy_texture_influence = 0.0f + [[ + anno::display_name("Anisotropy Map Influence"), + anno::hard_range(0.0, 1.), + anno::description("Blends between the constant value and the lookup of the anisotropy texture"), + anno::in_group("Specular") + ]], + uniform texture_2d anisotropy_texture = texture_2d() + [[ + anno::display_name("Anisotropy Map"), + anno::in_group("Specular") + ]], + + uniform float metallic_constant = 0.f + [[ + anno::display_name("Metallic Amount"), + anno::hard_range(0.0,1.), + anno::description("Metallic Material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d metallic_texture = texture_2d() + [[ + anno::display_name("Metallic Map"), + anno::in_group("Specular") + ]], + + // -------------------- ORM ---------------------- + uniform bool enable_ORM_texture = true + [[ + 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") + ]], + + // -------------------- 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") + ]], + 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") + ]], + 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") + ]], + + // -------------------- REFLECTIVITY ---------------------- + uniform bool enable_retroreflection = false + [[ + anno::display_name("Enable Retroreflection"), + anno::in_group("Reflectivity") + ]], + color retroreflection_color = color(.182,.800,.000) + [[ + anno::display_name("Retro-reflection color"), + anno::description("The color of the retroreflection"), + anno::in_group("Reflectivity") + ]], + uniform float normal_reflectivity = 0.5 + [[ + anno::display_name("Retro-reflection weight facing"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for geometry facing the viewer"), + anno::in_group("Reflectivity") + ]], + uniform float grazing_reflectivity = 1.0 + [[ + anno::display_name("Retro-reflection weight edge"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for the reflectivity at geometry edges"), + anno::in_group("Reflectivity") + ]], + + // -------------------- AMBIENT OCCLUSION ---------------------- + 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") + ]], + 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") + ]], + uniform 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_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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- ALPHA ---------------------- + uniform bool enable_alpha = true + [[ + anno::display_name("Enable Alpha"), + anno::description("Enables or disables alpha functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_constant = 1.0 + [[ + anno::display_name("Alpha Fallback Constant"), + anno::description("The base alpha constant to use if no texture is specified"), + anno::in_group("Alpha") + ]], + uniform texture_2d opacity_texture = texture_2d() + [[ + anno::display_name("Opacity Map"), + anno::description("The texture specifying the opacity value to use"), + anno::in_group("Alpha") + ]], + uniform bool enable_alpha_cutout = false + [[ + anno::display_name("Enable Alpha Cutout"), + anno::description("Enables or disables alpha cutout functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_cutout_cutoff = 1.f + [[ + anno::enable_if("enable_alpha_cutout == true"), + anno::hard_range(0.0, 1.0), + anno::display_name("Alpha Cutout Cutoff"), + anno::description("The cutoff value to to render as transparent up to and opaque past"), + anno::in_group("Alpha") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("Normal Map"), + anno::in_group("Normal") + ]], + + // -------------------- UV ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Scale"), + anno::description("Larger number increases size of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR Opaque Alpha Cutout"), + anno::description("Supports the opaque alpha cutout material model of the Sim Renderer"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "opaque", "alpha", "cutout", "omniverse", "generic")) +]] + = let { + + 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: 0, + projection_type: base::projection_cubic ) : + base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw ); + + // Diffuse Color Lookup and AO + float4 base_lookup = tex::texture_isvalid(diffuse_texture) ? raw_file_texture(texture: diffuse_texture, uvw: transformed_uvw) : float4(1, 1, 1, 1); + + float opacityValue = tex::texture_isvalid(opacity_texture) ? raw_file_texture(texture: opacity_texture, uvw: transformed_uvw).x : alpha_constant; + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw + ) : state::normal(); + + float3 clearcoat_normal = base::tangent_space_normal_texture( + texture: clearcoat_normalmap_texture, + factor: clearcoat_bump_factor, + uvw: uvw + ); + + float3 flattened_clearcoat_normal = ::math::lerp(normal_lookup, ::state::normal(), clearcoat_flatten); + float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? clearcoat_normal : flattened_clearcoat_normal; + + float ao_lookup = tex::texture_isvalid(ao_texture) ? + raw_file_texture(texture: ao_texture, uvw: transformed_uvw).x : + 1.0f + [[anno::unused("Currently unused in material, may be utilized in the future")]]; + + color diffuse_color = tex::texture_isvalid(diffuse_texture) ? color(base_lookup.x, base_lookup.y, base_lookup.z) : diffuse_color_constant; + color base_color = multiply_colors(diffuse_color, diffuse_tint, 1.0).tint; + + float3 ORM_lookup = tex::lookup_float3( + tex: ORM_texture, + coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) + ); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + raw_file_texture(texture: reflectionroughness_texture, uvw: transformed_uvw).x : + reflection_roughness_constant; + float anisotropy_lookup = tex::texture_isvalid(anisotropy_texture) ? + (raw_file_texture(texture: anisotropy_texture, uvw: transformed_uvw).x * 2.0f - 1.0f) : + anisotropy_constant; + float metallic_lookup = tex::texture_isvalid(metallic_texture) ? + raw_file_texture(texture: metallic_texture, uvw: transformed_uvw).x : + metallic_constant; + + float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup; + float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup; + color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : color(ao_lookup); + + color ao_weighted_base_color = multiply_colors(base_color, ao_color, ao_to_diffuse).tint; + + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); + float anisotropy = math::lerp(anisotropy_constant, anisotropy_lookup, anisotropy_texture_influence); + float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); + + float squared_roughness = reflection_roughness * reflection_roughness; + float roughness_u = squared_roughness * (1 + anisotropy); + float roughness_v = squared_roughness * (1 - anisotropy); + + bsdf diffuse_bsdf = df::weighted_layer( + weight: 1.0, + layer: df::diffuse_reflection_bsdf( + tint: ao_weighted_base_color, + roughness: 0.f ), + base: bsdf(), + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_u, + roughness_v: roughness_v, + tint: color(1.0, 1.0, 1.0), + mode: df::scatter_reflect + ); + + bsdf custom_curve_layer_bsdf = df::custom_curve_layer( + normal_reflectivity: 0.03, + grazing_reflectivity: 1.0, + exponent: 5.0, + weight: float(1.0), + layer: ggx_smith_bsdf, + base: diffuse_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + // + // Begin RETROREFLECTION SUPPORT + // + bsdf backscattering_glossy_bsdf = df::backscattering_glossy_reflection_bsdf( + tint: retroreflection_color, + roughness_u: reflection_roughness * reflection_roughness + ); + + bsdf retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: 1.-normal_reflectivity, + grazing_reflectivity: 1.-grazing_reflectivity, + base: backscattering_glossy_bsdf, + layer: diffuse_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + // + // End RETROREFLECTION SUPPORT + // + + bsdf directional_factor_bsdf = df::directional_factor( + normal_tint: ao_weighted_base_color, + grazing_tint: color(1.0, 1.0, 1.0), + exponent: 5.0f, + base: ggx_smith_bsdf + ); + + // CLEARCOAT + + bsdf omni_PBR_bsdf = df::weighted_layer( + weight: metallic, + layer: directional_factor_bsdf, + base: enable_retroreflection ? retroreflection_bsdf : custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + bsdf clearcoat_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + roughness_v: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + 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; + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook + ? ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) + : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) + ? tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) + : color(1.0); + +} in material( + thin_walled: false, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission ( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + geometry: material_geometry( + normal: enable_clearcoat ? state::normal() : normal_lookup, + cutout_opacity: enable_alpha ? (enable_alpha_cutout ? (opacityValue < alpha_cutout_cutoff ? 0.0 : 1.0) : opacityValue) : 1.0 + ) +); diff --git a/assets/objects/vomp/spatula_17/materials/SimPBR.mdl b/assets/objects/vomp/spatula_17/materials/SimPBR.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5883146f569e93208db72c08a810b7d71eaeece7 --- /dev/null +++ b/assets/objects/vomp/spatula_17/materials/SimPBR.mdl @@ -0,0 +1,562 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + + +using .::SimPBR_Model import *; +using .::baking_annotations import *; + +export material SimPBR( + // -------------------- DIFFUSE REFLECTION ---------------------- + uniform color diffuse_color_constant = color(0.2f) + [[ + anno::display_name("Albedo Base Color"), + anno::description("The base albedo color to use if no texture is specified"), + anno::in_group("Diffuse") + ]], + uniform texture_2d diffuse_texture = texture_2d() + [[ + anno::display_name("Albedo Map"), + anno::description("The texture specifying the albedo value to use"), + anno::in_group("Diffuse") + ]], + uniform color diffuse_tint = color(1.0f) + [[ + anno::display_name("Albedo Tint"), + anno::description("This tints the albedo color or texture contant"), + anno::in_group("Diffuse") + ]], + uniform bool enable_transmission = false + [[ + anno::display_name("Enable Diffuse Transmission"), + anno::description("Enables the diffuse transmission of light through thin diffuse scattering layer"), + anno::in_group("Diffuse") + ]], + uniform float opacity_ratio = 1.f + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Opacity Ratio"), + anno::description("Amount of opacity"), + anno::in_group("Diffuse") + ]], + uniform color opacity_tint = color(1.0f) + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Diffuse transmission tint"), + anno::description("Base diffuse transmission color"), + anno::in_group("Diffuse") + ]], + uniform float opacity_multiplier = 1.f + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Diffuse transmission multiplier"), + anno::description("Base diffuse transmission multiplier"), + anno::in_group("Diffuse") + ]], + + // -------------------- SPECULAR REFLECTION ---------------------- + 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + float anisotropy_constant = 0.0f + [[ + anno::display_name("Anisotropy Amount"), + anno::hard_range(-1.,1.), + anno::description("0 for isotropic, extents of -1 to 1 for anisotropy"), + anno::in_group("Specular") + ]], + uniform float anisotropy_texture_influence = 0.0f + [[ + anno::display_name("Anisotropy Map Influence"), + anno::hard_range(0.0, 1.), + anno::description("Blends between the constant value and the lookup of the anisotropy texture"), + anno::in_group("Specular") + ]], + uniform texture_2d anisotropy_texture = texture_2d() + [[ + anno::display_name("Anisotropy Map"), + anno::in_group("Specular") + ]], + + float metallic_constant = 0.f + [[ + anno::display_name("Metallic Amount"), + anno::hard_range(0.0,1.), + anno::description("Metallic Material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d metallic_texture = texture_2d() + [[ + anno::display_name("Metallic Map"), + anno::in_group("Specular") + ]], + + float specular_constant = 1.f + [[ + anno::display_name("Specular amount"), + anno::hard_range(0.0, 1.0), + anno::description("Scale of the specular component"), + anno::in_group("Specular") + ]], + uniform texture_2d specular_texture = texture_2d() + [[ + anno::display_name("Specular Map"), + anno::in_group("Specular") + ]], + + // -------------------- ORM ---------------------- + uniform bool enable_ORM_texture = true + [[ + 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") + ]], + + // -------------------- 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") + ]], + 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") + ]], + + float3 clearcoat_normal_input = float3(0.0, 0.0, 0.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") + ]], + + uniform bool clearcoat_flip_tangent_u = false + [[ + anno::display_name("Clearcoat Normal Map Flip U Tangent"), + anno::in_group("Clearcoat") + ]], + uniform bool clearcoat_flip_tangent_v = true + [[ + anno::display_name("Clearcoat Normal Map Flip V Tangent"), + anno::in_group("Clearcoat") + ]], + + + // -------------------- REFLECTIVITY ---------------------- + uniform bool enable_retroreflection = false + [[ + anno::display_name("Enable Retroreflection"), + anno::in_group("Reflectivity") + ]], + color retroreflection_tint = color(.182,.800,.000) + [[ + anno::display_name("Retro-reflection tint"), + anno::description("The tint of the retroreflection"), + anno::in_group("Reflectivity") + ]], + uniform float normal_reflectivity = 0.5 + [[ + anno::display_name("Retro-reflection weight facing"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for geometry facing the viewer"), + anno::in_group("Reflectivity") + ]], + uniform float grazing_reflectivity = 1.0 + [[ + anno::display_name("Retro-reflection weight edge"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for the reflectivity at geometry edges"), + anno::in_group("Reflectivity") + ]], + + // -------------------- AMBIENT OCCLUSION ---------------------- + 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") + ]], + float ao_input = 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") + ]], + + // -------------------- 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") + ]], + uniform 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") + ]], + + color emissive_mask_input = color(1.0), + 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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- ALPHA ---------------------- + uniform bool enable_opacity = false + [[ + anno::display_name("Enable Opacity"), + anno::description("Enables or disables alpha functionality"), + anno::in_group("Alpha") + ]], + float alpha_constant = 1.0 + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Opacity Fallback Constant"), + anno::hard_range(0.0, 1.0), + anno::description("The base alpha constant to use if no texture is specified"), + anno::in_group("Alpha") + ]], + uniform texture_2d opacity_texture = texture_2d() + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Opacity Map"), + anno::description("The texture specifying the opacity value to use"), + anno::in_group("Alpha") + ]], + uniform bool enable_opacity_cutout = false + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Enable Alpha Cutout"), + anno::description("Enables or disables alpha cutout functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_cutout_cutoff = 1.f + [[ + anno::enable_if("enable_opacity == true"), + anno::enable_if("enable_opacity_cutout == true"), + anno::hard_range(0.0, 1.0), + anno::display_name("Alpha Cutout Cutoff"), + anno::description("The cutoff value to to render as transparent up to and opaque past"), + anno::in_group("Alpha") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + + float3 normal_input = state::normal(), + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("Normal Map"), + anno::in_group("Normal") + ]], + uniform bool flip_tangent_u = false + [[ + anno::display_name("Normal Map Flip U Tangent"), + anno::description("Flips the U Tangent vector."), + anno::in_group("Normal") + ]], + uniform bool flip_tangent_v = true + [[ + anno::display_name("Normal Map Flip V Tangent"), + anno::description("Flips the V Tangent vector. By Default, SimPBR materials setup for DirectX normal maps. Set Normal Map Flip V = false for OpenGL."), + anno::in_group("Normal") + ]], + + // -------------------- UV ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Tiling"), + anno::description("Controls repetition of the texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR"), + anno::description("Supports the opaque alpha cutout material model of the Sim Renderer"), + anno::in_group("SimReady"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "opaque", "alpha", "cutout", "omniverse", "generic")) +]] + = let { + 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: 0, + projection_type: base::projection_cubic + ) : base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw + ); + float2 uv = float2(transformed_uvw.position.x, transformed_uvw.position.y); + + // Diffuse Color Lookup and AO + float4 base_lookup = tex::texture_isvalid(diffuse_texture) ? tex::lookup_float4(tex: diffuse_texture, coord: uv) : float4(1, 1, 1, 1); + + float opacityValue = tex::texture_isvalid(opacity_texture) ? tex::lookup_float4(tex: opacity_texture, coord: uv).w : alpha_constant; + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw, + flip_tangent_u: flip_tangent_u, + flip_tangent_v: flip_tangent_v + ) : normal_input; + + float3 clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? + base::tangent_space_normal_texture( + texture: clearcoat_normalmap_texture, + factor: clearcoat_bump_factor, + uvw: uvw, + flip_tangent_u: clearcoat_flip_tangent_u, + flip_tangent_v: clearcoat_flip_tangent_v + ) : clearcoat_normal_input; + + float3 flattened_clearcoat_normal = ::math::lerp(normal_lookup, ::state::normal(), clearcoat_flatten); + float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? clearcoat_normal : flattened_clearcoat_normal; + + float ao_lookup = tex::texture_isvalid(ao_texture) ? tex::lookup_float4(tex: ao_texture, coord: uv).x : ao_input; + + color diffuse_color = tex::texture_isvalid(diffuse_texture) ? color(base_lookup.x, base_lookup.y, base_lookup.z) : diffuse_color_constant; + + float3 ORM_lookup = tex::lookup_float3( + tex: ORM_texture, + coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) + ); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + tex::lookup_float4(tex: reflectionroughness_texture, coord: uv).x : reflection_roughness_constant; + float anisotropy_lookup = tex::texture_isvalid(anisotropy_texture) ? + (tex::lookup_float4(tex: anisotropy_texture, coord: uv).x * 2.0f - 1.0f) : anisotropy_constant; + float metallic_lookup = tex::texture_isvalid(metallic_texture) ? + tex::lookup_float4(tex: metallic_texture, coord: uv).x : metallic_constant; + float specular_lookup = tex::texture_isvalid(specular_texture) ? + tex::lookup_float4(tex: specular_texture, coord: uv).x : specular_constant; + + float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup; + float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup; + float ao = enable_ORM_texture ? ORM_lookup.x : ao_lookup; + + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); + float anisotropy = math::lerp(anisotropy_constant, anisotropy_lookup, anisotropy_texture_influence); + float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook ? + ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) ? + tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) : emissive_mask_input; + +} in SimPBR_Model( + diffuse_color: diffuse_color, + diffuse_tint: diffuse_tint, + roughness: reflection_roughness, + anisotropy: anisotropy, + metallic: metallic, + specular: specular_lookup, + normal: normal_lookup, + enable_clearcoat: enable_clearcoat, + clearcoat_tint: clearcoat_tint, + clearcoat_transparency: clearcoat_transparency, + clearcoat_reflection_roughness: clearcoat_reflection_roughness, + clearcoat_weight: clearcoat_weight, + clearcoat_ior: clearcoat_ior, + clearcoat_normal: final_clearcoat_normal, + enable_retroreflection: enable_retroreflection, + retroreflection_tint: retroreflection_tint, + normal_reflectivity: normal_reflectivity, + grazing_reflectivity: grazing_reflectivity, + ao_to_diffuse: ao_to_diffuse, + ao: ao, + enable_emission: enable_emission, + emissive_color: emissive_color, + emissive_mask: emissive_mask, + emissive_intensity: emissive_intensity, + enable_opacity: enable_opacity, + alpha: opacityValue, + enable_opacity_cutout: enable_opacity_cutout, + alpha_cutout_cutoff: alpha_cutout_cutoff, + opacity_ratio: enable_transmission ? opacity_ratio : 1.0, + opacity_tint : opacity_tint, + opacity_multiplier : opacity_multiplier +); diff --git a/assets/objects/vomp/spatula_17/materials/SimPBR_Model.mdl b/assets/objects/vomp/spatula_17/materials/SimPBR_Model.mdl new file mode 100644 index 0000000000000000000000000000000000000000..dccd3808942cb243a4e03f77f684935081b31ec5 --- /dev/null +++ b/assets/objects/vomp/spatula_17/materials/SimPBR_Model.mdl @@ -0,0 +1,212 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +using .::baking_annotations import *; + +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 + ); +} + +export material SimPBR_Model( + color diffuse_color = color(0.2f) [[ target_baked_argument("diffuse_texture", "diffuse_color_constant", "RGBA8_UNORM") ]], + uniform color diffuse_tint = color(1.0f), + float roughness = 0.5f [[ target_baked_argument("reflectionroughness_texture", "reflection_roughness_constant", "R8_UNORM") ]], + float anisotropy = 0.0f [[ target_baked_argument("anisotropy_texture", "anisotropy_constant", "R8_SNORM") ]], + float metallic = 0.f [[ target_baked_argument("metallic_texture", "metallic_constant", "R8_UNORM") ]], + float specular = 1.f [[ target_baked_argument("specular_texture", "specular_constant", "R8_UNORM") ]], + float3 normal = float3(0.0, 0.0, 0.0) [[ target_baked_argument("normalmap_texture", "normal_input", "RGBA8_SNORM", baking_annotations::TRANSFORM_UNORM_VECTOR) ]], + uniform bool enable_clearcoat = false, + color clearcoat_tint = color(1.0f), + float clearcoat_transparency = 1.0f, + float clearcoat_reflection_roughness = 0.0f, + float clearcoat_weight = 1.0f, + float clearcoat_ior = 1.56f, + float3 clearcoat_normal = float3(0.0, 0.0, 0.0) [[ target_baked_argument("clearcoat_normalmap_texture", "clearcoat_normal_input", "RGBA8_SNORM", baking_annotations::TRANSFORM_UNORM_VECTOR) ]], + uniform bool enable_retroreflection = false, + color retroreflection_tint = color(.182,.800,.000), + uniform float normal_reflectivity = 0.5, + uniform float grazing_reflectivity = 1.0, + float ao_to_diffuse = 0.0, + float ao = 1.0f [[ target_baked_argument("ao_texture", "ao_input", "R8_UNORM") ]], + uniform bool enable_emission = false, + uniform color emissive_color = color(1.0, 0.1, 0.1), + color emissive_mask = color(1.0, 0.1, 0.1) [[ target_baked_argument("emissive_mask_texture", "emissive_mask_input", "R8_UNORM") ]], + uniform float emissive_intensity = 40.f, + uniform bool enable_opacity = false, + float alpha = 1.0, + uniform bool enable_opacity_cutout = false, + uniform float alpha_cutout_cutoff = 1.f, + uniform float opacity_ratio = 1.f, + uniform color opacity_tint = color(1.0f), + uniform float opacity_multiplier = 1.f +) +[[ + target_material_model(), + target_material_rendering("..::SimPBR::SimPBR") +]] + = let { + color base_color = multiply_colors(diffuse_color, diffuse_tint, 1.0).tint; + color ao_weighted_base_color = multiply_colors(base_color, color(ao), ao_to_diffuse).tint; + + float squared_roughness = roughness * roughness; + float roughness_u = squared_roughness * (1 + anisotropy); + float roughness_v = squared_roughness * (1 - anisotropy); + + color diffuse_transmission_color = base_color * opacity_tint * opacity_multiplier; + + bsdf diffuse_bsdf = df::weighted_layer( + weight: opacity_ratio, + layer: df::diffuse_reflection_bsdf( + tint: ao_weighted_base_color, + roughness: 0.0f + ), + base: df::diffuse_transmission_bsdf(tint: diffuse_transmission_color), + normal: enable_clearcoat ? normal : state::normal() + ); + + bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_u, + roughness_v: roughness_v, + tint: color(1.0, 1.0, 1.0), + mode: df::scatter_reflect + ); + + bsdf custom_curve_layer_bsdf = df::custom_curve_layer( + normal_reflectivity: 0.03, + grazing_reflectivity: 1.0, + exponent: 5.0, + weight: specular, + layer: ggx_smith_bsdf, + base: diffuse_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + // + // Begin RETROREFLECTION SUPPORT + // + color final_retroreflection_color = multiply_colors(retroreflection_tint, base_color, 1.0).tint; + bsdf backscattering_glossy_bsdf = df::backscattering_glossy_reflection_bsdf( + tint: final_retroreflection_color, + roughness_u: squared_roughness + ); + + /*bsdf retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: 1.-normal_reflectivity, + grazing_reflectivity: 1.-grazing_reflectivity, + base: backscattering_glossy_bsdf, + layer: custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + );*/ + + // if normal_reflectivity and grazing_reflectivity are 1 and weight is 1, just the layer is used + bsdf opt_retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: enable_retroreflection ? 1.-normal_reflectivity : 1, + grazing_reflectivity: enable_retroreflection ? 1.-grazing_reflectivity : 1, + base: backscattering_glossy_bsdf, + layer: custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + // + // End RETROREFLECTION SUPPORT + // + + bsdf directional_factor_bsdf = df::directional_factor( + normal_tint: ao_weighted_base_color, + grazing_tint: color(1.0, 1.0, 1.0), + exponent: 5.0f, + base: ggx_smith_bsdf + ); + + // CLEARCOAT + bsdf omni_PBR_bsdf = df::weighted_layer( + weight: metallic, + layer: directional_factor_bsdf, + base: opt_retroreflection_bsdf, //enable_retroreflection ? retroreflection_bsdf : custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + bsdf clearcoat_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + roughness_v: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + 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 opt_opaque_clearcoat = df::weighted_layer( + weight: enable_clearcoat ? clearcoat_transparency : 1, + layer: ::df::tint(tint: enable_clearcoat ? clearcoat_tint : color(1), base: omni_PBR_bsdf), + base: ::df::diffuse_reflection_bsdf(tint: clearcoat_tint) + ); + + bsdf opt_omni_PBR_coated_bsdf = df::fresnel_layer( + ior: clearcoat_ior, + weight: enable_clearcoat ? clearcoat_weight : 0, + layer: clearcoat_bsdf, + base: opt_opaque_clearcoat, + normal: clearcoat_normal + ); + + bsdf final_bsdf = opt_omni_PBR_coated_bsdf; +} in material( + thin_walled: false, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + geometry: material_geometry( + normal: enable_clearcoat ? state::normal() : normal, + cutout_opacity: enable_opacity ? (enable_opacity_cutout ? (alpha < alpha_cutout_cutoff ? 0.0 : 1.0) : alpha) : 1.0 + ) +); diff --git a/assets/objects/vomp/spatula_17/materials/SimPBR_Opacity.mdl b/assets/objects/vomp/spatula_17/materials/SimPBR_Opacity.mdl new file mode 100644 index 0000000000000000000000000000000000000000..cf0a3ba759fc0b873d174b410b31759b1d426307 --- /dev/null +++ b/assets/objects/vomp/spatula_17/materials/SimPBR_Opacity.mdl @@ -0,0 +1,651 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +import ::nvidia::core_definitions::file_texture; +import ::nvidia::core_definitions::normalmap_texture; + +float4 raw_file_texture( + uniform texture_2d texture + [[ anno::description("The input texture") ]], + base::texture_coordinate_info uvw = base::texture_coordinate_info() + [[ anno::description("Custom value for texture coordinate") ]], + 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") ]] +) +[[ + anno::description("General texturing function for 2D bitmap texture stored in a file"), + anno::noinline() +]] +{ + return tex::lookup_float4(texture, float2(uvw.position.x, uvw.position.y), wrap_u, wrap_v, crop_u, crop_v); +} + +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 SimPBR_Opacity( + // -------------------- DIFFUSE REFLECTION ---------------------- + uniform color diffuse_color_constant = color(0.2f) + [[ + anno::display_name("Albedo Base Color"), + anno::description("The base albedo color to use if no texture is specified"), + anno::in_group("Diffuse") + ]], + uniform texture_2d diffuse_texture = texture_2d() + [[ + anno::display_name("Albedo Map"), + anno::description("The texture specifying the albedo value to use"), + anno::in_group("Diffuse") + ]], + uniform color diffuse_tint = color(1.0f) + [[ + anno::display_name("Albedo Tint"), + anno::description("This tints the albedo color or texture contant"), + anno::in_group("Diffuse") + ]], + + // -------------------- SPECULAR REFLECTION ---------------------- + uniform 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + uniform float anisotropy_constant = 0.0f + [[ + anno::display_name("Anisotropy Amount"), + anno::hard_range(-1.,1.), + anno::description("0 for isotropic, extents of -1 to 1 for anisotropy"), + anno::in_group("Specular") + ]], + uniform float anisotropy_texture_influence = 0.0f + [[ + anno::display_name("Anisotropy Map Influence"), + anno::hard_range(0.0, 1.), + anno::description("Blends between the constant value and the lookup of the anisotropy texture"), + anno::in_group("Specular") + ]], + uniform texture_2d anisotropy_texture = texture_2d() + [[ + anno::display_name("Anisotropy Map"), + anno::in_group("Specular") + ]], + + uniform float metallic_constant = 0.f + [[ + anno::display_name("Metallic Amount"), + anno::hard_range(0.0,1.), + anno::description("Metallic Material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d metallic_texture = texture_2d() + [[ + anno::display_name("Metallic Map"), + anno::in_group("Specular") + ]], + + // -------------------- ORM ---------------------- + uniform bool enable_ORM_texture = true + [[ + 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") + ]], + + // -------------------- 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") + ]], + 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") + ]], + 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") + ]], + + // -------------------- REFLECTIVITY ---------------------- + uniform bool enable_retroreflection = false + [[ + anno::display_name("Enable Retroreflection"), + anno::in_group("Reflectivity") + ]], + color retroreflection_color = color(.182,.800,.000) + [[ + anno::display_name("Retro-reflection color"), + anno::description("The color of the retroreflection"), + anno::in_group("Reflectivity") + ]], + uniform float normal_reflectivity = 0.5 + [[ + anno::display_name("Retro-reflection weight facing"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for geometry facing the viewer"), + anno::in_group("Reflectivity") + ]], + uniform float grazing_reflectivity = 1.0 + [[ + anno::display_name("Retro-reflection weight edge"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for the reflectivity at geometry edges"), + anno::in_group("Reflectivity") + ]], + + // -------------------- AMBIENT OCCLUSION ---------------------- + 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") + ]], + 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") + ]], + uniform 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_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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- ALPHA ---------------------- + uniform bool enable_alpha = true + [[ + anno::display_name("Enable Alpha"), + anno::description("Enables or disables alpha functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_constant = 1.0 + [[ + anno::display_name("Alpha Fallback Constant"), + anno::description("The base alpha constant to use if no texture is specified"), + anno::in_group("Alpha") + ]], + uniform texture_2d opacity_texture = texture_2d() + [[ + anno::display_name("Opacity Map"), + anno::description("The texture specifying the opacity value to use"), + anno::in_group("Alpha") + ]], + uniform bool enable_alpha_cutout = false + [[ + anno::display_name("Enable Alpha Cutout"), + anno::description("Enables or disables alpha cutout functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_cutout_cutoff = 1.f + [[ + anno::enable_if("enable_alpha_cutout == true"), + anno::hard_range(0.0, 1.0), + anno::display_name("Alpha Cutout Cutoff"), + anno::description("The cutoff value to to render as transparent up to and opaque past"), + anno::in_group("Alpha") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("Normal Map"), + anno::in_group("Normal") + ]], + + // -------------------- UV ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Scale"), + anno::description("Larger number increases size of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR Opaque Alpha Cutout"), + anno::description("Supports the opaque alpha cutout material model of the Sim Renderer"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "opaque", "alpha", "cutout", "omniverse", "generic")) +]] + = let { + + 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: 0, + projection_type: base::projection_cubic ) : + base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw ); + + // Diffuse Color Lookup and AO + float4 base_lookup = tex::texture_isvalid(diffuse_texture) ? raw_file_texture(texture: diffuse_texture, uvw: transformed_uvw) : float4(1, 1, 1, 1); + + float opacityValue = tex::texture_isvalid(opacity_texture) ? raw_file_texture(texture: opacity_texture, uvw: transformed_uvw).x : alpha_constant; + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw + ) : state::normal(); + + float3 clearcoat_normal = base::tangent_space_normal_texture( + texture: clearcoat_normalmap_texture, + factor: clearcoat_bump_factor, + uvw: uvw + ); + + float3 flattened_clearcoat_normal = ::math::lerp(normal_lookup, ::state::normal(), clearcoat_flatten); + float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? clearcoat_normal : flattened_clearcoat_normal; + + float ao_lookup = tex::texture_isvalid(ao_texture) ? + raw_file_texture(texture: ao_texture, uvw: transformed_uvw).x : + 1.0f + [[anno::unused("Currently unused in material, may be utilized in the future")]]; + + color diffuse_color = tex::texture_isvalid(diffuse_texture) ? color(base_lookup.x, base_lookup.y, base_lookup.z) : diffuse_color_constant; + color base_color = multiply_colors(diffuse_color, diffuse_tint, 1.0).tint; + + float3 ORM_lookup = tex::lookup_float3( + tex: ORM_texture, + coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) + ); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + raw_file_texture(texture: reflectionroughness_texture, uvw: transformed_uvw).x : + reflection_roughness_constant; + float anisotropy_lookup = tex::texture_isvalid(anisotropy_texture) ? + (raw_file_texture(texture: anisotropy_texture, uvw: transformed_uvw).x * 2.0f - 1.0f) : + anisotropy_constant; + float metallic_lookup = tex::texture_isvalid(metallic_texture) ? + raw_file_texture(texture: metallic_texture, uvw: transformed_uvw).x : + metallic_constant; + + float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup; + float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup; + color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : color(ao_lookup); + + color ao_weighted_base_color = multiply_colors(base_color, ao_color, ao_to_diffuse).tint; + + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); + float anisotropy = math::lerp(anisotropy_constant, anisotropy_lookup, anisotropy_texture_influence); + float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); + + float squared_roughness = reflection_roughness * reflection_roughness; + float roughness_u = squared_roughness * (1 + anisotropy); + float roughness_v = squared_roughness * (1 - anisotropy); + + bsdf diffuse_bsdf = df::weighted_layer( + weight: 1.0, + layer: df::diffuse_reflection_bsdf( + tint: ao_weighted_base_color, + roughness: 0.f ), + base: bsdf(), + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_u, + roughness_v: roughness_v, + tint: color(1.0, 1.0, 1.0), + mode: df::scatter_reflect + ); + + bsdf custom_curve_layer_bsdf = df::custom_curve_layer( + normal_reflectivity: 0.03, + grazing_reflectivity: 1.0, + exponent: 5.0, + weight: float(1.0), + layer: ggx_smith_bsdf, + base: diffuse_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + // + // Begin RETROREFLECTION SUPPORT + // + bsdf backscattering_glossy_bsdf = df::backscattering_glossy_reflection_bsdf( + tint: retroreflection_color, + roughness_u: reflection_roughness * reflection_roughness + ); + + bsdf retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: 1.-normal_reflectivity, + grazing_reflectivity: 1.-grazing_reflectivity, + base: backscattering_glossy_bsdf, + layer: diffuse_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + // + // End RETROREFLECTION SUPPORT + // + + bsdf directional_factor_bsdf = df::directional_factor( + normal_tint: ao_weighted_base_color, + grazing_tint: color(1.0, 1.0, 1.0), + exponent: 5.0f, + base: ggx_smith_bsdf + ); + + // CLEARCOAT + + bsdf omni_PBR_bsdf = df::weighted_layer( + weight: metallic, + layer: directional_factor_bsdf, + base: enable_retroreflection ? retroreflection_bsdf : custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + bsdf clearcoat_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + roughness_v: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + 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; + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook + ? ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) + : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) + ? tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) + : color(1.0); + +} in material( + thin_walled: false, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission ( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + geometry: material_geometry( + normal: enable_clearcoat ? state::normal() : normal_lookup, + cutout_opacity: enable_alpha ? (enable_alpha_cutout ? (opacityValue < alpha_cutout_cutoff ? 0.0 : 1.0) : opacityValue) : 1.0 + ) +); diff --git a/assets/objects/vomp/spatula_17/materials/SimPBR_Translucent.mdl b/assets/objects/vomp/spatula_17/materials/SimPBR_Translucent.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a60a90d1b946f94c266dabd515d5a15b6c3c9bd --- /dev/null +++ b/assets/objects/vomp/spatula_17/materials/SimPBR_Translucent.mdl @@ -0,0 +1,290 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +import ::nvidia::core_definitions::file_texture; +import ::nvidia::core_definitions::normalmap_texture; + +export material SimPBR_Translucent( + // -------------------- SPECULAR REFLECTION/TRANSMISSION ---------------------- + uniform float ior_constant = 1.1f + [[ + anno::display_name("Index of Refraction"), + anno::hard_range(0.0,5.), + anno::description("Index of Refraction of the material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + // -------------------- VOLUME ---------------------- + color transmittance_color = color(1.0, 1.0f, 1.0f) + [[ + anno::display_name("Transmittance Color"), + anno::description("Expected transmittance after the specified transmittance distance through the volume."), + anno::in_group("Volume") + ]], + float transmittance_measurement_distance = 1.0f + [[ + anno::display_name("Transmittance Measurement Distance"), + anno::description("Distance to match the transmittance through the volume at."), + anno::in_group("Volume") + ]], + + // -------------------- EMISSIVE ---------------------- + uniform bool enable_thin_walled = false + [[ + anno::display_name("Enable Thin Walled"), + anno::description("Enables thin walled logic"), + anno::in_group("Geometry") + ]], + + // -------------------- 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_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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("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 ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Tiling"), + anno::description("Controls the repetition of the texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR Translucent"), + anno::description("Supports the translucent material model of the Sim Renderer"), + anno::in_group("SimReady"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "translucent", "omniverse", "generic")) +]] + = let { + 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: 0, + projection_type: base::projection_cubic + ) : base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw + ); + float2 uv = float2(transformed_uvw.position.x, transformed_uvw.position.y); + + color volume_absorption_coefficient = -math::log(transmittance_color) / (transmittance_measurement_distance*0.01); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + tex::lookup_float4(tex: reflectionroughness_texture, coord: uv).x : reflection_roughness_constant; + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_lookup, reflection_roughness_texture_influence); + + float roughness_squared = reflection_roughness * reflection_roughness; + + bsdf final_bsdf(enable_thin_walled ? + ::df::fresnel_layer( + ior_constant, + 1.f, + ::df::microfacet_ggx_smith_bsdf( + roughness_squared, + roughness_squared, + color(1.f, 1.f, 1.f), + ::state::texture_tangent_u(0), + ::df::scatter_reflect, + "" + ), + ::df::specular_bsdf( + transmittance_color, + ::df::scatter_transmit, + "" + ), ::state::normal()) + : ::df::microfacet_ggx_smith_bsdf( + roughness_squared, + roughness_squared, + color(1.f, 1.f, 1.f), + ::state::texture_tangent_u(0), + ::df::scatter_reflect_transmit, + "" + )); + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook ? + ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) ? + tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) : color(1.0); + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw, + flip_tangent_u: flip_tangent_u, + flip_tangent_v: flip_tangent_v + ) : state::normal(); +} in material( + thin_walled: enable_thin_walled, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission ( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + ior: color(ior_constant), + volume: material_volume( + scattering: df::anisotropic_vdf(), + absorption_coefficient: volume_absorption_coefficient, + scattering_coefficient: color(0.0f, 0.0f, 0.0f) + ), + geometry: material_geometry( + normal: normal_lookup + ) +); diff --git a/assets/objects/vomp/spatula_17/textures/Spatulas_Set02_Opacity.png b/assets/objects/vomp/spatula_17/textures/Spatulas_Set02_Opacity.png new file mode 100644 index 0000000000000000000000000000000000000000..776aabedf22973ce066a9728e1d4a2e65365db5d Binary files /dev/null and b/assets/objects/vomp/spatula_17/textures/Spatulas_Set02_Opacity.png differ diff --git a/assets/objects/vomp/spatula_18/materials/SimPBR.mdl b/assets/objects/vomp/spatula_18/materials/SimPBR.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5883146f569e93208db72c08a810b7d71eaeece7 --- /dev/null +++ b/assets/objects/vomp/spatula_18/materials/SimPBR.mdl @@ -0,0 +1,562 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + + +using .::SimPBR_Model import *; +using .::baking_annotations import *; + +export material SimPBR( + // -------------------- DIFFUSE REFLECTION ---------------------- + uniform color diffuse_color_constant = color(0.2f) + [[ + anno::display_name("Albedo Base Color"), + anno::description("The base albedo color to use if no texture is specified"), + anno::in_group("Diffuse") + ]], + uniform texture_2d diffuse_texture = texture_2d() + [[ + anno::display_name("Albedo Map"), + anno::description("The texture specifying the albedo value to use"), + anno::in_group("Diffuse") + ]], + uniform color diffuse_tint = color(1.0f) + [[ + anno::display_name("Albedo Tint"), + anno::description("This tints the albedo color or texture contant"), + anno::in_group("Diffuse") + ]], + uniform bool enable_transmission = false + [[ + anno::display_name("Enable Diffuse Transmission"), + anno::description("Enables the diffuse transmission of light through thin diffuse scattering layer"), + anno::in_group("Diffuse") + ]], + uniform float opacity_ratio = 1.f + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Opacity Ratio"), + anno::description("Amount of opacity"), + anno::in_group("Diffuse") + ]], + uniform color opacity_tint = color(1.0f) + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Diffuse transmission tint"), + anno::description("Base diffuse transmission color"), + anno::in_group("Diffuse") + ]], + uniform float opacity_multiplier = 1.f + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Diffuse transmission multiplier"), + anno::description("Base diffuse transmission multiplier"), + anno::in_group("Diffuse") + ]], + + // -------------------- SPECULAR REFLECTION ---------------------- + 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + float anisotropy_constant = 0.0f + [[ + anno::display_name("Anisotropy Amount"), + anno::hard_range(-1.,1.), + anno::description("0 for isotropic, extents of -1 to 1 for anisotropy"), + anno::in_group("Specular") + ]], + uniform float anisotropy_texture_influence = 0.0f + [[ + anno::display_name("Anisotropy Map Influence"), + anno::hard_range(0.0, 1.), + anno::description("Blends between the constant value and the lookup of the anisotropy texture"), + anno::in_group("Specular") + ]], + uniform texture_2d anisotropy_texture = texture_2d() + [[ + anno::display_name("Anisotropy Map"), + anno::in_group("Specular") + ]], + + float metallic_constant = 0.f + [[ + anno::display_name("Metallic Amount"), + anno::hard_range(0.0,1.), + anno::description("Metallic Material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d metallic_texture = texture_2d() + [[ + anno::display_name("Metallic Map"), + anno::in_group("Specular") + ]], + + float specular_constant = 1.f + [[ + anno::display_name("Specular amount"), + anno::hard_range(0.0, 1.0), + anno::description("Scale of the specular component"), + anno::in_group("Specular") + ]], + uniform texture_2d specular_texture = texture_2d() + [[ + anno::display_name("Specular Map"), + anno::in_group("Specular") + ]], + + // -------------------- ORM ---------------------- + uniform bool enable_ORM_texture = true + [[ + 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") + ]], + + // -------------------- 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") + ]], + 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") + ]], + + float3 clearcoat_normal_input = float3(0.0, 0.0, 0.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") + ]], + + uniform bool clearcoat_flip_tangent_u = false + [[ + anno::display_name("Clearcoat Normal Map Flip U Tangent"), + anno::in_group("Clearcoat") + ]], + uniform bool clearcoat_flip_tangent_v = true + [[ + anno::display_name("Clearcoat Normal Map Flip V Tangent"), + anno::in_group("Clearcoat") + ]], + + + // -------------------- REFLECTIVITY ---------------------- + uniform bool enable_retroreflection = false + [[ + anno::display_name("Enable Retroreflection"), + anno::in_group("Reflectivity") + ]], + color retroreflection_tint = color(.182,.800,.000) + [[ + anno::display_name("Retro-reflection tint"), + anno::description("The tint of the retroreflection"), + anno::in_group("Reflectivity") + ]], + uniform float normal_reflectivity = 0.5 + [[ + anno::display_name("Retro-reflection weight facing"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for geometry facing the viewer"), + anno::in_group("Reflectivity") + ]], + uniform float grazing_reflectivity = 1.0 + [[ + anno::display_name("Retro-reflection weight edge"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for the reflectivity at geometry edges"), + anno::in_group("Reflectivity") + ]], + + // -------------------- AMBIENT OCCLUSION ---------------------- + 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") + ]], + float ao_input = 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") + ]], + + // -------------------- 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") + ]], + uniform 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") + ]], + + color emissive_mask_input = color(1.0), + 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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- ALPHA ---------------------- + uniform bool enable_opacity = false + [[ + anno::display_name("Enable Opacity"), + anno::description("Enables or disables alpha functionality"), + anno::in_group("Alpha") + ]], + float alpha_constant = 1.0 + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Opacity Fallback Constant"), + anno::hard_range(0.0, 1.0), + anno::description("The base alpha constant to use if no texture is specified"), + anno::in_group("Alpha") + ]], + uniform texture_2d opacity_texture = texture_2d() + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Opacity Map"), + anno::description("The texture specifying the opacity value to use"), + anno::in_group("Alpha") + ]], + uniform bool enable_opacity_cutout = false + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Enable Alpha Cutout"), + anno::description("Enables or disables alpha cutout functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_cutout_cutoff = 1.f + [[ + anno::enable_if("enable_opacity == true"), + anno::enable_if("enable_opacity_cutout == true"), + anno::hard_range(0.0, 1.0), + anno::display_name("Alpha Cutout Cutoff"), + anno::description("The cutoff value to to render as transparent up to and opaque past"), + anno::in_group("Alpha") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + + float3 normal_input = state::normal(), + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("Normal Map"), + anno::in_group("Normal") + ]], + uniform bool flip_tangent_u = false + [[ + anno::display_name("Normal Map Flip U Tangent"), + anno::description("Flips the U Tangent vector."), + anno::in_group("Normal") + ]], + uniform bool flip_tangent_v = true + [[ + anno::display_name("Normal Map Flip V Tangent"), + anno::description("Flips the V Tangent vector. By Default, SimPBR materials setup for DirectX normal maps. Set Normal Map Flip V = false for OpenGL."), + anno::in_group("Normal") + ]], + + // -------------------- UV ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Tiling"), + anno::description("Controls repetition of the texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR"), + anno::description("Supports the opaque alpha cutout material model of the Sim Renderer"), + anno::in_group("SimReady"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "opaque", "alpha", "cutout", "omniverse", "generic")) +]] + = let { + 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: 0, + projection_type: base::projection_cubic + ) : base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw + ); + float2 uv = float2(transformed_uvw.position.x, transformed_uvw.position.y); + + // Diffuse Color Lookup and AO + float4 base_lookup = tex::texture_isvalid(diffuse_texture) ? tex::lookup_float4(tex: diffuse_texture, coord: uv) : float4(1, 1, 1, 1); + + float opacityValue = tex::texture_isvalid(opacity_texture) ? tex::lookup_float4(tex: opacity_texture, coord: uv).w : alpha_constant; + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw, + flip_tangent_u: flip_tangent_u, + flip_tangent_v: flip_tangent_v + ) : normal_input; + + float3 clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? + base::tangent_space_normal_texture( + texture: clearcoat_normalmap_texture, + factor: clearcoat_bump_factor, + uvw: uvw, + flip_tangent_u: clearcoat_flip_tangent_u, + flip_tangent_v: clearcoat_flip_tangent_v + ) : clearcoat_normal_input; + + float3 flattened_clearcoat_normal = ::math::lerp(normal_lookup, ::state::normal(), clearcoat_flatten); + float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? clearcoat_normal : flattened_clearcoat_normal; + + float ao_lookup = tex::texture_isvalid(ao_texture) ? tex::lookup_float4(tex: ao_texture, coord: uv).x : ao_input; + + color diffuse_color = tex::texture_isvalid(diffuse_texture) ? color(base_lookup.x, base_lookup.y, base_lookup.z) : diffuse_color_constant; + + float3 ORM_lookup = tex::lookup_float3( + tex: ORM_texture, + coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) + ); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + tex::lookup_float4(tex: reflectionroughness_texture, coord: uv).x : reflection_roughness_constant; + float anisotropy_lookup = tex::texture_isvalid(anisotropy_texture) ? + (tex::lookup_float4(tex: anisotropy_texture, coord: uv).x * 2.0f - 1.0f) : anisotropy_constant; + float metallic_lookup = tex::texture_isvalid(metallic_texture) ? + tex::lookup_float4(tex: metallic_texture, coord: uv).x : metallic_constant; + float specular_lookup = tex::texture_isvalid(specular_texture) ? + tex::lookup_float4(tex: specular_texture, coord: uv).x : specular_constant; + + float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup; + float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup; + float ao = enable_ORM_texture ? ORM_lookup.x : ao_lookup; + + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); + float anisotropy = math::lerp(anisotropy_constant, anisotropy_lookup, anisotropy_texture_influence); + float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook ? + ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) ? + tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) : emissive_mask_input; + +} in SimPBR_Model( + diffuse_color: diffuse_color, + diffuse_tint: diffuse_tint, + roughness: reflection_roughness, + anisotropy: anisotropy, + metallic: metallic, + specular: specular_lookup, + normal: normal_lookup, + enable_clearcoat: enable_clearcoat, + clearcoat_tint: clearcoat_tint, + clearcoat_transparency: clearcoat_transparency, + clearcoat_reflection_roughness: clearcoat_reflection_roughness, + clearcoat_weight: clearcoat_weight, + clearcoat_ior: clearcoat_ior, + clearcoat_normal: final_clearcoat_normal, + enable_retroreflection: enable_retroreflection, + retroreflection_tint: retroreflection_tint, + normal_reflectivity: normal_reflectivity, + grazing_reflectivity: grazing_reflectivity, + ao_to_diffuse: ao_to_diffuse, + ao: ao, + enable_emission: enable_emission, + emissive_color: emissive_color, + emissive_mask: emissive_mask, + emissive_intensity: emissive_intensity, + enable_opacity: enable_opacity, + alpha: opacityValue, + enable_opacity_cutout: enable_opacity_cutout, + alpha_cutout_cutoff: alpha_cutout_cutoff, + opacity_ratio: enable_transmission ? opacity_ratio : 1.0, + opacity_tint : opacity_tint, + opacity_multiplier : opacity_multiplier +); diff --git a/assets/objects/vomp/spatula_18/materials/SimPBR_Model.mdl b/assets/objects/vomp/spatula_18/materials/SimPBR_Model.mdl new file mode 100644 index 0000000000000000000000000000000000000000..dccd3808942cb243a4e03f77f684935081b31ec5 --- /dev/null +++ b/assets/objects/vomp/spatula_18/materials/SimPBR_Model.mdl @@ -0,0 +1,212 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +using .::baking_annotations import *; + +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 + ); +} + +export material SimPBR_Model( + color diffuse_color = color(0.2f) [[ target_baked_argument("diffuse_texture", "diffuse_color_constant", "RGBA8_UNORM") ]], + uniform color diffuse_tint = color(1.0f), + float roughness = 0.5f [[ target_baked_argument("reflectionroughness_texture", "reflection_roughness_constant", "R8_UNORM") ]], + float anisotropy = 0.0f [[ target_baked_argument("anisotropy_texture", "anisotropy_constant", "R8_SNORM") ]], + float metallic = 0.f [[ target_baked_argument("metallic_texture", "metallic_constant", "R8_UNORM") ]], + float specular = 1.f [[ target_baked_argument("specular_texture", "specular_constant", "R8_UNORM") ]], + float3 normal = float3(0.0, 0.0, 0.0) [[ target_baked_argument("normalmap_texture", "normal_input", "RGBA8_SNORM", baking_annotations::TRANSFORM_UNORM_VECTOR) ]], + uniform bool enable_clearcoat = false, + color clearcoat_tint = color(1.0f), + float clearcoat_transparency = 1.0f, + float clearcoat_reflection_roughness = 0.0f, + float clearcoat_weight = 1.0f, + float clearcoat_ior = 1.56f, + float3 clearcoat_normal = float3(0.0, 0.0, 0.0) [[ target_baked_argument("clearcoat_normalmap_texture", "clearcoat_normal_input", "RGBA8_SNORM", baking_annotations::TRANSFORM_UNORM_VECTOR) ]], + uniform bool enable_retroreflection = false, + color retroreflection_tint = color(.182,.800,.000), + uniform float normal_reflectivity = 0.5, + uniform float grazing_reflectivity = 1.0, + float ao_to_diffuse = 0.0, + float ao = 1.0f [[ target_baked_argument("ao_texture", "ao_input", "R8_UNORM") ]], + uniform bool enable_emission = false, + uniform color emissive_color = color(1.0, 0.1, 0.1), + color emissive_mask = color(1.0, 0.1, 0.1) [[ target_baked_argument("emissive_mask_texture", "emissive_mask_input", "R8_UNORM") ]], + uniform float emissive_intensity = 40.f, + uniform bool enable_opacity = false, + float alpha = 1.0, + uniform bool enable_opacity_cutout = false, + uniform float alpha_cutout_cutoff = 1.f, + uniform float opacity_ratio = 1.f, + uniform color opacity_tint = color(1.0f), + uniform float opacity_multiplier = 1.f +) +[[ + target_material_model(), + target_material_rendering("..::SimPBR::SimPBR") +]] + = let { + color base_color = multiply_colors(diffuse_color, diffuse_tint, 1.0).tint; + color ao_weighted_base_color = multiply_colors(base_color, color(ao), ao_to_diffuse).tint; + + float squared_roughness = roughness * roughness; + float roughness_u = squared_roughness * (1 + anisotropy); + float roughness_v = squared_roughness * (1 - anisotropy); + + color diffuse_transmission_color = base_color * opacity_tint * opacity_multiplier; + + bsdf diffuse_bsdf = df::weighted_layer( + weight: opacity_ratio, + layer: df::diffuse_reflection_bsdf( + tint: ao_weighted_base_color, + roughness: 0.0f + ), + base: df::diffuse_transmission_bsdf(tint: diffuse_transmission_color), + normal: enable_clearcoat ? normal : state::normal() + ); + + bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_u, + roughness_v: roughness_v, + tint: color(1.0, 1.0, 1.0), + mode: df::scatter_reflect + ); + + bsdf custom_curve_layer_bsdf = df::custom_curve_layer( + normal_reflectivity: 0.03, + grazing_reflectivity: 1.0, + exponent: 5.0, + weight: specular, + layer: ggx_smith_bsdf, + base: diffuse_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + // + // Begin RETROREFLECTION SUPPORT + // + color final_retroreflection_color = multiply_colors(retroreflection_tint, base_color, 1.0).tint; + bsdf backscattering_glossy_bsdf = df::backscattering_glossy_reflection_bsdf( + tint: final_retroreflection_color, + roughness_u: squared_roughness + ); + + /*bsdf retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: 1.-normal_reflectivity, + grazing_reflectivity: 1.-grazing_reflectivity, + base: backscattering_glossy_bsdf, + layer: custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + );*/ + + // if normal_reflectivity and grazing_reflectivity are 1 and weight is 1, just the layer is used + bsdf opt_retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: enable_retroreflection ? 1.-normal_reflectivity : 1, + grazing_reflectivity: enable_retroreflection ? 1.-grazing_reflectivity : 1, + base: backscattering_glossy_bsdf, + layer: custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + // + // End RETROREFLECTION SUPPORT + // + + bsdf directional_factor_bsdf = df::directional_factor( + normal_tint: ao_weighted_base_color, + grazing_tint: color(1.0, 1.0, 1.0), + exponent: 5.0f, + base: ggx_smith_bsdf + ); + + // CLEARCOAT + bsdf omni_PBR_bsdf = df::weighted_layer( + weight: metallic, + layer: directional_factor_bsdf, + base: opt_retroreflection_bsdf, //enable_retroreflection ? retroreflection_bsdf : custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + bsdf clearcoat_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + roughness_v: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + 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 opt_opaque_clearcoat = df::weighted_layer( + weight: enable_clearcoat ? clearcoat_transparency : 1, + layer: ::df::tint(tint: enable_clearcoat ? clearcoat_tint : color(1), base: omni_PBR_bsdf), + base: ::df::diffuse_reflection_bsdf(tint: clearcoat_tint) + ); + + bsdf opt_omni_PBR_coated_bsdf = df::fresnel_layer( + ior: clearcoat_ior, + weight: enable_clearcoat ? clearcoat_weight : 0, + layer: clearcoat_bsdf, + base: opt_opaque_clearcoat, + normal: clearcoat_normal + ); + + bsdf final_bsdf = opt_omni_PBR_coated_bsdf; +} in material( + thin_walled: false, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + geometry: material_geometry( + normal: enable_clearcoat ? state::normal() : normal, + cutout_opacity: enable_opacity ? (enable_opacity_cutout ? (alpha < alpha_cutout_cutoff ? 0.0 : 1.0) : alpha) : 1.0 + ) +); diff --git a/assets/objects/vomp/spatula_18/materials/SimPBR_Opacity.mdl b/assets/objects/vomp/spatula_18/materials/SimPBR_Opacity.mdl new file mode 100644 index 0000000000000000000000000000000000000000..cf0a3ba759fc0b873d174b410b31759b1d426307 --- /dev/null +++ b/assets/objects/vomp/spatula_18/materials/SimPBR_Opacity.mdl @@ -0,0 +1,651 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +import ::nvidia::core_definitions::file_texture; +import ::nvidia::core_definitions::normalmap_texture; + +float4 raw_file_texture( + uniform texture_2d texture + [[ anno::description("The input texture") ]], + base::texture_coordinate_info uvw = base::texture_coordinate_info() + [[ anno::description("Custom value for texture coordinate") ]], + 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") ]] +) +[[ + anno::description("General texturing function for 2D bitmap texture stored in a file"), + anno::noinline() +]] +{ + return tex::lookup_float4(texture, float2(uvw.position.x, uvw.position.y), wrap_u, wrap_v, crop_u, crop_v); +} + +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 SimPBR_Opacity( + // -------------------- DIFFUSE REFLECTION ---------------------- + uniform color diffuse_color_constant = color(0.2f) + [[ + anno::display_name("Albedo Base Color"), + anno::description("The base albedo color to use if no texture is specified"), + anno::in_group("Diffuse") + ]], + uniform texture_2d diffuse_texture = texture_2d() + [[ + anno::display_name("Albedo Map"), + anno::description("The texture specifying the albedo value to use"), + anno::in_group("Diffuse") + ]], + uniform color diffuse_tint = color(1.0f) + [[ + anno::display_name("Albedo Tint"), + anno::description("This tints the albedo color or texture contant"), + anno::in_group("Diffuse") + ]], + + // -------------------- SPECULAR REFLECTION ---------------------- + uniform 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + uniform float anisotropy_constant = 0.0f + [[ + anno::display_name("Anisotropy Amount"), + anno::hard_range(-1.,1.), + anno::description("0 for isotropic, extents of -1 to 1 for anisotropy"), + anno::in_group("Specular") + ]], + uniform float anisotropy_texture_influence = 0.0f + [[ + anno::display_name("Anisotropy Map Influence"), + anno::hard_range(0.0, 1.), + anno::description("Blends between the constant value and the lookup of the anisotropy texture"), + anno::in_group("Specular") + ]], + uniform texture_2d anisotropy_texture = texture_2d() + [[ + anno::display_name("Anisotropy Map"), + anno::in_group("Specular") + ]], + + uniform float metallic_constant = 0.f + [[ + anno::display_name("Metallic Amount"), + anno::hard_range(0.0,1.), + anno::description("Metallic Material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d metallic_texture = texture_2d() + [[ + anno::display_name("Metallic Map"), + anno::in_group("Specular") + ]], + + // -------------------- ORM ---------------------- + uniform bool enable_ORM_texture = true + [[ + 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") + ]], + + // -------------------- 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") + ]], + 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") + ]], + 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") + ]], + + // -------------------- REFLECTIVITY ---------------------- + uniform bool enable_retroreflection = false + [[ + anno::display_name("Enable Retroreflection"), + anno::in_group("Reflectivity") + ]], + color retroreflection_color = color(.182,.800,.000) + [[ + anno::display_name("Retro-reflection color"), + anno::description("The color of the retroreflection"), + anno::in_group("Reflectivity") + ]], + uniform float normal_reflectivity = 0.5 + [[ + anno::display_name("Retro-reflection weight facing"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for geometry facing the viewer"), + anno::in_group("Reflectivity") + ]], + uniform float grazing_reflectivity = 1.0 + [[ + anno::display_name("Retro-reflection weight edge"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for the reflectivity at geometry edges"), + anno::in_group("Reflectivity") + ]], + + // -------------------- AMBIENT OCCLUSION ---------------------- + 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") + ]], + 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") + ]], + uniform 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_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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- ALPHA ---------------------- + uniform bool enable_alpha = true + [[ + anno::display_name("Enable Alpha"), + anno::description("Enables or disables alpha functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_constant = 1.0 + [[ + anno::display_name("Alpha Fallback Constant"), + anno::description("The base alpha constant to use if no texture is specified"), + anno::in_group("Alpha") + ]], + uniform texture_2d opacity_texture = texture_2d() + [[ + anno::display_name("Opacity Map"), + anno::description("The texture specifying the opacity value to use"), + anno::in_group("Alpha") + ]], + uniform bool enable_alpha_cutout = false + [[ + anno::display_name("Enable Alpha Cutout"), + anno::description("Enables or disables alpha cutout functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_cutout_cutoff = 1.f + [[ + anno::enable_if("enable_alpha_cutout == true"), + anno::hard_range(0.0, 1.0), + anno::display_name("Alpha Cutout Cutoff"), + anno::description("The cutoff value to to render as transparent up to and opaque past"), + anno::in_group("Alpha") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("Normal Map"), + anno::in_group("Normal") + ]], + + // -------------------- UV ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Scale"), + anno::description("Larger number increases size of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR Opaque Alpha Cutout"), + anno::description("Supports the opaque alpha cutout material model of the Sim Renderer"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "opaque", "alpha", "cutout", "omniverse", "generic")) +]] + = let { + + 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: 0, + projection_type: base::projection_cubic ) : + base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw ); + + // Diffuse Color Lookup and AO + float4 base_lookup = tex::texture_isvalid(diffuse_texture) ? raw_file_texture(texture: diffuse_texture, uvw: transformed_uvw) : float4(1, 1, 1, 1); + + float opacityValue = tex::texture_isvalid(opacity_texture) ? raw_file_texture(texture: opacity_texture, uvw: transformed_uvw).x : alpha_constant; + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw + ) : state::normal(); + + float3 clearcoat_normal = base::tangent_space_normal_texture( + texture: clearcoat_normalmap_texture, + factor: clearcoat_bump_factor, + uvw: uvw + ); + + float3 flattened_clearcoat_normal = ::math::lerp(normal_lookup, ::state::normal(), clearcoat_flatten); + float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? clearcoat_normal : flattened_clearcoat_normal; + + float ao_lookup = tex::texture_isvalid(ao_texture) ? + raw_file_texture(texture: ao_texture, uvw: transformed_uvw).x : + 1.0f + [[anno::unused("Currently unused in material, may be utilized in the future")]]; + + color diffuse_color = tex::texture_isvalid(diffuse_texture) ? color(base_lookup.x, base_lookup.y, base_lookup.z) : diffuse_color_constant; + color base_color = multiply_colors(diffuse_color, diffuse_tint, 1.0).tint; + + float3 ORM_lookup = tex::lookup_float3( + tex: ORM_texture, + coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) + ); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + raw_file_texture(texture: reflectionroughness_texture, uvw: transformed_uvw).x : + reflection_roughness_constant; + float anisotropy_lookup = tex::texture_isvalid(anisotropy_texture) ? + (raw_file_texture(texture: anisotropy_texture, uvw: transformed_uvw).x * 2.0f - 1.0f) : + anisotropy_constant; + float metallic_lookup = tex::texture_isvalid(metallic_texture) ? + raw_file_texture(texture: metallic_texture, uvw: transformed_uvw).x : + metallic_constant; + + float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup; + float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup; + color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : color(ao_lookup); + + color ao_weighted_base_color = multiply_colors(base_color, ao_color, ao_to_diffuse).tint; + + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); + float anisotropy = math::lerp(anisotropy_constant, anisotropy_lookup, anisotropy_texture_influence); + float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); + + float squared_roughness = reflection_roughness * reflection_roughness; + float roughness_u = squared_roughness * (1 + anisotropy); + float roughness_v = squared_roughness * (1 - anisotropy); + + bsdf diffuse_bsdf = df::weighted_layer( + weight: 1.0, + layer: df::diffuse_reflection_bsdf( + tint: ao_weighted_base_color, + roughness: 0.f ), + base: bsdf(), + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_u, + roughness_v: roughness_v, + tint: color(1.0, 1.0, 1.0), + mode: df::scatter_reflect + ); + + bsdf custom_curve_layer_bsdf = df::custom_curve_layer( + normal_reflectivity: 0.03, + grazing_reflectivity: 1.0, + exponent: 5.0, + weight: float(1.0), + layer: ggx_smith_bsdf, + base: diffuse_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + // + // Begin RETROREFLECTION SUPPORT + // + bsdf backscattering_glossy_bsdf = df::backscattering_glossy_reflection_bsdf( + tint: retroreflection_color, + roughness_u: reflection_roughness * reflection_roughness + ); + + bsdf retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: 1.-normal_reflectivity, + grazing_reflectivity: 1.-grazing_reflectivity, + base: backscattering_glossy_bsdf, + layer: diffuse_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + // + // End RETROREFLECTION SUPPORT + // + + bsdf directional_factor_bsdf = df::directional_factor( + normal_tint: ao_weighted_base_color, + grazing_tint: color(1.0, 1.0, 1.0), + exponent: 5.0f, + base: ggx_smith_bsdf + ); + + // CLEARCOAT + + bsdf omni_PBR_bsdf = df::weighted_layer( + weight: metallic, + layer: directional_factor_bsdf, + base: enable_retroreflection ? retroreflection_bsdf : custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + bsdf clearcoat_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + roughness_v: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + 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; + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook + ? ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) + : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) + ? tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) + : color(1.0); + +} in material( + thin_walled: false, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission ( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + geometry: material_geometry( + normal: enable_clearcoat ? state::normal() : normal_lookup, + cutout_opacity: enable_alpha ? (enable_alpha_cutout ? (opacityValue < alpha_cutout_cutoff ? 0.0 : 1.0) : opacityValue) : 1.0 + ) +); diff --git a/assets/objects/vomp/spatula_18/materials/SimPBR_Translucent.mdl b/assets/objects/vomp/spatula_18/materials/SimPBR_Translucent.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a60a90d1b946f94c266dabd515d5a15b6c3c9bd --- /dev/null +++ b/assets/objects/vomp/spatula_18/materials/SimPBR_Translucent.mdl @@ -0,0 +1,290 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +import ::nvidia::core_definitions::file_texture; +import ::nvidia::core_definitions::normalmap_texture; + +export material SimPBR_Translucent( + // -------------------- SPECULAR REFLECTION/TRANSMISSION ---------------------- + uniform float ior_constant = 1.1f + [[ + anno::display_name("Index of Refraction"), + anno::hard_range(0.0,5.), + anno::description("Index of Refraction of the material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + // -------------------- VOLUME ---------------------- + color transmittance_color = color(1.0, 1.0f, 1.0f) + [[ + anno::display_name("Transmittance Color"), + anno::description("Expected transmittance after the specified transmittance distance through the volume."), + anno::in_group("Volume") + ]], + float transmittance_measurement_distance = 1.0f + [[ + anno::display_name("Transmittance Measurement Distance"), + anno::description("Distance to match the transmittance through the volume at."), + anno::in_group("Volume") + ]], + + // -------------------- EMISSIVE ---------------------- + uniform bool enable_thin_walled = false + [[ + anno::display_name("Enable Thin Walled"), + anno::description("Enables thin walled logic"), + anno::in_group("Geometry") + ]], + + // -------------------- 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_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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("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 ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Tiling"), + anno::description("Controls the repetition of the texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR Translucent"), + anno::description("Supports the translucent material model of the Sim Renderer"), + anno::in_group("SimReady"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "translucent", "omniverse", "generic")) +]] + = let { + 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: 0, + projection_type: base::projection_cubic + ) : base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw + ); + float2 uv = float2(transformed_uvw.position.x, transformed_uvw.position.y); + + color volume_absorption_coefficient = -math::log(transmittance_color) / (transmittance_measurement_distance*0.01); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + tex::lookup_float4(tex: reflectionroughness_texture, coord: uv).x : reflection_roughness_constant; + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_lookup, reflection_roughness_texture_influence); + + float roughness_squared = reflection_roughness * reflection_roughness; + + bsdf final_bsdf(enable_thin_walled ? + ::df::fresnel_layer( + ior_constant, + 1.f, + ::df::microfacet_ggx_smith_bsdf( + roughness_squared, + roughness_squared, + color(1.f, 1.f, 1.f), + ::state::texture_tangent_u(0), + ::df::scatter_reflect, + "" + ), + ::df::specular_bsdf( + transmittance_color, + ::df::scatter_transmit, + "" + ), ::state::normal()) + : ::df::microfacet_ggx_smith_bsdf( + roughness_squared, + roughness_squared, + color(1.f, 1.f, 1.f), + ::state::texture_tangent_u(0), + ::df::scatter_reflect_transmit, + "" + )); + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook ? + ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) ? + tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) : color(1.0); + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw, + flip_tangent_u: flip_tangent_u, + flip_tangent_v: flip_tangent_v + ) : state::normal(); +} in material( + thin_walled: enable_thin_walled, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission ( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + ior: color(ior_constant), + volume: material_volume( + scattering: df::anisotropic_vdf(), + absorption_coefficient: volume_absorption_coefficient, + scattering_coefficient: color(0.0f, 0.0f, 0.0f) + ), + geometry: material_geometry( + normal: normal_lookup + ) +); diff --git a/assets/objects/vomp/spatula_18/textures/Spatulas_Set02_Opacity.png b/assets/objects/vomp/spatula_18/textures/Spatulas_Set02_Opacity.png new file mode 100644 index 0000000000000000000000000000000000000000..776aabedf22973ce066a9728e1d4a2e65365db5d Binary files /dev/null and b/assets/objects/vomp/spatula_18/textures/Spatulas_Set02_Opacity.png differ diff --git a/assets/objects/vomp/spatula_19/materials/SimPBR.mdl b/assets/objects/vomp/spatula_19/materials/SimPBR.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5883146f569e93208db72c08a810b7d71eaeece7 --- /dev/null +++ b/assets/objects/vomp/spatula_19/materials/SimPBR.mdl @@ -0,0 +1,562 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + + +using .::SimPBR_Model import *; +using .::baking_annotations import *; + +export material SimPBR( + // -------------------- DIFFUSE REFLECTION ---------------------- + uniform color diffuse_color_constant = color(0.2f) + [[ + anno::display_name("Albedo Base Color"), + anno::description("The base albedo color to use if no texture is specified"), + anno::in_group("Diffuse") + ]], + uniform texture_2d diffuse_texture = texture_2d() + [[ + anno::display_name("Albedo Map"), + anno::description("The texture specifying the albedo value to use"), + anno::in_group("Diffuse") + ]], + uniform color diffuse_tint = color(1.0f) + [[ + anno::display_name("Albedo Tint"), + anno::description("This tints the albedo color or texture contant"), + anno::in_group("Diffuse") + ]], + uniform bool enable_transmission = false + [[ + anno::display_name("Enable Diffuse Transmission"), + anno::description("Enables the diffuse transmission of light through thin diffuse scattering layer"), + anno::in_group("Diffuse") + ]], + uniform float opacity_ratio = 1.f + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Opacity Ratio"), + anno::description("Amount of opacity"), + anno::in_group("Diffuse") + ]], + uniform color opacity_tint = color(1.0f) + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Diffuse transmission tint"), + anno::description("Base diffuse transmission color"), + anno::in_group("Diffuse") + ]], + uniform float opacity_multiplier = 1.f + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Diffuse transmission multiplier"), + anno::description("Base diffuse transmission multiplier"), + anno::in_group("Diffuse") + ]], + + // -------------------- SPECULAR REFLECTION ---------------------- + 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + float anisotropy_constant = 0.0f + [[ + anno::display_name("Anisotropy Amount"), + anno::hard_range(-1.,1.), + anno::description("0 for isotropic, extents of -1 to 1 for anisotropy"), + anno::in_group("Specular") + ]], + uniform float anisotropy_texture_influence = 0.0f + [[ + anno::display_name("Anisotropy Map Influence"), + anno::hard_range(0.0, 1.), + anno::description("Blends between the constant value and the lookup of the anisotropy texture"), + anno::in_group("Specular") + ]], + uniform texture_2d anisotropy_texture = texture_2d() + [[ + anno::display_name("Anisotropy Map"), + anno::in_group("Specular") + ]], + + float metallic_constant = 0.f + [[ + anno::display_name("Metallic Amount"), + anno::hard_range(0.0,1.), + anno::description("Metallic Material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d metallic_texture = texture_2d() + [[ + anno::display_name("Metallic Map"), + anno::in_group("Specular") + ]], + + float specular_constant = 1.f + [[ + anno::display_name("Specular amount"), + anno::hard_range(0.0, 1.0), + anno::description("Scale of the specular component"), + anno::in_group("Specular") + ]], + uniform texture_2d specular_texture = texture_2d() + [[ + anno::display_name("Specular Map"), + anno::in_group("Specular") + ]], + + // -------------------- ORM ---------------------- + uniform bool enable_ORM_texture = true + [[ + 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") + ]], + + // -------------------- 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") + ]], + 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") + ]], + + float3 clearcoat_normal_input = float3(0.0, 0.0, 0.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") + ]], + + uniform bool clearcoat_flip_tangent_u = false + [[ + anno::display_name("Clearcoat Normal Map Flip U Tangent"), + anno::in_group("Clearcoat") + ]], + uniform bool clearcoat_flip_tangent_v = true + [[ + anno::display_name("Clearcoat Normal Map Flip V Tangent"), + anno::in_group("Clearcoat") + ]], + + + // -------------------- REFLECTIVITY ---------------------- + uniform bool enable_retroreflection = false + [[ + anno::display_name("Enable Retroreflection"), + anno::in_group("Reflectivity") + ]], + color retroreflection_tint = color(.182,.800,.000) + [[ + anno::display_name("Retro-reflection tint"), + anno::description("The tint of the retroreflection"), + anno::in_group("Reflectivity") + ]], + uniform float normal_reflectivity = 0.5 + [[ + anno::display_name("Retro-reflection weight facing"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for geometry facing the viewer"), + anno::in_group("Reflectivity") + ]], + uniform float grazing_reflectivity = 1.0 + [[ + anno::display_name("Retro-reflection weight edge"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for the reflectivity at geometry edges"), + anno::in_group("Reflectivity") + ]], + + // -------------------- AMBIENT OCCLUSION ---------------------- + 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") + ]], + float ao_input = 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") + ]], + + // -------------------- 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") + ]], + uniform 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") + ]], + + color emissive_mask_input = color(1.0), + 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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- ALPHA ---------------------- + uniform bool enable_opacity = false + [[ + anno::display_name("Enable Opacity"), + anno::description("Enables or disables alpha functionality"), + anno::in_group("Alpha") + ]], + float alpha_constant = 1.0 + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Opacity Fallback Constant"), + anno::hard_range(0.0, 1.0), + anno::description("The base alpha constant to use if no texture is specified"), + anno::in_group("Alpha") + ]], + uniform texture_2d opacity_texture = texture_2d() + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Opacity Map"), + anno::description("The texture specifying the opacity value to use"), + anno::in_group("Alpha") + ]], + uniform bool enable_opacity_cutout = false + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Enable Alpha Cutout"), + anno::description("Enables or disables alpha cutout functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_cutout_cutoff = 1.f + [[ + anno::enable_if("enable_opacity == true"), + anno::enable_if("enable_opacity_cutout == true"), + anno::hard_range(0.0, 1.0), + anno::display_name("Alpha Cutout Cutoff"), + anno::description("The cutoff value to to render as transparent up to and opaque past"), + anno::in_group("Alpha") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + + float3 normal_input = state::normal(), + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("Normal Map"), + anno::in_group("Normal") + ]], + uniform bool flip_tangent_u = false + [[ + anno::display_name("Normal Map Flip U Tangent"), + anno::description("Flips the U Tangent vector."), + anno::in_group("Normal") + ]], + uniform bool flip_tangent_v = true + [[ + anno::display_name("Normal Map Flip V Tangent"), + anno::description("Flips the V Tangent vector. By Default, SimPBR materials setup for DirectX normal maps. Set Normal Map Flip V = false for OpenGL."), + anno::in_group("Normal") + ]], + + // -------------------- UV ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Tiling"), + anno::description("Controls repetition of the texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR"), + anno::description("Supports the opaque alpha cutout material model of the Sim Renderer"), + anno::in_group("SimReady"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "opaque", "alpha", "cutout", "omniverse", "generic")) +]] + = let { + 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: 0, + projection_type: base::projection_cubic + ) : base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw + ); + float2 uv = float2(transformed_uvw.position.x, transformed_uvw.position.y); + + // Diffuse Color Lookup and AO + float4 base_lookup = tex::texture_isvalid(diffuse_texture) ? tex::lookup_float4(tex: diffuse_texture, coord: uv) : float4(1, 1, 1, 1); + + float opacityValue = tex::texture_isvalid(opacity_texture) ? tex::lookup_float4(tex: opacity_texture, coord: uv).w : alpha_constant; + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw, + flip_tangent_u: flip_tangent_u, + flip_tangent_v: flip_tangent_v + ) : normal_input; + + float3 clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? + base::tangent_space_normal_texture( + texture: clearcoat_normalmap_texture, + factor: clearcoat_bump_factor, + uvw: uvw, + flip_tangent_u: clearcoat_flip_tangent_u, + flip_tangent_v: clearcoat_flip_tangent_v + ) : clearcoat_normal_input; + + float3 flattened_clearcoat_normal = ::math::lerp(normal_lookup, ::state::normal(), clearcoat_flatten); + float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? clearcoat_normal : flattened_clearcoat_normal; + + float ao_lookup = tex::texture_isvalid(ao_texture) ? tex::lookup_float4(tex: ao_texture, coord: uv).x : ao_input; + + color diffuse_color = tex::texture_isvalid(diffuse_texture) ? color(base_lookup.x, base_lookup.y, base_lookup.z) : diffuse_color_constant; + + float3 ORM_lookup = tex::lookup_float3( + tex: ORM_texture, + coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) + ); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + tex::lookup_float4(tex: reflectionroughness_texture, coord: uv).x : reflection_roughness_constant; + float anisotropy_lookup = tex::texture_isvalid(anisotropy_texture) ? + (tex::lookup_float4(tex: anisotropy_texture, coord: uv).x * 2.0f - 1.0f) : anisotropy_constant; + float metallic_lookup = tex::texture_isvalid(metallic_texture) ? + tex::lookup_float4(tex: metallic_texture, coord: uv).x : metallic_constant; + float specular_lookup = tex::texture_isvalid(specular_texture) ? + tex::lookup_float4(tex: specular_texture, coord: uv).x : specular_constant; + + float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup; + float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup; + float ao = enable_ORM_texture ? ORM_lookup.x : ao_lookup; + + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); + float anisotropy = math::lerp(anisotropy_constant, anisotropy_lookup, anisotropy_texture_influence); + float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook ? + ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) ? + tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) : emissive_mask_input; + +} in SimPBR_Model( + diffuse_color: diffuse_color, + diffuse_tint: diffuse_tint, + roughness: reflection_roughness, + anisotropy: anisotropy, + metallic: metallic, + specular: specular_lookup, + normal: normal_lookup, + enable_clearcoat: enable_clearcoat, + clearcoat_tint: clearcoat_tint, + clearcoat_transparency: clearcoat_transparency, + clearcoat_reflection_roughness: clearcoat_reflection_roughness, + clearcoat_weight: clearcoat_weight, + clearcoat_ior: clearcoat_ior, + clearcoat_normal: final_clearcoat_normal, + enable_retroreflection: enable_retroreflection, + retroreflection_tint: retroreflection_tint, + normal_reflectivity: normal_reflectivity, + grazing_reflectivity: grazing_reflectivity, + ao_to_diffuse: ao_to_diffuse, + ao: ao, + enable_emission: enable_emission, + emissive_color: emissive_color, + emissive_mask: emissive_mask, + emissive_intensity: emissive_intensity, + enable_opacity: enable_opacity, + alpha: opacityValue, + enable_opacity_cutout: enable_opacity_cutout, + alpha_cutout_cutoff: alpha_cutout_cutoff, + opacity_ratio: enable_transmission ? opacity_ratio : 1.0, + opacity_tint : opacity_tint, + opacity_multiplier : opacity_multiplier +); diff --git a/assets/objects/vomp/spatula_19/materials/SimPBR_Model.mdl b/assets/objects/vomp/spatula_19/materials/SimPBR_Model.mdl new file mode 100644 index 0000000000000000000000000000000000000000..dccd3808942cb243a4e03f77f684935081b31ec5 --- /dev/null +++ b/assets/objects/vomp/spatula_19/materials/SimPBR_Model.mdl @@ -0,0 +1,212 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +using .::baking_annotations import *; + +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 + ); +} + +export material SimPBR_Model( + color diffuse_color = color(0.2f) [[ target_baked_argument("diffuse_texture", "diffuse_color_constant", "RGBA8_UNORM") ]], + uniform color diffuse_tint = color(1.0f), + float roughness = 0.5f [[ target_baked_argument("reflectionroughness_texture", "reflection_roughness_constant", "R8_UNORM") ]], + float anisotropy = 0.0f [[ target_baked_argument("anisotropy_texture", "anisotropy_constant", "R8_SNORM") ]], + float metallic = 0.f [[ target_baked_argument("metallic_texture", "metallic_constant", "R8_UNORM") ]], + float specular = 1.f [[ target_baked_argument("specular_texture", "specular_constant", "R8_UNORM") ]], + float3 normal = float3(0.0, 0.0, 0.0) [[ target_baked_argument("normalmap_texture", "normal_input", "RGBA8_SNORM", baking_annotations::TRANSFORM_UNORM_VECTOR) ]], + uniform bool enable_clearcoat = false, + color clearcoat_tint = color(1.0f), + float clearcoat_transparency = 1.0f, + float clearcoat_reflection_roughness = 0.0f, + float clearcoat_weight = 1.0f, + float clearcoat_ior = 1.56f, + float3 clearcoat_normal = float3(0.0, 0.0, 0.0) [[ target_baked_argument("clearcoat_normalmap_texture", "clearcoat_normal_input", "RGBA8_SNORM", baking_annotations::TRANSFORM_UNORM_VECTOR) ]], + uniform bool enable_retroreflection = false, + color retroreflection_tint = color(.182,.800,.000), + uniform float normal_reflectivity = 0.5, + uniform float grazing_reflectivity = 1.0, + float ao_to_diffuse = 0.0, + float ao = 1.0f [[ target_baked_argument("ao_texture", "ao_input", "R8_UNORM") ]], + uniform bool enable_emission = false, + uniform color emissive_color = color(1.0, 0.1, 0.1), + color emissive_mask = color(1.0, 0.1, 0.1) [[ target_baked_argument("emissive_mask_texture", "emissive_mask_input", "R8_UNORM") ]], + uniform float emissive_intensity = 40.f, + uniform bool enable_opacity = false, + float alpha = 1.0, + uniform bool enable_opacity_cutout = false, + uniform float alpha_cutout_cutoff = 1.f, + uniform float opacity_ratio = 1.f, + uniform color opacity_tint = color(1.0f), + uniform float opacity_multiplier = 1.f +) +[[ + target_material_model(), + target_material_rendering("..::SimPBR::SimPBR") +]] + = let { + color base_color = multiply_colors(diffuse_color, diffuse_tint, 1.0).tint; + color ao_weighted_base_color = multiply_colors(base_color, color(ao), ao_to_diffuse).tint; + + float squared_roughness = roughness * roughness; + float roughness_u = squared_roughness * (1 + anisotropy); + float roughness_v = squared_roughness * (1 - anisotropy); + + color diffuse_transmission_color = base_color * opacity_tint * opacity_multiplier; + + bsdf diffuse_bsdf = df::weighted_layer( + weight: opacity_ratio, + layer: df::diffuse_reflection_bsdf( + tint: ao_weighted_base_color, + roughness: 0.0f + ), + base: df::diffuse_transmission_bsdf(tint: diffuse_transmission_color), + normal: enable_clearcoat ? normal : state::normal() + ); + + bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_u, + roughness_v: roughness_v, + tint: color(1.0, 1.0, 1.0), + mode: df::scatter_reflect + ); + + bsdf custom_curve_layer_bsdf = df::custom_curve_layer( + normal_reflectivity: 0.03, + grazing_reflectivity: 1.0, + exponent: 5.0, + weight: specular, + layer: ggx_smith_bsdf, + base: diffuse_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + // + // Begin RETROREFLECTION SUPPORT + // + color final_retroreflection_color = multiply_colors(retroreflection_tint, base_color, 1.0).tint; + bsdf backscattering_glossy_bsdf = df::backscattering_glossy_reflection_bsdf( + tint: final_retroreflection_color, + roughness_u: squared_roughness + ); + + /*bsdf retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: 1.-normal_reflectivity, + grazing_reflectivity: 1.-grazing_reflectivity, + base: backscattering_glossy_bsdf, + layer: custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + );*/ + + // if normal_reflectivity and grazing_reflectivity are 1 and weight is 1, just the layer is used + bsdf opt_retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: enable_retroreflection ? 1.-normal_reflectivity : 1, + grazing_reflectivity: enable_retroreflection ? 1.-grazing_reflectivity : 1, + base: backscattering_glossy_bsdf, + layer: custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + // + // End RETROREFLECTION SUPPORT + // + + bsdf directional_factor_bsdf = df::directional_factor( + normal_tint: ao_weighted_base_color, + grazing_tint: color(1.0, 1.0, 1.0), + exponent: 5.0f, + base: ggx_smith_bsdf + ); + + // CLEARCOAT + bsdf omni_PBR_bsdf = df::weighted_layer( + weight: metallic, + layer: directional_factor_bsdf, + base: opt_retroreflection_bsdf, //enable_retroreflection ? retroreflection_bsdf : custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + bsdf clearcoat_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + roughness_v: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + 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 opt_opaque_clearcoat = df::weighted_layer( + weight: enable_clearcoat ? clearcoat_transparency : 1, + layer: ::df::tint(tint: enable_clearcoat ? clearcoat_tint : color(1), base: omni_PBR_bsdf), + base: ::df::diffuse_reflection_bsdf(tint: clearcoat_tint) + ); + + bsdf opt_omni_PBR_coated_bsdf = df::fresnel_layer( + ior: clearcoat_ior, + weight: enable_clearcoat ? clearcoat_weight : 0, + layer: clearcoat_bsdf, + base: opt_opaque_clearcoat, + normal: clearcoat_normal + ); + + bsdf final_bsdf = opt_omni_PBR_coated_bsdf; +} in material( + thin_walled: false, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + geometry: material_geometry( + normal: enable_clearcoat ? state::normal() : normal, + cutout_opacity: enable_opacity ? (enable_opacity_cutout ? (alpha < alpha_cutout_cutoff ? 0.0 : 1.0) : alpha) : 1.0 + ) +); diff --git a/assets/objects/vomp/spatula_19/materials/SimPBR_Opacity.mdl b/assets/objects/vomp/spatula_19/materials/SimPBR_Opacity.mdl new file mode 100644 index 0000000000000000000000000000000000000000..cf0a3ba759fc0b873d174b410b31759b1d426307 --- /dev/null +++ b/assets/objects/vomp/spatula_19/materials/SimPBR_Opacity.mdl @@ -0,0 +1,651 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +import ::nvidia::core_definitions::file_texture; +import ::nvidia::core_definitions::normalmap_texture; + +float4 raw_file_texture( + uniform texture_2d texture + [[ anno::description("The input texture") ]], + base::texture_coordinate_info uvw = base::texture_coordinate_info() + [[ anno::description("Custom value for texture coordinate") ]], + 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") ]] +) +[[ + anno::description("General texturing function for 2D bitmap texture stored in a file"), + anno::noinline() +]] +{ + return tex::lookup_float4(texture, float2(uvw.position.x, uvw.position.y), wrap_u, wrap_v, crop_u, crop_v); +} + +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 SimPBR_Opacity( + // -------------------- DIFFUSE REFLECTION ---------------------- + uniform color diffuse_color_constant = color(0.2f) + [[ + anno::display_name("Albedo Base Color"), + anno::description("The base albedo color to use if no texture is specified"), + anno::in_group("Diffuse") + ]], + uniform texture_2d diffuse_texture = texture_2d() + [[ + anno::display_name("Albedo Map"), + anno::description("The texture specifying the albedo value to use"), + anno::in_group("Diffuse") + ]], + uniform color diffuse_tint = color(1.0f) + [[ + anno::display_name("Albedo Tint"), + anno::description("This tints the albedo color or texture contant"), + anno::in_group("Diffuse") + ]], + + // -------------------- SPECULAR REFLECTION ---------------------- + uniform 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + uniform float anisotropy_constant = 0.0f + [[ + anno::display_name("Anisotropy Amount"), + anno::hard_range(-1.,1.), + anno::description("0 for isotropic, extents of -1 to 1 for anisotropy"), + anno::in_group("Specular") + ]], + uniform float anisotropy_texture_influence = 0.0f + [[ + anno::display_name("Anisotropy Map Influence"), + anno::hard_range(0.0, 1.), + anno::description("Blends between the constant value and the lookup of the anisotropy texture"), + anno::in_group("Specular") + ]], + uniform texture_2d anisotropy_texture = texture_2d() + [[ + anno::display_name("Anisotropy Map"), + anno::in_group("Specular") + ]], + + uniform float metallic_constant = 0.f + [[ + anno::display_name("Metallic Amount"), + anno::hard_range(0.0,1.), + anno::description("Metallic Material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d metallic_texture = texture_2d() + [[ + anno::display_name("Metallic Map"), + anno::in_group("Specular") + ]], + + // -------------------- ORM ---------------------- + uniform bool enable_ORM_texture = true + [[ + 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") + ]], + + // -------------------- 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") + ]], + 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") + ]], + 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") + ]], + + // -------------------- REFLECTIVITY ---------------------- + uniform bool enable_retroreflection = false + [[ + anno::display_name("Enable Retroreflection"), + anno::in_group("Reflectivity") + ]], + color retroreflection_color = color(.182,.800,.000) + [[ + anno::display_name("Retro-reflection color"), + anno::description("The color of the retroreflection"), + anno::in_group("Reflectivity") + ]], + uniform float normal_reflectivity = 0.5 + [[ + anno::display_name("Retro-reflection weight facing"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for geometry facing the viewer"), + anno::in_group("Reflectivity") + ]], + uniform float grazing_reflectivity = 1.0 + [[ + anno::display_name("Retro-reflection weight edge"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for the reflectivity at geometry edges"), + anno::in_group("Reflectivity") + ]], + + // -------------------- AMBIENT OCCLUSION ---------------------- + 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") + ]], + 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") + ]], + uniform 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_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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- ALPHA ---------------------- + uniform bool enable_alpha = true + [[ + anno::display_name("Enable Alpha"), + anno::description("Enables or disables alpha functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_constant = 1.0 + [[ + anno::display_name("Alpha Fallback Constant"), + anno::description("The base alpha constant to use if no texture is specified"), + anno::in_group("Alpha") + ]], + uniform texture_2d opacity_texture = texture_2d() + [[ + anno::display_name("Opacity Map"), + anno::description("The texture specifying the opacity value to use"), + anno::in_group("Alpha") + ]], + uniform bool enable_alpha_cutout = false + [[ + anno::display_name("Enable Alpha Cutout"), + anno::description("Enables or disables alpha cutout functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_cutout_cutoff = 1.f + [[ + anno::enable_if("enable_alpha_cutout == true"), + anno::hard_range(0.0, 1.0), + anno::display_name("Alpha Cutout Cutoff"), + anno::description("The cutoff value to to render as transparent up to and opaque past"), + anno::in_group("Alpha") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("Normal Map"), + anno::in_group("Normal") + ]], + + // -------------------- UV ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Scale"), + anno::description("Larger number increases size of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR Opaque Alpha Cutout"), + anno::description("Supports the opaque alpha cutout material model of the Sim Renderer"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "opaque", "alpha", "cutout", "omniverse", "generic")) +]] + = let { + + 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: 0, + projection_type: base::projection_cubic ) : + base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw ); + + // Diffuse Color Lookup and AO + float4 base_lookup = tex::texture_isvalid(diffuse_texture) ? raw_file_texture(texture: diffuse_texture, uvw: transformed_uvw) : float4(1, 1, 1, 1); + + float opacityValue = tex::texture_isvalid(opacity_texture) ? raw_file_texture(texture: opacity_texture, uvw: transformed_uvw).x : alpha_constant; + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw + ) : state::normal(); + + float3 clearcoat_normal = base::tangent_space_normal_texture( + texture: clearcoat_normalmap_texture, + factor: clearcoat_bump_factor, + uvw: uvw + ); + + float3 flattened_clearcoat_normal = ::math::lerp(normal_lookup, ::state::normal(), clearcoat_flatten); + float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? clearcoat_normal : flattened_clearcoat_normal; + + float ao_lookup = tex::texture_isvalid(ao_texture) ? + raw_file_texture(texture: ao_texture, uvw: transformed_uvw).x : + 1.0f + [[anno::unused("Currently unused in material, may be utilized in the future")]]; + + color diffuse_color = tex::texture_isvalid(diffuse_texture) ? color(base_lookup.x, base_lookup.y, base_lookup.z) : diffuse_color_constant; + color base_color = multiply_colors(diffuse_color, diffuse_tint, 1.0).tint; + + float3 ORM_lookup = tex::lookup_float3( + tex: ORM_texture, + coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) + ); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + raw_file_texture(texture: reflectionroughness_texture, uvw: transformed_uvw).x : + reflection_roughness_constant; + float anisotropy_lookup = tex::texture_isvalid(anisotropy_texture) ? + (raw_file_texture(texture: anisotropy_texture, uvw: transformed_uvw).x * 2.0f - 1.0f) : + anisotropy_constant; + float metallic_lookup = tex::texture_isvalid(metallic_texture) ? + raw_file_texture(texture: metallic_texture, uvw: transformed_uvw).x : + metallic_constant; + + float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup; + float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup; + color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : color(ao_lookup); + + color ao_weighted_base_color = multiply_colors(base_color, ao_color, ao_to_diffuse).tint; + + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); + float anisotropy = math::lerp(anisotropy_constant, anisotropy_lookup, anisotropy_texture_influence); + float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); + + float squared_roughness = reflection_roughness * reflection_roughness; + float roughness_u = squared_roughness * (1 + anisotropy); + float roughness_v = squared_roughness * (1 - anisotropy); + + bsdf diffuse_bsdf = df::weighted_layer( + weight: 1.0, + layer: df::diffuse_reflection_bsdf( + tint: ao_weighted_base_color, + roughness: 0.f ), + base: bsdf(), + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_u, + roughness_v: roughness_v, + tint: color(1.0, 1.0, 1.0), + mode: df::scatter_reflect + ); + + bsdf custom_curve_layer_bsdf = df::custom_curve_layer( + normal_reflectivity: 0.03, + grazing_reflectivity: 1.0, + exponent: 5.0, + weight: float(1.0), + layer: ggx_smith_bsdf, + base: diffuse_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + // + // Begin RETROREFLECTION SUPPORT + // + bsdf backscattering_glossy_bsdf = df::backscattering_glossy_reflection_bsdf( + tint: retroreflection_color, + roughness_u: reflection_roughness * reflection_roughness + ); + + bsdf retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: 1.-normal_reflectivity, + grazing_reflectivity: 1.-grazing_reflectivity, + base: backscattering_glossy_bsdf, + layer: diffuse_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + // + // End RETROREFLECTION SUPPORT + // + + bsdf directional_factor_bsdf = df::directional_factor( + normal_tint: ao_weighted_base_color, + grazing_tint: color(1.0, 1.0, 1.0), + exponent: 5.0f, + base: ggx_smith_bsdf + ); + + // CLEARCOAT + + bsdf omni_PBR_bsdf = df::weighted_layer( + weight: metallic, + layer: directional_factor_bsdf, + base: enable_retroreflection ? retroreflection_bsdf : custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + bsdf clearcoat_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + roughness_v: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + 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; + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook + ? ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) + : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) + ? tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) + : color(1.0); + +} in material( + thin_walled: false, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission ( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + geometry: material_geometry( + normal: enable_clearcoat ? state::normal() : normal_lookup, + cutout_opacity: enable_alpha ? (enable_alpha_cutout ? (opacityValue < alpha_cutout_cutoff ? 0.0 : 1.0) : opacityValue) : 1.0 + ) +); diff --git a/assets/objects/vomp/spatula_19/materials/SimPBR_Translucent.mdl b/assets/objects/vomp/spatula_19/materials/SimPBR_Translucent.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a60a90d1b946f94c266dabd515d5a15b6c3c9bd --- /dev/null +++ b/assets/objects/vomp/spatula_19/materials/SimPBR_Translucent.mdl @@ -0,0 +1,290 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +import ::nvidia::core_definitions::file_texture; +import ::nvidia::core_definitions::normalmap_texture; + +export material SimPBR_Translucent( + // -------------------- SPECULAR REFLECTION/TRANSMISSION ---------------------- + uniform float ior_constant = 1.1f + [[ + anno::display_name("Index of Refraction"), + anno::hard_range(0.0,5.), + anno::description("Index of Refraction of the material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + // -------------------- VOLUME ---------------------- + color transmittance_color = color(1.0, 1.0f, 1.0f) + [[ + anno::display_name("Transmittance Color"), + anno::description("Expected transmittance after the specified transmittance distance through the volume."), + anno::in_group("Volume") + ]], + float transmittance_measurement_distance = 1.0f + [[ + anno::display_name("Transmittance Measurement Distance"), + anno::description("Distance to match the transmittance through the volume at."), + anno::in_group("Volume") + ]], + + // -------------------- EMISSIVE ---------------------- + uniform bool enable_thin_walled = false + [[ + anno::display_name("Enable Thin Walled"), + anno::description("Enables thin walled logic"), + anno::in_group("Geometry") + ]], + + // -------------------- 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_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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("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 ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Tiling"), + anno::description("Controls the repetition of the texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR Translucent"), + anno::description("Supports the translucent material model of the Sim Renderer"), + anno::in_group("SimReady"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "translucent", "omniverse", "generic")) +]] + = let { + 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: 0, + projection_type: base::projection_cubic + ) : base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw + ); + float2 uv = float2(transformed_uvw.position.x, transformed_uvw.position.y); + + color volume_absorption_coefficient = -math::log(transmittance_color) / (transmittance_measurement_distance*0.01); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + tex::lookup_float4(tex: reflectionroughness_texture, coord: uv).x : reflection_roughness_constant; + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_lookup, reflection_roughness_texture_influence); + + float roughness_squared = reflection_roughness * reflection_roughness; + + bsdf final_bsdf(enable_thin_walled ? + ::df::fresnel_layer( + ior_constant, + 1.f, + ::df::microfacet_ggx_smith_bsdf( + roughness_squared, + roughness_squared, + color(1.f, 1.f, 1.f), + ::state::texture_tangent_u(0), + ::df::scatter_reflect, + "" + ), + ::df::specular_bsdf( + transmittance_color, + ::df::scatter_transmit, + "" + ), ::state::normal()) + : ::df::microfacet_ggx_smith_bsdf( + roughness_squared, + roughness_squared, + color(1.f, 1.f, 1.f), + ::state::texture_tangent_u(0), + ::df::scatter_reflect_transmit, + "" + )); + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook ? + ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) ? + tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) : color(1.0); + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw, + flip_tangent_u: flip_tangent_u, + flip_tangent_v: flip_tangent_v + ) : state::normal(); +} in material( + thin_walled: enable_thin_walled, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission ( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + ior: color(ior_constant), + volume: material_volume( + scattering: df::anisotropic_vdf(), + absorption_coefficient: volume_absorption_coefficient, + scattering_coefficient: color(0.0f, 0.0f, 0.0f) + ), + geometry: material_geometry( + normal: normal_lookup + ) +); diff --git a/assets/objects/vomp/spatula_19/textures/Spatulas_Set02_Opacity.png b/assets/objects/vomp/spatula_19/textures/Spatulas_Set02_Opacity.png new file mode 100644 index 0000000000000000000000000000000000000000..776aabedf22973ce066a9728e1d4a2e65365db5d Binary files /dev/null and b/assets/objects/vomp/spatula_19/textures/Spatulas_Set02_Opacity.png differ diff --git a/assets/objects/vomp/spoon_small/materials/SimPBR.mdl b/assets/objects/vomp/spoon_small/materials/SimPBR.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5883146f569e93208db72c08a810b7d71eaeece7 --- /dev/null +++ b/assets/objects/vomp/spoon_small/materials/SimPBR.mdl @@ -0,0 +1,562 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + + +using .::SimPBR_Model import *; +using .::baking_annotations import *; + +export material SimPBR( + // -------------------- DIFFUSE REFLECTION ---------------------- + uniform color diffuse_color_constant = color(0.2f) + [[ + anno::display_name("Albedo Base Color"), + anno::description("The base albedo color to use if no texture is specified"), + anno::in_group("Diffuse") + ]], + uniform texture_2d diffuse_texture = texture_2d() + [[ + anno::display_name("Albedo Map"), + anno::description("The texture specifying the albedo value to use"), + anno::in_group("Diffuse") + ]], + uniform color diffuse_tint = color(1.0f) + [[ + anno::display_name("Albedo Tint"), + anno::description("This tints the albedo color or texture contant"), + anno::in_group("Diffuse") + ]], + uniform bool enable_transmission = false + [[ + anno::display_name("Enable Diffuse Transmission"), + anno::description("Enables the diffuse transmission of light through thin diffuse scattering layer"), + anno::in_group("Diffuse") + ]], + uniform float opacity_ratio = 1.f + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Opacity Ratio"), + anno::description("Amount of opacity"), + anno::in_group("Diffuse") + ]], + uniform color opacity_tint = color(1.0f) + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Diffuse transmission tint"), + anno::description("Base diffuse transmission color"), + anno::in_group("Diffuse") + ]], + uniform float opacity_multiplier = 1.f + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Diffuse transmission multiplier"), + anno::description("Base diffuse transmission multiplier"), + anno::in_group("Diffuse") + ]], + + // -------------------- SPECULAR REFLECTION ---------------------- + 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + float anisotropy_constant = 0.0f + [[ + anno::display_name("Anisotropy Amount"), + anno::hard_range(-1.,1.), + anno::description("0 for isotropic, extents of -1 to 1 for anisotropy"), + anno::in_group("Specular") + ]], + uniform float anisotropy_texture_influence = 0.0f + [[ + anno::display_name("Anisotropy Map Influence"), + anno::hard_range(0.0, 1.), + anno::description("Blends between the constant value and the lookup of the anisotropy texture"), + anno::in_group("Specular") + ]], + uniform texture_2d anisotropy_texture = texture_2d() + [[ + anno::display_name("Anisotropy Map"), + anno::in_group("Specular") + ]], + + float metallic_constant = 0.f + [[ + anno::display_name("Metallic Amount"), + anno::hard_range(0.0,1.), + anno::description("Metallic Material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d metallic_texture = texture_2d() + [[ + anno::display_name("Metallic Map"), + anno::in_group("Specular") + ]], + + float specular_constant = 1.f + [[ + anno::display_name("Specular amount"), + anno::hard_range(0.0, 1.0), + anno::description("Scale of the specular component"), + anno::in_group("Specular") + ]], + uniform texture_2d specular_texture = texture_2d() + [[ + anno::display_name("Specular Map"), + anno::in_group("Specular") + ]], + + // -------------------- ORM ---------------------- + uniform bool enable_ORM_texture = true + [[ + 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") + ]], + + // -------------------- 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") + ]], + 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") + ]], + + float3 clearcoat_normal_input = float3(0.0, 0.0, 0.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") + ]], + + uniform bool clearcoat_flip_tangent_u = false + [[ + anno::display_name("Clearcoat Normal Map Flip U Tangent"), + anno::in_group("Clearcoat") + ]], + uniform bool clearcoat_flip_tangent_v = true + [[ + anno::display_name("Clearcoat Normal Map Flip V Tangent"), + anno::in_group("Clearcoat") + ]], + + + // -------------------- REFLECTIVITY ---------------------- + uniform bool enable_retroreflection = false + [[ + anno::display_name("Enable Retroreflection"), + anno::in_group("Reflectivity") + ]], + color retroreflection_tint = color(.182,.800,.000) + [[ + anno::display_name("Retro-reflection tint"), + anno::description("The tint of the retroreflection"), + anno::in_group("Reflectivity") + ]], + uniform float normal_reflectivity = 0.5 + [[ + anno::display_name("Retro-reflection weight facing"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for geometry facing the viewer"), + anno::in_group("Reflectivity") + ]], + uniform float grazing_reflectivity = 1.0 + [[ + anno::display_name("Retro-reflection weight edge"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for the reflectivity at geometry edges"), + anno::in_group("Reflectivity") + ]], + + // -------------------- AMBIENT OCCLUSION ---------------------- + 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") + ]], + float ao_input = 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") + ]], + + // -------------------- 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") + ]], + uniform 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") + ]], + + color emissive_mask_input = color(1.0), + 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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- ALPHA ---------------------- + uniform bool enable_opacity = false + [[ + anno::display_name("Enable Opacity"), + anno::description("Enables or disables alpha functionality"), + anno::in_group("Alpha") + ]], + float alpha_constant = 1.0 + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Opacity Fallback Constant"), + anno::hard_range(0.0, 1.0), + anno::description("The base alpha constant to use if no texture is specified"), + anno::in_group("Alpha") + ]], + uniform texture_2d opacity_texture = texture_2d() + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Opacity Map"), + anno::description("The texture specifying the opacity value to use"), + anno::in_group("Alpha") + ]], + uniform bool enable_opacity_cutout = false + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Enable Alpha Cutout"), + anno::description("Enables or disables alpha cutout functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_cutout_cutoff = 1.f + [[ + anno::enable_if("enable_opacity == true"), + anno::enable_if("enable_opacity_cutout == true"), + anno::hard_range(0.0, 1.0), + anno::display_name("Alpha Cutout Cutoff"), + anno::description("The cutoff value to to render as transparent up to and opaque past"), + anno::in_group("Alpha") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + + float3 normal_input = state::normal(), + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("Normal Map"), + anno::in_group("Normal") + ]], + uniform bool flip_tangent_u = false + [[ + anno::display_name("Normal Map Flip U Tangent"), + anno::description("Flips the U Tangent vector."), + anno::in_group("Normal") + ]], + uniform bool flip_tangent_v = true + [[ + anno::display_name("Normal Map Flip V Tangent"), + anno::description("Flips the V Tangent vector. By Default, SimPBR materials setup for DirectX normal maps. Set Normal Map Flip V = false for OpenGL."), + anno::in_group("Normal") + ]], + + // -------------------- UV ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Tiling"), + anno::description("Controls repetition of the texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR"), + anno::description("Supports the opaque alpha cutout material model of the Sim Renderer"), + anno::in_group("SimReady"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "opaque", "alpha", "cutout", "omniverse", "generic")) +]] + = let { + 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: 0, + projection_type: base::projection_cubic + ) : base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw + ); + float2 uv = float2(transformed_uvw.position.x, transformed_uvw.position.y); + + // Diffuse Color Lookup and AO + float4 base_lookup = tex::texture_isvalid(diffuse_texture) ? tex::lookup_float4(tex: diffuse_texture, coord: uv) : float4(1, 1, 1, 1); + + float opacityValue = tex::texture_isvalid(opacity_texture) ? tex::lookup_float4(tex: opacity_texture, coord: uv).w : alpha_constant; + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw, + flip_tangent_u: flip_tangent_u, + flip_tangent_v: flip_tangent_v + ) : normal_input; + + float3 clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? + base::tangent_space_normal_texture( + texture: clearcoat_normalmap_texture, + factor: clearcoat_bump_factor, + uvw: uvw, + flip_tangent_u: clearcoat_flip_tangent_u, + flip_tangent_v: clearcoat_flip_tangent_v + ) : clearcoat_normal_input; + + float3 flattened_clearcoat_normal = ::math::lerp(normal_lookup, ::state::normal(), clearcoat_flatten); + float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? clearcoat_normal : flattened_clearcoat_normal; + + float ao_lookup = tex::texture_isvalid(ao_texture) ? tex::lookup_float4(tex: ao_texture, coord: uv).x : ao_input; + + color diffuse_color = tex::texture_isvalid(diffuse_texture) ? color(base_lookup.x, base_lookup.y, base_lookup.z) : diffuse_color_constant; + + float3 ORM_lookup = tex::lookup_float3( + tex: ORM_texture, + coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) + ); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + tex::lookup_float4(tex: reflectionroughness_texture, coord: uv).x : reflection_roughness_constant; + float anisotropy_lookup = tex::texture_isvalid(anisotropy_texture) ? + (tex::lookup_float4(tex: anisotropy_texture, coord: uv).x * 2.0f - 1.0f) : anisotropy_constant; + float metallic_lookup = tex::texture_isvalid(metallic_texture) ? + tex::lookup_float4(tex: metallic_texture, coord: uv).x : metallic_constant; + float specular_lookup = tex::texture_isvalid(specular_texture) ? + tex::lookup_float4(tex: specular_texture, coord: uv).x : specular_constant; + + float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup; + float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup; + float ao = enable_ORM_texture ? ORM_lookup.x : ao_lookup; + + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); + float anisotropy = math::lerp(anisotropy_constant, anisotropy_lookup, anisotropy_texture_influence); + float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook ? + ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) ? + tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) : emissive_mask_input; + +} in SimPBR_Model( + diffuse_color: diffuse_color, + diffuse_tint: diffuse_tint, + roughness: reflection_roughness, + anisotropy: anisotropy, + metallic: metallic, + specular: specular_lookup, + normal: normal_lookup, + enable_clearcoat: enable_clearcoat, + clearcoat_tint: clearcoat_tint, + clearcoat_transparency: clearcoat_transparency, + clearcoat_reflection_roughness: clearcoat_reflection_roughness, + clearcoat_weight: clearcoat_weight, + clearcoat_ior: clearcoat_ior, + clearcoat_normal: final_clearcoat_normal, + enable_retroreflection: enable_retroreflection, + retroreflection_tint: retroreflection_tint, + normal_reflectivity: normal_reflectivity, + grazing_reflectivity: grazing_reflectivity, + ao_to_diffuse: ao_to_diffuse, + ao: ao, + enable_emission: enable_emission, + emissive_color: emissive_color, + emissive_mask: emissive_mask, + emissive_intensity: emissive_intensity, + enable_opacity: enable_opacity, + alpha: opacityValue, + enable_opacity_cutout: enable_opacity_cutout, + alpha_cutout_cutoff: alpha_cutout_cutoff, + opacity_ratio: enable_transmission ? opacity_ratio : 1.0, + opacity_tint : opacity_tint, + opacity_multiplier : opacity_multiplier +); diff --git a/assets/objects/vomp/spoon_small/materials/SimPBR_Model.mdl b/assets/objects/vomp/spoon_small/materials/SimPBR_Model.mdl new file mode 100644 index 0000000000000000000000000000000000000000..dccd3808942cb243a4e03f77f684935081b31ec5 --- /dev/null +++ b/assets/objects/vomp/spoon_small/materials/SimPBR_Model.mdl @@ -0,0 +1,212 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +using .::baking_annotations import *; + +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 + ); +} + +export material SimPBR_Model( + color diffuse_color = color(0.2f) [[ target_baked_argument("diffuse_texture", "diffuse_color_constant", "RGBA8_UNORM") ]], + uniform color diffuse_tint = color(1.0f), + float roughness = 0.5f [[ target_baked_argument("reflectionroughness_texture", "reflection_roughness_constant", "R8_UNORM") ]], + float anisotropy = 0.0f [[ target_baked_argument("anisotropy_texture", "anisotropy_constant", "R8_SNORM") ]], + float metallic = 0.f [[ target_baked_argument("metallic_texture", "metallic_constant", "R8_UNORM") ]], + float specular = 1.f [[ target_baked_argument("specular_texture", "specular_constant", "R8_UNORM") ]], + float3 normal = float3(0.0, 0.0, 0.0) [[ target_baked_argument("normalmap_texture", "normal_input", "RGBA8_SNORM", baking_annotations::TRANSFORM_UNORM_VECTOR) ]], + uniform bool enable_clearcoat = false, + color clearcoat_tint = color(1.0f), + float clearcoat_transparency = 1.0f, + float clearcoat_reflection_roughness = 0.0f, + float clearcoat_weight = 1.0f, + float clearcoat_ior = 1.56f, + float3 clearcoat_normal = float3(0.0, 0.0, 0.0) [[ target_baked_argument("clearcoat_normalmap_texture", "clearcoat_normal_input", "RGBA8_SNORM", baking_annotations::TRANSFORM_UNORM_VECTOR) ]], + uniform bool enable_retroreflection = false, + color retroreflection_tint = color(.182,.800,.000), + uniform float normal_reflectivity = 0.5, + uniform float grazing_reflectivity = 1.0, + float ao_to_diffuse = 0.0, + float ao = 1.0f [[ target_baked_argument("ao_texture", "ao_input", "R8_UNORM") ]], + uniform bool enable_emission = false, + uniform color emissive_color = color(1.0, 0.1, 0.1), + color emissive_mask = color(1.0, 0.1, 0.1) [[ target_baked_argument("emissive_mask_texture", "emissive_mask_input", "R8_UNORM") ]], + uniform float emissive_intensity = 40.f, + uniform bool enable_opacity = false, + float alpha = 1.0, + uniform bool enable_opacity_cutout = false, + uniform float alpha_cutout_cutoff = 1.f, + uniform float opacity_ratio = 1.f, + uniform color opacity_tint = color(1.0f), + uniform float opacity_multiplier = 1.f +) +[[ + target_material_model(), + target_material_rendering("..::SimPBR::SimPBR") +]] + = let { + color base_color = multiply_colors(diffuse_color, diffuse_tint, 1.0).tint; + color ao_weighted_base_color = multiply_colors(base_color, color(ao), ao_to_diffuse).tint; + + float squared_roughness = roughness * roughness; + float roughness_u = squared_roughness * (1 + anisotropy); + float roughness_v = squared_roughness * (1 - anisotropy); + + color diffuse_transmission_color = base_color * opacity_tint * opacity_multiplier; + + bsdf diffuse_bsdf = df::weighted_layer( + weight: opacity_ratio, + layer: df::diffuse_reflection_bsdf( + tint: ao_weighted_base_color, + roughness: 0.0f + ), + base: df::diffuse_transmission_bsdf(tint: diffuse_transmission_color), + normal: enable_clearcoat ? normal : state::normal() + ); + + bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_u, + roughness_v: roughness_v, + tint: color(1.0, 1.0, 1.0), + mode: df::scatter_reflect + ); + + bsdf custom_curve_layer_bsdf = df::custom_curve_layer( + normal_reflectivity: 0.03, + grazing_reflectivity: 1.0, + exponent: 5.0, + weight: specular, + layer: ggx_smith_bsdf, + base: diffuse_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + // + // Begin RETROREFLECTION SUPPORT + // + color final_retroreflection_color = multiply_colors(retroreflection_tint, base_color, 1.0).tint; + bsdf backscattering_glossy_bsdf = df::backscattering_glossy_reflection_bsdf( + tint: final_retroreflection_color, + roughness_u: squared_roughness + ); + + /*bsdf retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: 1.-normal_reflectivity, + grazing_reflectivity: 1.-grazing_reflectivity, + base: backscattering_glossy_bsdf, + layer: custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + );*/ + + // if normal_reflectivity and grazing_reflectivity are 1 and weight is 1, just the layer is used + bsdf opt_retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: enable_retroreflection ? 1.-normal_reflectivity : 1, + grazing_reflectivity: enable_retroreflection ? 1.-grazing_reflectivity : 1, + base: backscattering_glossy_bsdf, + layer: custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + // + // End RETROREFLECTION SUPPORT + // + + bsdf directional_factor_bsdf = df::directional_factor( + normal_tint: ao_weighted_base_color, + grazing_tint: color(1.0, 1.0, 1.0), + exponent: 5.0f, + base: ggx_smith_bsdf + ); + + // CLEARCOAT + bsdf omni_PBR_bsdf = df::weighted_layer( + weight: metallic, + layer: directional_factor_bsdf, + base: opt_retroreflection_bsdf, //enable_retroreflection ? retroreflection_bsdf : custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + bsdf clearcoat_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + roughness_v: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + 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 opt_opaque_clearcoat = df::weighted_layer( + weight: enable_clearcoat ? clearcoat_transparency : 1, + layer: ::df::tint(tint: enable_clearcoat ? clearcoat_tint : color(1), base: omni_PBR_bsdf), + base: ::df::diffuse_reflection_bsdf(tint: clearcoat_tint) + ); + + bsdf opt_omni_PBR_coated_bsdf = df::fresnel_layer( + ior: clearcoat_ior, + weight: enable_clearcoat ? clearcoat_weight : 0, + layer: clearcoat_bsdf, + base: opt_opaque_clearcoat, + normal: clearcoat_normal + ); + + bsdf final_bsdf = opt_omni_PBR_coated_bsdf; +} in material( + thin_walled: false, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + geometry: material_geometry( + normal: enable_clearcoat ? state::normal() : normal, + cutout_opacity: enable_opacity ? (enable_opacity_cutout ? (alpha < alpha_cutout_cutoff ? 0.0 : 1.0) : alpha) : 1.0 + ) +); diff --git a/assets/objects/vomp/spoon_small/materials/SimPBR_Opacity.mdl b/assets/objects/vomp/spoon_small/materials/SimPBR_Opacity.mdl new file mode 100644 index 0000000000000000000000000000000000000000..cf0a3ba759fc0b873d174b410b31759b1d426307 --- /dev/null +++ b/assets/objects/vomp/spoon_small/materials/SimPBR_Opacity.mdl @@ -0,0 +1,651 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +import ::nvidia::core_definitions::file_texture; +import ::nvidia::core_definitions::normalmap_texture; + +float4 raw_file_texture( + uniform texture_2d texture + [[ anno::description("The input texture") ]], + base::texture_coordinate_info uvw = base::texture_coordinate_info() + [[ anno::description("Custom value for texture coordinate") ]], + 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") ]] +) +[[ + anno::description("General texturing function for 2D bitmap texture stored in a file"), + anno::noinline() +]] +{ + return tex::lookup_float4(texture, float2(uvw.position.x, uvw.position.y), wrap_u, wrap_v, crop_u, crop_v); +} + +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 SimPBR_Opacity( + // -------------------- DIFFUSE REFLECTION ---------------------- + uniform color diffuse_color_constant = color(0.2f) + [[ + anno::display_name("Albedo Base Color"), + anno::description("The base albedo color to use if no texture is specified"), + anno::in_group("Diffuse") + ]], + uniform texture_2d diffuse_texture = texture_2d() + [[ + anno::display_name("Albedo Map"), + anno::description("The texture specifying the albedo value to use"), + anno::in_group("Diffuse") + ]], + uniform color diffuse_tint = color(1.0f) + [[ + anno::display_name("Albedo Tint"), + anno::description("This tints the albedo color or texture contant"), + anno::in_group("Diffuse") + ]], + + // -------------------- SPECULAR REFLECTION ---------------------- + uniform 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + uniform float anisotropy_constant = 0.0f + [[ + anno::display_name("Anisotropy Amount"), + anno::hard_range(-1.,1.), + anno::description("0 for isotropic, extents of -1 to 1 for anisotropy"), + anno::in_group("Specular") + ]], + uniform float anisotropy_texture_influence = 0.0f + [[ + anno::display_name("Anisotropy Map Influence"), + anno::hard_range(0.0, 1.), + anno::description("Blends between the constant value and the lookup of the anisotropy texture"), + anno::in_group("Specular") + ]], + uniform texture_2d anisotropy_texture = texture_2d() + [[ + anno::display_name("Anisotropy Map"), + anno::in_group("Specular") + ]], + + uniform float metallic_constant = 0.f + [[ + anno::display_name("Metallic Amount"), + anno::hard_range(0.0,1.), + anno::description("Metallic Material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d metallic_texture = texture_2d() + [[ + anno::display_name("Metallic Map"), + anno::in_group("Specular") + ]], + + // -------------------- ORM ---------------------- + uniform bool enable_ORM_texture = true + [[ + 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") + ]], + + // -------------------- 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") + ]], + 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") + ]], + 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") + ]], + + // -------------------- REFLECTIVITY ---------------------- + uniform bool enable_retroreflection = false + [[ + anno::display_name("Enable Retroreflection"), + anno::in_group("Reflectivity") + ]], + color retroreflection_color = color(.182,.800,.000) + [[ + anno::display_name("Retro-reflection color"), + anno::description("The color of the retroreflection"), + anno::in_group("Reflectivity") + ]], + uniform float normal_reflectivity = 0.5 + [[ + anno::display_name("Retro-reflection weight facing"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for geometry facing the viewer"), + anno::in_group("Reflectivity") + ]], + uniform float grazing_reflectivity = 1.0 + [[ + anno::display_name("Retro-reflection weight edge"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for the reflectivity at geometry edges"), + anno::in_group("Reflectivity") + ]], + + // -------------------- AMBIENT OCCLUSION ---------------------- + 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") + ]], + 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") + ]], + uniform 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_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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- ALPHA ---------------------- + uniform bool enable_alpha = true + [[ + anno::display_name("Enable Alpha"), + anno::description("Enables or disables alpha functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_constant = 1.0 + [[ + anno::display_name("Alpha Fallback Constant"), + anno::description("The base alpha constant to use if no texture is specified"), + anno::in_group("Alpha") + ]], + uniform texture_2d opacity_texture = texture_2d() + [[ + anno::display_name("Opacity Map"), + anno::description("The texture specifying the opacity value to use"), + anno::in_group("Alpha") + ]], + uniform bool enable_alpha_cutout = false + [[ + anno::display_name("Enable Alpha Cutout"), + anno::description("Enables or disables alpha cutout functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_cutout_cutoff = 1.f + [[ + anno::enable_if("enable_alpha_cutout == true"), + anno::hard_range(0.0, 1.0), + anno::display_name("Alpha Cutout Cutoff"), + anno::description("The cutoff value to to render as transparent up to and opaque past"), + anno::in_group("Alpha") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("Normal Map"), + anno::in_group("Normal") + ]], + + // -------------------- UV ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Scale"), + anno::description("Larger number increases size of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR Opaque Alpha Cutout"), + anno::description("Supports the opaque alpha cutout material model of the Sim Renderer"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "opaque", "alpha", "cutout", "omniverse", "generic")) +]] + = let { + + 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: 0, + projection_type: base::projection_cubic ) : + base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw ); + + // Diffuse Color Lookup and AO + float4 base_lookup = tex::texture_isvalid(diffuse_texture) ? raw_file_texture(texture: diffuse_texture, uvw: transformed_uvw) : float4(1, 1, 1, 1); + + float opacityValue = tex::texture_isvalid(opacity_texture) ? raw_file_texture(texture: opacity_texture, uvw: transformed_uvw).x : alpha_constant; + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw + ) : state::normal(); + + float3 clearcoat_normal = base::tangent_space_normal_texture( + texture: clearcoat_normalmap_texture, + factor: clearcoat_bump_factor, + uvw: uvw + ); + + float3 flattened_clearcoat_normal = ::math::lerp(normal_lookup, ::state::normal(), clearcoat_flatten); + float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? clearcoat_normal : flattened_clearcoat_normal; + + float ao_lookup = tex::texture_isvalid(ao_texture) ? + raw_file_texture(texture: ao_texture, uvw: transformed_uvw).x : + 1.0f + [[anno::unused("Currently unused in material, may be utilized in the future")]]; + + color diffuse_color = tex::texture_isvalid(diffuse_texture) ? color(base_lookup.x, base_lookup.y, base_lookup.z) : diffuse_color_constant; + color base_color = multiply_colors(diffuse_color, diffuse_tint, 1.0).tint; + + float3 ORM_lookup = tex::lookup_float3( + tex: ORM_texture, + coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) + ); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + raw_file_texture(texture: reflectionroughness_texture, uvw: transformed_uvw).x : + reflection_roughness_constant; + float anisotropy_lookup = tex::texture_isvalid(anisotropy_texture) ? + (raw_file_texture(texture: anisotropy_texture, uvw: transformed_uvw).x * 2.0f - 1.0f) : + anisotropy_constant; + float metallic_lookup = tex::texture_isvalid(metallic_texture) ? + raw_file_texture(texture: metallic_texture, uvw: transformed_uvw).x : + metallic_constant; + + float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup; + float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup; + color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : color(ao_lookup); + + color ao_weighted_base_color = multiply_colors(base_color, ao_color, ao_to_diffuse).tint; + + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); + float anisotropy = math::lerp(anisotropy_constant, anisotropy_lookup, anisotropy_texture_influence); + float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); + + float squared_roughness = reflection_roughness * reflection_roughness; + float roughness_u = squared_roughness * (1 + anisotropy); + float roughness_v = squared_roughness * (1 - anisotropy); + + bsdf diffuse_bsdf = df::weighted_layer( + weight: 1.0, + layer: df::diffuse_reflection_bsdf( + tint: ao_weighted_base_color, + roughness: 0.f ), + base: bsdf(), + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_u, + roughness_v: roughness_v, + tint: color(1.0, 1.0, 1.0), + mode: df::scatter_reflect + ); + + bsdf custom_curve_layer_bsdf = df::custom_curve_layer( + normal_reflectivity: 0.03, + grazing_reflectivity: 1.0, + exponent: 5.0, + weight: float(1.0), + layer: ggx_smith_bsdf, + base: diffuse_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + // + // Begin RETROREFLECTION SUPPORT + // + bsdf backscattering_glossy_bsdf = df::backscattering_glossy_reflection_bsdf( + tint: retroreflection_color, + roughness_u: reflection_roughness * reflection_roughness + ); + + bsdf retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: 1.-normal_reflectivity, + grazing_reflectivity: 1.-grazing_reflectivity, + base: backscattering_glossy_bsdf, + layer: diffuse_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + // + // End RETROREFLECTION SUPPORT + // + + bsdf directional_factor_bsdf = df::directional_factor( + normal_tint: ao_weighted_base_color, + grazing_tint: color(1.0, 1.0, 1.0), + exponent: 5.0f, + base: ggx_smith_bsdf + ); + + // CLEARCOAT + + bsdf omni_PBR_bsdf = df::weighted_layer( + weight: metallic, + layer: directional_factor_bsdf, + base: enable_retroreflection ? retroreflection_bsdf : custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + bsdf clearcoat_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + roughness_v: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + 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; + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook + ? ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) + : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) + ? tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) + : color(1.0); + +} in material( + thin_walled: false, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission ( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + geometry: material_geometry( + normal: enable_clearcoat ? state::normal() : normal_lookup, + cutout_opacity: enable_alpha ? (enable_alpha_cutout ? (opacityValue < alpha_cutout_cutoff ? 0.0 : 1.0) : opacityValue) : 1.0 + ) +); diff --git a/assets/objects/vomp/spoon_small/materials/SimPBR_Translucent.mdl b/assets/objects/vomp/spoon_small/materials/SimPBR_Translucent.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a60a90d1b946f94c266dabd515d5a15b6c3c9bd --- /dev/null +++ b/assets/objects/vomp/spoon_small/materials/SimPBR_Translucent.mdl @@ -0,0 +1,290 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +import ::nvidia::core_definitions::file_texture; +import ::nvidia::core_definitions::normalmap_texture; + +export material SimPBR_Translucent( + // -------------------- SPECULAR REFLECTION/TRANSMISSION ---------------------- + uniform float ior_constant = 1.1f + [[ + anno::display_name("Index of Refraction"), + anno::hard_range(0.0,5.), + anno::description("Index of Refraction of the material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + // -------------------- VOLUME ---------------------- + color transmittance_color = color(1.0, 1.0f, 1.0f) + [[ + anno::display_name("Transmittance Color"), + anno::description("Expected transmittance after the specified transmittance distance through the volume."), + anno::in_group("Volume") + ]], + float transmittance_measurement_distance = 1.0f + [[ + anno::display_name("Transmittance Measurement Distance"), + anno::description("Distance to match the transmittance through the volume at."), + anno::in_group("Volume") + ]], + + // -------------------- EMISSIVE ---------------------- + uniform bool enable_thin_walled = false + [[ + anno::display_name("Enable Thin Walled"), + anno::description("Enables thin walled logic"), + anno::in_group("Geometry") + ]], + + // -------------------- 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_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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("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 ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Tiling"), + anno::description("Controls the repetition of the texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR Translucent"), + anno::description("Supports the translucent material model of the Sim Renderer"), + anno::in_group("SimReady"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "translucent", "omniverse", "generic")) +]] + = let { + 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: 0, + projection_type: base::projection_cubic + ) : base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw + ); + float2 uv = float2(transformed_uvw.position.x, transformed_uvw.position.y); + + color volume_absorption_coefficient = -math::log(transmittance_color) / (transmittance_measurement_distance*0.01); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + tex::lookup_float4(tex: reflectionroughness_texture, coord: uv).x : reflection_roughness_constant; + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_lookup, reflection_roughness_texture_influence); + + float roughness_squared = reflection_roughness * reflection_roughness; + + bsdf final_bsdf(enable_thin_walled ? + ::df::fresnel_layer( + ior_constant, + 1.f, + ::df::microfacet_ggx_smith_bsdf( + roughness_squared, + roughness_squared, + color(1.f, 1.f, 1.f), + ::state::texture_tangent_u(0), + ::df::scatter_reflect, + "" + ), + ::df::specular_bsdf( + transmittance_color, + ::df::scatter_transmit, + "" + ), ::state::normal()) + : ::df::microfacet_ggx_smith_bsdf( + roughness_squared, + roughness_squared, + color(1.f, 1.f, 1.f), + ::state::texture_tangent_u(0), + ::df::scatter_reflect_transmit, + "" + )); + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook ? + ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) ? + tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) : color(1.0); + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw, + flip_tangent_u: flip_tangent_u, + flip_tangent_v: flip_tangent_v + ) : state::normal(); +} in material( + thin_walled: enable_thin_walled, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission ( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + ior: color(ior_constant), + volume: material_volume( + scattering: df::anisotropic_vdf(), + absorption_coefficient: volume_absorption_coefficient, + scattering_coefficient: color(0.0f, 0.0f, 0.0f) + ), + geometry: material_geometry( + normal: normal_lookup + ) +); diff --git a/assets/objects/vomp/spoon_small/textures/Spoon_Small_BaseColor.png b/assets/objects/vomp/spoon_small/textures/Spoon_Small_BaseColor.png new file mode 100644 index 0000000000000000000000000000000000000000..0a0b3e581106ecd40d20e3b9ab1ff1dc034341ae Binary files /dev/null and b/assets/objects/vomp/spoon_small/textures/Spoon_Small_BaseColor.png differ diff --git a/assets/objects/vomp/spoon_small/textures/Spoon_Small_Metallic.png b/assets/objects/vomp/spoon_small/textures/Spoon_Small_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..2c9753944df3c23d1f0814c3a509302fdcece6a1 Binary files /dev/null and b/assets/objects/vomp/spoon_small/textures/Spoon_Small_Metallic.png differ diff --git a/assets/objects/vomp/spoon_small/textures/Spoon_Small_Normal.png b/assets/objects/vomp/spoon_small/textures/Spoon_Small_Normal.png new file mode 100644 index 0000000000000000000000000000000000000000..76d6e68f742935f2761b6bb59a4966217d206786 Binary files /dev/null and b/assets/objects/vomp/spoon_small/textures/Spoon_Small_Normal.png differ diff --git a/assets/objects/vomp/squarepail_a02/materials/Metal_Glossy_A.mdl b/assets/objects/vomp/squarepail_a02/materials/Metal_Glossy_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..a0055fbb8cda5c91a10c30f92a6f80c495ac79ef --- /dev/null +++ b/assets/objects/vomp/squarepail_a02/materials/Metal_Glossy_A.mdl @@ -0,0 +1,16 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Metal_Glossy_A(*) + = OmniPBR( + diffuse_texture: texture_2d("../textures/T_Metal_Glossy_A_Albedo.png", ::tex::gamma_srgb), + enable_ORM_texture: true, + metallic_texture_influence: 1.0, + normalmap_texture: texture_2d("../textures/T_Metal_Glossy_A_Normal.png", ::tex::gamma_linear), + ORM_texture: texture_2d("../textures/T_Metal_Glossy_A_ORM.png", ::tex::gamma_linear), + reflection_roughness_texture_influence: 1.0, + texture_scale: float2(2, 2)); \ No newline at end of file diff --git a/assets/objects/vomp/squarepail_a02/materials/PlasticPails_Black_A.mdl b/assets/objects/vomp/squarepail_a02/materials/PlasticPails_Black_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..d426f0de24f78af35cd7cdb871105897a585edf3 --- /dev/null +++ b/assets/objects/vomp/squarepail_a02/materials/PlasticPails_Black_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material PlasticPails_Black_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T__WhiteTint_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(0.042470627, 0.042470794, 0.04247105), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 0.8499999642372131, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 0.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: false, + ORM_texture: texture_2d(), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d(), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(1, 1), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/squarepail_a02/materials/Plastic_Glossy_White_A.mdl b/assets/objects/vomp/squarepail_a02/materials/Plastic_Glossy_White_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..65d67b36eece6ffda7b8a68c7b94feb2106d6313 --- /dev/null +++ b/assets/objects/vomp/squarepail_a02/materials/Plastic_Glossy_White_A.mdl @@ -0,0 +1,36 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_Glossy_White_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T_Plastic_Glossy_White_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_texture_influence: 1.0, + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_Glossy_White_A_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + enable_opacity: false, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Glossy_White_A_Normal.png", ::tex::gamma_linear), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(1, 1), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/utilitybucket_a02/materials/Metal_Glossy_A.mdl b/assets/objects/vomp/utilitybucket_a02/materials/Metal_Glossy_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..a0055fbb8cda5c91a10c30f92a6f80c495ac79ef --- /dev/null +++ b/assets/objects/vomp/utilitybucket_a02/materials/Metal_Glossy_A.mdl @@ -0,0 +1,16 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Metal_Glossy_A(*) + = OmniPBR( + diffuse_texture: texture_2d("../textures/T_Metal_Glossy_A_Albedo.png", ::tex::gamma_srgb), + enable_ORM_texture: true, + metallic_texture_influence: 1.0, + normalmap_texture: texture_2d("../textures/T_Metal_Glossy_A_Normal.png", ::tex::gamma_linear), + ORM_texture: texture_2d("../textures/T_Metal_Glossy_A_ORM.png", ::tex::gamma_linear), + reflection_roughness_texture_influence: 1.0, + texture_scale: float2(2, 2)); \ No newline at end of file diff --git a/assets/objects/vomp/utilitybucket_a02/materials/Plastic_Gray_A.mdl b/assets/objects/vomp/utilitybucket_a02/materials/Plastic_Gray_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5b2fef2870b5ae447d1e98b4bb1fd657c5708c20 --- /dev/null +++ b/assets/objects/vomp/utilitybucket_a02/materials/Plastic_Gray_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_Gray_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T_Plastic_Gray_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.05, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_Gray_A_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Gray_A_Normal.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/utilitybucket_a02/materials/Plastic_Red_A.mdl b/assets/objects/vomp/utilitybucket_a02/materials/Plastic_Red_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..e9e955c83284bef5ba7a3299aa5bd71ca008d252 --- /dev/null +++ b/assets/objects/vomp/utilitybucket_a02/materials/Plastic_Red_A.mdl @@ -0,0 +1,52 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Plastic_Red_A(*) + = OmniPBR( + diffuse_color_constant: color(0.2, 0.2, 0.2), + diffuse_texture: texture_2d("../textures/T_Plastic_Red_A_Albedo.png", ::tex::gamma_srgb), + albedo_desaturation: 0.0, + albedo_add: 0.0, + albedo_brightness: 1.0, + diffuse_tint: color(1, 1, 1), + reflection_roughness_constant: 0.5, + reflection_roughness_texture_influence: 1.0, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.0, + metallic_texture: texture_2d(), + specular_level: 0.5, + enable_ORM_texture: true, + ORM_texture: texture_2d("../textures/T_Plastic_Red_A_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.0, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1, 0.1, 0.1), + emissive_color_texture: texture_2d(), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.0, + enable_opacity: false, + enable_opacity_texture: false, + opacity_constant: 1.0, + opacity_texture: texture_2d(), + opacity_mode: ::base::mono_average, + opacity_threshold: 0.0, + bump_factor: 1.0, + normalmap_texture: texture_2d("../textures/T_Plastic_Red_A_Normal.png", ::tex::gamma_linear), + detail_bump_factor: 0.30000001192092896, + detail_normalmap_texture: texture_2d(), + flip_tangent_u: false, + flip_tangent_v: true, + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0, 0), + texture_rotate: 0.0, + texture_scale: float2(3, 3), + detail_texture_translate: float2(0, 0), + detail_texture_rotate: 0.0, + detail_texture_scale: float2(1, 1)); \ No newline at end of file diff --git a/assets/objects/vomp/utilitybucket_a02/materials/SimPBR.mdl b/assets/objects/vomp/utilitybucket_a02/materials/SimPBR.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5883146f569e93208db72c08a810b7d71eaeece7 --- /dev/null +++ b/assets/objects/vomp/utilitybucket_a02/materials/SimPBR.mdl @@ -0,0 +1,562 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + + +using .::SimPBR_Model import *; +using .::baking_annotations import *; + +export material SimPBR( + // -------------------- DIFFUSE REFLECTION ---------------------- + uniform color diffuse_color_constant = color(0.2f) + [[ + anno::display_name("Albedo Base Color"), + anno::description("The base albedo color to use if no texture is specified"), + anno::in_group("Diffuse") + ]], + uniform texture_2d diffuse_texture = texture_2d() + [[ + anno::display_name("Albedo Map"), + anno::description("The texture specifying the albedo value to use"), + anno::in_group("Diffuse") + ]], + uniform color diffuse_tint = color(1.0f) + [[ + anno::display_name("Albedo Tint"), + anno::description("This tints the albedo color or texture contant"), + anno::in_group("Diffuse") + ]], + uniform bool enable_transmission = false + [[ + anno::display_name("Enable Diffuse Transmission"), + anno::description("Enables the diffuse transmission of light through thin diffuse scattering layer"), + anno::in_group("Diffuse") + ]], + uniform float opacity_ratio = 1.f + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Opacity Ratio"), + anno::description("Amount of opacity"), + anno::in_group("Diffuse") + ]], + uniform color opacity_tint = color(1.0f) + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Diffuse transmission tint"), + anno::description("Base diffuse transmission color"), + anno::in_group("Diffuse") + ]], + uniform float opacity_multiplier = 1.f + [[ + anno::enable_if("enable_transmission == true"), + anno::display_name("Diffuse transmission multiplier"), + anno::description("Base diffuse transmission multiplier"), + anno::in_group("Diffuse") + ]], + + // -------------------- SPECULAR REFLECTION ---------------------- + 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + float anisotropy_constant = 0.0f + [[ + anno::display_name("Anisotropy Amount"), + anno::hard_range(-1.,1.), + anno::description("0 for isotropic, extents of -1 to 1 for anisotropy"), + anno::in_group("Specular") + ]], + uniform float anisotropy_texture_influence = 0.0f + [[ + anno::display_name("Anisotropy Map Influence"), + anno::hard_range(0.0, 1.), + anno::description("Blends between the constant value and the lookup of the anisotropy texture"), + anno::in_group("Specular") + ]], + uniform texture_2d anisotropy_texture = texture_2d() + [[ + anno::display_name("Anisotropy Map"), + anno::in_group("Specular") + ]], + + float metallic_constant = 0.f + [[ + anno::display_name("Metallic Amount"), + anno::hard_range(0.0,1.), + anno::description("Metallic Material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d metallic_texture = texture_2d() + [[ + anno::display_name("Metallic Map"), + anno::in_group("Specular") + ]], + + float specular_constant = 1.f + [[ + anno::display_name("Specular amount"), + anno::hard_range(0.0, 1.0), + anno::description("Scale of the specular component"), + anno::in_group("Specular") + ]], + uniform texture_2d specular_texture = texture_2d() + [[ + anno::display_name("Specular Map"), + anno::in_group("Specular") + ]], + + // -------------------- ORM ---------------------- + uniform bool enable_ORM_texture = true + [[ + 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") + ]], + + // -------------------- 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") + ]], + 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") + ]], + + float3 clearcoat_normal_input = float3(0.0, 0.0, 0.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") + ]], + + uniform bool clearcoat_flip_tangent_u = false + [[ + anno::display_name("Clearcoat Normal Map Flip U Tangent"), + anno::in_group("Clearcoat") + ]], + uniform bool clearcoat_flip_tangent_v = true + [[ + anno::display_name("Clearcoat Normal Map Flip V Tangent"), + anno::in_group("Clearcoat") + ]], + + + // -------------------- REFLECTIVITY ---------------------- + uniform bool enable_retroreflection = false + [[ + anno::display_name("Enable Retroreflection"), + anno::in_group("Reflectivity") + ]], + color retroreflection_tint = color(.182,.800,.000) + [[ + anno::display_name("Retro-reflection tint"), + anno::description("The tint of the retroreflection"), + anno::in_group("Reflectivity") + ]], + uniform float normal_reflectivity = 0.5 + [[ + anno::display_name("Retro-reflection weight facing"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for geometry facing the viewer"), + anno::in_group("Reflectivity") + ]], + uniform float grazing_reflectivity = 1.0 + [[ + anno::display_name("Retro-reflection weight edge"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for the reflectivity at geometry edges"), + anno::in_group("Reflectivity") + ]], + + // -------------------- AMBIENT OCCLUSION ---------------------- + 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") + ]], + float ao_input = 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") + ]], + + // -------------------- 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") + ]], + uniform 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") + ]], + + color emissive_mask_input = color(1.0), + 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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- ALPHA ---------------------- + uniform bool enable_opacity = false + [[ + anno::display_name("Enable Opacity"), + anno::description("Enables or disables alpha functionality"), + anno::in_group("Alpha") + ]], + float alpha_constant = 1.0 + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Opacity Fallback Constant"), + anno::hard_range(0.0, 1.0), + anno::description("The base alpha constant to use if no texture is specified"), + anno::in_group("Alpha") + ]], + uniform texture_2d opacity_texture = texture_2d() + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Opacity Map"), + anno::description("The texture specifying the opacity value to use"), + anno::in_group("Alpha") + ]], + uniform bool enable_opacity_cutout = false + [[ + anno::enable_if("enable_opacity == true"), + anno::display_name("Enable Alpha Cutout"), + anno::description("Enables or disables alpha cutout functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_cutout_cutoff = 1.f + [[ + anno::enable_if("enable_opacity == true"), + anno::enable_if("enable_opacity_cutout == true"), + anno::hard_range(0.0, 1.0), + anno::display_name("Alpha Cutout Cutoff"), + anno::description("The cutoff value to to render as transparent up to and opaque past"), + anno::in_group("Alpha") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + + float3 normal_input = state::normal(), + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("Normal Map"), + anno::in_group("Normal") + ]], + uniform bool flip_tangent_u = false + [[ + anno::display_name("Normal Map Flip U Tangent"), + anno::description("Flips the U Tangent vector."), + anno::in_group("Normal") + ]], + uniform bool flip_tangent_v = true + [[ + anno::display_name("Normal Map Flip V Tangent"), + anno::description("Flips the V Tangent vector. By Default, SimPBR materials setup for DirectX normal maps. Set Normal Map Flip V = false for OpenGL."), + anno::in_group("Normal") + ]], + + // -------------------- UV ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Tiling"), + anno::description("Controls repetition of the texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR"), + anno::description("Supports the opaque alpha cutout material model of the Sim Renderer"), + anno::in_group("SimReady"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "opaque", "alpha", "cutout", "omniverse", "generic")) +]] + = let { + 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: 0, + projection_type: base::projection_cubic + ) : base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw + ); + float2 uv = float2(transformed_uvw.position.x, transformed_uvw.position.y); + + // Diffuse Color Lookup and AO + float4 base_lookup = tex::texture_isvalid(diffuse_texture) ? tex::lookup_float4(tex: diffuse_texture, coord: uv) : float4(1, 1, 1, 1); + + float opacityValue = tex::texture_isvalid(opacity_texture) ? tex::lookup_float4(tex: opacity_texture, coord: uv).w : alpha_constant; + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw, + flip_tangent_u: flip_tangent_u, + flip_tangent_v: flip_tangent_v + ) : normal_input; + + float3 clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? + base::tangent_space_normal_texture( + texture: clearcoat_normalmap_texture, + factor: clearcoat_bump_factor, + uvw: uvw, + flip_tangent_u: clearcoat_flip_tangent_u, + flip_tangent_v: clearcoat_flip_tangent_v + ) : clearcoat_normal_input; + + float3 flattened_clearcoat_normal = ::math::lerp(normal_lookup, ::state::normal(), clearcoat_flatten); + float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? clearcoat_normal : flattened_clearcoat_normal; + + float ao_lookup = tex::texture_isvalid(ao_texture) ? tex::lookup_float4(tex: ao_texture, coord: uv).x : ao_input; + + color diffuse_color = tex::texture_isvalid(diffuse_texture) ? color(base_lookup.x, base_lookup.y, base_lookup.z) : diffuse_color_constant; + + float3 ORM_lookup = tex::lookup_float3( + tex: ORM_texture, + coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) + ); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + tex::lookup_float4(tex: reflectionroughness_texture, coord: uv).x : reflection_roughness_constant; + float anisotropy_lookup = tex::texture_isvalid(anisotropy_texture) ? + (tex::lookup_float4(tex: anisotropy_texture, coord: uv).x * 2.0f - 1.0f) : anisotropy_constant; + float metallic_lookup = tex::texture_isvalid(metallic_texture) ? + tex::lookup_float4(tex: metallic_texture, coord: uv).x : metallic_constant; + float specular_lookup = tex::texture_isvalid(specular_texture) ? + tex::lookup_float4(tex: specular_texture, coord: uv).x : specular_constant; + + float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup; + float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup; + float ao = enable_ORM_texture ? ORM_lookup.x : ao_lookup; + + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); + float anisotropy = math::lerp(anisotropy_constant, anisotropy_lookup, anisotropy_texture_influence); + float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook ? + ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) ? + tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) : emissive_mask_input; + +} in SimPBR_Model( + diffuse_color: diffuse_color, + diffuse_tint: diffuse_tint, + roughness: reflection_roughness, + anisotropy: anisotropy, + metallic: metallic, + specular: specular_lookup, + normal: normal_lookup, + enable_clearcoat: enable_clearcoat, + clearcoat_tint: clearcoat_tint, + clearcoat_transparency: clearcoat_transparency, + clearcoat_reflection_roughness: clearcoat_reflection_roughness, + clearcoat_weight: clearcoat_weight, + clearcoat_ior: clearcoat_ior, + clearcoat_normal: final_clearcoat_normal, + enable_retroreflection: enable_retroreflection, + retroreflection_tint: retroreflection_tint, + normal_reflectivity: normal_reflectivity, + grazing_reflectivity: grazing_reflectivity, + ao_to_diffuse: ao_to_diffuse, + ao: ao, + enable_emission: enable_emission, + emissive_color: emissive_color, + emissive_mask: emissive_mask, + emissive_intensity: emissive_intensity, + enable_opacity: enable_opacity, + alpha: opacityValue, + enable_opacity_cutout: enable_opacity_cutout, + alpha_cutout_cutoff: alpha_cutout_cutoff, + opacity_ratio: enable_transmission ? opacity_ratio : 1.0, + opacity_tint : opacity_tint, + opacity_multiplier : opacity_multiplier +); diff --git a/assets/objects/vomp/utilitybucket_a02/materials/SimPBR_Model.mdl b/assets/objects/vomp/utilitybucket_a02/materials/SimPBR_Model.mdl new file mode 100644 index 0000000000000000000000000000000000000000..dccd3808942cb243a4e03f77f684935081b31ec5 --- /dev/null +++ b/assets/objects/vomp/utilitybucket_a02/materials/SimPBR_Model.mdl @@ -0,0 +1,212 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +using .::baking_annotations import *; + +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 + ); +} + +export material SimPBR_Model( + color diffuse_color = color(0.2f) [[ target_baked_argument("diffuse_texture", "diffuse_color_constant", "RGBA8_UNORM") ]], + uniform color diffuse_tint = color(1.0f), + float roughness = 0.5f [[ target_baked_argument("reflectionroughness_texture", "reflection_roughness_constant", "R8_UNORM") ]], + float anisotropy = 0.0f [[ target_baked_argument("anisotropy_texture", "anisotropy_constant", "R8_SNORM") ]], + float metallic = 0.f [[ target_baked_argument("metallic_texture", "metallic_constant", "R8_UNORM") ]], + float specular = 1.f [[ target_baked_argument("specular_texture", "specular_constant", "R8_UNORM") ]], + float3 normal = float3(0.0, 0.0, 0.0) [[ target_baked_argument("normalmap_texture", "normal_input", "RGBA8_SNORM", baking_annotations::TRANSFORM_UNORM_VECTOR) ]], + uniform bool enable_clearcoat = false, + color clearcoat_tint = color(1.0f), + float clearcoat_transparency = 1.0f, + float clearcoat_reflection_roughness = 0.0f, + float clearcoat_weight = 1.0f, + float clearcoat_ior = 1.56f, + float3 clearcoat_normal = float3(0.0, 0.0, 0.0) [[ target_baked_argument("clearcoat_normalmap_texture", "clearcoat_normal_input", "RGBA8_SNORM", baking_annotations::TRANSFORM_UNORM_VECTOR) ]], + uniform bool enable_retroreflection = false, + color retroreflection_tint = color(.182,.800,.000), + uniform float normal_reflectivity = 0.5, + uniform float grazing_reflectivity = 1.0, + float ao_to_diffuse = 0.0, + float ao = 1.0f [[ target_baked_argument("ao_texture", "ao_input", "R8_UNORM") ]], + uniform bool enable_emission = false, + uniform color emissive_color = color(1.0, 0.1, 0.1), + color emissive_mask = color(1.0, 0.1, 0.1) [[ target_baked_argument("emissive_mask_texture", "emissive_mask_input", "R8_UNORM") ]], + uniform float emissive_intensity = 40.f, + uniform bool enable_opacity = false, + float alpha = 1.0, + uniform bool enable_opacity_cutout = false, + uniform float alpha_cutout_cutoff = 1.f, + uniform float opacity_ratio = 1.f, + uniform color opacity_tint = color(1.0f), + uniform float opacity_multiplier = 1.f +) +[[ + target_material_model(), + target_material_rendering("..::SimPBR::SimPBR") +]] + = let { + color base_color = multiply_colors(diffuse_color, diffuse_tint, 1.0).tint; + color ao_weighted_base_color = multiply_colors(base_color, color(ao), ao_to_diffuse).tint; + + float squared_roughness = roughness * roughness; + float roughness_u = squared_roughness * (1 + anisotropy); + float roughness_v = squared_roughness * (1 - anisotropy); + + color diffuse_transmission_color = base_color * opacity_tint * opacity_multiplier; + + bsdf diffuse_bsdf = df::weighted_layer( + weight: opacity_ratio, + layer: df::diffuse_reflection_bsdf( + tint: ao_weighted_base_color, + roughness: 0.0f + ), + base: df::diffuse_transmission_bsdf(tint: diffuse_transmission_color), + normal: enable_clearcoat ? normal : state::normal() + ); + + bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_u, + roughness_v: roughness_v, + tint: color(1.0, 1.0, 1.0), + mode: df::scatter_reflect + ); + + bsdf custom_curve_layer_bsdf = df::custom_curve_layer( + normal_reflectivity: 0.03, + grazing_reflectivity: 1.0, + exponent: 5.0, + weight: specular, + layer: ggx_smith_bsdf, + base: diffuse_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + // + // Begin RETROREFLECTION SUPPORT + // + color final_retroreflection_color = multiply_colors(retroreflection_tint, base_color, 1.0).tint; + bsdf backscattering_glossy_bsdf = df::backscattering_glossy_reflection_bsdf( + tint: final_retroreflection_color, + roughness_u: squared_roughness + ); + + /*bsdf retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: 1.-normal_reflectivity, + grazing_reflectivity: 1.-grazing_reflectivity, + base: backscattering_glossy_bsdf, + layer: custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + );*/ + + // if normal_reflectivity and grazing_reflectivity are 1 and weight is 1, just the layer is used + bsdf opt_retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: enable_retroreflection ? 1.-normal_reflectivity : 1, + grazing_reflectivity: enable_retroreflection ? 1.-grazing_reflectivity : 1, + base: backscattering_glossy_bsdf, + layer: custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + // + // End RETROREFLECTION SUPPORT + // + + bsdf directional_factor_bsdf = df::directional_factor( + normal_tint: ao_weighted_base_color, + grazing_tint: color(1.0, 1.0, 1.0), + exponent: 5.0f, + base: ggx_smith_bsdf + ); + + // CLEARCOAT + bsdf omni_PBR_bsdf = df::weighted_layer( + weight: metallic, + layer: directional_factor_bsdf, + base: opt_retroreflection_bsdf, //enable_retroreflection ? retroreflection_bsdf : custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal : state::normal() + ); + + bsdf clearcoat_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + roughness_v: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + 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 opt_opaque_clearcoat = df::weighted_layer( + weight: enable_clearcoat ? clearcoat_transparency : 1, + layer: ::df::tint(tint: enable_clearcoat ? clearcoat_tint : color(1), base: omni_PBR_bsdf), + base: ::df::diffuse_reflection_bsdf(tint: clearcoat_tint) + ); + + bsdf opt_omni_PBR_coated_bsdf = df::fresnel_layer( + ior: clearcoat_ior, + weight: enable_clearcoat ? clearcoat_weight : 0, + layer: clearcoat_bsdf, + base: opt_opaque_clearcoat, + normal: clearcoat_normal + ); + + bsdf final_bsdf = opt_omni_PBR_coated_bsdf; +} in material( + thin_walled: false, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + geometry: material_geometry( + normal: enable_clearcoat ? state::normal() : normal, + cutout_opacity: enable_opacity ? (enable_opacity_cutout ? (alpha < alpha_cutout_cutoff ? 0.0 : 1.0) : alpha) : 1.0 + ) +); diff --git a/assets/objects/vomp/utilitybucket_a02/materials/SimPBR_Opacity.mdl b/assets/objects/vomp/utilitybucket_a02/materials/SimPBR_Opacity.mdl new file mode 100644 index 0000000000000000000000000000000000000000..cf0a3ba759fc0b873d174b410b31759b1d426307 --- /dev/null +++ b/assets/objects/vomp/utilitybucket_a02/materials/SimPBR_Opacity.mdl @@ -0,0 +1,651 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +import ::nvidia::core_definitions::file_texture; +import ::nvidia::core_definitions::normalmap_texture; + +float4 raw_file_texture( + uniform texture_2d texture + [[ anno::description("The input texture") ]], + base::texture_coordinate_info uvw = base::texture_coordinate_info() + [[ anno::description("Custom value for texture coordinate") ]], + 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") ]] +) +[[ + anno::description("General texturing function for 2D bitmap texture stored in a file"), + anno::noinline() +]] +{ + return tex::lookup_float4(texture, float2(uvw.position.x, uvw.position.y), wrap_u, wrap_v, crop_u, crop_v); +} + +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 SimPBR_Opacity( + // -------------------- DIFFUSE REFLECTION ---------------------- + uniform color diffuse_color_constant = color(0.2f) + [[ + anno::display_name("Albedo Base Color"), + anno::description("The base albedo color to use if no texture is specified"), + anno::in_group("Diffuse") + ]], + uniform texture_2d diffuse_texture = texture_2d() + [[ + anno::display_name("Albedo Map"), + anno::description("The texture specifying the albedo value to use"), + anno::in_group("Diffuse") + ]], + uniform color diffuse_tint = color(1.0f) + [[ + anno::display_name("Albedo Tint"), + anno::description("This tints the albedo color or texture contant"), + anno::in_group("Diffuse") + ]], + + // -------------------- SPECULAR REFLECTION ---------------------- + uniform 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + uniform float anisotropy_constant = 0.0f + [[ + anno::display_name("Anisotropy Amount"), + anno::hard_range(-1.,1.), + anno::description("0 for isotropic, extents of -1 to 1 for anisotropy"), + anno::in_group("Specular") + ]], + uniform float anisotropy_texture_influence = 0.0f + [[ + anno::display_name("Anisotropy Map Influence"), + anno::hard_range(0.0, 1.), + anno::description("Blends between the constant value and the lookup of the anisotropy texture"), + anno::in_group("Specular") + ]], + uniform texture_2d anisotropy_texture = texture_2d() + [[ + anno::display_name("Anisotropy Map"), + anno::in_group("Specular") + ]], + + uniform float metallic_constant = 0.f + [[ + anno::display_name("Metallic Amount"), + anno::hard_range(0.0,1.), + anno::description("Metallic Material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d metallic_texture = texture_2d() + [[ + anno::display_name("Metallic Map"), + anno::in_group("Specular") + ]], + + // -------------------- ORM ---------------------- + uniform bool enable_ORM_texture = true + [[ + 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") + ]], + + // -------------------- 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") + ]], + 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") + ]], + 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") + ]], + + // -------------------- REFLECTIVITY ---------------------- + uniform bool enable_retroreflection = false + [[ + anno::display_name("Enable Retroreflection"), + anno::in_group("Reflectivity") + ]], + color retroreflection_color = color(.182,.800,.000) + [[ + anno::display_name("Retro-reflection color"), + anno::description("The color of the retroreflection"), + anno::in_group("Reflectivity") + ]], + uniform float normal_reflectivity = 0.5 + [[ + anno::display_name("Retro-reflection weight facing"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for geometry facing the viewer"), + anno::in_group("Reflectivity") + ]], + uniform float grazing_reflectivity = 1.0 + [[ + anno::display_name("Retro-reflection weight edge"), + anno::hard_range(0.0,1.), + anno::description("Reflectivity control for the reflectivity at geometry edges"), + anno::in_group("Reflectivity") + ]], + + // -------------------- AMBIENT OCCLUSION ---------------------- + 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") + ]], + 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") + ]], + uniform 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_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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- ALPHA ---------------------- + uniform bool enable_alpha = true + [[ + anno::display_name("Enable Alpha"), + anno::description("Enables or disables alpha functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_constant = 1.0 + [[ + anno::display_name("Alpha Fallback Constant"), + anno::description("The base alpha constant to use if no texture is specified"), + anno::in_group("Alpha") + ]], + uniform texture_2d opacity_texture = texture_2d() + [[ + anno::display_name("Opacity Map"), + anno::description("The texture specifying the opacity value to use"), + anno::in_group("Alpha") + ]], + uniform bool enable_alpha_cutout = false + [[ + anno::display_name("Enable Alpha Cutout"), + anno::description("Enables or disables alpha cutout functionality"), + anno::in_group("Alpha") + ]], + uniform float alpha_cutout_cutoff = 1.f + [[ + anno::enable_if("enable_alpha_cutout == true"), + anno::hard_range(0.0, 1.0), + anno::display_name("Alpha Cutout Cutoff"), + anno::description("The cutoff value to to render as transparent up to and opaque past"), + anno::in_group("Alpha") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("Normal Map"), + anno::in_group("Normal") + ]], + + // -------------------- UV ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Scale"), + anno::description("Larger number increases size of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR Opaque Alpha Cutout"), + anno::description("Supports the opaque alpha cutout material model of the Sim Renderer"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "opaque", "alpha", "cutout", "omniverse", "generic")) +]] + = let { + + 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: 0, + projection_type: base::projection_cubic ) : + base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw ); + + // Diffuse Color Lookup and AO + float4 base_lookup = tex::texture_isvalid(diffuse_texture) ? raw_file_texture(texture: diffuse_texture, uvw: transformed_uvw) : float4(1, 1, 1, 1); + + float opacityValue = tex::texture_isvalid(opacity_texture) ? raw_file_texture(texture: opacity_texture, uvw: transformed_uvw).x : alpha_constant; + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw + ) : state::normal(); + + float3 clearcoat_normal = base::tangent_space_normal_texture( + texture: clearcoat_normalmap_texture, + factor: clearcoat_bump_factor, + uvw: uvw + ); + + float3 flattened_clearcoat_normal = ::math::lerp(normal_lookup, ::state::normal(), clearcoat_flatten); + float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? clearcoat_normal : flattened_clearcoat_normal; + + float ao_lookup = tex::texture_isvalid(ao_texture) ? + raw_file_texture(texture: ao_texture, uvw: transformed_uvw).x : + 1.0f + [[anno::unused("Currently unused in material, may be utilized in the future")]]; + + color diffuse_color = tex::texture_isvalid(diffuse_texture) ? color(base_lookup.x, base_lookup.y, base_lookup.z) : diffuse_color_constant; + color base_color = multiply_colors(diffuse_color, diffuse_tint, 1.0).tint; + + float3 ORM_lookup = tex::lookup_float3( + tex: ORM_texture, + coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) + ); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + raw_file_texture(texture: reflectionroughness_texture, uvw: transformed_uvw).x : + reflection_roughness_constant; + float anisotropy_lookup = tex::texture_isvalid(anisotropy_texture) ? + (raw_file_texture(texture: anisotropy_texture, uvw: transformed_uvw).x * 2.0f - 1.0f) : + anisotropy_constant; + float metallic_lookup = tex::texture_isvalid(metallic_texture) ? + raw_file_texture(texture: metallic_texture, uvw: transformed_uvw).x : + metallic_constant; + + float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup; + float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup; + color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : color(ao_lookup); + + color ao_weighted_base_color = multiply_colors(base_color, ao_color, ao_to_diffuse).tint; + + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); + float anisotropy = math::lerp(anisotropy_constant, anisotropy_lookup, anisotropy_texture_influence); + float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); + + float squared_roughness = reflection_roughness * reflection_roughness; + float roughness_u = squared_roughness * (1 + anisotropy); + float roughness_v = squared_roughness * (1 - anisotropy); + + bsdf diffuse_bsdf = df::weighted_layer( + weight: 1.0, + layer: df::diffuse_reflection_bsdf( + tint: ao_weighted_base_color, + roughness: 0.f ), + base: bsdf(), + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_u, + roughness_v: roughness_v, + tint: color(1.0, 1.0, 1.0), + mode: df::scatter_reflect + ); + + bsdf custom_curve_layer_bsdf = df::custom_curve_layer( + normal_reflectivity: 0.03, + grazing_reflectivity: 1.0, + exponent: 5.0, + weight: float(1.0), + layer: ggx_smith_bsdf, + base: diffuse_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + // + // Begin RETROREFLECTION SUPPORT + // + bsdf backscattering_glossy_bsdf = df::backscattering_glossy_reflection_bsdf( + tint: retroreflection_color, + roughness_u: reflection_roughness * reflection_roughness + ); + + bsdf retroreflection_bsdf = df::custom_curve_layer( + normal_reflectivity: 1.-normal_reflectivity, + grazing_reflectivity: 1.-grazing_reflectivity, + base: backscattering_glossy_bsdf, + layer: diffuse_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + // + // End RETROREFLECTION SUPPORT + // + + bsdf directional_factor_bsdf = df::directional_factor( + normal_tint: ao_weighted_base_color, + grazing_tint: color(1.0, 1.0, 1.0), + exponent: 5.0f, + base: ggx_smith_bsdf + ); + + // CLEARCOAT + + bsdf omni_PBR_bsdf = df::weighted_layer( + weight: metallic, + layer: directional_factor_bsdf, + base: enable_retroreflection ? retroreflection_bsdf : custom_curve_layer_bsdf, + normal: enable_clearcoat ? normal_lookup : state::normal() + ); + + bsdf clearcoat_bsdf = df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + roughness_v: clearcoat_reflection_roughness * clearcoat_reflection_roughness, + 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; + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook + ? ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) + : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) + ? tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) + : color(1.0); + +} in material( + thin_walled: false, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission ( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + geometry: material_geometry( + normal: enable_clearcoat ? state::normal() : normal_lookup, + cutout_opacity: enable_alpha ? (enable_alpha_cutout ? (opacityValue < alpha_cutout_cutoff ? 0.0 : 1.0) : opacityValue) : 1.0 + ) +); diff --git a/assets/objects/vomp/utilitybucket_a02/materials/SimPBR_Translucent.mdl b/assets/objects/vomp/utilitybucket_a02/materials/SimPBR_Translucent.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5a60a90d1b946f94c266dabd515d5a15b6c3c9bd --- /dev/null +++ b/assets/objects/vomp/utilitybucket_a02/materials/SimPBR_Translucent.mdl @@ -0,0 +1,290 @@ +/***************************************************************************** +* Copyright 1986-2020 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. +*/ + +mdl 1.4; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::base::*; +import ::tex::*; +import ::anno::*; + +import ::nvidia::core_definitions::file_texture; +import ::nvidia::core_definitions::normalmap_texture; + +export material SimPBR_Translucent( + // -------------------- SPECULAR REFLECTION/TRANSMISSION ---------------------- + uniform float ior_constant = 1.1f + [[ + anno::display_name("Index of Refraction"), + anno::hard_range(0.0,5.), + anno::description("Index of Refraction of the material"), + anno::in_group("Specular") + ]], + uniform 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("Specular") + ]], + uniform 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("Specular") + ]], + uniform texture_2d reflectionroughness_texture = texture_2d() + [[ + anno::display_name("Roughness Map"), + anno::in_group("Specular") + ]], + + // -------------------- VOLUME ---------------------- + color transmittance_color = color(1.0, 1.0f, 1.0f) + [[ + anno::display_name("Transmittance Color"), + anno::description("Expected transmittance after the specified transmittance distance through the volume."), + anno::in_group("Volume") + ]], + float transmittance_measurement_distance = 1.0f + [[ + anno::display_name("Transmittance Measurement Distance"), + anno::description("Distance to match the transmittance through the volume at."), + anno::in_group("Volume") + ]], + + // -------------------- EMISSIVE ---------------------- + uniform bool enable_thin_walled = false + [[ + anno::display_name("Enable Thin Walled"), + anno::description("Enables thin walled logic"), + anno::in_group("Geometry") + ]], + + // -------------------- 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_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") + ]], + uniform bool enable_emissive_flipbook = false + [[ + anno::display_name("Enable Flipbook for emission"), + anno::description("Allows the use of animated emissive textures (e.g. video screens)"), + anno::in_group("Emissive") + ]], + uniform int2 flipbook_dim = int2(1,1) + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Rows/Columns"), + anno::description("How many rows and columns are in the flipbook?"), + anno::in_group("Emissive") + ]], + uniform int target_fps = 1 + [[ + anno::enable_if("enable_emissive_flipbook == true"), + anno::display_name("Flipbook Target FPS"), + anno::description("Playback speed in frames per second"), + anno::in_group("Emissive") + ]], + + // -------------------- NORMAL ---------------------- + uniform float bump_factor = 1.f + [[ + anno::display_name("Normal Map Strength"), + anno::description("Strength of normal map."), + anno::in_group("Normal") + ]], + uniform texture_2d normalmap_texture = texture_2d() + [[ + anno::display_name("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 ADJUSTMENTS ---------------------- + 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 float2 texture_translate = float2(0.0f) + [[ + anno::display_name("Texture Translate"), + anno::description("Controls position of texture."), + anno::in_group("UV") + ]], + uniform float2 texture_scale = float2(1.0f) + [[ + anno::display_name("Texture Tiling"), + anno::description("Controls the repetition of the texture."), + anno::in_group("UV") + ]], + uniform float2 texture_speed = float2(0.0f) + [[ + anno::display_name("Texture Speed"), + anno::description("Scrolling texture animation speed in UVs per sec."), + anno::in_group("UV") + ]] +) +[[ + anno::display_name("Sim PBR Translucent"), + anno::description("Supports the translucent material model of the Sim Renderer"), + anno::in_group("SimReady"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("Sim", "PBR", "translucent", "omniverse", "generic")) +]] + = let { + 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: 0, + projection_type: base::projection_cubic + ) : base::coordinate_source( + coordinate_system: base::texture_coordinate_uvw, + texture_space: 0 + ); + + // Need to use a small value so the compiler doesnt optimize out this var... + float t = 0.00000001;//state::animation_time(); + base::texture_coordinate_info transformed_uvw = base::transform_coordinate( + transform: base::rotation_translation_scale( + scaling: float3(texture_scale.x, texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, 0.0 ), + translation: float3(texture_translate.x + t * texture_speed.x, texture_translate.y + t * texture_speed.y, 0.0)), + coordinate: uvw + ); + float2 uv = float2(transformed_uvw.position.x, transformed_uvw.position.y); + + color volume_absorption_coefficient = -math::log(transmittance_color) / (transmittance_measurement_distance*0.01); + + float roughness_lookup = tex::texture_isvalid(reflectionroughness_texture) ? + tex::lookup_float4(tex: reflectionroughness_texture, coord: uv).x : reflection_roughness_constant; + float reflection_roughness = math::lerp(reflection_roughness_constant, roughness_lookup, reflection_roughness_texture_influence); + + float roughness_squared = reflection_roughness * reflection_roughness; + + bsdf final_bsdf(enable_thin_walled ? + ::df::fresnel_layer( + ior_constant, + 1.f, + ::df::microfacet_ggx_smith_bsdf( + roughness_squared, + roughness_squared, + color(1.f, 1.f, 1.f), + ::state::texture_tangent_u(0), + ::df::scatter_reflect, + "" + ), + ::df::specular_bsdf( + transmittance_color, + ::df::scatter_transmit, + "" + ), ::state::normal()) + : ::df::microfacet_ggx_smith_bsdf( + roughness_squared, + roughness_squared, + color(1.f, 1.f, 1.f), + ::state::texture_tangent_u(0), + ::df::scatter_reflect_transmit, + "" + )); + + int rows = flipbook_dim.x; + int columns = flipbook_dim.y; + int numFrames = rows * columns; + varying int frameIdx = int(state::animation_time() * target_fps) % numFrames; + varying float2 baseUV = float2(transformed_uvw.position.x, transformed_uvw.position.y); + varying float2 emissiveUV = enable_emissive_flipbook ? + ((baseUV + float2(frameIdx % rows, frameIdx / rows)) / float2(rows, columns)) : baseUV; + + color emissive_mask = tex::texture_isvalid(emissive_mask_texture) ? + tex::lookup_color(emissive_mask_texture, emissiveUV, tex::wrap_repeat, tex::wrap_repeat) : color(1.0); + + // Normal calculations + float3 normal_lookup = tex::texture_isvalid(normalmap_texture) ? + base::tangent_space_normal_texture( + texture: normalmap_texture, + factor: bump_factor, + uvw: transformed_uvw, + flip_tangent_u: flip_tangent_u, + flip_tangent_v: flip_tangent_v + ) : state::normal(); +} in material( + thin_walled: enable_thin_walled, + surface: material_surface( + scattering: final_bsdf, + emission: material_emission ( + df::diffuse_edf(), + intensity: enable_emission ? emissive_color * emissive_mask * color(emissive_intensity) : color(0) + ) + ), + ior: color(ior_constant), + volume: material_volume( + scattering: df::anisotropic_vdf(), + absorption_coefficient: volume_absorption_coefficient, + scattering_coefficient: color(0.0f, 0.0f, 0.0f) + ), + geometry: material_geometry( + normal: normal_lookup + ) +); diff --git a/assets/objects/vomp/wireshelving_a01/materials/Chrome_A.mdl b/assets/objects/vomp/wireshelving_a01/materials/Chrome_A.mdl new file mode 100644 index 0000000000000000000000000000000000000000..84bebfcb7665c30e8f037c3b64d8a4a633553807 --- /dev/null +++ b/assets/objects/vomp/wireshelving_a01/materials/Chrome_A.mdl @@ -0,0 +1,15 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; +import ::base::mono_mode; + +export material Chrome_A(*) + = OmniPBR( + diffuse_texture: texture_2d("../textures/T_Metal_Chrome_A_Albedo.png", ::tex::gamma_srgb), + enable_ORM_texture: true, + metallic_texture_influence: 1.0, + normalmap_texture: texture_2d("../textures/T_Metal_Chrome_A_Normal.png", ::tex::gamma_linear), + ORM_texture: texture_2d("../textures/T_Metal_Chrome_A_ORM.png", ::tex::gamma_linear), + reflection_roughness_texture_influence: 1.0); \ No newline at end of file diff --git a/assets/robots/astribot_s1/assembly_derivation.json b/assets/robots/astribot_s1/assembly_derivation.json new file mode 100644 index 0000000000000000000000000000000000000000..c41ab99100733ba5c7dc39af402804744f2e25d2 --- /dev/null +++ b/assets/robots/astribot_s1/assembly_derivation.json @@ -0,0 +1,274 @@ +{ + "source_revision": "8c651a1abbe2821824a692aa3a3aa4cbf88e4122", + "added_collision_coverage_from_exact_native_meshes": [ + "wheel_RF_Link", + "wheel_LF_Link", + "wheel_RR_Link", + "wheel_LR_Link", + "astribot_torso_link_3", + "astribot_torso_link_4", + "astribot_head_base_link", + "astribot_head_link_1", + "astribot_arm_left_base_link", + "astribot_arm_left_link_1", + "astribot_arm_left_link_2", + "astribot_arm_left_link_6", + "astribot_arm_right_base_link", + "astribot_arm_right_link_1", + "astribot_arm_right_link_2", + "astribot_arm_right_link_6", + "astribot_gripper_left_base", + "astribot_gripper_left_Link_L1", + "astribot_gripper_left_Link_L2", + "astribot_gripper_left_Link_R1", + "astribot_gripper_left_Link_R2", + "astribot_gripper_right_base", + "astribot_gripper_right_Link_L1", + "astribot_gripper_right_Link_L2", + "astribot_gripper_right_Link_R1", + "astribot_gripper_right_Link_R2" + ], + "native_collisions_retained": 16, + "replaced_coarse_proxy": { + "body": "astribot_torso_link_3", + "original": "\n \n \n \n \n \n ", + "replacement": "Exact same-link native visual mesh; original source file retained", + "reason": "Source cylinder intersects both shoulder link_1 shells, whereas native same-link visual mesh is more than 27 cm clear at ready pose", + "evidence": "source_visual_clearances.json" + }, + "camera_frames": [ + { + "camera": "head_camera", + "source_name": "head_rgbd", + "source_parent": "astribot_head_link_2", + "source_mjcf": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/model_with_effector/astribot_s1_model_with_gripper.xml", + "relative_transform": [ + [ + -0.009919053931084998, + 0.06093923474860657, + -0.9980921911513817, + 0.0603 + ], + [ + 0.022953286094974885, + 0.997892172876871, + 0.060698912416278325, + -0.2139 + ], + [ + 0.9996873306322104, + -0.022307419826842752, + -0.011296901969766904, + -0.0277 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "camera": "left_wrist_camera", + "source_name": "left_wrist_rgbd", + "source_parent": "astribot_arm_left_link_7", + "source_mjcf": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/model_with_effector/astribot_s1_model_with_gripper.xml", + "relative_transform": [ + [ + 0.9995189219143843, + 0.03057378721130871, + 0.005212319125408635, + 0.011420996159648984 + ], + [ + -0.004874491345362013, + -0.011113734468040593, + 0.9999263594086809, + -0.09111799977585039 + ], + [ + 0.030629464070262076, + -0.9994707241544056, + -0.010959356232782158, + 0.044260118849329295 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "camera": "right_wrist_camera", + "source_name": "right_wrist_rgbd", + "source_parent": "astribot_arm_right_link_7", + "source_mjcf": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/model_with_effector/astribot_s1_model_with_gripper.xml", + "relative_transform": [ + [ + 0.9988469575866398, + 0.047233381878213264, + 0.008588536328176955, + 0.00772 + ], + [ + -0.009413698677535914, + 0.017275286977935678, + 0.9998064546386157, + -0.09408 + ], + [ + 0.04707587064645856, + -0.9987344852843406, + 0.01770000866386967, + 0.04319 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "stl_source_palette": [ + { + "body": "wheel_RF_Link", + "source_material": "M_rubber_wheel", + "rgba": "0.149 0.149 0.157 1" + }, + { + "body": "wheel_LF_Link", + "source_material": "M_rubber_wheel", + "rgba": "0.149 0.149 0.157 1" + }, + { + "body": "wheel_RR_Link", + "source_material": "M_rubber_wheel", + "rgba": "0.149 0.149 0.157 1" + }, + { + "body": "wheel_LR_Link", + "source_material": "M_rubber_wheel", + "rgba": "0.149 0.149 0.157 1" + }, + { + "body": "astribot_torso_link_3", + "source_material": "M_white_shell", + "rgba": "0.973 0.976 0.984 1" + }, + { + "body": "astribot_head_base_link", + "source_material": "M_black_neck", + "rgba": "0.098 0.098 0.11 1" + }, + { + "body": "astribot_head_link_1", + "source_material": "M_dark_mechanism", + "rgba": "0.216 0.216 0.235 1" + }, + { + "body": "astribot_arm_left_base_link", + "source_material": "M_white_shell", + "rgba": "0.973 0.976 0.984 1" + }, + { + "body": "astribot_arm_left_link_1", + "source_material": "M_white_shell", + "rgba": "0.973 0.976 0.984 1" + }, + { + "body": "astribot_arm_left_link_2", + "source_material": "M_white_shell", + "rgba": "0.973 0.976 0.984 1" + }, + { + "body": "astribot_arm_left_link_3", + "source_material": "M_white_shell", + "rgba": "0.973 0.976 0.984 1" + }, + { + "body": "astribot_arm_left_link_4", + "source_material": "M_white_shell", + "rgba": "0.973 0.976 0.984 1" + }, + { + "body": "astribot_arm_left_link_5", + "source_material": "M_white_shell", + "rgba": "0.973 0.976 0.984 1" + }, + { + "body": "astribot_arm_left_link_6", + "source_material": "M_white_shell", + "rgba": "0.973 0.976 0.984 1" + }, + { + "body": "astribot_arm_left_link_7", + "source_material": "M_white_shell", + "rgba": "0.973 0.976 0.984 1" + }, + { + "body": "astribot_arm_right_base_link", + "source_material": "M_white_shell", + "rgba": "0.973 0.976 0.984 1" + }, + { + "body": "astribot_arm_right_link_1", + "source_material": "M_white_shell", + "rgba": "0.973 0.976 0.984 1" + }, + { + "body": "astribot_arm_right_link_2", + "source_material": "M_white_shell", + "rgba": "0.973 0.976 0.984 1" + }, + { + "body": "astribot_arm_right_link_3", + "source_material": "M_white_shell", + "rgba": "0.973 0.976 0.984 1" + }, + { + "body": "astribot_arm_right_link_4", + "source_material": "M_white_shell", + "rgba": "0.973 0.976 0.984 1" + }, + { + "body": "astribot_arm_right_link_5", + "source_material": "M_white_shell", + "rgba": "0.973 0.976 0.984 1" + }, + { + "body": "astribot_arm_right_link_6", + "source_material": "M_white_shell", + "rgba": "0.973 0.976 0.984 1" + }, + { + "body": "astribot_arm_right_link_7", + "source_material": "M_white_shell", + "rgba": "0.973 0.976 0.984 1" + }, + { + "body": "astribot_gripper_left_base", + "source_material": "M_dark_mechanism", + "rgba": "0.216 0.216 0.235 1" + }, + { + "body": "astribot_gripper_right_base", + "source_material": "M_dark_mechanism", + "rgba": "0.216 0.216 0.235 1" + } + ], + "mimic_axis_conversion": { + "L2": 1, + "L11": -1, + "R1": -1, + "R2": -1, + "R11": 1 + }, + "gripper_closed_source": "MJCF range 0..0.93; URDF L1 axis opposite. Official Isaac code confirms signs but caps its demo at 0.5; benchmark uses complete MJCF range.", + "native_gripper_mount_variant": "URDF 45 mm and Rx=1.5708 preserved; MJCF 48 mm not substituted", + "source_collision_proxy_limitations": "Official URDF uses simplified cylinders/spheres; exact meshes fill links with no source collision. Not a measured collision calibration." +} diff --git a/assets/robots/astribot_s1/collision_filter_evidence.json b/assets/robots/astribot_s1/collision_filter_evidence.json new file mode 100644 index 0000000000000000000000000000000000000000..638863395dbdcc7bf6adcf680add0adb83909b2a --- /dev/null +++ b/assets/robots/astribot_s1/collision_filter_evidence.json @@ -0,0 +1,232 @@ +{ + "policy": "Five named source mechanical internal pairs, plus twenty official gripper linkage pairs and same-fixed-body filters. Added full-shell external collisions remain active. Other arm/body, inter-arm, robot/table and robot/object pairs remain active.", + "pairs": [ + { + "bodies": [ + "astribot_gripper_left_base", + "astribot_gripper_left_Link_L1" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_base", + "astribot_gripper_left_Link_L2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_Link_L1", + "astribot_gripper_left_Link_L2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_Link_L1", + "astribot_gripper_left_Link_L11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_Link_L2", + "astribot_gripper_left_Link_L11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_base", + "astribot_gripper_left_Link_R1" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_base", + "astribot_gripper_left_Link_R2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_Link_R1", + "astribot_gripper_left_Link_R2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_Link_R1", + "astribot_gripper_left_Link_R11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_Link_R2", + "astribot_gripper_left_Link_R11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_base", + "astribot_gripper_right_Link_L1" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_base", + "astribot_gripper_right_Link_L2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_Link_L1", + "astribot_gripper_right_Link_L2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_Link_L1", + "astribot_gripper_right_Link_L11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_Link_L2", + "astribot_gripper_right_Link_L11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_base", + "astribot_gripper_right_Link_R1" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_base", + "astribot_gripper_right_Link_R2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_Link_R1", + "astribot_gripper_right_Link_R2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_Link_R1", + "astribot_gripper_right_Link_R11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_Link_R2", + "astribot_gripper_right_Link_R11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_torso_link_4", + "astribot_arm_left_link_1" + ], + "reason": "Immediate actuated neighbors after collapsing native fixed bridges", + "source_joints": [ + "astribot_torso_end_effector_fixed_joint", + "astribot_arm_left_base_fixed_joint", + "astribot_arm_left_joint_1" + ], + "mechanical_kind": "fixed_bridge_neighbor" + }, + { + "bodies": [ + "astribot_torso_link_4", + "astribot_arm_right_link_1" + ], + "reason": "Immediate actuated neighbors after collapsing native fixed bridges", + "source_joints": [ + "astribot_torso_end_effector_fixed_joint", + "astribot_arm_right_base_fixed_joint", + "astribot_arm_right_joint_1" + ], + "mechanical_kind": "fixed_bridge_neighbor" + }, + { + "bodies": [ + "astribot_torso_link_4", + "astribot_head_link_1" + ], + "reason": "Immediate actuated neighbors after collapsing native fixed bridges", + "source_joints": [ + "astribot_torso_end_effector_fixed_joint", + "astribot_head_fixed_joint", + "astribot_head_joint_1" + ], + "mechanical_kind": "fixed_bridge_neighbor" + }, + { + "bodies": [ + "astribot_torso_link_4", + "astribot_arm_left_link_2" + ], + "reason": "Native coincident-axis two-DoF shoulder internal housing; original URDF leaves both shells without collision", + "source_joints": [ + "astribot_torso_end_effector_fixed_joint", + "astribot_arm_left_base_fixed_joint", + "astribot_arm_left_joint_1", + "astribot_arm_left_joint_2" + ], + "mechanical_kind": "coincident_shoulder_housing" + }, + { + "bodies": [ + "astribot_torso_link_4", + "astribot_arm_right_link_2" + ], + "reason": "Native coincident-axis two-DoF shoulder internal housing; original URDF leaves both shells without collision", + "source_joints": [ + "astribot_torso_end_effector_fixed_joint", + "astribot_arm_right_base_fixed_joint", + "astribot_arm_right_joint_1", + "astribot_arm_right_joint_2" + ], + "mechanical_kind": "coincident_shoulder_housing" + } + ] +} diff --git a/assets/robots/astribot_s1/collision_refinement_evidence.json b/assets/robots/astribot_s1/collision_refinement_evidence.json new file mode 100644 index 0000000000000000000000000000000000000000..b86956ec4a428e189fa3859edc11ab58671ff26d --- /dev/null +++ b/assets/robots/astribot_s1/collision_refinement_evidence.json @@ -0,0 +1,115 @@ +{ + "source_revision": "8c651a1abbe2821824a692aa3a3aa4cbf88e4122", + "source_urdf_sha256": "d2eb0b78c1632d732b527c870c4fa46ca6074a6863b51f85f754dba9f77b8db6", + "source_visual_clearances": [ + { + "bodies": [ + "astribot_torso_link_3", + "astribot_arm_left_link_1" + ], + "intersects": false, + "distance_m": 0.2730469810469051 + }, + { + "bodies": [ + "astribot_torso_link_3", + "astribot_arm_right_link_1" + ], + "intersects": false, + "distance_m": 0.2729868688382309 + }, + { + "bodies": [ + "astribot_torso_link_4", + "astribot_arm_left_link_2" + ], + "intersects": false, + "distance_m": 0.0003734529841029955 + }, + { + "bodies": [ + "astribot_torso_link_4", + "astribot_arm_right_link_2" + ], + "intersects": false, + "distance_m": 0.0003974994267346765 + } + ], + "source_visual_clearances_sha256": "73f4a73bc221a64ceceec2f7c8fcecc28469eb6da2ecf1e24b784cada7cd515f", + "default_import_failed_report_sha256": "d6f2add7179e3938eacf107134ba570677661e462dd4523300e63ccedea7ed90", + "high_resolution_cooking_trial_failed_report_sha256": "edb08d0ea1af57ec67753924d9d76e947849e099e963faa59354ec827b97f439", + "conclusion": "Tighter hull decomposition and contact margins did not resolve the native internal shoulder-housing contacts. Derive only the explicitly listed physical mechanism neighbors from source fixed bridges and coincident shoulder axes.", + "mechanical_filters": [ + { + "bodies": [ + "astribot_torso_link_4", + "astribot_arm_left_link_1" + ], + "reason": "Immediate actuated neighbors after collapsing native fixed bridges", + "source_joints": [ + "astribot_torso_end_effector_fixed_joint", + "astribot_arm_left_base_fixed_joint", + "astribot_arm_left_joint_1" + ], + "mechanical_kind": "fixed_bridge_neighbor" + }, + { + "bodies": [ + "astribot_torso_link_4", + "astribot_arm_right_link_1" + ], + "reason": "Immediate actuated neighbors after collapsing native fixed bridges", + "source_joints": [ + "astribot_torso_end_effector_fixed_joint", + "astribot_arm_right_base_fixed_joint", + "astribot_arm_right_joint_1" + ], + "mechanical_kind": "fixed_bridge_neighbor" + }, + { + "bodies": [ + "astribot_torso_link_4", + "astribot_head_link_1" + ], + "reason": "Immediate actuated neighbors after collapsing native fixed bridges", + "source_joints": [ + "astribot_torso_end_effector_fixed_joint", + "astribot_head_fixed_joint", + "astribot_head_joint_1" + ], + "mechanical_kind": "fixed_bridge_neighbor" + }, + { + "bodies": [ + "astribot_torso_link_4", + "astribot_arm_left_link_2" + ], + "reason": "Native coincident-axis two-DoF shoulder internal housing; original URDF leaves both shells without collision", + "source_joints": [ + "astribot_torso_end_effector_fixed_joint", + "astribot_arm_left_base_fixed_joint", + "astribot_arm_left_joint_1", + "astribot_arm_left_joint_2" + ], + "mechanical_kind": "coincident_shoulder_housing" + }, + { + "bodies": [ + "astribot_torso_link_4", + "astribot_arm_right_link_2" + ], + "reason": "Native coincident-axis two-DoF shoulder internal housing; original URDF leaves both shells without collision", + "source_joints": [ + "astribot_torso_end_effector_fixed_joint", + "astribot_arm_right_base_fixed_joint", + "astribot_arm_right_joint_1", + "astribot_arm_right_joint_2" + ], + "mechanical_kind": "coincident_shoulder_housing" + } + ], + "scope": "Five named source mechanical internal pairs, plus twenty official gripper linkage pairs and same-fixed-body filters. Added full-shell external collisions remain active. Other arm/body, inter-arm, robot/table and robot/object pairs remain active.", + "contact_offset_m": 0.001, + "rest_offset_m": 0.0, + "native_geometry_and_joint_coordinates_unchanged": true +} diff --git a/assets/robots/astribot_s1/conversion.json b/assets/robots/astribot_s1/conversion.json new file mode 100644 index 0000000000000000000000000000000000000000..d009612d03bf18c9aedaf8831769d1ddeb7345b9 --- /dev/null +++ b/assets/robots/astribot_s1/conversion.json @@ -0,0 +1,696 @@ +{ + "native_root": "/astribot_s1_benchmark", + "native_mimic_joints": [ + "astribot_gripper_left_joint_L2", + "astribot_gripper_left_joint_L11", + "astribot_gripper_left_joint_R1", + "astribot_gripper_left_joint_R2", + "astribot_gripper_left_joint_R11", + "astribot_gripper_right_joint_L2", + "astribot_gripper_right_joint_L11", + "astribot_gripper_right_joint_R1", + "astribot_gripper_right_joint_R2", + "astribot_gripper_right_joint_R11" + ], + "resolved_source_mimics": [ + { + "joint": "astribot_gripper_left_joint_L2", + "reference": "astribot_gripper_left_joint_L1", + "multiplier": 1.0, + "offset": 0.0, + "type": "angular" + }, + { + "joint": "astribot_gripper_left_joint_L11", + "reference": "astribot_gripper_left_joint_L1", + "multiplier": -1.0, + "offset": 0.0, + "type": "angular" + }, + { + "joint": "astribot_gripper_left_joint_R1", + "reference": "astribot_gripper_left_joint_L1", + "multiplier": -1.0, + "offset": 0.0, + "type": "angular" + }, + { + "joint": "astribot_gripper_left_joint_R2", + "reference": "astribot_gripper_left_joint_L1", + "multiplier": -1.0, + "offset": 0.0, + "type": "angular" + }, + { + "joint": "astribot_gripper_left_joint_R11", + "reference": "astribot_gripper_left_joint_L1", + "multiplier": 1.0, + "offset": 0.0, + "type": "angular" + }, + { + "joint": "astribot_gripper_right_joint_L2", + "reference": "astribot_gripper_right_joint_L1", + "multiplier": 1.0, + "offset": 0.0, + "type": "angular" + }, + { + "joint": "astribot_gripper_right_joint_L11", + "reference": "astribot_gripper_right_joint_L1", + "multiplier": -1.0, + "offset": 0.0, + "type": "angular" + }, + { + "joint": "astribot_gripper_right_joint_R1", + "reference": "astribot_gripper_right_joint_L1", + "multiplier": -1.0, + "offset": 0.0, + "type": "angular" + }, + { + "joint": "astribot_gripper_right_joint_R2", + "reference": "astribot_gripper_right_joint_L1", + "multiplier": -1.0, + "offset": 0.0, + "type": "angular" + }, + { + "joint": "astribot_gripper_right_joint_R11", + "reference": "astribot_gripper_right_joint_L1", + "multiplier": 1.0, + "offset": 0.0, + "type": "angular" + } + ], + "fixed_base": true, + "self_collision": true, + "normalized_collider_schemas": [ + "/astribot_s1_benchmark/astribot_torso_link_3/collisions/source_mesh_coverage/node_STL_BINARY_/mesh", + "/astribot_s1_benchmark/astribot_torso_link_4/collisions/source_mesh_coverage/Scene/mesh", + "/astribot_s1_benchmark/astribot_arm_left_base_link/collisions/source_mesh_coverage/node_STL_BINARY_/mesh", + "/astribot_s1_benchmark/astribot_arm_left_link_1/collisions/source_mesh_coverage/node_STL_BINARY_/mesh", + "/astribot_s1_benchmark/astribot_arm_left_link_2/collisions/source_mesh_coverage/node_STL_BINARY_/mesh", + "/astribot_s1_benchmark/astribot_arm_left_link_6/collisions/source_mesh_coverage/node_STL_BINARY_/mesh", + "/astribot_s1_benchmark/astribot_gripper_left_base/collisions/source_mesh_coverage/node_STL_BINARY_/mesh", + "/astribot_s1_benchmark/astribot_gripper_left_Link_L1/collisions/source_mesh_coverage/Scene/mesh", + "/astribot_s1_benchmark/astribot_gripper_left_Link_L11/collisions/astribot_gripper_L11_Link/Scene/mesh", + "/astribot_s1_benchmark/astribot_gripper_left_Link_L2/collisions/source_mesh_coverage/Scene/mesh", + "/astribot_s1_benchmark/astribot_gripper_left_Link_R1/collisions/source_mesh_coverage/Scene/mesh", + "/astribot_s1_benchmark/astribot_gripper_left_Link_R11/collisions/astribot_gripper_R11_Link/Scene/mesh", + "/astribot_s1_benchmark/astribot_gripper_left_Link_R2/collisions/source_mesh_coverage/Scene/mesh", + "/astribot_s1_benchmark/astribot_arm_right_base_link/collisions/source_mesh_coverage/node_STL_BINARY_/mesh", + "/astribot_s1_benchmark/astribot_arm_right_link_1/collisions/source_mesh_coverage/node_STL_BINARY_/mesh", + "/astribot_s1_benchmark/astribot_arm_right_link_2/collisions/source_mesh_coverage/node_STL_BINARY_/mesh", + "/astribot_s1_benchmark/astribot_arm_right_link_6/collisions/source_mesh_coverage/node_STL_BINARY_/mesh", + "/astribot_s1_benchmark/astribot_gripper_right_base/collisions/source_mesh_coverage/node_STL_BINARY_/mesh", + "/astribot_s1_benchmark/astribot_gripper_right_Link_L1/collisions/source_mesh_coverage/Scene/mesh", + "/astribot_s1_benchmark/astribot_gripper_right_Link_L11/collisions/astribot_gripper_L11_Link/Scene/mesh", + "/astribot_s1_benchmark/astribot_gripper_right_Link_L2/collisions/source_mesh_coverage/Scene/mesh", + "/astribot_s1_benchmark/astribot_gripper_right_Link_R1/collisions/source_mesh_coverage/Scene/mesh", + "/astribot_s1_benchmark/astribot_gripper_right_Link_R11/collisions/astribot_gripper_R11_Link/Scene/mesh", + "/astribot_s1_benchmark/astribot_gripper_right_Link_R2/collisions/source_mesh_coverage/Scene/mesh", + "/astribot_s1_benchmark/astribot_head_base_link/collisions/source_mesh_coverage/node_STL_BINARY_/mesh", + "/astribot_s1_benchmark/astribot_head_link_1/collisions/source_mesh_coverage/node_STL_BINARY_/mesh", + "/astribot_s1_benchmark/wheel_LF_Link/collisions/source_mesh_coverage/node_STL_BINARY_/mesh", + "/astribot_s1_benchmark/wheel_LR_Link/collisions/source_mesh_coverage/node_STL_BINARY_/mesh", + "/astribot_s1_benchmark/wheel_RF_Link/collisions/source_mesh_coverage/node_STL_BINARY_/mesh", + "/astribot_s1_benchmark/wheel_RR_Link/collisions/source_mesh_coverage/node_STL_BINARY_/mesh" + ], + "internal_collision_filters": [ + { + "bodies": [ + "astribot_torso_base", + "benchmark_base" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "astribot_torso_link_4", + "astribot_torso_end_effector" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "astribot_torso_link_4", + "astribot_head_base_link" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "astribot_torso_link_4", + "astribot_arm_left_base_link" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "astribot_torso_link_4", + "astribot_arm_right_base_link" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "astribot_torso_end_effector", + "astribot_head_base_link" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "astribot_torso_end_effector", + "astribot_arm_left_base_link" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "astribot_torso_end_effector", + "astribot_arm_right_base_link" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "astribot_head_base_link", + "astribot_arm_left_base_link" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "astribot_head_base_link", + "astribot_arm_right_base_link" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "astribot_arm_left_base_link", + "astribot_arm_right_base_link" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "astribot_head_link_2", + "source_head_rgbd_camera_frame" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "astribot_arm_left_link_7", + "astribot_arm_left_tool_link" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "astribot_arm_left_link_7", + "astribot_gripper_left_base" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "astribot_arm_left_link_7", + "left_benchmark_tcp" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "astribot_arm_left_link_7", + "source_left_wrist_rgbd_camera_frame" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "astribot_arm_left_tool_link", + "astribot_gripper_left_base" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "astribot_arm_left_tool_link", + "left_benchmark_tcp" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "astribot_arm_left_tool_link", + "source_left_wrist_rgbd_camera_frame" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "astribot_gripper_left_base", + "left_benchmark_tcp" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "astribot_gripper_left_base", + "source_left_wrist_rgbd_camera_frame" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "left_benchmark_tcp", + "source_left_wrist_rgbd_camera_frame" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "astribot_arm_right_link_7", + "astribot_arm_right_tool_link" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "astribot_arm_right_link_7", + "astribot_gripper_right_base" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "astribot_arm_right_link_7", + "right_benchmark_tcp" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "astribot_arm_right_link_7", + "source_right_wrist_rgbd_camera_frame" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "astribot_arm_right_tool_link", + "astribot_gripper_right_base" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "astribot_arm_right_tool_link", + "right_benchmark_tcp" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "astribot_arm_right_tool_link", + "source_right_wrist_rgbd_camera_frame" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "astribot_gripper_right_base", + "right_benchmark_tcp" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "astribot_gripper_right_base", + "source_right_wrist_rgbd_camera_frame" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "right_benchmark_tcp", + "source_right_wrist_rgbd_camera_frame" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "astribot_gripper_left_base", + "astribot_gripper_left_Link_L1" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_base", + "astribot_gripper_left_Link_L2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_Link_L1", + "astribot_gripper_left_Link_L2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_Link_L1", + "astribot_gripper_left_Link_L11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_Link_L2", + "astribot_gripper_left_Link_L11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_base", + "astribot_gripper_left_Link_R1" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_base", + "astribot_gripper_left_Link_R2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_Link_R1", + "astribot_gripper_left_Link_R2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_Link_R1", + "astribot_gripper_left_Link_R11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_Link_R2", + "astribot_gripper_left_Link_R11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_base", + "astribot_gripper_right_Link_L1" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_base", + "astribot_gripper_right_Link_L2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_Link_L1", + "astribot_gripper_right_Link_L2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_Link_L1", + "astribot_gripper_right_Link_L11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_Link_L2", + "astribot_gripper_right_Link_L11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_base", + "astribot_gripper_right_Link_R1" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_base", + "astribot_gripper_right_Link_R2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_Link_R1", + "astribot_gripper_right_Link_R2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_Link_R1", + "astribot_gripper_right_Link_R11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_Link_R2", + "astribot_gripper_right_Link_R11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + } + ], + "collision_decomposition_overrides": [], + "visual_material_overrides": [], + "unresolved": [], + "runtime_builtin_material_modules": [ + "OmniPBR.mdl" + ], + "collision_approximation": "convexDecomposition on authored source mesh collisions; primitives retained", + "contact_offset_m": 0.001, + "platform": null, + "bodies": [ + "/astribot_s1_benchmark/benchmark_base", + "/astribot_s1_benchmark/astribot_torso_base", + "/astribot_s1_benchmark/astribot_torso_link_1", + "/astribot_s1_benchmark/astribot_torso_link_2", + "/astribot_s1_benchmark/astribot_torso_link_3", + "/astribot_s1_benchmark/astribot_torso_link_4", + "/astribot_s1_benchmark/astribot_torso_end_effector", + "/astribot_s1_benchmark/astribot_arm_left_base_link", + "/astribot_s1_benchmark/astribot_arm_left_link_1", + "/astribot_s1_benchmark/astribot_arm_left_link_2", + "/astribot_s1_benchmark/astribot_arm_left_link_3", + "/astribot_s1_benchmark/astribot_arm_left_link_4", + "/astribot_s1_benchmark/astribot_arm_left_link_5", + "/astribot_s1_benchmark/astribot_arm_left_link_6", + "/astribot_s1_benchmark/astribot_arm_left_link_7", + "/astribot_s1_benchmark/astribot_arm_left_tool_link", + "/astribot_s1_benchmark/astribot_gripper_left_base", + "/astribot_s1_benchmark/astribot_gripper_left_Link_L1", + "/astribot_s1_benchmark/astribot_gripper_left_Link_L11", + "/astribot_s1_benchmark/astribot_gripper_left_Link_L2", + "/astribot_s1_benchmark/astribot_gripper_left_Link_R1", + "/astribot_s1_benchmark/astribot_gripper_left_Link_R11", + "/astribot_s1_benchmark/astribot_gripper_left_Link_R2", + "/astribot_s1_benchmark/left_benchmark_tcp", + "/astribot_s1_benchmark/source_left_wrist_rgbd_camera_frame", + "/astribot_s1_benchmark/astribot_arm_right_base_link", + "/astribot_s1_benchmark/astribot_arm_right_link_1", + "/astribot_s1_benchmark/astribot_arm_right_link_2", + "/astribot_s1_benchmark/astribot_arm_right_link_3", + "/astribot_s1_benchmark/astribot_arm_right_link_4", + "/astribot_s1_benchmark/astribot_arm_right_link_5", + "/astribot_s1_benchmark/astribot_arm_right_link_6", + "/astribot_s1_benchmark/astribot_arm_right_link_7", + "/astribot_s1_benchmark/astribot_arm_right_tool_link", + "/astribot_s1_benchmark/astribot_gripper_right_base", + "/astribot_s1_benchmark/astribot_gripper_right_Link_L1", + "/astribot_s1_benchmark/astribot_gripper_right_Link_L11", + "/astribot_s1_benchmark/astribot_gripper_right_Link_L2", + "/astribot_s1_benchmark/astribot_gripper_right_Link_R1", + "/astribot_s1_benchmark/astribot_gripper_right_Link_R11", + "/astribot_s1_benchmark/astribot_gripper_right_Link_R2", + "/astribot_s1_benchmark/right_benchmark_tcp", + "/astribot_s1_benchmark/source_right_wrist_rgbd_camera_frame", + "/astribot_s1_benchmark/astribot_head_base_link", + "/astribot_s1_benchmark/astribot_head_link_1", + "/astribot_s1_benchmark/astribot_head_link_2", + "/astribot_s1_benchmark/source_head_rgbd_camera_frame", + "/astribot_s1_benchmark/wheel_LF_Link", + "/astribot_s1_benchmark/wheel_LR_Link", + "/astribot_s1_benchmark/wheel_RF_Link", + "/astribot_s1_benchmark/wheel_RR_Link" + ], + "joint_names": [ + "benchmark_native_mount", + "astribot_torso_joint_1", + "astribot_torso_joint_2", + "astribot_torso_joint_3", + "astribot_torso_joint_4", + "astribot_torso_end_effector_fixed_joint", + "astribot_arm_left_base_fixed_joint", + "astribot_arm_left_joint_1", + "astribot_arm_left_joint_2", + "astribot_arm_left_joint_3", + "astribot_arm_left_joint_4", + "astribot_arm_left_joint_5", + "astribot_arm_left_joint_6", + "astribot_arm_left_joint_7", + "astribot_arm_left_tool_joint", + "astribot_gripper_left_arm_joint", + "astribot_gripper_left_joint_L1", + "astribot_gripper_left_joint_L11", + "astribot_gripper_left_joint_L2", + "astribot_gripper_left_joint_R1", + "astribot_gripper_left_joint_R11", + "astribot_gripper_left_joint_R2", + "left_benchmark_tcp_fixed", + "source_left_wrist_rgbd_camera_frame_fixed", + "astribot_arm_right_base_fixed_joint", + "astribot_arm_right_joint_1", + "astribot_arm_right_joint_2", + "astribot_arm_right_joint_3", + "astribot_arm_right_joint_4", + "astribot_arm_right_joint_5", + "astribot_arm_right_joint_6", + "astribot_arm_right_joint_7", + "astribot_arm_right_tool_joint", + "astribot_gripper_right_arm_joint", + "astribot_gripper_right_joint_L1", + "astribot_gripper_right_joint_L11", + "astribot_gripper_right_joint_L2", + "astribot_gripper_right_joint_R1", + "astribot_gripper_right_joint_R11", + "astribot_gripper_right_joint_R2", + "right_benchmark_tcp_fixed", + "source_right_wrist_rgbd_camera_frame_fixed", + "astribot_head_fixed_joint", + "astribot_head_joint_1", + "astribot_head_joint_2", + "source_head_rgbd_camera_frame_fixed", + "wheel_LF_Joint", + "wheel_LR_Joint", + "wheel_RF_Joint", + "wheel_RR_Joint", + "root_joint" + ], + "astribot_collision_refinement": { + "evidence_sha256": "ab72029b57af97b91c92fd1161be0b0b83c7f3ee25ca22f18e541edc8aa05870", + "mechanical_filters": [ + { + "bodies": [ + "astribot_torso_link_4", + "astribot_arm_left_link_1" + ], + "reason": "Immediate actuated neighbors after collapsing native fixed bridges", + "source_joints": [ + "astribot_torso_end_effector_fixed_joint", + "astribot_arm_left_base_fixed_joint", + "astribot_arm_left_joint_1" + ], + "mechanical_kind": "fixed_bridge_neighbor" + }, + { + "bodies": [ + "astribot_torso_link_4", + "astribot_arm_right_link_1" + ], + "reason": "Immediate actuated neighbors after collapsing native fixed bridges", + "source_joints": [ + "astribot_torso_end_effector_fixed_joint", + "astribot_arm_right_base_fixed_joint", + "astribot_arm_right_joint_1" + ], + "mechanical_kind": "fixed_bridge_neighbor" + }, + { + "bodies": [ + "astribot_torso_link_4", + "astribot_head_link_1" + ], + "reason": "Immediate actuated neighbors after collapsing native fixed bridges", + "source_joints": [ + "astribot_torso_end_effector_fixed_joint", + "astribot_head_fixed_joint", + "astribot_head_joint_1" + ], + "mechanical_kind": "fixed_bridge_neighbor" + }, + { + "bodies": [ + "astribot_torso_link_4", + "astribot_arm_left_link_2" + ], + "reason": "Native coincident-axis two-DoF shoulder internal housing; original URDF leaves both shells without collision", + "source_joints": [ + "astribot_torso_end_effector_fixed_joint", + "astribot_arm_left_base_fixed_joint", + "astribot_arm_left_joint_1", + "astribot_arm_left_joint_2" + ], + "mechanical_kind": "coincident_shoulder_housing" + }, + { + "bodies": [ + "astribot_torso_link_4", + "astribot_arm_right_link_2" + ], + "reason": "Native coincident-axis two-DoF shoulder internal housing; original URDF leaves both shells without collision", + "source_joints": [ + "astribot_torso_end_effector_fixed_joint", + "astribot_arm_right_base_fixed_joint", + "astribot_arm_right_joint_1", + "astribot_arm_right_joint_2" + ], + "mechanical_kind": "coincident_shoulder_housing" + } + ], + "contact_offset_m": 0.001, + "native_mesh_cooking": "Original default convex decomposition retained; failed tighter-cooking trial archived" + } +} diff --git a/assets/robots/astribot_s1/profile.json b/assets/robots/astribot_s1/profile.json new file mode 100644 index 0000000000000000000000000000000000000000..2ae53976df5bdd70c6523a6056b909b5bd2e0085 --- /dev/null +++ b/assets/robots/astribot_s1/profile.json @@ -0,0 +1,1481 @@ +{ + "id": "astribot_s1", + "label": "Astribot S1 \u00b7 Native Mobile Dual Arm", + "source_robot": "Official Astribot S1 mobile body, dual 7-DoF arms and native parallel grippers", + "source_variant": "S1 wheel URDF plus native ManiSkill grippers; official MJCF camera mounts", + "source_revision": "8c651a1abbe2821824a692aa3a3aa4cbf88e4122", + "usd": "../astribot_s1/usd/robot.usd", + "native_root": "/astribot_s1_benchmark", + "base_position": [ + -0.24, + 0.0, + -0.597 + ], + "ground_offset": 0.1, + "home": { + "wheel_RF_Joint": 0.0, + "wheel_LF_Joint": 0.0, + "wheel_RR_Joint": 0.0, + "wheel_LR_Joint": 0.0, + "astribot_torso_joint_1": 0.0, + "astribot_torso_joint_2": 0.0, + "astribot_torso_joint_3": 0.0, + "astribot_torso_joint_4": 0.0, + "astribot_head_joint_1": 0.0, + "astribot_head_joint_2": 0.98, + "astribot_arm_left_joint_1": -0.43399812516980524, + "astribot_arm_left_joint_2": -0.18163979470312183, + "astribot_arm_left_joint_3": -1.752449821950547, + "astribot_arm_left_joint_4": 1.4293830009834325, + "astribot_arm_left_joint_5": 0.3641594145022263, + "astribot_arm_left_joint_6": -0.5937473158464095, + "astribot_arm_left_joint_7": -1.2230845847446723, + "astribot_arm_right_joint_1": 0.43399812516980524, + "astribot_arm_right_joint_2": -0.18163979470312183, + "astribot_arm_right_joint_3": 1.752449821950547, + "astribot_arm_right_joint_4": 1.4293830009834325, + "astribot_arm_right_joint_5": -0.3641594145022263, + "astribot_arm_right_joint_6": -0.5937473158464095, + "astribot_arm_right_joint_7": 1.2230845847446723, + "astribot_gripper_left_joint_L1": 0.0, + "astribot_gripper_left_joint_L2": 0.0, + "astribot_gripper_left_joint_L11": 0.0, + "astribot_gripper_left_joint_R1": 0.0, + "astribot_gripper_left_joint_R2": 0.0, + "astribot_gripper_left_joint_R11": 0.0, + "astribot_gripper_right_joint_L1": 0.0, + "astribot_gripper_right_joint_L2": 0.0, + "astribot_gripper_right_joint_L11": 0.0, + "astribot_gripper_right_joint_R1": 0.0, + "astribot_gripper_right_joint_R2": 0.0, + "astribot_gripper_right_joint_R11": 0.0 + }, + "joints": { + "wheel_RF_Joint": { + "type": "angular", + "stiffness": 1200.0, + "damping": 60.0, + "effort": 10.0, + "velocity": 1.0, + "mimic": false + }, + "wheel_LF_Joint": { + "type": "angular", + "stiffness": 1200.0, + "damping": 60.0, + "effort": 10.0, + "velocity": 1.0, + "mimic": false + }, + "wheel_RR_Joint": { + "type": "angular", + "stiffness": 1200.0, + "damping": 60.0, + "effort": 10.0, + "velocity": 1.0, + "mimic": false + }, + "wheel_LR_Joint": { + "type": "angular", + "stiffness": 1200.0, + "damping": 60.0, + "effort": 10.0, + "velocity": 1.0, + "mimic": false + }, + "astribot_torso_joint_1": { + "type": "angular", + "stiffness": 1200.0, + "damping": 60.0, + "effort": 420.0, + "velocity": 1.5, + "mimic": false + }, + "astribot_torso_joint_2": { + "type": "angular", + "stiffness": 1200.0, + "damping": 60.0, + "effort": 420.0, + "velocity": 1.5, + "mimic": false + }, + "astribot_torso_joint_3": { + "type": "angular", + "stiffness": 1200.0, + "damping": 60.0, + "effort": 370.0, + "velocity": 1.5, + "mimic": false + }, + "astribot_torso_joint_4": { + "type": "angular", + "stiffness": 1200.0, + "damping": 60.0, + "effort": 370.0, + "velocity": 1.5, + "mimic": false + }, + "astribot_head_joint_1": { + "type": "angular", + "stiffness": 1200.0, + "damping": 60.0, + "effort": 21.28, + "velocity": 1.5, + "mimic": false + }, + "astribot_head_joint_2": { + "type": "angular", + "stiffness": 1200.0, + "damping": 60.0, + "effort": 21.28, + "velocity": 1.5, + "mimic": false + }, + "astribot_arm_left_joint_1": { + "type": "angular", + "stiffness": 1200.0, + "damping": 60.0, + "effort": 112.5, + "velocity": 1.5, + "mimic": false + }, + "astribot_arm_left_joint_2": { + "type": "angular", + "stiffness": 1200.0, + "damping": 60.0, + "effort": 112.5, + "velocity": 1.5, + "mimic": false + }, + "astribot_arm_left_joint_3": { + "type": "angular", + "stiffness": 1200.0, + "damping": 60.0, + "effort": 56.25, + "velocity": 1.5, + "mimic": false + }, + "astribot_arm_left_joint_4": { + "type": "angular", + "stiffness": 1200.0, + "damping": 60.0, + "effort": 36.96, + "velocity": 1.5, + "mimic": false + }, + "astribot_arm_left_joint_5": { + "type": "angular", + "stiffness": 1200.0, + "damping": 60.0, + "effort": 36.96, + "velocity": 1.5, + "mimic": false + }, + "astribot_arm_left_joint_6": { + "type": "angular", + "stiffness": 1200.0, + "damping": 60.0, + "effort": 18.0, + "velocity": 1.5, + "mimic": false + }, + "astribot_arm_left_joint_7": { + "type": "angular", + "stiffness": 1200.0, + "damping": 60.0, + "effort": 18.0, + "velocity": 1.5, + "mimic": false + }, + "astribot_arm_right_joint_1": { + "type": "angular", + "stiffness": 1200.0, + "damping": 60.0, + "effort": 112.5, + "velocity": 1.5, + "mimic": false + }, + "astribot_arm_right_joint_2": { + "type": "angular", + "stiffness": 1200.0, + "damping": 60.0, + "effort": 112.5, + "velocity": 1.5, + "mimic": false + }, + "astribot_arm_right_joint_3": { + "type": "angular", + "stiffness": 1200.0, + "damping": 60.0, + "effort": 56.25, + "velocity": 1.5, + "mimic": false + }, + "astribot_arm_right_joint_4": { + "type": "angular", + "stiffness": 1200.0, + "damping": 60.0, + "effort": 36.96, + "velocity": 1.5, + "mimic": false + }, + "astribot_arm_right_joint_5": { + "type": "angular", + "stiffness": 1200.0, + "damping": 60.0, + "effort": 36.96, + "velocity": 1.5, + "mimic": false + }, + "astribot_arm_right_joint_6": { + "type": "angular", + "stiffness": 1200.0, + "damping": 60.0, + "effort": 18.0, + "velocity": 1.5, + "mimic": false + }, + "astribot_arm_right_joint_7": { + "type": "angular", + "stiffness": 1200.0, + "damping": 60.0, + "effort": 18.0, + "velocity": 1.5, + "mimic": false + }, + "astribot_gripper_left_joint_L1": { + "type": "angular", + "stiffness": 150.0, + "damping": 10.0, + "effort": 1.0, + "velocity": 1.0, + "mimic": false + }, + "astribot_gripper_left_joint_L2": { + "type": "angular", + "stiffness": 150.0, + "damping": 10.0, + "effort": 1.0, + "velocity": 1.0, + "mimic": true + }, + "astribot_gripper_left_joint_L11": { + "type": "angular", + "stiffness": 150.0, + "damping": 10.0, + "effort": 1.0, + "velocity": 1.0, + "mimic": true + }, + "astribot_gripper_left_joint_R1": { + "type": "angular", + "stiffness": 150.0, + "damping": 10.0, + "effort": 1.0, + "velocity": 1.0, + "mimic": true + }, + "astribot_gripper_left_joint_R2": { + "type": "angular", + "stiffness": 150.0, + "damping": 10.0, + "effort": 1.0, + "velocity": 1.0, + "mimic": true + }, + "astribot_gripper_left_joint_R11": { + "type": "angular", + "stiffness": 150.0, + "damping": 10.0, + "effort": 1.0, + "velocity": 1.0, + "mimic": true + }, + "astribot_gripper_right_joint_L1": { + "type": "angular", + "stiffness": 150.0, + "damping": 10.0, + "effort": 1.0, + "velocity": 1.0, + "mimic": false + }, + "astribot_gripper_right_joint_L2": { + "type": "angular", + "stiffness": 150.0, + "damping": 10.0, + "effort": 1.0, + "velocity": 1.0, + "mimic": true + }, + "astribot_gripper_right_joint_L11": { + "type": "angular", + "stiffness": 150.0, + "damping": 10.0, + "effort": 1.0, + "velocity": 1.0, + "mimic": true + }, + "astribot_gripper_right_joint_R1": { + "type": "angular", + "stiffness": 150.0, + "damping": 10.0, + "effort": 1.0, + "velocity": 1.0, + "mimic": true + }, + "astribot_gripper_right_joint_R2": { + "type": "angular", + "stiffness": 150.0, + "damping": 10.0, + "effort": 1.0, + "velocity": 1.0, + "mimic": true + }, + "astribot_gripper_right_joint_R11": { + "type": "angular", + "stiffness": 150.0, + "damping": 10.0, + "effort": 1.0, + "velocity": 1.0, + "mimic": true + } + }, + "arms": { + "left": { + "asset": "robot", + "joints": [ + "astribot_arm_left_joint_1", + "astribot_arm_left_joint_2", + "astribot_arm_left_joint_3", + "astribot_arm_left_joint_4", + "astribot_arm_left_joint_5", + "astribot_arm_left_joint_6", + "astribot_arm_left_joint_7" + ], + "tcp_body": "astribot_gripper_left_base", + "tcp_offset_pos": [ + 0.0, + 0.0, + 0.14 + ], + "tcp_offset_quat": [ + 0.7071067811865477, + 0.0, + 0.0, + 0.7071067811865475 + ], + "master_joint": "astribot_gripper_left_joint_L1", + "gripper_open": 0.0, + "gripper_closed": -0.93, + "contact_bodies": [ + "astribot_gripper_left_Link_L11", + "astribot_gripper_left_Link_R11" + ], + "source_tcp": null, + "benchmark_tcp": "left_benchmark_tcp", + "home_target_world": [ + 0.27884679632080456, + 0.2801646758804642, + 0.46969824450681785 + ], + "home_orientation_wxyz": [ + 0.08162169265543684, + 0.8231610757408251, + -0.3901330595082733, + 0.40440071532081 + ], + "requested_ready_position_world": [ + 0.28, + 0.28, + 0.47 + ], + "ready_position_error_m": 0.0012033508420166558, + "ready_downward_approach_angle_deg": 48.730937254767106 + }, + "right": { + "asset": "robot", + "joints": [ + "astribot_arm_right_joint_1", + "astribot_arm_right_joint_2", + "astribot_arm_right_joint_3", + "astribot_arm_right_joint_4", + "astribot_arm_right_joint_5", + "astribot_arm_right_joint_6", + "astribot_arm_right_joint_7" + ], + "tcp_body": "astribot_gripper_right_base", + "tcp_offset_pos": [ + 0.0, + 0.0, + 0.14 + ], + "tcp_offset_quat": [ + 0.7071067811865477, + 0.0, + 0.0, + 0.7071067811865475 + ], + "master_joint": "astribot_gripper_right_joint_L1", + "gripper_open": 0.0, + "gripper_closed": -0.93, + "contact_bodies": [ + "astribot_gripper_right_Link_L11", + "astribot_gripper_right_Link_R11" + ], + "source_tcp": null, + "benchmark_tcp": "right_benchmark_tcp", + "home_target_world": [ + 0.2788476277935773, + -0.2801616501351398, + 0.4696899913502035 + ], + "home_orientation_wxyz": [ + -0.08162176996289236, + 0.8231618790062263, + 0.3901378681598445, + 0.4043944255881322 + ], + "requested_ready_position_world": [ + 0.28, + -0.28, + 0.47 + ], + "ready_position_error_m": 0.0012042416000433243, + "ready_downward_approach_angle_deg": 48.73016359744125 + } + }, + "cameras": { + "head_camera": { + "parent_body": "astribot_head_link_2", + "position": [ + 0.0603, + -0.2139, + -0.0277 + ], + "quaternion_wxyz": [ + -0.016144656910317575, + 0.7105823096132226, + -0.026855767529930994, + -0.7029159971635052 + ], + "focal_length": 28.03996872544834, + "horizontal_aperture": 36.0, + "vertical_aperture": 27.0, + "clipping_range": [ + 0.03, + 10.0 + ], + "source_prim": "source_head_rgbd_camera_frame", + "source_note": "Official MJCF optical centre, forward axis and FOV retained. A fixed benchmark image-roll correction makes the ready-state image upright; the entire frame still follows its native head/wrist. Not measured hardware calibration.", + "source_frame_to_camera_quaternion_wxyz": [ + 0.0037493539593079473, + 0.0, + 0.0, + 0.9999929711477414 + ], + "source_kind": "source_mjcf_camera", + "source_fovy_deg": 51.4175, + "image_roll_correction_deg": 179.57035467782367 + }, + "left_wrist_camera": { + "parent_body": "astribot_gripper_left_base", + "position": [ + 0.00015393661213689407, + -0.07039987186218338, + 0.008000000000000007 + ], + "quaternion_wxyz": [ + -0.05231645452029728, + 0.9986299384483495, + 0.0011110813210492012, + 1.0925639632145594e-05 + ], + "focal_length": 11.040981262631282, + "horizontal_aperture": 20.955, + "vertical_aperture": 15.716249999999999, + "clipping_range": [ + 0.03, + 10.0 + ], + "source_prim": "left_wrist_camera", + "source_note": "Verified YAM optical mount transported through each calibrated fingertip/tool frame. Benchmark installation, not a factory camera definition. S1 adapts the longer hand: lens 8 mm forward of the gripper base, 6-degree forward pitch toward tool +Y. This keeps the table front and fingers in view at the effective home.", + "source_kind": "verified_yam_fallback", + "convention": "opengl", + "source_file": "configs/robots/yam_verified.json" + }, + "right_wrist_camera": { + "parent_body": "astribot_gripper_right_base", + "position": [ + 0.00015403657197402156, + -0.07039980418322263, + 0.008000000000000007 + ], + "quaternion_wxyz": [ + -0.05231645452310254, + 0.9986299381628606, + 0.001111337886181634, + 1.0912198639073067e-05 + ], + "focal_length": 11.040981262631282, + "horizontal_aperture": 20.955, + "vertical_aperture": 15.716249999999999, + "clipping_range": [ + 0.03, + 10.0 + ], + "source_prim": "right_wrist_camera", + "source_note": "Verified YAM optical mount transported through each calibrated fingertip/tool frame. Benchmark installation, not a factory camera definition. S1 adapts the longer hand: lens 8 mm forward of the gripper base, 6-degree forward pitch toward tool +Y. This keeps the table front and fingers in view at the effective home.", + "source_kind": "verified_yam_fallback", + "convention": "opengl", + "source_file": "configs/robots/yam_verified.json" + } + }, + "support": null, + "action_frame": "benchmark_base; X forward, Y left, Z up; absolute TCP xyz + WXYZ quaternion", + "placement_note": "Full native chassis retained, grounded beside unchanged task tables; wheels, torso and head held at ready pose. No navigation claim.", + "camera_note": "Wrist cameras: Verified YAM optical mount transported through each calibrated fingertip/tool frame. Benchmark installation, not a factory camera definition. S1 adapts the longer hand: lens 8 mm forward of the gripper base, 6-degree forward pitch toward tool +Y. This keeps the table front and fingers in view at the effective home. Head camera retained.", + "gripper_note": "Native six-link-per-hand parallel linkage. Official MJCF coupling converted to URDF axis signs, as independently confirmed by the official Isaac backend. Source URDF mounting variant retained (45 mm offset versus 48 mm in MJCF).", + "source_home_geometry_bounds": [ + [ + -0.30305913090705866, + -0.4496382592167692, + -0.0945962665243282 + ], + [ + 0.2868854999542236, + 0.4496406978168347, + 1.54922947348119 + ] + ], + "source_home_link_bounds": { + "astribot_torso_base": [ + [ + -0.30305913090705866, + -0.2910223286675773, + -0.07402274602073265 + ], + [ + 0.2868854999542236, + 0.2910228092107287, + 0.1775615024499308 + ] + ], + "wheel_RF_Link": [ + [ + 0.15439466067889174, + -0.2782984294660894, + -0.0945962665243282 + ], + [ + 0.27829883536986977, + -0.15439506658267316, + 0.06457635512639526 + ] + ], + "wheel_LF_Link": [ + [ + 0.1543947000339126, + 0.15439506658267316, + -0.09459625087438572 + ], + [ + 0.2782987960147326, + 0.2782984294660894, + 0.06457637617167045 + ] + ], + "wheel_RR_Link": [ + [ + -0.2782986352298131, + -0.2732986296073935, + -0.0945962665242918 + ], + [ + -0.1543948608189791, + -0.14939486644133837, + 0.06457635512670516 + ] + ], + "wheel_LR_Link": [ + [ + -0.2782985958746759, + 0.14939486644133837, + -0.09459625087442215 + ], + [ + -0.15439490017399995, + 0.2732986296073935, + 0.0645763761718824 + ] + ], + "astribot_torso_link_1": [ + [ + -0.08400501020974832, + -0.10056398063898085, + 0.035584921837422526 + ], + [ + 0.08399722236454923, + 0.10056398063898084, + 0.583999509808271 + ] + ], + "astribot_torso_link_2": [ + [ + -0.16628866970525577, + -0.09633430838584893, + 0.45499996840727824 + ], + [ + 0.06890243785139075, + 0.09633430838584903, + 0.9704254364276537 + ] + ], + "astribot_torso_link_3": [ + [ + -0.07260628494801556, + -0.062000722005298714, + 0.8104411585296138 + ], + [ + 0.06897514616826023, + 0.06200115195228124, + 0.9649853862228644 + ] + ], + "astribot_torso_link_4": [ + [ + -0.10817303489657937, + -0.13550000465855802, + 0.9659961009058173 + ], + [ + 0.09320990504304723, + 0.13549965448601853, + 1.3483966477450706 + ] + ], + "astribot_head_base_link": [ + [ + -0.08072308397150575, + -0.053834842991817455, + 1.3043497460048161 + ], + [ + 0.01641532242649538, + 0.053879545881833676, + 1.3153501971229704 + ] + ], + "astribot_head_link_1": [ + [ + -0.015747207509229925, + -0.016001807275146666, + 1.2803499760466914 + ], + [ + 0.015752878950531436, + 0.015198366959343615, + 1.373174528814018 + ] + ], + "astribot_head_link_2": [ + [ + -0.03262801188903545, + -0.09006589827606354, + 1.3240540791011712 + ], + [ + 0.2406182651955441, + 0.0904626009130301, + 1.54922947348119 + ] + ], + "astribot_arm_left_base_link": [ + [ + -0.09570303010674448, + 0.04587205951722807, + 1.1584956741318941 + ], + [ + 0.05700259151731217, + 0.11018398648622593, + 1.3127983073602685 + ] + ], + "astribot_arm_left_link_1": [ + [ + -0.024497595621483754, + 0.03650511557105898, + 1.2317408726335102 + ], + [ + 0.024502410050397057, + 0.171998636401822, + 1.311227642573947 + ] + ], + "astribot_arm_left_link_2": [ + [ + -0.11028489085787661, + 0.10120602145441396, + 1.237793607490029 + ], + [ + 0.05516187058255313, + 0.2630872796082615, + 1.347984610489566 + ] + ], + "astribot_arm_left_link_3": [ + [ + -0.05088421887555544, + 0.16776104994637805, + 0.9567927088854213 + ], + [ + 0.050888447099026055, + 0.3237114968324432, + 1.2730707469268079 + ] + ], + "astribot_arm_left_link_4": [ + [ + -0.027997479732601274, + 0.22561878328609092, + 0.9398724434148032 + ], + [ + 0.028003231753967805, + 0.3233659321605641, + 1.0546611570857076 + ] + ], + "astribot_arm_left_link_5": [ + [ + -0.04433524153164758, + 0.26847962037644674, + 0.7086176763233412 + ], + [ + 0.04434842146481227, + 0.4061420460323766, + 0.9595256227830967 + ] + ], + "astribot_arm_left_link_6": [ + [ + -0.022746725760084983, + 0.3264201154622978, + 0.7020366424210678 + ], + [ + 0.022753811757692886, + 0.4120480797236683, + 0.7890364915607561 + ] + ], + "astribot_arm_left_link_7": [ + [ + -0.020996869032028454, + 0.32572316053385414, + 0.6932487991419062 + ], + [ + 0.021003955029636357, + 0.41641014885424954, + 0.7782996148424528 + ] + ], + "astribot_arm_right_base_link": [ + [ + -0.09570242658480141, + -0.11018589737573214, + 1.158494933680706 + ], + [ + 0.05700315567346896, + -0.04587514132002397, + 1.3127979013183932 + ] + ], + "astribot_arm_right_link_1": [ + [ + -0.02449675592273814, + -0.17200156704206468, + 1.231740503935426 + ], + [ + 0.024503249648454913, + -0.03650790228321432, + 1.3112265579192466 + ] + ], + "astribot_arm_right_link_2": [ + [ + -0.1102835250688366, + -0.263090097512186, + 1.2377923647769289 + ], + [ + 0.055163037945430024, + -0.10120967239976382, + 1.3479828335947706 + ] + ], + "astribot_arm_right_link_3": [ + [ + -0.05088279907579294, + -0.3237123585496779, + 0.9567906830100312 + ], + [ + 0.050889866898820565, + -0.16776360909462346, + 1.273068813736745 + ] + ], + "astribot_arm_right_link_4": [ + [ + -0.02799758372314564, + -0.32336675692747496, + 0.9398704694901816 + ], + [ + 0.02800312260672035, + -0.2256196087173285, + 1.0546591107094043 + ] + ], + "astribot_arm_right_link_5": [ + [ + -0.04434277932177129, + -0.40614098014021777, + 0.7086149674774391 + ], + [ + 0.04434088366099653, + -0.2684799900971023, + 0.9595232629241243 + ] + ], + "astribot_arm_right_link_6": [ + [ + -0.022748169399689485, + -0.4120469623649307, + 0.7020339291211135 + ], + [ + 0.022752364204954318, + -0.32641911116339084, + 0.7890337789667099 + ] + ], + "astribot_arm_right_link_7": [ + [ + -0.020998312710166996, + -0.4164089958001114, + 0.6932461110391863 + ], + [ + 0.02100250751543183, + -0.3257221009686818, + 0.7782966921558541 + ] + ], + "astribot_gripper_left_base": [ + [ + -0.04049423639871934, + 0.3556544240271594, + 0.6202260809482965 + ], + [ + 0.0405013232888545, + 0.42588424412559056, + 0.7137849997835676 + ] + ], + "astribot_gripper_left_Link_L1": [ + [ + 0.010508428820966892, + 0.38297401699790257, + 0.6118986379830523 + ], + [ + 0.060496754532325586, + 0.4305956781037568, + 0.6653814106850436 + ] + ], + "astribot_gripper_left_Link_L2": [ + [ + 0.013048288718095644, + 0.39037879271559445, + 0.61190100436372 + ], + [ + 0.0784966955694894, + 0.4292118117232039, + 0.6624215078954689 + ] + ], + "astribot_gripper_left_Link_L11": [ + [ + 0.05000315980604382, + 0.40359694825208264, + 0.5428506458943497 + ], + [ + 0.07850349560720826, + 0.4496406978168347, + 0.6281438546030979 + ] + ], + "astribot_gripper_left_Link_R1": [ + [ + -0.060490004491640346, + 0.38297371382578776, + 0.6118983574657817 + ], + [ + -0.010501586576231778, + 0.43059474376668233, + 0.6653813389258937 + ] + ], + "astribot_gripper_left_Link_R2": [ + [ + -0.07848994424304964, + 0.39037809262331347, + 0.6119006328981536 + ], + [ + -0.013041470566742222, + 0.4292102443763533, + 0.6624213490323326 + ] + ], + "astribot_gripper_left_Link_R11": [ + [ + -0.07849681151996732, + 0.40359582649278386, + 0.5428503890639977 + ], + [ + -0.049996486820202364, + 0.4496396451416277, + 0.6281435723062152 + ] + ], + "astribot_gripper_right_base": [ + [ + -0.040495684085824726, + -0.42588270376840454, + 0.6202231277362747 + ], + [ + 0.040499875601795035, + -0.3556529707279759, + 0.7137819616239028 + ] + ], + "astribot_gripper_right_Link_L1": [ + [ + -0.06049111587738376, + -0.430593778731857, + 0.6118956752795055 + ], + [ + -0.01050279112866519, + -0.38297226927800543, + 0.6653783376927993 + ] + ], + "astribot_gripper_right_Link_L2": [ + [ + -0.07849105690523403, + -0.42920983638580756, + 0.6118980416654612 + ], + [ + -0.013042650442764602, + -0.3903770556344077, + 0.6624185145486045 + ] + ], + "astribot_gripper_right_Link_L11": [ + [ + -0.07849785735778991, + -0.4496382592167692, + 0.5428474137318051 + ], + [ + -0.049997523595497834, + -0.40359489119120395, + 0.6281407676434975 + ] + ], + "astribot_gripper_right_Link_R1": [ + [ + 0.010507226151581523, + -0.4305928491153352, + 0.6118953947678968 + ], + [ + 0.060495641767100206, + -0.3829719676376075, + 0.6653782659350976 + ] + ], + "astribot_gripper_right_Link_R2": [ + [ + 0.013047109209632559, + -0.429208276957666, + 0.6118976702073925 + ], + [ + 0.07849558152784347, + -0.39037635907920415, + 0.6624183556886747 + ] + ], + "astribot_gripper_right_Link_R11": [ + [ + 0.050002125349566086, + -0.4496372120653869, + 0.5428471569066369 + ], + [ + 0.07850244824441754, + -0.40359377509937144, + 0.6281404853523126 + ] + ] + }, + "ready_geometry_bounds_in_root": [ + [ + -0.30305913090705866, + -0.40687291194821273, + -0.0945962665243282 + ], + [ + 0.5776505070380024, + 0.40687713584545293, + 1.54922947348119 + ] + ], + "native_assembly_height_m": 1.6438257400055183, + "internal_collision_filters": [ + { + "bodies": [ + "astribot_gripper_left_base", + "astribot_gripper_left_Link_L1" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_base", + "astribot_gripper_left_Link_L2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_Link_L1", + "astribot_gripper_left_Link_L2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_Link_L1", + "astribot_gripper_left_Link_L11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_Link_L2", + "astribot_gripper_left_Link_L11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_base", + "astribot_gripper_left_Link_R1" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_base", + "astribot_gripper_left_Link_R2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_Link_R1", + "astribot_gripper_left_Link_R2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_Link_R1", + "astribot_gripper_left_Link_R11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_Link_R2", + "astribot_gripper_left_Link_R11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_base", + "astribot_gripper_right_Link_L1" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_base", + "astribot_gripper_right_Link_L2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_Link_L1", + "astribot_gripper_right_Link_L2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_Link_L1", + "astribot_gripper_right_Link_L11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_Link_L2", + "astribot_gripper_right_Link_L11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_base", + "astribot_gripper_right_Link_R1" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_base", + "astribot_gripper_right_Link_R2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_Link_R1", + "astribot_gripper_right_Link_R2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_Link_R1", + "astribot_gripper_right_Link_R11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_Link_R2", + "astribot_gripper_right_Link_R11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_torso_link_4", + "astribot_arm_left_link_1" + ], + "reason": "Immediate actuated neighbors after collapsing native fixed bridges", + "source_joints": [ + "astribot_torso_end_effector_fixed_joint", + "astribot_arm_left_base_fixed_joint", + "astribot_arm_left_joint_1" + ], + "mechanical_kind": "fixed_bridge_neighbor" + }, + { + "bodies": [ + "astribot_torso_link_4", + "astribot_arm_right_link_1" + ], + "reason": "Immediate actuated neighbors after collapsing native fixed bridges", + "source_joints": [ + "astribot_torso_end_effector_fixed_joint", + "astribot_arm_right_base_fixed_joint", + "astribot_arm_right_joint_1" + ], + "mechanical_kind": "fixed_bridge_neighbor" + }, + { + "bodies": [ + "astribot_torso_link_4", + "astribot_head_link_1" + ], + "reason": "Immediate actuated neighbors after collapsing native fixed bridges", + "source_joints": [ + "astribot_torso_end_effector_fixed_joint", + "astribot_head_fixed_joint", + "astribot_head_joint_1" + ], + "mechanical_kind": "fixed_bridge_neighbor" + }, + { + "bodies": [ + "astribot_torso_link_4", + "astribot_arm_left_link_2" + ], + "reason": "Native coincident-axis two-DoF shoulder internal housing; original URDF leaves both shells without collision", + "source_joints": [ + "astribot_torso_end_effector_fixed_joint", + "astribot_arm_left_base_fixed_joint", + "astribot_arm_left_joint_1", + "astribot_arm_left_joint_2" + ], + "mechanical_kind": "coincident_shoulder_housing" + }, + { + "bodies": [ + "astribot_torso_link_4", + "astribot_arm_right_link_2" + ], + "reason": "Native coincident-axis two-DoF shoulder internal housing; original URDF leaves both shells without collision", + "source_joints": [ + "astribot_torso_end_effector_fixed_joint", + "astribot_arm_right_base_fixed_joint", + "astribot_arm_right_joint_1", + "astribot_arm_right_joint_2" + ], + "mechanical_kind": "coincident_shoulder_housing" + } + ], + "collision_filter_evidence": "collision_filter_evidence.json", + "source_license_metadata": "licenses/source_license_metadata.json", + "collision_refinement_evidence": "collision_refinement_evidence.json", + "ready_pose_evidence": "ready_pose_evidence.json", + "ready_pose_refinement_v21": { + "reference": "agibot_g2", + "reference_adapter_sha256": "a77f18fe4a516acf855814ae9b3eb5c49bf2e76701fd6c857ad64630a8108cb3", + "baseline_profile_sha256": "8865d4a80e809952b9a099fecc8facc6da3618dc71acb348141275af5a825582", + "solver_solution_file_sha256": "9fc6c917f681f5d295895b2ef3fe445e1a0f45d5d1ed86e19193fc9a3fa89a95", + "selected_candidate_index": 1, + "selected_candidate": { + "target": [ + 0.28, + 0.28, + 0.47 + ], + "direction_target": [ + 0.600173775465638, + -0.45013033159922855, + -0.6611914426379779 + ], + "q": { + "astribot_arm_left_joint_1": -0.43399812516980524, + "astribot_arm_left_joint_2": -0.18163979470312183, + "astribot_arm_left_joint_3": -1.752449821950547, + "astribot_arm_left_joint_4": 1.4293830009834325, + "astribot_arm_left_joint_5": 0.3641594145022263, + "astribot_arm_left_joint_6": -0.5937473158464095, + "astribot_arm_left_joint_7": -1.2230845847446723 + }, + "tcp": [ + [ + 0.36851251465346174, + -0.7083004396848865, + 0.6020872143518549, + 0.27884679632080456 + ], + [ + -0.576268956102671, + -0.6822681903335501, + -0.4499157773309564, + 0.2801646758804642 + ], + [ + 0.7294604970634929, + -0.18116457601081096, + -0.6595959214721565, + 0.46969824450681785 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ], + "elbow": [ + -0.08963929670348436, + 0.3406346807961813, + 0.4911727858578867 + ], + "cost": 0.14151450765787357 + }, + "camera_roll_corrections": { + "head_camera": { + "image_roll_correction_deg": 179.57035467782367, + "source_optical_position_preserved": true, + "source_forward_axis_preserved": true, + "image_up_world": [ + 0.7949642726384761, + 0.014813402094032636, + 0.6064753649957909 + ] + }, + "left_wrist_camera": { + "image_roll_correction_deg": -164.68087036858284, + "source_optical_position_preserved": true, + "source_forward_axis_preserved": true, + "image_up_world": [ + 0.5186859402129049, + -0.39587117173065006, + 0.7577934486507882 + ] + }, + "right_wrist_camera": { + "image_roll_correction_deg": 168.10782270561134, + "source_optical_position_preserved": true, + "source_forward_axis_preserved": true, + "image_up_world": [ + 0.5441130963243583, + 0.3923714584670828, + 0.7416101246536033 + ] + } + }, + "native_joint_geometry_limits_and_tooling_unchanged": true, + "world_base_and_ground_offset_unchanged": true, + "scope": "Reference-style elbow and hand ready posture solved on native kinematics; not exact cross-robot pose equivalence. Camera image roll is fixed in each native sensor frame, not world-tracking." + }, + "wrist_source_alignment": { + "revision": "astribot-wrist-forward-20261118", + "kind": "verified_yam_fallback", + "sources_sha256": { + "configs/robots/yam_verified.json": "6ae269a9066ccc74a3ba1b38217e3d2f772d2d44e860746a8fb0a3bf7efeea48" + }, + "mounts": { + "left": { + "parent_body": "astribot_gripper_left_base", + "optical_transform_opengl": [ + [ + 0.9999975307578567, + 0.002220261323958793, + -9.443432913532885e-05, + 0.00015393661213689407 + ], + [ + 0.002217974961043104, + -0.9945235081694473, + 0.10448957979342892, + -0.07039987186218338 + ], + [ + 0.00013807701246876245, + -0.10448953123633241, + -0.9945259769341118, + 0.008000000000000007 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + "right": { + "parent_body": "astribot_gripper_right_base", + "optical_transform_opengl": [ + [ + 0.9999975296180531, + 0.0022207723441989183, + -9.44880194601289e-05, + 0.00015403657197402156 + ], + [ + 0.002218488794023518, + -0.9945235070284697, + 0.10448957974489155, + -0.07039980418322263 + ], + [ + 0.00013807701246876245, + -0.10448953123633241, + -0.9945259769341118, + 0.008000000000000007 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + }, + "head_home_control_and_finger_physics_unchanged": true, + "image_postprocessing": false, + "real_world_calibrated": false, + "generator": "tools/cameras/prepare_source_mounts.py", + "intrinsics": "Verified YAM 87-degree horizontal FOV, 640x480", + "selection_reason": "Explicit user choice: Verified YAM mount overrides the available original camera reference.", + "physical_installation": "Runtime optical sensor attached to the gripper. Source MJCF camera carrier has no geometry; original source marker frames retained for reference.", + "optical_pitch_adaptation": { + "reference_local_optical_x_rotation_deg": 31.0, + "forward_tilt_deg": 6.0, + "lens_gripper_base_z_m": 0.008, + "reason": "Upstream inward pitch faced the chassis; the short fingertip offset also excluded S1 fingers when only pitch was reversed. Adapt axial placement to the longer S1 hand.", + "reference_lateral_offset_and_fov_retained": true, + "control_frames_unchanged": true, + "fixed_in_gripper_frame": true, + "task_object_tracking": false + } + } +} diff --git a/assets/robots/astribot_s1/provenance.json b/assets/robots/astribot_s1/provenance.json new file mode 100644 index 0000000000000000000000000000000000000000..a221cae75c992a378304107e3d4ed4c97e7a21d1 --- /dev/null +++ b/assets/robots/astribot_s1/provenance.json @@ -0,0 +1,2165 @@ +{ + "repository": "https://github.com/Astribot-Dev/astribot_descriptions", + "revision": "8c651a1abbe2821824a692aa3a3aa4cbf88e4122", + "entry": "urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf", + "variant": "S1 wheel URDF plus native ManiSkill grippers; official MJCF camera mounts", + "source_package_files": [ + { + "path": "source/astribot_descriptions/.gitattributes", + "sha256": "ee97835909166abced79d05afd74a2b4693d9c4312ee33811a3d193b5ef86b03" + }, + { + "path": "source/astribot_descriptions/LICENSE", + "sha256": "31f6a32ae3f456827b3c94e31aa24cda489a07fd2b7f7ccd82e84b075ca13e36" + }, + { + "path": "source/astribot_descriptions/README.md", + "sha256": "f33485708a8d15f3b2f0b339d3e4d2a17626cbe561dd9179135f34b696ce45a3" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/actuators/actuator_s1_actuator_chassis_fixed_for_gripper.xml", + "sha256": "a9f810b66f4983c0c329266795cebdd175f6eeadc3a3bd9dc8d6e74a52d66cc2" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/actuators/astribot_s1_actuator_chassis_fixed_for_hand.xml", + "sha256": "ab96e28ea29c7efffc38a1d11b50c5fbb47d7370c0317b388b5aff98925c9316" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/actuators/astribot_s1_actuator_for_gripper.xml", + "sha256": "8f4c770175ea1936ef2c57fa08603c9882ecea52cd306dd393829a86d2dfd3bc" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/actuators/astribot_s1_actuator_for_hand.xml", + "sha256": "19fe2b1b2b6f23bda4b37c3a137ec89cf133d5141181b461ce78b3893a020a60" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/assets/astribot_s1_asset_for_gripper.xml", + "sha256": "ec55926a0f465bcb34d3fc3098ac3d1dc68152644e41c427a22ac8c5412b7b1f" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/assets/astribot_s1_asset_for_hand.xml", + "sha256": "e4f5f27d110efdc862e83a55df64f3c921244b5a4fdf7f2a99fc4e6226128044" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_chassis/astribot_chassis_actuator.xml", + "sha256": "0776628c63e1575625f7352988f3e49535677f0326df35ddc8708b3cffcef3d3" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_chassis/astribot_chassis_asset.xml", + "sha256": "7cedbe083f9fe2f2532fa440c53fa614d61f35294b80ddfb2929cbdc2dcba9e1" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_chassis/astribot_chassis_model.xml", + "sha256": "0c67b73e8f4685f49b0d7bcb3fc7f0ecca399a984538a86347117a693b1d3494" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_actuator.xml", + "sha256": "02f29f713f4bdd76721c420ccd26267266476a13bde30bf207ca77496c18ddcd" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml", + "sha256": "a5ab859c0863837182440169baa68df19a6b9c495a945d0cb9f1ee15f5ef6fab" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_model.xml", + "sha256": "9a411382c625b12287a3e13b727de8550810ac4e977d2ccde8b7bec31036ea96" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_actuator.xml", + "sha256": "ee7b6be3f9fec285d226f958bc1785402aad94ae361f9a109619776b2e41ab16" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml", + "sha256": "8bee63e0bf1ca5dcbc1364b1f1b6204cfbcfe50e46e692789e11f2ff1d87b1ac" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_model.xml", + "sha256": "b7436d28190506435f145b5f2019b4a3dc8ca0e5356b133ab3556fbaa41cae7d" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_hand/hand_left/brainco_left_actuator.xml", + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_hand/hand_left/brainco_left_asset.xml", + "sha256": "cce171d487d3ea3c1d0d1062964c74ea121c63b348830c6616968d6b6bb581e6" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_hand/hand_left/brainco_left_contact.xml", + "sha256": "ccad86c06ea72e2802cd166d02ae41f01b03fbe9a92be8b625cd5a873ec2ca29" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_hand/hand_left/brainco_left_model.xml", + "sha256": "5441d391006a70fce3a2695d490725d023f50fed7715d841b9332965b92410e9" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_hand/hand_right/brainco_right_contact.xml", + "sha256": "7fff8c7b8293282ef75afe64cabd0e971e30ae1496ef9ad00fd79e62b034b269" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_hand/hand_right/brainco_right_model.xml", + "sha256": "f7cb8d6ec6adb19725668b3de064a341bc301a3cff0b03b20d01881cc3cb28e8" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_s1_chassis_fixed_with_gripper.xml", + "sha256": "140685e4834be0e39e317ef1eac6b9346febde475c2365483aa041823eec5e05" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_s1_chassis_fixed_with_hand.xml", + "sha256": "81d4e2dc05c2a82b99247bae66a284fc38ff3549fbe6f2aa9e92200fcc9f4452" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_s1_for_aloha_with_gripper.xml", + "sha256": "6899ac1fc0c792e10fc1a5d8bb56627f23d51e3cdfe088e09180f31cd4c13319" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_s1_with_gripper.xml", + "sha256": "4f7676c8f57ba65cbd010ed00f9b3f8e643e5e430108e5e8d169f92f1889974e" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_s1_with_hand.xml", + "sha256": "a14a4881cc7bb9038015390376abb25e43c762464d45a4031cafb383db4be51a" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/model_with_effector/astribot_s1_model_with_gripper.xml", + "sha256": "53fd2c3d4f892edd219c2ea3a0ff7639b697f78286a75f4df85cf4e9bf897452" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/model_with_effector/astribot_s1_model_with_hand.xml", + "sha256": "4a5fcb9e06f3d05f6b637169a77069264f0d025ae9447d51934a9cda399493c8" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/simpleTable/simpleTable_asset.xml", + "sha256": "248830d842e952dc9200d1091ad6ec58f1188238a642d61d1b135ec7637dff43" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/simpleTable/simpleTable_body.xml", + "sha256": "9f75138f6df46687a847fbc5ce795a01d3ffce4c9b894ebbcb4c6dfa72241e7b" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_arm_left.urdf", + "sha256": "5dd439dca310ae0a3c1ee95d9fb34630ec9de361dbfa5e6e03b7ff002b12dec4" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_arm_right.urdf", + "sha256": "d83b7a11b4d5868256e9b91eb5f1852b46e330fac006ac37ef723db5087306aa" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_head.sdf", + "sha256": "327881d7e51111043ef2b51f2d16b7a74d116bcac91fdb86e38e350891b5cf41" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_head.urdf", + "sha256": "1534a8c77e9d2b5e66875e77dd6d45947181dd292fedb20723e909bc32b818c9" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_torso.sdf", + "sha256": "adc697441177cffde34ff4c78c90ba693cd4f8a975c97eccf91c5014052f615d" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_torso.urdf", + "sha256": "6409f384e8eee070a4d84a8b877499edbd45fe3ab50d6b1e820c44ef003604db" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body.sdf", + "sha256": "4dc41f3232ad5b0e460b7c52bd02ce68f82b97ebc7968051852c2e1f4ae652c1" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body.urdf", + "sha256": "b452e32f6c27b1c528c96f3fd1e8727be0d4599f1cdb38df00339a1267e350c6" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_fixed_torso.sdf", + "sha256": "6216d7409c471baf4539d0c41354e34c40d835c42710fc7f3c204549d2f94d67" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_maniskill.urdf", + "sha256": "a5c9d01baa35e648aa76371f3010a5920baa152833a0d6664369f8b09a673a4b" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_gripper.sdf", + "sha256": "0156247f60a83dd2307bdd7989d91d1c51c60a542fcb0ac64da96a239c59c1c7" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_gripper_fixed_torso.sdf", + "sha256": "65b835570f3e06d0ed10aef835d6d59c620e895e58f0e766cc230046bcc376de" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_head.sdf", + "sha256": "2c51e05e7b59b9b20bc3158bbab44083e670281c2f039753756f6fb23b58b9b3" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_head.urdf", + "sha256": "166cbda0d4ba01024e7bf1bc5958b1c29701adefcfc04ce170719c8923387fb6" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf", + "sha256": "d2eb0b78c1632d732b527c870c4fa46ca6074a6863b51f85f754dba9f77b8db6" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/dae/astribot_gripper_L11_Link.dae", + "sha256": "2b08623bfc40d453daf71cd4e81a78a095fca82a0ae7b01d8cecb5b1aa6b5f4d" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/dae/astribot_gripper_L1_Link.dae", + "sha256": "4ad7b5fbd379f741fd1fc81d12563a924993135ab192452126d902508ed7a67f" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/dae/astribot_gripper_L2_Link.dae", + "sha256": "00ba9b9fb7b0c4e01de840da174cefc5efc60f19cad0c177ee45cb868589baf7" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/dae/astribot_gripper_R11_Link.dae", + "sha256": "b7ace554a1c4fcf94ec5c4da7a35d477f656eef65ecaa645d3998fd0a7f8fc51" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/dae/astribot_gripper_R1_Link.dae", + "sha256": "39b9583bef0c77a1851758ba872a98f5cfd714665bde952333d270df6c5386cf" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/dae/astribot_gripper_R2_Link.dae", + "sha256": "0278063a632d4456ea034d5b79b08a6e217502f5f36f36c7b24b09695fb459c8" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/dae/astribot_head_link_2.dae", + "sha256": "004fd2aae2917f7f03dbe80c0d73d03d0d89003efeec8ba3e5e30016d23b2a25" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/dae/astribot_torso_base.dae", + "sha256": "be088dac8eec8a61faa8ab2aaac7ca763c3bc4512d3bb7bcdf1da1253db8e31e" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/dae/astribot_torso_link_1.dae", + "sha256": "3a85b494275fa88b3ed59694c779ed5c8c529a0688c2fcd4ba59b1ffb15055cf" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/dae/astribot_torso_link_2.dae", + "sha256": "a4e49c89b01d594cde5494642c9285ec2f04799cdfb2cf907286658a9e808e55" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/dae/astribot_torso_link_4.dae", + "sha256": "08f666010bd8e32f8d82630bb0ad352f4315674f532565bca8120fbac7bfbfe4" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/dae/logo_texture.png", + "sha256": "37dfe2df003fa6efdc017e316be13e233461724eeb524db7f7aede7115595c95" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/obj/astribot_head_link_2.obj", + "sha256": "5a6dc2fa33de59fd0502c6482eaabc48d846c1ecc863d74f1ec33f83fcd96360" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/obj/astribot_torso_base_link.obj", + "sha256": "dd7b42ad341963e0aaa7e898411078173ba2613a5eff60140232c7d04d0b36da" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/obj/astribot_torso_link_1.obj", + "sha256": "6f423d10242f367ce98a5ddb706be69b23cc074d69dfdce104fd6b673f1aee83" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/obj/astribot_torso_link_2.obj", + "sha256": "d3f639a37cc63757da571bbeeedd130c98afd798af6ba33f1a7960884549b1e3" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/obj/astribot_torso_link_4.obj", + "sha256": "955db3acb335e179d35a0ad76f537109f6d2ab0b74fd6d9d5d0db7ed7ef14a32" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_arm/astribot_arm_left_base_link.STL", + "sha256": "f5ce4a1ca6343fa73aac37e9ab1581224eae72b13e906592e253f5b9ff71b7e7" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_arm/astribot_arm_left_link_2.STL", + "sha256": "29a31a52440708e5257005fcaa766d782b6e9895a7d641cf96818db5939b72b5" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_arm/astribot_arm_link_1.STL", + "sha256": "b6c9d2fb9539f3865c15f86dae8bfd88e23daab3a8136775a7f5e840519a9ccf" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_arm/astribot_arm_link_3.STL", + "sha256": "a8d48fa6ed9eae1d1b85be42937c9f162fb9039a630943f8fae9b511c1fb711a" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_arm/astribot_arm_link_4.STL", + "sha256": "cf0ae423d242e076a628c4181afcd0f42c677d94f5b31582e79997b5620ac043" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_arm/astribot_arm_link_5.STL", + "sha256": "a8301d519a7cac044de0e9b1dda82147382aed2d0b64b5c2d7035461464a21ae" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_arm/astribot_arm_link_6.STL", + "sha256": "c2a3a57e115c59006eb37ac8dbc28736e2366a048ea2e1545731910ad4c897f7" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_arm/astribot_arm_link_7.STL", + "sha256": "650d570d2e0d2978fc8b870adf2495e8cd24944b6e3a2da3c0fad0a48db2fd8f" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_arm/astribot_arm_right_base_link.STL", + "sha256": "a2d63475f85bf98fc0e7569ee5aeb554ff9dc0d6abe10e85b5e58d17c822946e" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_arm/astribot_arm_right_link_2.STL", + "sha256": "9074ba1114c0d0fb9f950c678689f5e2536beadf84c8b24a872165c84066583d" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_gripper/astribot_gripper_L11_Link.STL", + "sha256": "8c2ac3e5c2039b5e3e9127f1e612520b4e76863619e6d4853d5f640e988df401" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_gripper/astribot_gripper_L1_Link.STL", + "sha256": "93024aba1a6171b305fefe00618b446457e19f32159460e1e4f463bf5163c4cd" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_gripper/astribot_gripper_L2_Link.STL", + "sha256": "4c461d9621422ea16ddfc133ec57b196ad073576425c27e66a096ff879ac71e6" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_gripper/astribot_gripper_R11_Link.STL", + "sha256": "10ce463e0fb7bfb632b310f9f47ce746be98383ed2538f118c4fb4ce69971c55" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_gripper/astribot_gripper_R1_Link.STL", + "sha256": "88e771f4b181eeebdc83e2e5239dbedcaa6b496b2cc5e5896e1ebc4b9586de2b" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_gripper/astribot_gripper_R2_Link.STL", + "sha256": "df220a8f4c534498c769ff83ebfbc2a7920db8223e8f93629abe71d71083b9e9" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_gripper/astribot_gripper_base_link.STL", + "sha256": "887e309b8db7285917c26d272a84a3c56b30638e1f4e71e2b23930a9d3244db1" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_base_link.STL", + "sha256": "d8851e50188ac14edba1552b37d4ccb8f61c0d7ad7338a8db9623512476e968b" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_index_distal_Link.STL", + "sha256": "188a5ef9e447ee78932d072d3ced223a66990e8216b413f1a85f67bb3bd2ebd6" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_index_proximal_Link.STL", + "sha256": "1fed32c1a8451282b314579eed3903a288a62524dc7d8b08464fb559261bb580" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_index_tip.STL", + "sha256": "9f5a11d72375073e8373a02ce604ca99abcb583074ba2f520510b48abc4c5b86" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_middle_distal_Link.STL", + "sha256": "cc4dec97e13c6be231b07f5d092e0d292a9a77c6a707062caf17d3602c22ad73" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_middle_proximal_Link.STL", + "sha256": "50122ebf6e75698ba2c469efd58e07ad3f82b1a002728cd15802f1c435d54c0c" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_middle_tip.STL", + "sha256": "ef4ac885d12e603918722c22000a59827f168f276d9c41651ef0d94175113486" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_pinky_distal_Link.STL", + "sha256": "a2f6a2150559d01e6f07a55cda141d3363de7e6e4259457740dee8afdb17b20f" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_pinky_proximal_Link.STL", + "sha256": "9f1408568638fbbec4cf32507d4b233fbd8cdb9c862e07cc7da6cd826497caa6" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_pinky_tip.STL", + "sha256": "56eae1cc71cf6acab0a20c1a8e2e470c9ec96f520386c1ea22f10f51e2dbf758" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_ring_distal_Link.STL", + "sha256": "100a748e3038ed3ce5969f0696133dd3bf9bfa6f1546287272cf44d76a3cacce" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_ring_proximal_Link.STL", + "sha256": "77220c07d5bbc119cb828af89f35cb4cef755bbc98a1cae2dda846268ff59501" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_ring_tip.STL", + "sha256": "870a5b7890a41c8fb8e91cd0c4f74f01c64778bf33f29c135b0b0431a489cde1" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_thumb_distal_Link.STL", + "sha256": "db9d74a4c4025b3d14fb2f67d3326c4be20002b1c51ef21971cc848d70be630e" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_thumb_metacarpal_Link.STL", + "sha256": "415a75193e7773572b0df8a80fa4e1d187a67901a5ff381a89ee5b7df64735ea" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_thumb_proximal_Link.STL", + "sha256": "191650b13c24d76d7cf58e4ba51e3a79ac07906db8639c557da5a98b87b5f316" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_thumb_tip.STL", + "sha256": "5177296e2426d118cc15ca74db26ebbdedf129f7a2b7c1194b2752f19e1fa3cd" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_base_link.STL", + "sha256": "c506bceeb28732ea1220d4a62000064a0621994c4efe711c954cc6605abd4a34" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_index_distal_link.STL", + "sha256": "a9f2ff38d27d39713915d41996a335a4a7f272b51f2b663fd253df4890d2ea7d" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_index_proximal_link.STL", + "sha256": "94fdff414f1c29940495d1f0264a50621340cfc30f9b5365b3490d39ae367f2f" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_index_tip.STL", + "sha256": "4af36131feedb7f83a695ff8e7d09a7e8893df96f971b2d363c0d359e3a82bbf" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_middle_distal_link.STL", + "sha256": "6ca6556cbe479398a4adece02ea2220f7088a237937f9129e6fa8f37a3f8d779" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_middle_proximal_link.STL", + "sha256": "56d9f019bad093daf93a736596ab4e7d9b17fb3c79e2be4181d909958cf76a37" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_middle_tip.STL", + "sha256": "844204b7bcf3de3ad500232e2e30ac15a8ec41728be281d0670c7ad1a2b09e34" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_pinky_distal_link.STL", + "sha256": "0beaa421340096156daaa286364058f200b54bd81b079dd335169dd324ab3344" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_pinky_proximal_link.STL", + "sha256": "1a4ba525880efd4da2bcdfd5d2d69a684a02f8c7c01f8e185adf23f47469d0f4" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_pinky_tip.STL", + "sha256": "f632c67971d2d6dc8a5edcfcac4db8b3078e346540270bd89a9e9c783d304415" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_ring_distal_link.STL", + "sha256": "0075e39ae91e99ca042036d183fc1c0216e703555be258f39ef1bdf1f055d969" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_ring_proximal_link.STL", + "sha256": "7aa7601fd8360252144de4475e30575277f6ca20dc019e90c7df8ff9f2fc8074" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_ring_tip.STL", + "sha256": "c3be3c69a1b7cba72d4b09c8ca4e04f3ad15ef2e47f8212bb547be7487f88022" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_thumb_distal_link.STL", + "sha256": "4aeb45f261a9b9b0010856d45188c6fa5c1ca23485568f2d30728bc23bcf4e44" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_thumb_metacarpal_link.STL", + "sha256": "bf007bb8ddfd1eda5eba12dc802d9d6ac5b4b183c93c4e1cc9b025a816cfb68b" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_thumb_proximal_link.STL", + "sha256": "b1d8154a4f00bb6237b5553a64dda8ef0d9026a87d3d862a643f18284d17f472" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_thumb_tip.STL", + "sha256": "b7c57cc3473e6709ffb95133274c7986adf23a812ff7afbf5d74dc8ccdc4dd45" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_head/astribot_head_base_link.STL", + "sha256": "82a65945d782623b806f4c59f53bfaef39d14bdd5a84f2e21a25867122493242" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_head/astribot_head_link_1.STL", + "sha256": "9e9c1792b072579214109d18438caf8594820452319c0bd8dca34e1b23276798" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_head/astribot_head_link_2.STL", + "sha256": "94170698aea56450148d63cfff41daf899de7eab03d9fe716ff22959cca73306" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_torso/astribot_torso_base_link.STL", + "sha256": "88d76fa4c7834bb756298db81907c204cfcb7a918eb4e1380fbc07bc894a2a2c" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_torso/astribot_torso_link_1.STL", + "sha256": "a35f95371318c34c2b61b5003ded18d9bd5af7910a42a052974e1ac02f639783" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_torso/astribot_torso_link_2.STL", + "sha256": "30237e4da5116ada620cdeccea5766fc1a3cf152f6f7892ded49f52ae71878a6" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_torso/astribot_torso_link_3.STL", + "sha256": "eab30e56b62eb82c185fd601f73d28b3c948975ea427b250a5ce0ff58b2aeaab" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_torso/astribot_torso_link_4.STL", + "sha256": "f0a1e9860d36598beec63562a27f88733216cc7d8db9796274e381b5d90c362c" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_torso/wheel_LF_Link.STL", + "sha256": "4bf080c0908855a21de278d5c3d356f9a3e04bc7e967671bf21fdd91b220cc6a" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_torso/wheel_LR_Link.STL", + "sha256": "4bf080c0908855a21de278d5c3d356f9a3e04bc7e967671bf21fdd91b220cc6a" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_torso/wheel_RF_Link.STL", + "sha256": "4bf080c0908855a21de278d5c3d356f9a3e04bc7e967671bf21fdd91b220cc6a" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_torso/wheel_RR_Link.STL", + "sha256": "4bf080c0908855a21de278d5c3d356f9a3e04bc7e967671bf21fdd91b220cc6a" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/textures/astribot_head_link_2.png", + "sha256": "9a9b16978f8d857c74383f61af9487e30157e9d1d559c99de6530b2004c93502" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/textures/astribot_torso_base_link.png", + "sha256": "5857003d2083766116a8bbe292c37ec0af390ac73ae4355a5df6b179a872d72c" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/textures/astribot_torso_link_1.png", + "sha256": "cd67ebf8939ee167ea9506d14e4feb16264f7dc98c1ca708c23c2975c363a6bd" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/textures/astribot_torso_link_2.png", + "sha256": "5edecacd88d04d38cc28ae2cbbf2dbd172f9996c1575b0762cea33b5795f84f7" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/textures/astribot_torso_link_4.png", + "sha256": "a314b1341074cca6aa64ec00e0b0d23a91431a360535b7f0fdc9729d6bfccd15" + }, + { + "path": "source/astribot_simulation/LICENSE", + "sha256": "f8d4fef4ce819e8898f2d39d68de0a9a0861cc2b9706913f3fc3c45762937db0" + }, + { + "path": "source/astribot_simulation/README.md", + "sha256": "7f2944b2a13a0125ecac1c4eb646403cfbca842196f10be8dc0bb5e53143901c" + }, + { + "path": "source/astribot_simulation/src/astribot_envs/astribot_isaaclab_env.py", + "sha256": "87cdb11d932910bc7ace80b254128a7c3e5b25ad2414940805974bdb8bf7aaa8" + } + ], + "dependencies": [ + { + "repository": "https://github.com/Astribot-Dev/astribot_simulation", + "revision": "1403f9623efaea2709731c74629f395869849e89", + "role": "Independent official gripper sign-map corroboration", + "entry": "src/astribot_envs/astribot_isaaclab_env.py" + } + ], + "joint_mapping": { + "wheel_RF_Joint": { + "source_joint": "wheel_RF_Joint", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf" + }, + "wheel_LF_Joint": { + "source_joint": "wheel_LF_Joint", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf" + }, + "wheel_RR_Joint": { + "source_joint": "wheel_RR_Joint", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf" + }, + "wheel_LR_Joint": { + "source_joint": "wheel_LR_Joint", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf" + }, + "astribot_torso_joint_1": { + "source_joint": "astribot_torso_joint_1", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf" + }, + "astribot_torso_joint_2": { + "source_joint": "astribot_torso_joint_2", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf" + }, + "astribot_torso_joint_3": { + "source_joint": "astribot_torso_joint_3", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf" + }, + "astribot_torso_joint_4": { + "source_joint": "astribot_torso_joint_4", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf" + }, + "astribot_torso_end_effector_fixed_joint": { + "source_joint": "astribot_torso_end_effector_fixed_joint", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf" + }, + "astribot_head_joint_1": { + "source_joint": "astribot_head_joint_1", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf" + }, + "astribot_head_joint_2": { + "source_joint": "astribot_head_joint_2", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf" + }, + "astribot_arm_left_joint_1": { + "source_joint": "astribot_arm_left_joint_1", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf" + }, + "astribot_arm_left_joint_2": { + "source_joint": "astribot_arm_left_joint_2", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf" + }, + "astribot_arm_left_joint_3": { + "source_joint": "astribot_arm_left_joint_3", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf" + }, + "astribot_arm_left_joint_4": { + "source_joint": "astribot_arm_left_joint_4", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf" + }, + "astribot_arm_left_joint_5": { + "source_joint": "astribot_arm_left_joint_5", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf" + }, + "astribot_arm_left_joint_6": { + "source_joint": "astribot_arm_left_joint_6", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf" + }, + "astribot_arm_left_joint_7": { + "source_joint": "astribot_arm_left_joint_7", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf" + }, + "astribot_arm_left_tool_joint": { + "source_joint": "astribot_arm_left_tool_joint", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf" + }, + "astribot_arm_right_joint_1": { + "source_joint": "astribot_arm_right_joint_1", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf" + }, + "astribot_arm_right_joint_2": { + "source_joint": "astribot_arm_right_joint_2", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf" + }, + "astribot_arm_right_joint_3": { + "source_joint": "astribot_arm_right_joint_3", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf" + }, + "astribot_arm_right_joint_4": { + "source_joint": "astribot_arm_right_joint_4", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf" + }, + "astribot_arm_right_joint_5": { + "source_joint": "astribot_arm_right_joint_5", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf" + }, + "astribot_arm_right_joint_6": { + "source_joint": "astribot_arm_right_joint_6", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf" + }, + "astribot_arm_right_joint_7": { + "source_joint": "astribot_arm_right_joint_7", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf" + }, + "astribot_arm_right_tool_joint": { + "source_joint": "astribot_arm_right_tool_joint", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf" + }, + "astribot_head_fixed_joint": { + "source_joint": "astribot_head_fixed_joint", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf" + }, + "astribot_arm_left_base_fixed_joint": { + "source_joint": "astribot_arm_left_base_fixed_joint", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf" + }, + "astribot_arm_right_base_fixed_joint": { + "source_joint": "astribot_arm_right_base_fixed_joint", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf" + }, + "astribot_gripper_left_arm_joint": { + "source_joint": "astribot_gripper_left_arm_joint", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_maniskill.urdf" + }, + "astribot_gripper_left_joint_L1": { + "source_joint": "astribot_gripper_left_joint_L1", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_maniskill.urdf" + }, + "astribot_gripper_left_joint_L2": { + "source_joint": "astribot_gripper_left_joint_L2", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_maniskill.urdf" + }, + "astribot_gripper_left_joint_L11": { + "source_joint": "astribot_gripper_left_joint_L11", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_maniskill.urdf" + }, + "astribot_gripper_left_joint_R1": { + "source_joint": "astribot_gripper_left_joint_R1", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_maniskill.urdf" + }, + "astribot_gripper_left_joint_R2": { + "source_joint": "astribot_gripper_left_joint_R2", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_maniskill.urdf" + }, + "astribot_gripper_left_joint_R11": { + "source_joint": "astribot_gripper_left_joint_R11", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_maniskill.urdf" + }, + "astribot_gripper_right_arm_joint": { + "source_joint": "astribot_gripper_right_arm_joint", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_maniskill.urdf" + }, + "astribot_gripper_right_joint_L1": { + "source_joint": "astribot_gripper_right_joint_L1", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_maniskill.urdf" + }, + "astribot_gripper_right_joint_L2": { + "source_joint": "astribot_gripper_right_joint_L2", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_maniskill.urdf" + }, + "astribot_gripper_right_joint_L11": { + "source_joint": "astribot_gripper_right_joint_L11", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_maniskill.urdf" + }, + "astribot_gripper_right_joint_R1": { + "source_joint": "astribot_gripper_right_joint_R1", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_maniskill.urdf" + }, + "astribot_gripper_right_joint_R2": { + "source_joint": "astribot_gripper_right_joint_R2", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_maniskill.urdf" + }, + "astribot_gripper_right_joint_R11": { + "source_joint": "astribot_gripper_right_joint_R11", + "source_file": "astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_maniskill.urdf" + } + }, + "source_joint_definitions_unchanged_except_added_gripper_mimic": true, + "all_source_links_preserved": true, + "all_source_visual_geometry_preserved": true, + "source_collision_changes": "Retain 16 native proxies; replace erroneous torso_link_3 cylinder with exact same-link native mesh; add exact-mesh coverage to previously uncovered links", + "internal_collision_filters": [ + { + "bodies": [ + "astribot_gripper_left_base", + "astribot_gripper_left_Link_L1" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_base", + "astribot_gripper_left_Link_L2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_Link_L1", + "astribot_gripper_left_Link_L2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_Link_L1", + "astribot_gripper_left_Link_L11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_Link_L2", + "astribot_gripper_left_Link_L11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_base", + "astribot_gripper_left_Link_R1" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_base", + "astribot_gripper_left_Link_R2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_Link_R1", + "astribot_gripper_left_Link_R2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_Link_R1", + "astribot_gripper_left_Link_R11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_left_Link_R2", + "astribot_gripper_left_Link_R11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_base", + "astribot_gripper_right_Link_L1" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_base", + "astribot_gripper_right_Link_L2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_Link_L1", + "astribot_gripper_right_Link_L2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_Link_L1", + "astribot_gripper_right_Link_L11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_Link_L2", + "astribot_gripper_right_Link_L11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_base", + "astribot_gripper_right_Link_R1" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_base", + "astribot_gripper_right_Link_R2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_Link_R1", + "astribot_gripper_right_Link_R2" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_Link_R1", + "astribot_gripper_right_Link_R11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_gripper_right_Link_R2", + "astribot_gripper_right_Link_R11" + ], + "reason": "Exact official MJCF internal linkage exclusion", + "source_file": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml" + }, + { + "bodies": [ + "astribot_torso_link_4", + "astribot_arm_left_link_1" + ], + "reason": "Immediate actuated neighbors after collapsing native fixed bridges", + "source_joints": [ + "astribot_torso_end_effector_fixed_joint", + "astribot_arm_left_base_fixed_joint", + "astribot_arm_left_joint_1" + ], + "mechanical_kind": "fixed_bridge_neighbor" + }, + { + "bodies": [ + "astribot_torso_link_4", + "astribot_arm_right_link_1" + ], + "reason": "Immediate actuated neighbors after collapsing native fixed bridges", + "source_joints": [ + "astribot_torso_end_effector_fixed_joint", + "astribot_arm_right_base_fixed_joint", + "astribot_arm_right_joint_1" + ], + "mechanical_kind": "fixed_bridge_neighbor" + }, + { + "bodies": [ + "astribot_torso_link_4", + "astribot_head_link_1" + ], + "reason": "Immediate actuated neighbors after collapsing native fixed bridges", + "source_joints": [ + "astribot_torso_end_effector_fixed_joint", + "astribot_head_fixed_joint", + "astribot_head_joint_1" + ], + "mechanical_kind": "fixed_bridge_neighbor" + }, + { + "bodies": [ + "astribot_torso_link_4", + "astribot_arm_left_link_2" + ], + "reason": "Native coincident-axis two-DoF shoulder internal housing; original URDF leaves both shells without collision", + "source_joints": [ + "astribot_torso_end_effector_fixed_joint", + "astribot_arm_left_base_fixed_joint", + "astribot_arm_left_joint_1", + "astribot_arm_left_joint_2" + ], + "mechanical_kind": "coincident_shoulder_housing" + }, + { + "bodies": [ + "astribot_torso_link_4", + "astribot_arm_right_link_2" + ], + "reason": "Native coincident-axis two-DoF shoulder internal housing; original URDF leaves both shells without collision", + "source_joints": [ + "astribot_torso_end_effector_fixed_joint", + "astribot_arm_right_base_fixed_joint", + "astribot_arm_right_joint_1", + "astribot_arm_right_joint_2" + ], + "mechanical_kind": "coincident_shoulder_housing" + } + ], + "collision_filter_evidence": "collision_filter_evidence.json", + "licenses": { + "repository": "https://github.com/Astribot-Dev/astribot_descriptions", + "revision": "8c651a1abbe2821824a692aa3a3aa4cbf88e4122", + "license": "Apache-2.0", + "path": "source/astribot_descriptions/LICENSE" + }, + "derivations": [ + "Complete native mobile body from official wheel URDF", + "Append official ManiSkill grippers preserving native 45 mm mounts", + "Convert official MJCF gripper equality to URDF mimic signs", + "Resolve broken source wheel mesh URI using native meshes directory", + "Native MJCF colors for STL, Collada embedded textures retained", + "Replace one torso proxy with exact native mesh; add exact mesh coverage to previously uncovered shells", + "Official MJCF camera mounts and FOV; no measured hardware calibration", + "Source-FK solved ready pose; body held, no locomotion", + "Preserve added native collision shells and derive only five named internal mechanical pairs from source fixed bridges and coincident shoulder joint axes; no external contacts disabled" + ], + "assembly_derivation": "assembly_derivation.json", + "generated_files": [ + { + "path": "assembly_derivation.json", + "bytes": 7860, + "sha256": "375076bbedcc531444e86ba48207a5a80ab6115d45b4b899f7e33ceaa82e0407" + }, + { + "path": "collision_filter_evidence.json", + "bytes": 9195, + "sha256": "ee366a603c8e74a3fb9965ecec7bccffe1f713106cd0dad55a3a76fd2e96a2bb" + }, + { + "path": "collision_refinement_evidence.json", + "bytes": 4098, + "sha256": "ab72029b57af97b91c92fd1161be0b0b83c7f3ee25ca22f18e541edc8aa05870" + }, + { + "path": "conversion.json", + "bytes": 25396, + "sha256": "f7adc6834688592ad1464ae7aa78d36f67d153b88faa3270ab1a4eb6da3fe063" + }, + { + "path": "evidence/default_import_failed_initialization.json", + "bytes": 36093, + "sha256": "d6f2add7179e3938eacf107134ba570677661e462dd4523300e63ccedea7ed90" + }, + { + "path": "evidence/elevated_ready_solution.json", + "bytes": 1166, + "sha256": "406acae0d7fed52201477b743b2e5a357638311fce0e42c931087d10838bb95c" + }, + { + "path": "evidence/imported_materials.json", + "bytes": 25573, + "sha256": "c918a585d8a865447b7c2f49511f3ae621a8056a2b959c2fdf02f8c70ef54279" + }, + { + "path": "evidence/lower_ready_pilot.json", + "bytes": 45690, + "sha256": "8e47b77744607a8540a5438374a4122dc918edf2e89b0106636e6c502bbeb32a" + }, + { + "path": "evidence/lower_ready_profile.json", + "bytes": 34288, + "sha256": "bbe9c66fbf530b5785bbf2f064ba68a146b16401a36c51539fbe9bb896213125" + }, + { + "path": "evidence/omnipicker_pose_v21/baseline_profile.json", + "bytes": 34343, + "sha256": "8865d4a80e809952b9a099fecc8facc6da3618dc71acb348141275af5a825582" + }, + { + "path": "evidence/omnipicker_pose_v21/baseline_provenance.json", + "bytes": 83217, + "sha256": "07e28cee53ddafe735f8bc83df4295d29e2e8e85d237a85611e68815b2b12a0b" + }, + { + "path": "evidence/omnipicker_pose_v21/reference_geometry.json", + "bytes": 2910, + "sha256": "e76af8c9d1fbd051359441014c1c805e994633dedc80db4337945d4714d8b8e3" + }, + { + "path": "evidence/omnipicker_pose_v21/refinement.json", + "bytes": 2833, + "sha256": "2a1840d67be492ec10662e94cb3d4125248afed66edd610d3a8464788f4c8db0" + }, + { + "path": "evidence/omnipicker_pose_v21/solver_candidates.json", + "bytes": 3589, + "sha256": "9fc6c917f681f5d295895b2ef3fe445e1a0f45d5d1ed86e19193fc9a3fa89a95" + }, + { + "path": "evidence/tighter_cooking_failed_initialization.json", + "bytes": 38741, + "sha256": "edb08d0ea1af57ec67753924d9d76e947849e099e963faa59354ec827b97f439" + }, + { + "path": "licenses/source_license_metadata.json", + "bytes": 211, + "sha256": "f728c262eeb8c3a69ba585878e211eaec01a4ebbd87df2d2d2c303315b6a1a83" + }, + { + "path": "profile.json", + "bytes": 41469, + "sha256": "7dd09ee344d2348983d7b561550041bad424a88569831db6000d37683168cbd8" + }, + { + "path": "ready_pose_evidence.json", + "bytes": 970, + "sha256": "de8970214898ea649ea5046a8fdc04c0968eb0660a7a0deca0263e933babaec9" + }, + { + "path": "robot.urdf", + "bytes": 51780, + "sha256": "7532829445ab35896d12f259051fe9720f14dd75c18091cfb77d04c73b5c24d5" + }, + { + "path": "robot_import.urdf", + "bytes": 57828, + "sha256": "c9dfe35a2624fccd321ba72c0fa872753dfc288921a9155d6989c3dd470519f9" + }, + { + "path": "source/astribot_descriptions/.gitattributes", + "bytes": 169, + "sha256": "ee97835909166abced79d05afd74a2b4693d9c4312ee33811a3d193b5ef86b03" + }, + { + "path": "source/astribot_descriptions/LICENSE", + "bytes": 10759, + "sha256": "31f6a32ae3f456827b3c94e31aa24cda489a07fd2b7f7ccd82e84b075ca13e36" + }, + { + "path": "source/astribot_descriptions/README.md", + "bytes": 3946, + "sha256": "f33485708a8d15f3b2f0b339d3e4d2a17626cbe561dd9179135f34b696ce45a3" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/actuators/actuator_s1_actuator_chassis_fixed_for_gripper.xml", + "bytes": 4413, + "sha256": "a9f810b66f4983c0c329266795cebdd175f6eeadc3a3bd9dc8d6e74a52d66cc2" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/actuators/astribot_s1_actuator_chassis_fixed_for_hand.xml", + "bytes": 7456, + "sha256": "ab96e28ea29c7efffc38a1d11b50c5fbb47d7370c0317b388b5aff98925c9316" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/actuators/astribot_s1_actuator_for_gripper.xml", + "bytes": 5440, + "sha256": "8f4c770175ea1936ef2c57fa08603c9882ecea52cd306dd393829a86d2dfd3bc" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/actuators/astribot_s1_actuator_for_hand.xml", + "bytes": 8488, + "sha256": "19fe2b1b2b6f23bda4b37c3a137ec89cf133d5141181b461ce78b3893a020a60" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/assets/astribot_s1_asset_for_gripper.xml", + "bytes": 7114, + "sha256": "ec55926a0f465bcb34d3fc3098ac3d1dc68152644e41c427a22ac8c5412b7b1f" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/assets/astribot_s1_asset_for_hand.xml", + "bytes": 10940, + "sha256": "e4f5f27d110efdc862e83a55df64f3c921244b5a4fdf7f2a99fc4e6226128044" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_chassis/astribot_chassis_actuator.xml", + "bytes": 1079, + "sha256": "0776628c63e1575625f7352988f3e49535677f0326df35ddc8708b3cffcef3d3" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_chassis/astribot_chassis_asset.xml", + "bytes": 1023, + "sha256": "7cedbe083f9fe2f2532fa440c53fa614d61f35294b80ddfb2929cbdc2dcba9e1" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_chassis/astribot_chassis_model.xml", + "bytes": 3740, + "sha256": "0c67b73e8f4685f49b0d7bcb3fc7f0ecca399a984538a86347117a693b1d3494" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_actuator.xml", + "bytes": 3269, + "sha256": "02f29f713f4bdd76721c420ccd26267266476a13bde30bf207ca77496c18ddcd" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml", + "bytes": 2121, + "sha256": "a5ab859c0863837182440169baa68df19a6b9c495a945d0cb9f1ee15f5ef6fab" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_model.xml", + "bytes": 4477, + "sha256": "9a411382c625b12287a3e13b727de8550810ac4e977d2ccde8b7bec31036ea96" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_actuator.xml", + "bytes": 2975, + "sha256": "ee7b6be3f9fec285d226f958bc1785402aad94ae361f9a109619776b2e41ab16" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml", + "bytes": 2025, + "sha256": "8bee63e0bf1ca5dcbc1364b1f1b6204cfbcfe50e46e692789e11f2ff1d87b1ac" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_model.xml", + "bytes": 4499, + "sha256": "b7436d28190506435f145b5f2019b4a3dc8ca0e5356b133ab3556fbaa41cae7d" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_hand/hand_left/brainco_left_actuator.xml", + "bytes": 0, + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_hand/hand_left/brainco_left_asset.xml", + "bytes": 1319, + "sha256": "cce171d487d3ea3c1d0d1062964c74ea121c63b348830c6616968d6b6bb581e6" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_hand/hand_left/brainco_left_contact.xml", + "bytes": 2094, + "sha256": "ccad86c06ea72e2802cd166d02ae41f01b03fbe9a92be8b625cd5a873ec2ca29" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_hand/hand_left/brainco_left_model.xml", + "bytes": 12007, + "sha256": "5441d391006a70fce3a2695d490725d023f50fed7715d841b9332965b92410e9" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_hand/hand_right/brainco_right_contact.xml", + "bytes": 2056, + "sha256": "7fff8c7b8293282ef75afe64cabd0e971e30ae1496ef9ad00fd79e62b034b269" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_hand/hand_right/brainco_right_model.xml", + "bytes": 12065, + "sha256": "f7cb8d6ec6adb19725668b3de064a341bc301a3cff0b03b20d01881cc3cb28e8" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_s1_chassis_fixed_with_gripper.xml", + "bytes": 1048, + "sha256": "140685e4834be0e39e317ef1eac6b9346febde475c2365483aa041823eec5e05" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_s1_chassis_fixed_with_hand.xml", + "bytes": 1039, + "sha256": "81d4e2dc05c2a82b99247bae66a284fc38ff3549fbe6f2aa9e92200fcc9f4452" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_s1_for_aloha_with_gripper.xml", + "bytes": 1780, + "sha256": "6899ac1fc0c792e10fc1a5d8bb56627f23d51e3cdfe088e09180f31cd4c13319" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_s1_with_gripper.xml", + "bytes": 2095, + "sha256": "4f7676c8f57ba65cbd010ed00f9b3f8e643e5e430108e5e8d169f92f1889974e" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_s1_with_hand.xml", + "bytes": 1656, + "sha256": "a14a4881cc7bb9038015390376abb25e43c762464d45a4031cafb383db4be51a" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/model_with_effector/astribot_s1_model_with_gripper.xml", + "bytes": 17202, + "sha256": "53fd2c3d4f892edd219c2ea3a0ff7639b697f78286a75f4df85cf4e9bf897452" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/model_with_effector/astribot_s1_model_with_hand.xml", + "bytes": 16348, + "sha256": "4a5fcb9e06f3d05f6b637169a77069264f0d025ae9447d51934a9cda399493c8" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/simpleTable/simpleTable_asset.xml", + "bytes": 1631, + "sha256": "248830d842e952dc9200d1091ad6ec58f1188238a642d61d1b135ec7637dff43" + }, + { + "path": "source/astribot_descriptions/mjcf/astribot_s1_mjcf/simpleTable/simpleTable_body.xml", + "bytes": 2758, + "sha256": "9f75138f6df46687a847fbc5ce795a01d3ffce4c9b894ebbcb4c6dfa72241e7b" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_arm_left.urdf", + "bytes": 9156, + "sha256": "5dd439dca310ae0a3c1ee95d9fb34630ec9de361dbfa5e6e03b7ff002b12dec4" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_arm_right.urdf", + "bytes": 9194, + "sha256": "d83b7a11b4d5868256e9b91eb5f1852b46e330fac006ac37ef723db5087306aa" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_head.sdf", + "bytes": 3259, + "sha256": "327881d7e51111043ef2b51f2d16b7a74d116bcac91fdb86e38e350891b5cf41" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_head.urdf", + "bytes": 2926, + "sha256": "1534a8c77e9d2b5e66875e77dd6d45947181dd292fedb20723e909bc32b818c9" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_torso.sdf", + "bytes": 6147, + "sha256": "adc697441177cffde34ff4c78c90ba693cd4f8a975c97eccf91c5014052f615d" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_torso.urdf", + "bytes": 4668, + "sha256": "6409f384e8eee070a4d84a8b877499edbd45fe3ab50d6b1e820c44ef003604db" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body.sdf", + "bytes": 32994, + "sha256": "4dc41f3232ad5b0e460b7c52bd02ce68f82b97ebc7968051852c2e1f4ae652c1" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body.urdf", + "bytes": 25405, + "sha256": "b452e32f6c27b1c528c96f3fd1e8727be0d4599f1cdb38df00339a1267e350c6" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_fixed_torso.sdf", + "bytes": 32986, + "sha256": "6216d7409c471baf4539d0c41354e34c40d835c42710fc7f3c204549d2f94d67" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_maniskill.urdf", + "bytes": 41025, + "sha256": "a5c9d01baa35e648aa76371f3010a5920baa152833a0d6664369f8b09a673a4b" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_gripper.sdf", + "bytes": 48709, + "sha256": "0156247f60a83dd2307bdd7989d91d1c51c60a542fcb0ac64da96a239c59c1c7" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_gripper_fixed_torso.sdf", + "bytes": 48921, + "sha256": "65b835570f3e06d0ed10aef835d6d59c620e895e58f0e766cc230046bcc376de" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_head.sdf", + "bytes": 29396, + "sha256": "2c51e05e7b59b9b20bc3158bbab44083e670281c2f039753756f6fb23b58b9b3" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_head.urdf", + "bytes": 25294, + "sha256": "166cbda0d4ba01024e7bf1bc5958b1c29701adefcfc04ce170719c8923387fb6" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf", + "bytes": 27509, + "sha256": "d2eb0b78c1632d732b527c870c4fa46ca6074a6863b51f85f754dba9f77b8db6" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/dae/astribot_gripper_L11_Link.dae", + "bytes": 566023, + "sha256": "2b08623bfc40d453daf71cd4e81a78a095fca82a0ae7b01d8cecb5b1aa6b5f4d" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/dae/astribot_gripper_L1_Link.dae", + "bytes": 70831, + "sha256": "4ad7b5fbd379f741fd1fc81d12563a924993135ab192452126d902508ed7a67f" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/dae/astribot_gripper_L2_Link.dae", + "bytes": 95824, + "sha256": "00ba9b9fb7b0c4e01de840da174cefc5efc60f19cad0c177ee45cb868589baf7" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/dae/astribot_gripper_R11_Link.dae", + "bytes": 568313, + "sha256": "b7ace554a1c4fcf94ec5c4da7a35d477f656eef65ecaa645d3998fd0a7f8fc51" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/dae/astribot_gripper_R1_Link.dae", + "bytes": 71253, + "sha256": "39b9583bef0c77a1851758ba872a98f5cfd714665bde952333d270df6c5386cf" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/dae/astribot_gripper_R2_Link.dae", + "bytes": 95908, + "sha256": "0278063a632d4456ea034d5b79b08a6e217502f5f36f36c7b24b09695fb459c8" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/dae/astribot_head_link_2.dae", + "bytes": 25464838, + "sha256": "004fd2aae2917f7f03dbe80c0d73d03d0d89003efeec8ba3e5e30016d23b2a25" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/dae/astribot_torso_base.dae", + "bytes": 26548376, + "sha256": "be088dac8eec8a61faa8ab2aaac7ca763c3bc4512d3bb7bcdf1da1253db8e31e" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/dae/astribot_torso_link_1.dae", + "bytes": 13628516, + "sha256": "3a85b494275fa88b3ed59694c779ed5c8c529a0688c2fcd4ba59b1ffb15055cf" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/dae/astribot_torso_link_2.dae", + "bytes": 22006475, + "sha256": "a4e49c89b01d594cde5494642c9285ec2f04799cdfb2cf907286658a9e808e55" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/dae/astribot_torso_link_4.dae", + "bytes": 18989405, + "sha256": "08f666010bd8e32f8d82630bb0ad352f4315674f532565bca8120fbac7bfbfe4" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/dae/logo_texture.png", + "bytes": 82936, + "sha256": "37dfe2df003fa6efdc017e316be13e233461724eeb524db7f7aede7115595c95" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/obj/astribot_head_link_2.obj", + "bytes": 38496139, + "sha256": "5a6dc2fa33de59fd0502c6482eaabc48d846c1ecc863d74f1ec33f83fcd96360" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/obj/astribot_torso_base_link.obj", + "bytes": 40001354, + "sha256": "dd7b42ad341963e0aaa7e898411078173ba2613a5eff60140232c7d04d0b36da" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/obj/astribot_torso_link_1.obj", + "bytes": 19761471, + "sha256": "6f423d10242f367ce98a5ddb706be69b23cc074d69dfdce104fd6b673f1aee83" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/obj/astribot_torso_link_2.obj", + "bytes": 33347575, + "sha256": "d3f639a37cc63757da571bbeeedd130c98afd798af6ba33f1a7960884549b1e3" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/obj/astribot_torso_link_4.obj", + "bytes": 28906301, + "sha256": "955db3acb335e179d35a0ad76f537109f6d2ab0b74fd6d9d5d0db7ed7ef14a32" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_arm/astribot_arm_left_base_link.STL", + "bytes": 393484, + "sha256": "f5ce4a1ca6343fa73aac37e9ab1581224eae72b13e906592e253f5b9ff71b7e7" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_arm/astribot_arm_left_link_2.STL", + "bytes": 1168184, + "sha256": "29a31a52440708e5257005fcaa766d782b6e9895a7d641cf96818db5939b72b5" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_arm/astribot_arm_link_1.STL", + "bytes": 160984, + "sha256": "b6c9d2fb9539f3865c15f86dae8bfd88e23daab3a8136775a7f5e840519a9ccf" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_arm/astribot_arm_link_3.STL", + "bytes": 1431884, + "sha256": "a8d48fa6ed9eae1d1b85be42937c9f162fb9039a630943f8fae9b511c1fb711a" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_arm/astribot_arm_link_4.STL", + "bytes": 325584, + "sha256": "cf0ae423d242e076a628c4181afcd0f42c677d94f5b31582e79997b5620ac043" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_arm/astribot_arm_link_5.STL", + "bytes": 1988484, + "sha256": "a8301d519a7cac044de0e9b1dda82147382aed2d0b64b5c2d7035461464a21ae" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_arm/astribot_arm_link_6.STL", + "bytes": 626484, + "sha256": "c2a3a57e115c59006eb37ac8dbc28736e2366a048ea2e1545731910ad4c897f7" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_arm/astribot_arm_link_7.STL", + "bytes": 216184, + "sha256": "650d570d2e0d2978fc8b870adf2495e8cd24944b6e3a2da3c0fad0a48db2fd8f" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_arm/astribot_arm_right_base_link.STL", + "bytes": 394684, + "sha256": "a2d63475f85bf98fc0e7569ee5aeb554ff9dc0d6abe10e85b5e58d17c822946e" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_arm/astribot_arm_right_link_2.STL", + "bytes": 1170384, + "sha256": "9074ba1114c0d0fb9f950c678689f5e2536beadf84c8b24a872165c84066583d" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_gripper/astribot_gripper_L11_Link.STL", + "bytes": 455284, + "sha256": "8c2ac3e5c2039b5e3e9127f1e612520b4e76863619e6d4853d5f640e988df401" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_gripper/astribot_gripper_L1_Link.STL", + "bytes": 60584, + "sha256": "93024aba1a6171b305fefe00618b446457e19f32159460e1e4f463bf5163c4cd" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_gripper/astribot_gripper_L2_Link.STL", + "bytes": 82084, + "sha256": "4c461d9621422ea16ddfc133ec57b196ad073576425c27e66a096ff879ac71e6" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_gripper/astribot_gripper_R11_Link.STL", + "bytes": 455284, + "sha256": "10ce463e0fb7bfb632b310f9f47ce746be98383ed2538f118c4fb4ce69971c55" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_gripper/astribot_gripper_R1_Link.STL", + "bytes": 60584, + "sha256": "88e771f4b181eeebdc83e2e5239dbedcaa6b496b2cc5e5896e1ebc4b9586de2b" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_gripper/astribot_gripper_R2_Link.STL", + "bytes": 82084, + "sha256": "df220a8f4c534498c769ff83ebfbc2a7920db8223e8f93629abe71d71083b9e9" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_gripper/astribot_gripper_base_link.STL", + "bytes": 1086384, + "sha256": "887e309b8db7285917c26d272a84a3c56b30638e1f4e71e2b23930a9d3244db1" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_base_link.STL", + "bytes": 2518884, + "sha256": "d8851e50188ac14edba1552b37d4ccb8f61c0d7ad7338a8db9623512476e968b" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_index_distal_Link.STL", + "bytes": 441984, + "sha256": "188a5ef9e447ee78932d072d3ced223a66990e8216b413f1a85f67bb3bd2ebd6" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_index_proximal_Link.STL", + "bytes": 339884, + "sha256": "1fed32c1a8451282b314579eed3903a288a62524dc7d8b08464fb559261bb580" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_index_tip.STL", + "bytes": 117684, + "sha256": "9f5a11d72375073e8373a02ce604ca99abcb583074ba2f520510b48abc4c5b86" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_middle_distal_Link.STL", + "bytes": 435984, + "sha256": "cc4dec97e13c6be231b07f5d092e0d292a9a77c6a707062caf17d3602c22ad73" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_middle_proximal_Link.STL", + "bytes": 334284, + "sha256": "50122ebf6e75698ba2c469efd58e07ad3f82b1a002728cd15802f1c435d54c0c" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_middle_tip.STL", + "bytes": 117684, + "sha256": "ef4ac885d12e603918722c22000a59827f168f276d9c41651ef0d94175113486" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_pinky_distal_Link.STL", + "bytes": 596184, + "sha256": "a2f6a2150559d01e6f07a55cda141d3363de7e6e4259457740dee8afdb17b20f" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_pinky_proximal_Link.STL", + "bytes": 346784, + "sha256": "9f1408568638fbbec4cf32507d4b233fbd8cdb9c862e07cc7da6cd826497caa6" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_pinky_tip.STL", + "bytes": 117684, + "sha256": "56eae1cc71cf6acab0a20c1a8e2e470c9ec96f520386c1ea22f10f51e2dbf758" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_ring_distal_Link.STL", + "bytes": 564884, + "sha256": "100a748e3038ed3ce5969f0696133dd3bf9bfa6f1546287272cf44d76a3cacce" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_ring_proximal_Link.STL", + "bytes": 281184, + "sha256": "77220c07d5bbc119cb828af89f35cb4cef755bbc98a1cae2dda846268ff59501" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_ring_tip.STL", + "bytes": 117684, + "sha256": "870a5b7890a41c8fb8e91cd0c4f74f01c64778bf33f29c135b0b0431a489cde1" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_thumb_distal_Link.STL", + "bytes": 221284, + "sha256": "db9d74a4c4025b3d14fb2f67d3326c4be20002b1c51ef21971cc848d70be630e" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_thumb_metacarpal_Link.STL", + "bytes": 290384, + "sha256": "415a75193e7773572b0df8a80fa4e1d187a67901a5ff381a89ee5b7df64735ea" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_thumb_proximal_Link.STL", + "bytes": 657684, + "sha256": "191650b13c24d76d7cf58e4ba51e3a79ac07906db8639c557da5a98b87b5f316" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_left/left_thumb_tip.STL", + "bytes": 117684, + "sha256": "5177296e2426d118cc15ca74db26ebbdedf129f7a2b7c1194b2752f19e1fa3cd" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_base_link.STL", + "bytes": 2513484, + "sha256": "c506bceeb28732ea1220d4a62000064a0621994c4efe711c954cc6605abd4a34" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_index_distal_link.STL", + "bytes": 444884, + "sha256": "a9f2ff38d27d39713915d41996a335a4a7f272b51f2b663fd253df4890d2ea7d" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_index_proximal_link.STL", + "bytes": 339884, + "sha256": "94fdff414f1c29940495d1f0264a50621340cfc30f9b5365b3490d39ae367f2f" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_index_tip.STL", + "bytes": 117684, + "sha256": "4af36131feedb7f83a695ff8e7d09a7e8893df96f971b2d363c0d359e3a82bbf" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_middle_distal_link.STL", + "bytes": 437084, + "sha256": "6ca6556cbe479398a4adece02ea2220f7088a237937f9129e6fa8f37a3f8d779" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_middle_proximal_link.STL", + "bytes": 333384, + "sha256": "56d9f019bad093daf93a736596ab4e7d9b17fb3c79e2be4181d909958cf76a37" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_middle_tip.STL", + "bytes": 117684, + "sha256": "844204b7bcf3de3ad500232e2e30ac15a8ec41728be281d0670c7ad1a2b09e34" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_pinky_distal_link.STL", + "bytes": 595984, + "sha256": "0beaa421340096156daaa286364058f200b54bd81b079dd335169dd324ab3344" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_pinky_proximal_link.STL", + "bytes": 343284, + "sha256": "1a4ba525880efd4da2bcdfd5d2d69a684a02f8c7c01f8e185adf23f47469d0f4" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_pinky_tip.STL", + "bytes": 117684, + "sha256": "f632c67971d2d6dc8a5edcfcac4db8b3078e346540270bd89a9e9c783d304415" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_ring_distal_link.STL", + "bytes": 563784, + "sha256": "0075e39ae91e99ca042036d183fc1c0216e703555be258f39ef1bdf1f055d969" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_ring_proximal_link.STL", + "bytes": 281484, + "sha256": "7aa7601fd8360252144de4475e30575277f6ca20dc019e90c7df8ff9f2fc8074" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_ring_tip.STL", + "bytes": 117684, + "sha256": "c3be3c69a1b7cba72d4b09c8ca4e04f3ad15ef2e47f8212bb547be7487f88022" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_thumb_distal_link.STL", + "bytes": 218834, + "sha256": "4aeb45f261a9b9b0010856d45188c6fa5c1ca23485568f2d30728bc23bcf4e44" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_thumb_metacarpal_link.STL", + "bytes": 289584, + "sha256": "bf007bb8ddfd1eda5eba12dc802d9d6ac5b4b183c93c4e1cc9b025a816cfb68b" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_thumb_proximal_link.STL", + "bytes": 657384, + "sha256": "b1d8154a4f00bb6237b5553a64dda8ef0d9026a87d3d862a643f18284d17f472" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_hand/s1_hand_right/right_thumb_tip.STL", + "bytes": 117684, + "sha256": "b7c57cc3473e6709ffb95133274c7986adf23a812ff7afbf5d74dc8ccdc4dd45" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_head/astribot_head_base_link.STL", + "bytes": 148284, + "sha256": "82a65945d782623b806f4c59f53bfaef39d14bdd5a84f2e21a25867122493242" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_head/astribot_head_link_1.STL", + "bytes": 83184, + "sha256": "9e9c1792b072579214109d18438caf8594820452319c0bd8dca34e1b23276798" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_head/astribot_head_link_2.STL", + "bytes": 9665084, + "sha256": "94170698aea56450148d63cfff41daf899de7eab03d9fe716ff22959cca73306" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_torso/astribot_torso_base_link.STL", + "bytes": 9484534, + "sha256": "88d76fa4c7834bb756298db81907c204cfcb7a918eb4e1380fbc07bc894a2a2c" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_torso/astribot_torso_link_1.STL", + "bytes": 2927384, + "sha256": "a35f95371318c34c2b61b5003ded18d9bd5af7910a42a052974e1ac02f639783" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_torso/astribot_torso_link_2.STL", + "bytes": 8721384, + "sha256": "30237e4da5116ada620cdeccea5766fc1a3cf152f6f7892ded49f52ae71878a6" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_torso/astribot_torso_link_3.STL", + "bytes": 2721384, + "sha256": "eab30e56b62eb82c185fd601f73d28b3c948975ea427b250a5ce0ff58b2aeaab" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_torso/astribot_torso_link_4.STL", + "bytes": 7149984, + "sha256": "f0a1e9860d36598beec63562a27f88733216cc7d8db9796274e381b5d90c362c" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_torso/wheel_LF_Link.STL", + "bytes": 3733184, + "sha256": "4bf080c0908855a21de278d5c3d356f9a3e04bc7e967671bf21fdd91b220cc6a" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_torso/wheel_LR_Link.STL", + "bytes": 3733184, + "sha256": "4bf080c0908855a21de278d5c3d356f9a3e04bc7e967671bf21fdd91b220cc6a" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_torso/wheel_RF_Link.STL", + "bytes": 3733184, + "sha256": "4bf080c0908855a21de278d5c3d356f9a3e04bc7e967671bf21fdd91b220cc6a" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/s1_torso/wheel_RR_Link.STL", + "bytes": 3733184, + "sha256": "4bf080c0908855a21de278d5c3d356f9a3e04bc7e967671bf21fdd91b220cc6a" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/textures/astribot_head_link_2.png", + "bytes": 245361, + "sha256": "9a9b16978f8d857c74383f61af9487e30157e9d1d559c99de6530b2004c93502" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/textures/astribot_torso_base_link.png", + "bytes": 562140, + "sha256": "5857003d2083766116a8bbe292c37ec0af390ac73ae4355a5df6b179a872d72c" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/textures/astribot_torso_link_1.png", + "bytes": 92189, + "sha256": "cd67ebf8939ee167ea9506d14e4feb16264f7dc98c1ca708c23c2975c363a6bd" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/textures/astribot_torso_link_2.png", + "bytes": 502245, + "sha256": "5edecacd88d04d38cc28ae2cbbf2dbd172f9996c1575b0762cea33b5795f84f7" + }, + { + "path": "source/astribot_descriptions/urdf/astribot_s1_urdf/meshes/textures/astribot_torso_link_4.png", + "bytes": 41498, + "sha256": "a314b1341074cca6aa64ec00e0b0d23a91431a360535b7f0fdc9729d6bfccd15" + }, + { + "path": "source/astribot_simulation/LICENSE", + "bytes": 1528, + "sha256": "f8d4fef4ce819e8898f2d39d68de0a9a0861cc2b9706913f3fc3c45762937db0" + }, + { + "path": "source/astribot_simulation/README.md", + "bytes": 12595, + "sha256": "7f2944b2a13a0125ecac1c4eb646403cfbca842196f10be8dc0bb5e53143901c" + }, + { + "path": "source/astribot_simulation/src/astribot_envs/astribot_isaaclab_env.py", + "bytes": 18623, + "sha256": "87cdb11d932910bc7ace80b254128a7c3e5b25ad2414940805974bdb8bf7aaa8" + }, + { + "path": "source_visual_clearances.json", + "bytes": 642, + "sha256": "73f4a73bc221a64ceceec2f7c8fcecc28469eb6da2ecf1e24b784cada7cd515f" + }, + { + "path": "usd/.asset_hash", + "bytes": 32, + "sha256": "93c157fa71aaaac99e2b7168cb5ed4c6baa475fc00a9cdde3a4db63f4158db08" + }, + { + "path": "usd/config.yaml", + "bytes": 702, + "sha256": "512978617d91034194c4cdadea927937bf47cef5eb34dab80883b3046dd754c0" + }, + { + "path": "usd/configuration/materials/textures/logo_texture.png", + "bytes": 82936, + "sha256": "37dfe2df003fa6efdc017e316be13e233461724eeb524db7f7aede7115595c95" + }, + { + "path": "usd/configuration/robot_base.usd", + "bytes": 82118859, + "sha256": "9dc338a8cdc4e3adfe0db98c2e732b39c244581afc703632eb4f8b8183551812" + }, + { + "path": "usd/configuration/robot_physics.usd", + "bytes": 14563, + "sha256": "f2c9d6870025b0c5b7b7c2afc3fe768cfc4ab0c048034c4ad27982bc48551825" + }, + { + "path": "usd/configuration/robot_robot.usd", + "bytes": 3632, + "sha256": "aaa9a6cb18374704378209873e4e0e699c725571131a779004fe466e62d2f319" + }, + { + "path": "usd/configuration/robot_sensor.usd", + "bytes": 661, + "sha256": "785045620d10e959aa2566ffc5a7a1b8630c5e05a2b71cf5b7f8dabfcc75f459" + }, + { + "path": "usd/robot.usd", + "bytes": 6660, + "sha256": "4104e56957fa97cb9bae049513636d05f61f6a7fd93b7d19a494850b14b70f23" + } + ], + "collision_refinement": "collision_refinement_evidence.json", + "ready_pose_refinement": "ready_pose_evidence.json", + "ready_pose_refinement_v21": "evidence/omnipicker_pose_v21/refinement.json", + "centred_wrist_refinement": { + "revision": 2, + "specification": "configs/layouts/astribot_wrist_cameras.json", + "specification_sha256": "786448c11504b5f47666fd5643ee550f1834879315ec1a2ea22e3b7d03264a34", + "generator": "extensions/bimanual/prepare_astribot_wrist_cameras.py", + "previous_cameras": { + "head_camera": { + "parent_body": "astribot_head_link_2", + "position": [ + 0.0603, + -0.2139, + -0.0277 + ], + "quaternion_wxyz": [ + -0.016144656910317575, + 0.7105823096132226, + -0.026855767529930994, + -0.7029159971635052 + ], + "focal_length": 28.03996872544834, + "horizontal_aperture": 36.0, + "vertical_aperture": 27.0, + "clipping_range": [ + 0.03, + 10.0 + ], + "source_prim": "source_head_rgbd_camera_frame", + "source_note": "Official MJCF optical centre, forward axis and FOV retained. A fixed benchmark image-roll correction makes the ready-state image upright; the entire frame still follows its native head/wrist. Not measured hardware calibration.", + "source_frame_to_camera_quaternion_wxyz": [ + 0.0037493539593079473, + 0.0, + 0.0, + 0.9999929711477414 + ], + "source_kind": "source_mjcf_camera", + "source_fovy_deg": 51.4175, + "image_roll_correction_deg": 179.57035467782367 + }, + "left_wrist_camera": { + "parent_body": "astribot_arm_left_link_7", + "position": [ + 0.011420996159648984, + -0.09111799977585039, + 0.044260118849329295 + ], + "quaternion_wxyz": [ + -0.08122339464118075, + 0.08579859328475567, + 0.7057749496169075, + 0.698514911828353 + ], + "focal_length": 24.863906961451683, + "horizontal_aperture": 36.0, + "vertical_aperture": 27.0, + "clipping_range": [ + 0.03, + 10.0 + ], + "source_prim": "source_left_wrist_rgbd_camera_frame", + "source_note": "Official MJCF optical centre, forward axis and FOV retained. A fixed benchmark image-roll correction makes the ready-state image upright; the entire frame still follows its native head/wrist. Not measured hardware calibration.", + "source_frame_to_camera_quaternion_wxyz": [ + -0.1332867884111636, + 0.0, + 0.0, + 0.9910775106090531 + ], + "source_kind": "source_mjcf_camera", + "source_fovy_deg": 57.0, + "image_roll_correction_deg": -164.68087036858284 + }, + "right_wrist_camera": { + "parent_body": "astribot_arm_right_link_7", + "position": [ + 0.00772, + -0.09408, + 0.04319 + ], + "quaternion_wxyz": [ + 0.09362152713406806, + -0.08600754429540289, + 0.6955233267061137, + 0.7071668925996323 + ], + "focal_length": 24.863906961451683, + "horizontal_aperture": 36.0, + "vertical_aperture": 27.0, + "clipping_range": [ + 0.03, + 10.0 + ], + "source_prim": "source_right_wrist_rgbd_camera_frame", + "source_note": "Official MJCF optical centre, forward axis and FOV retained. A fixed benchmark image-roll correction makes the ready-state image upright; the entire frame still follows its native head/wrist. Not measured hardware calibration.", + "source_frame_to_camera_quaternion_wxyz": [ + 0.10359264103925263, + 0.0, + 0.0, + 0.994619809134381 + ], + "source_kind": "source_mjcf_camera", + "source_fovy_deg": 57.0, + "image_roll_correction_deg": 168.10782270561134 + } + }, + "previous_home": { + "wheel_RF_Joint": 0.0, + "wheel_LF_Joint": 0.0, + "wheel_RR_Joint": 0.0, + "wheel_LR_Joint": 0.0, + "astribot_torso_joint_1": 0.0, + "astribot_torso_joint_2": 0.0, + "astribot_torso_joint_3": 0.0, + "astribot_torso_joint_4": 0.0, + "astribot_head_joint_1": 0.0, + "astribot_head_joint_2": 0.98, + "astribot_arm_left_joint_1": -0.43399812516980524, + "astribot_arm_left_joint_2": -0.18163979470312183, + "astribot_arm_left_joint_3": -1.752449821950547, + "astribot_arm_left_joint_4": 1.4293830009834325, + "astribot_arm_left_joint_5": 0.3641594145022263, + "astribot_arm_left_joint_6": -0.5937473158464095, + "astribot_arm_left_joint_7": -1.2230845847446723, + "astribot_arm_right_joint_1": 0.43399812516980524, + "astribot_arm_right_joint_2": -0.18163979470312183, + "astribot_arm_right_joint_3": 1.752449821950547, + "astribot_arm_right_joint_4": 1.4293830009834325, + "astribot_arm_right_joint_5": -0.3641594145022263, + "astribot_arm_right_joint_6": -0.5937473158464095, + "astribot_arm_right_joint_7": 1.2230845847446723, + "astribot_gripper_left_joint_L1": 0.0, + "astribot_gripper_left_joint_L2": 0.0, + "astribot_gripper_left_joint_L11": 0.0, + "astribot_gripper_left_joint_R1": 0.0, + "astribot_gripper_left_joint_R2": 0.0, + "astribot_gripper_left_joint_R11": 0.0, + "astribot_gripper_right_joint_L1": 0.0, + "astribot_gripper_right_joint_L2": 0.0, + "astribot_gripper_right_joint_L11": 0.0, + "astribot_gripper_right_joint_R1": 0.0, + "astribot_gripper_right_joint_R2": 0.0, + "astribot_gripper_right_joint_R11": 0.0 + }, + "mounts": { + "left": { + "transform_in_tcp": [ + [ + -0.0, + -0.9945054529214059, + 0.10468478451804274, + -0.044 + ], + [ + -1.0, + 0.0, + 0.0, + 0.0 + ], + [ + -0.0, + -0.10468478451804274, + -0.9945054529214059, + -0.092 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ], + "transform_in_parent": [ + [ + 1.0000000000000002, + -3.3123685558458435e-16, + 3.486703742995625e-17, + -1.4654943925052067e-17 + ], + [ + -3.3306690738754696e-16, + -0.9945054529214061, + 0.10468478451804276, + -0.044000000000000004 + ], + [ + 0.0, + -0.10468478451804274, + -0.9945054529214059, + 0.048000000000000015 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + "right": { + "transform_in_tcp": [ + [ + -0.0, + -0.9945054529214059, + 0.10468478451804274, + -0.044 + ], + [ + -1.0, + 0.0, + 0.0, + 0.0 + ], + [ + -0.0, + -0.10468478451804274, + -0.9945054529214059, + -0.092 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ], + "transform_in_parent": [ + [ + 1.0000000000000002, + -3.3123685558458435e-16, + 3.486703742995625e-17, + -1.4654943925052067e-17 + ], + [ + -3.3306690738754696e-16, + -0.9945054529214061, + 0.10468478451804276, + -0.044000000000000004 + ], + [ + 0.0, + -0.10468478451804274, + -0.9945054529214059, + 0.048000000000000015 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + }, + "native_urdf_sha256": "7532829445ab35896d12f259051fe9720f14dd75c18091cfb77d04c73b5c24d5", + "head_camera_unchanged": true, + "native_tcp_unchanged": true, + "image_postprocessing": false, + "real_world_calibrated": false, + "scope": "Fixed optical mounts on the opposite jaw-symmetry face, aligned with the effective forward-leaning ready pose. Optical tilt and a 65-degree vertical FOV retain the initial tabletop targets. No pixel flips, stream swaps, mesh or joint changes. S1 home and head camera retained; Dream tool X/Y must follow the new camera side. Benchmark geometry alignment, not measured hardware calibration.", + "alignment_home": "configs/robots/astribot.json", + "alignment_home_sha256": "3a48d233f847a3571efec936e96ec2b10e20aa885815a91836f671e7009fd0df" + }, + "current_wrist_source_alignment": { + "revision": "astribot-wrist-forward-20261118", + "kind": "verified_yam_fallback", + "sources_sha256": { + "configs/robots/yam_verified.json": "6ae269a9066ccc74a3ba1b38217e3d2f772d2d44e860746a8fb0a3bf7efeea48" + }, + "mounts": { + "left": { + "parent_body": "astribot_gripper_left_base", + "optical_transform_opengl": [ + [ + 0.9999975307578567, + 0.002220261323958793, + -9.443432913532885e-05, + 0.00015393661213689407 + ], + [ + 0.002217974961043104, + -0.9945235081694473, + 0.10448957979342892, + -0.07039987186218338 + ], + [ + 0.00013807701246876245, + -0.10448953123633241, + -0.9945259769341118, + 0.008000000000000007 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + "right": { + "parent_body": "astribot_gripper_right_base", + "optical_transform_opengl": [ + [ + 0.9999975296180531, + 0.0022207723441989183, + -9.44880194601289e-05, + 0.00015403657197402156 + ], + [ + 0.002218488794023518, + -0.9945235070284697, + 0.10448957974489155, + -0.07039980418322263 + ], + [ + 0.00013807701246876245, + -0.10448953123633241, + -0.9945259769341118, + 0.008000000000000007 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + }, + "head_home_control_and_finger_physics_unchanged": true, + "image_postprocessing": false, + "real_world_calibrated": false, + "generator": "tools/cameras/prepare_source_mounts.py", + "intrinsics": "Verified YAM 87-degree horizontal FOV, 640x480", + "selection_reason": "Explicit user choice: Verified YAM mount overrides the available original camera reference.", + "physical_installation": "Runtime optical sensor attached to the gripper. Source MJCF camera carrier has no geometry; original source marker frames retained for reference.", + "optical_pitch_adaptation": { + "reference_local_optical_x_rotation_deg": 31.0, + "forward_tilt_deg": 6.0, + "lens_gripper_base_z_m": 0.008, + "reason": "Upstream inward pitch faced the chassis; the short fingertip offset also excluded S1 fingers when only pitch was reversed. Adapt axial placement to the longer S1 hand.", + "reference_lateral_offset_and_fov_retained": true, + "control_frames_unchanged": true, + "fixed_in_gripper_frame": true, + "task_object_tracking": false + } + }, + "historical_camera_metadata_superseded": true +} diff --git a/assets/robots/astribot_s1/ready_pose_evidence.json b/assets/robots/astribot_s1/ready_pose_evidence.json new file mode 100644 index 0000000000000000000000000000000000000000..91c189ad064d645a505a1918fa84840eb8cec51d --- /dev/null +++ b/assets/robots/astribot_s1/ready_pose_evidence.json @@ -0,0 +1,21 @@ +{ + "reason": "Raise native TCP standby height from 0.35 m to 0.47 m after the left fingertip contacted the wire shelf; unchanged scene and object poses.", + "solution_sha256": "406acae0d7fed52201477b743b2e5a357638311fce0e42c931087d10838bb95c", + "checks": { + "left": { + "position_error_m": 1.412382217601067e-08, + "rotation_error_rad": 3.804138303492186e-08, + "minimum_joint_limit_margin_rad": 0.16844993755085103 + }, + "right": { + "position_error_m": 3.045251114487819e-08, + "rotation_error_rad": 7.168202246642497e-08, + "minimum_joint_limit_margin_rad": 0.16844473640075153 + } + }, + "prior_profile_sha256": "bbe9c66fbf530b5785bbf2f064ba68a146b16401a36c51539fbe9bb896213125", + "prior_pilot_sha256": "8e47b77744607a8540a5438374a4122dc918edf2e89b0106636e6c502bbeb32a", + "source_clearance_measurements_pose": "evidence/lower_ready_profile.json", + "scene_geometry_changed": false, + "native_camera_extrinsics_changed": false +} diff --git a/assets/robots/astribot_s1/robot.urdf b/assets/robots/astribot_s1/robot.urdf new file mode 100644 index 0000000000000000000000000000000000000000..2e953e647232cc6e0722b0cd172966fccf1cbfda --- /dev/null +++ b/assets/robots/astribot_s1/robot.urdf @@ -0,0 +1,1243 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/assets/robots/astribot_s1/robot_import.urdf b/assets/robots/astribot_s1/robot_import.urdf new file mode 100644 index 0000000000000000000000000000000000000000..85930f964e5c52bc870679c4b8b17197d19c93e0 --- /dev/null +++ b/assets/robots/astribot_s1/robot_import.urdf @@ -0,0 +1,1243 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/.gitattributes b/assets/robots/astribot_s1/source/astribot_descriptions/.gitattributes new file mode 100644 index 0000000000000000000000000000000000000000..d5e31fbbd7887e52dd34cf45bee8e508efcb5665 --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/.gitattributes @@ -0,0 +1,4 @@ +*.usd filter=lfs diff=lfs merge=lfs -text +*.usda filter=lfs diff=lfs merge=lfs -text +*.obj filter=lfs diff=lfs merge=lfs -text +*.dae filter=lfs diff=lfs merge=lfs -text diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/LICENSE b/assets/robots/astribot_s1/source/astribot_descriptions/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..78fcdc8cd789c91722076eed4d3b62e188ad4715 --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/LICENSE @@ -0,0 +1,190 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to the Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by the Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding any notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + Copyright 2025 Astribot + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/README.md b/assets/robots/astribot_s1/source/astribot_descriptions/README.md new file mode 100644 index 0000000000000000000000000000000000000000..30fd35c04299b998fbaac9c8024940990a3f1d09 --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/README.md @@ -0,0 +1,65 @@ +# Astribot S1 Robot Description Files + +[中文版](README_zh.md) + +This repository contains the simulation model files for the Astribot S1 robot, including URDF, MJCF (MuJoCo), and USD formats. + +# Usage Guide + +Place this repository in the top-level directory of the astribot_simulation repository. + +## Repository Structure + +``` +astribot_descriptions/ +├── urdf/astribot_s1_urdf/ # URDF & SDF model files +│ ├── astribot_whole_body.urdf # Whole body (torso + arms) +│ ├── astribot_whole_body_with_head.urdf # Whole body + head +│ ├── astribot_whole_body_with_wheel.urdf # Whole body + head + wheels +│ ├── astribot_whole_body_maniskill.urdf # ManiSkill version (with grippers) +│ ├── astribot_arm_left.urdf # Left arm only +│ ├── astribot_arm_right.urdf # Right arm only +│ ├── astribot_torso.urdf # Torso only +│ ├── astribot_head.urdf # Head only +│ ├── *.sdf # SDF format variants +│ └── meshes/ # Mesh files (STL, DAE, OBJ) +├── mjcf/astribot_s1_mjcf/ # MuJoCo MJCF model files +│ ├── model_with_effector/ +│ │ ├── astribot_s1_model_with_gripper.xml +│ │ └── astribot_s1_model_with_hand.xml +│ ├── assets/ # MJCF asset definitions +│ └── actuators/ # Actuator configurations +└── usd/astribot_s1_usd/ # USD format for Isaac Sim +``` + +## Robot Configuration + +The Astribot S1 is a mobile manipulation robot with: +- 4-DOF torso +- Dual 7-DOF arms (14 DOF total) +- 2-DOF head +- Optional grippers or dexterous hands + +## Parameter Consistency + +All URDF, SDF, and MJCF files share the same kinematic and dynamics parameters from a single source of truth: + +- **Kinematic limits** — Joint position, velocity, and effort limits. All URDF/SDF `` tags, MJCF `range` attributes, and USD `physics:lowerLimit`/`physics:upperLimit` (in degrees) are derived from the same authoritative source. +- **Identified dynamics** — Dynamics parameters (mass, center of mass, inertia tensor) obtained through physically-consistent identification on the real robot. These parameters closely match the actual robot dynamics, enabling accurate dynamics compensation for force-control applications such as gravity compensation / zero-force dragging, high-precision trajectory tracking, impedance control, and real-to-sim (Real2Sim) transfer. All URDF/SDF `` tags, MJCF `` parameters, and USD `physics:mass`/`physics:diagonalInertia`/`physics:principalAxes` are derived from the same source. +- **MJCF dynamics** — The MJCF `` parameters (pos, quat, mass, diaginertia) are converted from URDF dynamics via MuJoCo's URDF import tool. The coordinate frame transformation and inertia diagonalization are handled automatically during conversion, so the values differ in representation but are physically equivalent. +- **USD dynamics** — The USD `diagonalInertia` and `principalAxes` are obtained by eigenvalue decomposition of the same inertia tensor. Joint limits are converted from radians to degrees. + +> **Note:** The config YAML files used to generate these parameters are maintained internally and are not included in this repository. The authoritative parameter values can be read directly from the URDF files (e.g., `` and `` tags). + +## Formats + +| Format | Simulator | Files | +|--------|-----------|-------| +| URDF | ROS, PyBullet, ManiSkill, etc. | `urdf/astribot_s1_urdf/*.urdf` | +| SDF | Gazebo | `urdf/astribot_s1_urdf/*.sdf` | +| MJCF | MuJoCo | `mjcf/astribot_s1_mjcf/` | +| USD | Isaac Sim | `usd/astribot_s1_usd/` | + +## License + +This project is licensed under the [Apache License 2.0](LICENSE). diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/actuators/actuator_s1_actuator_chassis_fixed_for_gripper.xml b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/actuators/actuator_s1_actuator_chassis_fixed_for_gripper.xml new file mode 100644 index 0000000000000000000000000000000000000000..b15d7b08f3b8b1f7534eaf29efc988cb699bb66f --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/actuators/actuator_s1_actuator_chassis_fixed_for_gripper.xml @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/actuators/astribot_s1_actuator_chassis_fixed_for_hand.xml b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/actuators/astribot_s1_actuator_chassis_fixed_for_hand.xml new file mode 100644 index 0000000000000000000000000000000000000000..0c9259771352562a3e8fc4aae83d97d18f3662fc --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/actuators/astribot_s1_actuator_chassis_fixed_for_hand.xml @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + --> + + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/actuators/astribot_s1_actuator_for_gripper.xml b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/actuators/astribot_s1_actuator_for_gripper.xml new file mode 100644 index 0000000000000000000000000000000000000000..5f5d476e91668e8121aae59135e6608349bd420a --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/actuators/astribot_s1_actuator_for_gripper.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/actuators/astribot_s1_actuator_for_hand.xml b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/actuators/astribot_s1_actuator_for_hand.xml new file mode 100644 index 0000000000000000000000000000000000000000..54bf9a982a8bb60db719ff5239eb5ffb4131426f --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/actuators/astribot_s1_actuator_for_hand.xml @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + --> + + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/assets/astribot_s1_asset_for_gripper.xml b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/assets/astribot_s1_asset_for_gripper.xml new file mode 100644 index 0000000000000000000000000000000000000000..cdbadf54b73b7bfe0fc239ccb9865872cadb63ce --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/assets/astribot_s1_asset_for_gripper.xml @@ -0,0 +1,112 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/assets/astribot_s1_asset_for_hand.xml b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/assets/astribot_s1_asset_for_hand.xml new file mode 100644 index 0000000000000000000000000000000000000000..c7e1ff1cff3df3b490ddcbf7343f2ea61dd87a39 --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/assets/astribot_s1_asset_for_hand.xml @@ -0,0 +1,146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_chassis/astribot_chassis_actuator.xml b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_chassis/astribot_chassis_actuator.xml new file mode 100644 index 0000000000000000000000000000000000000000..2d77ca72dece49059e9945a48516eea2617bee38 --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_chassis/astribot_chassis_actuator.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_chassis/astribot_chassis_asset.xml b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_chassis/astribot_chassis_asset.xml new file mode 100644 index 0000000000000000000000000000000000000000..d2750da372a6290ef9d9cd9a539a9d4eb56b24b7 --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_chassis/astribot_chassis_asset.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_chassis/astribot_chassis_model.xml b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_chassis/astribot_chassis_model.xml new file mode 100644 index 0000000000000000000000000000000000000000..73b0b59059b9bd19156a44f13c80cd421d1a718c --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_chassis/astribot_chassis_model.xml @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_actuator.xml b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_actuator.xml new file mode 100644 index 0000000000000000000000000000000000000000..872db9a51d96e8129fe509b19d08cc42302741ac --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_actuator.xml @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml new file mode 100644 index 0000000000000000000000000000000000000000..9c6e9c5226177a72c9c350389caa6bd7c108c447 --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_contact.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_model.xml b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_model.xml new file mode 100644 index 0000000000000000000000000000000000000000..1f7cb51425fb9b47fcaeaf14337bf3a16aa89680 --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_left/astribot_gripper_left_model.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_actuator.xml b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_actuator.xml new file mode 100644 index 0000000000000000000000000000000000000000..9c89f1c91d3015eee4ea96106961d79336ac3297 --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_actuator.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml new file mode 100644 index 0000000000000000000000000000000000000000..5e1e2b7d8d70a82fab7511cebbfee374d60a08da --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_contact.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_model.xml b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_model.xml new file mode 100644 index 0000000000000000000000000000000000000000..8b0763ea40df4fd9c680b239b1b31745620a1716 --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_gripper/astribot_gripper_right/astribot_gripper_right_model.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_hand/hand_left/brainco_left_actuator.xml b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_hand/hand_left/brainco_left_actuator.xml new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_hand/hand_left/brainco_left_asset.xml b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_hand/hand_left/brainco_left_asset.xml new file mode 100644 index 0000000000000000000000000000000000000000..174fc2187afb82eb75828407c0e7e3951a801c34 --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_hand/hand_left/brainco_left_asset.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_hand/hand_left/brainco_left_contact.xml b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_hand/hand_left/brainco_left_contact.xml new file mode 100644 index 0000000000000000000000000000000000000000..469ef00879dbc6df3c9fca1c6049f21ade86876d --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_hand/hand_left/brainco_left_contact.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_hand/hand_left/brainco_left_model.xml b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_hand/hand_left/brainco_left_model.xml new file mode 100644 index 0000000000000000000000000000000000000000..62113d0a0b504d59914df9ac14a87f624ad41c9b --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_hand/hand_left/brainco_left_model.xml @@ -0,0 +1,134 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_hand/hand_right/brainco_right_contact.xml b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_hand/hand_right/brainco_right_contact.xml new file mode 100644 index 0000000000000000000000000000000000000000..cae864f36170728db6d11ab4016bea7a47224523 --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_hand/hand_right/brainco_right_contact.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_hand/hand_right/brainco_right_model.xml b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_hand/hand_right/brainco_right_model.xml new file mode 100644 index 0000000000000000000000000000000000000000..cb9e37eb899264331064c7fe560e00ab00d2b48d --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_hand/hand_right/brainco_right_model.xml @@ -0,0 +1,133 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_s1_chassis_fixed_with_gripper.xml b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_s1_chassis_fixed_with_gripper.xml new file mode 100644 index 0000000000000000000000000000000000000000..960dae44c2cf150eca0cb5d3f5f4f37735b57237 --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_s1_chassis_fixed_with_gripper.xml @@ -0,0 +1,27 @@ + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_s1_chassis_fixed_with_hand.xml b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_s1_chassis_fixed_with_hand.xml new file mode 100644 index 0000000000000000000000000000000000000000..9b4ce0b8b6a6c3b9a4a9c345e03b7e48d84ef9f6 --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_s1_chassis_fixed_with_hand.xml @@ -0,0 +1,27 @@ + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_s1_for_aloha_with_gripper.xml b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_s1_for_aloha_with_gripper.xml new file mode 100644 index 0000000000000000000000000000000000000000..bdbf54cfc9f2f80eb518ec46be716387b2f2fc41 --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_s1_for_aloha_with_gripper.xml @@ -0,0 +1,39 @@ + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_s1_with_gripper.xml b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_s1_with_gripper.xml new file mode 100644 index 0000000000000000000000000000000000000000..ce7dc766230567eb7faad1d35c8565d583bfc797 --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_s1_with_gripper.xml @@ -0,0 +1,44 @@ + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_s1_with_hand.xml b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_s1_with_hand.xml new file mode 100644 index 0000000000000000000000000000000000000000..4bf96993f7cd81b78e93be8c6c5da3e270ca0e6d --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/astribot_s1_with_hand.xml @@ -0,0 +1,37 @@ + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/model_with_effector/astribot_s1_model_with_gripper.xml b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/model_with_effector/astribot_s1_model_with_gripper.xml new file mode 100644 index 0000000000000000000000000000000000000000..2405f31fcde6a612c0101e9182f276d02059137f --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/model_with_effector/astribot_s1_model_with_gripper.xml @@ -0,0 +1,182 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/model_with_effector/astribot_s1_model_with_hand.xml b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/model_with_effector/astribot_s1_model_with_hand.xml new file mode 100644 index 0000000000000000000000000000000000000000..5ea9bd873c86cde4bf404be3bf499425db3c7393 --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/model_with_effector/astribot_s1_model_with_hand.xml @@ -0,0 +1,166 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/simpleTable/simpleTable_asset.xml b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/simpleTable/simpleTable_asset.xml new file mode 100644 index 0000000000000000000000000000000000000000..7148d4679e9f4adc72cc6e86a91b7c32a6558a50 --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/simpleTable/simpleTable_asset.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/simpleTable/simpleTable_body.xml b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/simpleTable/simpleTable_body.xml new file mode 100644 index 0000000000000000000000000000000000000000..e49da420f5442716924ce25c7df576f8c87bfd93 --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/mjcf/astribot_s1_mjcf/simpleTable/simpleTable_body.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_arm_right.urdf b/assets/robots/astribot_s1/source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_arm_right.urdf new file mode 100644 index 0000000000000000000000000000000000000000..9e0e551d4d404d850ce1749d5a5f7f4361d9eb13 --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_arm_right.urdf @@ -0,0 +1,394 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_head.urdf b/assets/robots/astribot_s1/source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_head.urdf new file mode 100644 index 0000000000000000000000000000000000000000..a0bab09037ec37f36eab146e1a4a47f5c41c53de --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_head.urdf @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_torso.urdf b/assets/robots/astribot_s1/source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_torso.urdf new file mode 100644 index 0000000000000000000000000000000000000000..8d92d85308457177441ecf4d77b199f86b307853 --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_torso.urdf @@ -0,0 +1,140 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body.urdf b/assets/robots/astribot_s1/source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body.urdf new file mode 100644 index 0000000000000000000000000000000000000000..c9b4053542a40728d7f4bc4a1010ab7e4da15dfd --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body.urdf @@ -0,0 +1,685 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_gripper.sdf b/assets/robots/astribot_s1/source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_gripper.sdf new file mode 100644 index 0000000000000000000000000000000000000000..e30b7103963e00f83d91cf39a0c4a4cddec29253 --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_gripper.sdf @@ -0,0 +1,1508 @@ + + + + + + + astribot_torso_base + base + + + + -0.062784 0.007017 0.035375 0 -0 0 + 39.24781 + + 1.071997 + 0.015889 + -0.058447 + 1.218431 + -0.002015 + 1.489411 + + + + 0 0 0.049 0 -0 0 + + + 0.56 0.56 0.29 + + + + + 0 0 -0.106 0 -0 0 + + + 0.001 + 0.8 + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_torso/obj/astribot_torso_base_link.obj + + + + + + 0 0 0.12 1.57079 1.57079 -3.14159 + astribot_torso_base + astribot_torso_link_1 + + 0 0 1 + + 0.0 + 1.5 + 420 + 7.87 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + -0.078229 0.033333 0.0 0 -0 0 + 9.2571 + + 0.386957 + 0.0513559 + 0.0 + 0.1483 + 0.0 + 0.374664 + + + + 0 0 0 0 -0 0 + + + 1.2 1.2 1.2 + meshes/s1_torso/obj/astribot_torso_link_1_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_torso/obj/astribot_torso_link_1.obj + + + + + + -0.38 0 0 0 -0 0 + astribot_torso_link_1 + astribot_torso_link_2 + + 0 0 1 + + -2.35 + 0.0 + 420 + 7.87 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + -0.23187 0.033333 0.0 0 -0 0 + 5.6183 + + 0.0082545 + 0.0011523 + 0.00035614 + 0.012677 + -5.8287e-05 + 0.017512 + + + + 0 0 0 0 -0 0 + + + 1.2 1.2 1.2 + meshes/s1_torso/obj/astribot_torso_link_2_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_torso/obj/astribot_torso_link_2.obj + + + + + + -0.39 0 0 0 -0 0 + astribot_torso_link_2 + astribot_torso_link_3 + + 0 0 1 + + 0.0 + 2.4 + 370 + 8.94 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0.133333 -0.086872 0.0 0 -0 0 + 0.49013 + + 0.00022212 + -2.6767e-07 + 4.3987e-07 + 0.00036522 + 3.8834e-07 + 0.00038039 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_torso/obj/astribot_torso_link_3.obj + + + + + + 0 0 0 1.5708 0 -1.5708 + astribot_torso_link_3 + astribot_torso_link_4 + + 0 0 1 + + -1.58 + 1.58 + 370 + 8.94 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0.00476227 -4.56967e-05 0.24291257 0 -0 0 + 11.7741 + + 0.01657683 + -9.94098e-06 + -0.00010001 + 0.01490436 + 9.86752e-07 + 0.01106293 + + + + 0 0 0 0 -0 0 + + + 1.2 1.2 1.2 + meshes/s1_torso/obj/astribot_torso_link_4_collision_mesh.obj + + + + + 0 0 0.56 0 -0 0 + + + 0.23 + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_torso/obj/astribot_torso_link_4.obj + + + + + + -0 0.150002 0.399354 -0 -1.22173 -1.5708 + astribot_torso_link_4 + astribot_arm_left_link_1 + + 0 0 1 + + -3.087 + 1.517 + 112.5 + 10.47 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + -0.05454545 -0.03065188 -0.02912452 0 -0 0 + 0.65930388 + + 0.00064791 + 1.49e-06 + 1.33e-06 + 0.00065264 + 1.6e-06 + 0.00050137 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_1.obj + + + + + + 0 0 0 1.5708 -0 0 + astribot_arm_left_link_1 + astribot_arm_left_link_2 + + 0 0 1 + + -1.517 + 0.55 + 112.5 + 10.47 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + -0.07272727 0.00957826 0.05428061 0 -0 0 + 1.60392141 + + 0.00360751 + -9.193e-05 + 7.764e-05 + 0.00283747 + 0.00054945 + 0.00172927 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_left_link_2.obj + + + + + + 0 0.05 0 1.5708 0 -1.5708 + astribot_arm_left_link_2 + astribot_arm_left_link_3 + + 0 0 1 + + -3.08 + 1.517 + 56.25 + 10.47 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + -0.0054798 0.00064517 0.08585372 0 -0 0 + 2.2120539 + + 0.01752179 + 2.336e-05 + 0.00144018 + 0.01784671 + -3.027e-05 + 0.0021843 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_3_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_3.obj + + + + + + 0.03 0 0.309 -1.5708 0 0 + astribot_arm_left_link_3 + astribot_arm_left_link_4 + + 0 0 1 + + 0.0 + 2.55 + 36.96 + 19.34 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0.01577584 -0.11111111 0.01513556 0 -0 0 + 0.3292914 + + 0.00047693 + 6.35e-06 + 1.35e-06 + 0.00036801 + 7.05e-06 + 0.00050082 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_4_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_4.obj + + + + + + 0 0 0 1.5708 -0 0 + astribot_arm_left_link_4 + astribot_arm_left_link_5 + + 0 0 1 + + -2.37 + 2.37 + 36.96 + 34.53 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + -0.00984351 0.00748991 0.13684719 0 -0 0 + 1.11676558 + + 0.00454092 + 1.58e-06 + -5.91e-06 + 0.00438922 + -4.927e-05 + 0.00079442 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_5_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_5.obj + + + + + + 0 0 0.277 -1.5708 0 0 + astribot_arm_left_link_5 + astribot_arm_left_link_6 + + 0 0 1 + + -0.78 + 0.78 + 18 + 16.75 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0.01036298 -0.00408524 -0.04047131 0 -0 0 + 0.20218776 + + 0.00016474 + 7e-08 + 2.5e-07 + 0.00015608 + 1.8e-07 + 8.555e-05 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_6.obj + + + + + + 0 0 0 3.14159 1.57079 3.14159 + astribot_arm_left_link_6 + astribot_arm_left_link_7 + + 0 0 1 + + -1.55 + 1.55 + 18 + 16.75 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0.00351446 -0.07525743 0.00311834 0 -0 0 + 0.80380588 + + 0.00013672 + 1.6e-07 + -2.4e-07 + 0.00010783 + -3.35e-06 + 5.858e-05 + + + + 0.006 -0.048 0 1.5708 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_base_link_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_7.obj + + + + + 0.006 -0.048 0 1.5708 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_base_link.obj + + + + + + 0.019001 -0.1017 -0 1.5708 -0 0 + astribot_arm_left_link_7 + astribot_gripper_left_Link_L1 + + 0 -1 0 + + 0 + 1.14 + 1 + 1 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0 0 0.02 0 -0 0 + 0.03 + + 0.001 + 0 + 0 + 0.001 + 0 + 0.001 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_L1_Link.obj + + + + + + 0.036 0 0.031749 0 -0.03 0 + astribot_gripper_left_Link_L1 + astribot_gripper_left_Link_L11 + + 0 1 0 + + -3.14 + 3.14 + 1 + 1 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0 0 0.02 0 -0 0 + 0.067 + + 0.001 + 0 + 0 + 0.001 + 0 + 0.001 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_L11_Link_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_L11_Link.obj + + + + + + 0.039 -0.1017 -0 1.5708 -0 0 + astribot_arm_left_link_7 + astribot_gripper_left_Link_L2 + + 0 1 0 + + -3.14 + 3.14 + 1 + 1 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0 0 0.02 0 -0 0 + 0.03 + + 0.001 + 0 + 0 + 0.001 + 0 + 0.001 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_L2_Link_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_L2_Link.obj + + + + + + -0.007001 -0.1017 -0 1.5708 -0 0 + astribot_arm_left_link_7 + astribot_gripper_left_Link_R1 + + 0 1 0 + + 0 + 1.14 + 1 + 1 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0 0 0.02 0 -0 0 + 0.03 + + 0.001 + 0 + 0 + 0.001 + 0 + 0.001 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_R1_Link.obj + + + + + + -0.036 0 0.031749 0 0.03 0 + astribot_gripper_left_Link_R1 + astribot_gripper_left_Link_R11 + + 0 1 0 + + -3.14 + 3.14 + 1 + 1 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0 0 0.02 0 -0 0 + 0.067 + + 0.001 + 0 + 0 + 0.001 + 0 + 0.001 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_R11_Link_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_R11_Link.obj + + + + + + -0.027 -0.1017 -0 1.5708 -0 0 + astribot_arm_left_link_7 + astribot_gripper_left_Link_R2 + + 0 1 0 + + -3.14 + 3.14 + 1 + 1 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0 0 0.02 0 -0 0 + 0.03 + + 0.001 + 0 + 0 + 0.001 + 0 + 0.001 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_R2_Link_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_R2_Link.obj + + + + + + -0 -0.150002 0.399354 0 -1.22173 1.5708 + astribot_torso_link_4 + astribot_arm_right_link_1 + + 0 0 1 + + -1.517 + 3.087 + 112.5 + 10.47 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + -0.05454545 -0.03065188 -0.02912452 0 -0 0 + 0.65930388 + + 0.00064791 + 1.49e-06 + 1.33e-06 + 0.00065264 + 1.6e-06 + 0.00050137 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_1.obj + + + + + + 0 0 0 1.5708 -0 0 + astribot_arm_right_link_1 + astribot_arm_right_link_2 + + 0 0 1 + + -1.517 + 0.55 + 112.5 + 10.47 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + -0.07272727 0.00957826 -0.05428061 0 -0 0 + 1.60392141 + + 0.00394196 + -8.846e-05 + -3.742e-05 + 0.00316298 + -0.0007079 + 0.00177295 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_right_link_2.obj + + + + + + 0 0.05 0 1.5708 0 -1.5708 + astribot_arm_right_link_2 + astribot_arm_right_link_3 + + 0 0 1 + + -1.517 + 3.08 + 56.25 + 10.47 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + -0.0054798 0.00064517 0.08585372 0 -0 0 + 2.2120539 + + 0.01752179 + 2.336e-05 + 0.00144018 + 0.01784671 + -3.027e-05 + 0.0021843 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_3_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_3.obj + + + + + + 0.03 0 0.309 -1.5708 0 0 + astribot_arm_right_link_3 + astribot_arm_right_link_4 + + 0 0 1 + + 0.0 + 2.55 + 36.96 + 19.34 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0.01577584 -0.11111111 0.01513556 0 -0 0 + 0.3292914 + + 0.00047693 + 6.35e-06 + 1.35e-06 + 0.00036801 + 7.05e-06 + 0.00050082 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_4_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_4.obj + + + + + + 0 0 0 1.5708 -0 0 + astribot_arm_right_link_4 + astribot_arm_right_link_5 + + 0 0 1 + + -2.37 + 2.37 + 36.96 + 34.53 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + -0.00984351 0.00748991 0.13684719 0 -0 0 + 1.11676558 + + 0.00454092 + 1.58e-06 + -5.91e-06 + 0.00438922 + -4.927e-05 + 0.00079442 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_5_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_5.obj + + + + + + 0 0 0.277 -1.5708 0 0 + astribot_arm_right_link_5 + astribot_arm_right_link_6 + + 0 0 1 + + -0.78 + 0.78 + 18 + 16.75 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0.01036298 -0.00408524 -0.04047131 0 -0 0 + 0.20218776 + + 0.00016474 + 7e-08 + 2.5e-07 + 0.00015608 + 1.8e-07 + 8.555e-05 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_6.obj + + + + + + 0 0 0 3.14159 1.57079 3.14159 + astribot_arm_right_link_6 + astribot_arm_right_link_7 + + 0 0 1 + + -1.55 + 1.55 + 18 + 16.75 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0.00351446 -0.07525743 0.00311834 0 -0 0 + 0.80380588 + + 0.00013672 + 1.6e-07 + -2.4e-07 + 0.00010783 + -3.35e-06 + 5.858e-05 + + + + 0.006 -0.048 0 1.5708 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_base_link_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_7.obj + + + + + 0.006 -0.048 0 1.5708 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_base_link.obj + + + + + + 0.019001 -0.1017 -0 1.5708 -0 0 + astribot_arm_right_link_7 + astribot_gripper_right_Link_L1 + + 0 -1 0 + + 0 + 1.14 + 1 + 1 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0 0 0.02 0 -0 0 + 0.03 + + 0.001 + 0 + 0 + 0.001 + 0 + 0.001 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_L1_Link.obj + + + + + + 0.036 0 0.031749 0 -0.03 0 + astribot_gripper_right_Link_L1 + astribot_gripper_right_Link_L11 + + 0 1 0 + + -3.14 + 3.14 + 1 + 1 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0 0 0.02 0 -0 0 + 0.067 + + 0.001 + 0 + 0 + 0.001 + 0 + 0.001 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_L11_Link_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_L11_Link.obj + + + + + + 0.039 -0.1017 -0 1.5708 -0 0 + astribot_arm_right_link_7 + astribot_gripper_right_Link_L2 + + 0 1 0 + + -3.14 + 3.14 + 1 + 1 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0 0 0.02 0 -0 0 + 0.03 + + 0.001 + 0 + 0 + 0.001 + 0 + 0.001 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_L2_Link_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_L2_Link.obj + + + + + + -0.007001 -0.1017 -0 1.5708 -0 0 + astribot_arm_right_link_7 + astribot_gripper_right_Link_R1 + + 0 1 0 + + 0 + 1.14 + 1 + 1 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0 0 0.02 0 -0 0 + 0.03 + + 0.001 + 0 + 0 + 0.001 + 0 + 0.001 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_R1_Link.obj + + + + + + -0.036 0 0.031749 0 0.03 0 + astribot_gripper_right_Link_R1 + astribot_gripper_right_Link_R11 + + 0 1 0 + + -3.14 + 3.14 + 1 + 1 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0 0 0.02 0 -0 0 + 0.067 + + 0.001 + 0 + 0 + 0.001 + 0 + 0.001 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_R11_Link_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_R11_Link.obj + + + + + + -0.027 -0.1017 -0 1.5708 -0 0 + astribot_arm_right_link_7 + astribot_gripper_right_Link_R2 + + 0 1 0 + + -3.14 + 3.14 + 1 + 1 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0 0 0.02 0 -0 0 + 0.03 + + 0.001 + 0 + 0 + 0.001 + 0 + 0.001 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_R2_Link_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_R2_Link.obj + + + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_gripper_fixed_torso.sdf b/assets/robots/astribot_s1/source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_gripper_fixed_torso.sdf new file mode 100644 index 0000000000000000000000000000000000000000..f5cf33f2c232782d4a279941bdcf36c0498fc081 --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_gripper_fixed_torso.sdf @@ -0,0 +1,1512 @@ + + + + + + + astribot_torso_base + base + + + + -0.062784 0.007017 0.035375 0 -0 0 + 39.24781 + + 1.071997 + 0.015889 + -0.058447 + 1.218431 + -0.002015 + 1.489411 + + + + 0 0 0.049 0 -0 0 + + + 0.56 0.56 0.29 + + + + + 0 0 -0.106 0 -0 0 + + + 0.001 + 0.8 + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_torso/obj/astribot_torso_base_link.obj + + + + + + 0 0 0.12 1.57079 1.57079 -3.14159 + astribot_torso_base + astribot_torso_link_1 + + 0 0 1 + + 0.0 + 1.5 + 420 + 7.87 + 0 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + -0.078229 0.033333 0.0 0 -0 0 + 9.2571 + + 0.386957 + 0.0513559 + 0.0 + 0.1483 + 0.0 + 0.374664 + + + + 0 0 0 0 -0 0 + + + 1.2 1.2 1.2 + meshes/s1_torso/obj/astribot_torso_link_1_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_torso/obj/astribot_torso_link_1.obj + + + + + + -0.38 0 0 0 -0 0 + astribot_torso_link_1 + astribot_torso_link_2 + + 0 0 1 + + -2.35 + 0.0 + 420 + 7.87 + 0 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + -0.23187 0.033333 0.0 0 -0 0 + 5.6183 + + 0.0082545 + 0.0011523 + 0.00035614 + 0.012677 + -5.8287e-05 + 0.017512 + + + + 0 0 0 0 -0 0 + + + 1.2 1.2 1.2 + meshes/s1_torso/obj/astribot_torso_link_2_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_torso/obj/astribot_torso_link_2.obj + + + + + + -0.39 0 0 0 -0 0 + astribot_torso_link_2 + astribot_torso_link_3 + + 0 0 1 + + 0.0 + 2.4 + 370 + 8.94 + 0 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0.133333 -0.086872 0.0 0 -0 0 + 0.49013 + + 0.00022212 + -2.6767e-07 + 4.3987e-07 + 0.00036522 + 3.8834e-07 + 0.00038039 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_torso/obj/astribot_torso_link_3.obj + + + + + + 0 0 0 1.5708 0 -1.5708 + astribot_torso_link_3 + astribot_torso_link_4 + + 0 0 1 + + -1.58 + 1.58 + 370 + 8.94 + 0 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0.00476227 -4.56967e-05 0.24291257 0 -0 0 + 11.7741 + + 0.01657683 + -9.94098e-06 + -0.00010001 + 0.01490436 + 9.86752e-07 + 0.01106293 + + + + 0 0 0 0 -0 0 + + + 1.2 1.2 1.2 + meshes/s1_torso/obj/astribot_torso_link_4_collision_mesh.obj + + + + + 0 0 0.56 0 -0 0 + + + 0.23 + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_torso/obj/astribot_torso_link_4.obj + + + + + + -0 0.150002 0.399354 -0 -1.22173 -1.5708 + astribot_torso_link_4 + astribot_arm_left_link_1 + + 0 0 1 + + -3.087 + 1.517 + 112.5 + 10.47 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + -0.05454545 -0.03065188 -0.02912452 0 -0 0 + 0.65930388 + + 0.00064791 + 1.49e-06 + 1.33e-06 + 0.00065264 + 1.6e-06 + 0.00050137 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_1.obj + + + + + + 0 0 0 1.5708 -0 0 + astribot_arm_left_link_1 + astribot_arm_left_link_2 + + 0 0 1 + + -1.517 + 0.55 + 112.5 + 10.47 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + -0.07272727 0.00957826 0.05428061 0 -0 0 + 1.60392141 + + 0.00360751 + -9.193e-05 + 7.764e-05 + 0.00283747 + 0.00054945 + 0.00172927 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_left_link_2.obj + + + + + + 0 0.05 0 1.5708 0 -1.5708 + astribot_arm_left_link_2 + astribot_arm_left_link_3 + + 0 0 1 + + -3.08 + 1.517 + 56.25 + 10.47 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + -0.0054798 0.00064517 0.08585372 0 -0 0 + 2.2120539 + + 0.01752179 + 2.336e-05 + 0.00144018 + 0.01784671 + -3.027e-05 + 0.0021843 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_3_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_3.obj + + + + + + 0.03 0 0.309 -1.5708 0 0 + astribot_arm_left_link_3 + astribot_arm_left_link_4 + + 0 0 1 + + 0.0 + 2.55 + 36.96 + 19.34 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0.01577584 -0.11111111 0.01513556 0 -0 0 + 0.3292914 + + 0.00047693 + 6.35e-06 + 1.35e-06 + 0.00036801 + 7.05e-06 + 0.00050082 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_4_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_4.obj + + + + + + 0 0 0 1.5708 -0 0 + astribot_arm_left_link_4 + astribot_arm_left_link_5 + + 0 0 1 + + -2.37 + 2.37 + 36.96 + 34.53 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + -0.00984351 0.00748991 0.13684719 0 -0 0 + 1.11676558 + + 0.00454092 + 1.58e-06 + -5.91e-06 + 0.00438922 + -4.927e-05 + 0.00079442 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_5_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_5.obj + + + + + + 0 0 0.277 -1.5708 0 0 + astribot_arm_left_link_5 + astribot_arm_left_link_6 + + 0 0 1 + + -0.78 + 0.78 + 18 + 16.75 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0.01036298 -0.00408524 -0.04047131 0 -0 0 + 0.20218776 + + 0.00016474 + 7e-08 + 2.5e-07 + 0.00015608 + 1.8e-07 + 8.555e-05 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_6.obj + + + + + + 0 0 0 3.14159 1.57079 3.14159 + astribot_arm_left_link_6 + astribot_arm_left_link_7 + + 0 0 1 + + -1.55 + 1.55 + 18 + 16.75 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0.00351446 -0.07525743 0.00311834 0 -0 0 + 0.80380588 + + 0.00013672 + 1.6e-07 + -2.4e-07 + 0.00010783 + -3.35e-06 + 5.858e-05 + + + + 0.006 -0.048 0 1.5708 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_base_link_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_7.obj + + + + + 0.006 -0.048 0 1.5708 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_base_link.obj + + + + + + 0.019001 -0.1017 -0 1.5708 -0 0 + astribot_arm_left_link_7 + astribot_gripper_left_Link_L1 + + 0 -1 0 + + 0 + 1.14 + 1 + 1 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0 0 0.02 0 -0 0 + 0.03 + + 0.001 + 0 + 0 + 0.001 + 0 + 0.001 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_L1_Link.obj + + + + + + 0.036 0 0.031749 0 -0.03 0 + astribot_gripper_left_Link_L1 + astribot_gripper_left_Link_L11 + + 0 1 0 + + -3.14 + 3.14 + 1 + 1 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0 0 0.02 0 -0 0 + 0.067 + + 0.001 + 0 + 0 + 0.001 + 0 + 0.001 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_L11_Link_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_L11_Link.obj + + + + + + 0.039 -0.1017 -0 1.5708 -0 0 + astribot_arm_left_link_7 + astribot_gripper_left_Link_L2 + + 0 1 0 + + -3.14 + 3.14 + 1 + 1 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0 0 0.02 0 -0 0 + 0.03 + + 0.001 + 0 + 0 + 0.001 + 0 + 0.001 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_L2_Link_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_L2_Link.obj + + + + + + -0.007001 -0.1017 -0 1.5708 -0 0 + astribot_arm_left_link_7 + astribot_gripper_left_Link_R1 + + 0 1 0 + + 0 + 1.14 + 1 + 1 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0 0 0.02 0 -0 0 + 0.03 + + 0.001 + 0 + 0 + 0.001 + 0 + 0.001 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_R1_Link.obj + + + + + + -0.036 0 0.031749 0 0.03 0 + astribot_gripper_left_Link_R1 + astribot_gripper_left_Link_R11 + + 0 1 0 + + -3.14 + 3.14 + 1 + 1 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0 0 0.02 0 -0 0 + 0.067 + + 0.001 + 0 + 0 + 0.001 + 0 + 0.001 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_R11_Link_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_R11_Link.obj + + + + + + -0.027 -0.1017 -0 1.5708 -0 0 + astribot_arm_left_link_7 + astribot_gripper_left_Link_R2 + + 0 1 0 + + -3.14 + 3.14 + 1 + 1 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0 0 0.02 0 -0 0 + 0.03 + + 0.001 + 0 + 0 + 0.001 + 0 + 0.001 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_R2_Link_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_R2_Link.obj + + + + + + -0 -0.150002 0.399354 0 -1.22173 1.5708 + astribot_torso_link_4 + astribot_arm_right_link_1 + + 0 0 1 + + -1.517 + 3.087 + 112.5 + 10.47 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + -0.05454545 -0.03065188 -0.02912452 0 -0 0 + 0.65930388 + + 0.00064791 + 1.49e-06 + 1.33e-06 + 0.00065264 + 1.6e-06 + 0.00050137 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_1.obj + + + + + + 0 0 0 1.5708 -0 0 + astribot_arm_right_link_1 + astribot_arm_right_link_2 + + 0 0 1 + + -1.517 + 0.55 + 112.5 + 10.47 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + -0.07272727 0.00957826 -0.05428061 0 -0 0 + 1.60392141 + + 0.00394196 + -8.846e-05 + -3.742e-05 + 0.00316298 + -0.0007079 + 0.00177295 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_right_link_2.obj + + + + + + 0 0.05 0 1.5708 0 -1.5708 + astribot_arm_right_link_2 + astribot_arm_right_link_3 + + 0 0 1 + + -1.517 + 3.08 + 56.25 + 10.47 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + -0.0054798 0.00064517 0.08585372 0 -0 0 + 2.2120539 + + 0.01752179 + 2.336e-05 + 0.00144018 + 0.01784671 + -3.027e-05 + 0.0021843 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_3_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_3.obj + + + + + + 0.03 0 0.309 -1.5708 0 0 + astribot_arm_right_link_3 + astribot_arm_right_link_4 + + 0 0 1 + + 0.0 + 2.55 + 36.96 + 19.34 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0.01577584 -0.11111111 0.01513556 0 -0 0 + 0.3292914 + + 0.00047693 + 6.35e-06 + 1.35e-06 + 0.00036801 + 7.05e-06 + 0.00050082 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_4_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_4.obj + + + + + + 0 0 0 1.5708 -0 0 + astribot_arm_right_link_4 + astribot_arm_right_link_5 + + 0 0 1 + + -2.37 + 2.37 + 36.96 + 34.53 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + -0.00984351 0.00748991 0.13684719 0 -0 0 + 1.11676558 + + 0.00454092 + 1.58e-06 + -5.91e-06 + 0.00438922 + -4.927e-05 + 0.00079442 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_5_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_5.obj + + + + + + 0 0 0.277 -1.5708 0 0 + astribot_arm_right_link_5 + astribot_arm_right_link_6 + + 0 0 1 + + -0.78 + 0.78 + 18 + 16.75 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0.01036298 -0.00408524 -0.04047131 0 -0 0 + 0.20218776 + + 0.00016474 + 7e-08 + 2.5e-07 + 0.00015608 + 1.8e-07 + 8.555e-05 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_6.obj + + + + + + 0 0 0 3.14159 1.57079 3.14159 + astribot_arm_right_link_6 + astribot_arm_right_link_7 + + 0 0 1 + + -1.55 + 1.55 + 18 + 16.75 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0.00351446 -0.07525743 0.00311834 0 -0 0 + 0.80380588 + + 0.00013672 + 1.6e-07 + -2.4e-07 + 0.00010783 + -3.35e-06 + 5.858e-05 + + + + 0.006 -0.048 0 1.5708 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_base_link_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_arm/obj/astribot_arm_link_7.obj + + + + + 0.006 -0.048 0 1.5708 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_base_link.obj + + + + + + 0.019001 -0.1017 -0 1.5708 -0 0 + astribot_arm_right_link_7 + astribot_gripper_right_Link_L1 + + 0 -1 0 + + 0 + 1.14 + 1 + 1 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0 0 0.02 0 -0 0 + 0.03 + + 0.001 + 0 + 0 + 0.001 + 0 + 0.001 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_L1_Link.obj + + + + + + 0.036 0 0.031749 0 -0.03 0 + astribot_gripper_right_Link_L1 + astribot_gripper_right_Link_L11 + + 0 1 0 + + -3.14 + 3.14 + 1 + 1 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0 0 0.02 0 -0 0 + 0.067 + + 0.001 + 0 + 0 + 0.001 + 0 + 0.001 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_L11_Link_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_L11_Link.obj + + + + + + 0.039 -0.1017 -0 1.5708 -0 0 + astribot_arm_right_link_7 + astribot_gripper_right_Link_L2 + + 0 1 0 + + -3.14 + 3.14 + 1 + 1 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0 0 0.02 0 -0 0 + 0.03 + + 0.001 + 0 + 0 + 0.001 + 0 + 0.001 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_L2_Link_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_L2_Link.obj + + + + + + -0.007001 -0.1017 -0 1.5708 -0 0 + astribot_arm_right_link_7 + astribot_gripper_right_Link_R1 + + 0 1 0 + + 0 + 1.14 + 1 + 1 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0 0 0.02 0 -0 0 + 0.03 + + 0.001 + 0 + 0 + 0.001 + 0 + 0.001 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_R1_Link.obj + + + + + + -0.036 0 0.031749 0 0.03 0 + astribot_gripper_right_Link_R1 + astribot_gripper_right_Link_R11 + + 0 1 0 + + -3.14 + 3.14 + 1 + 1 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0 0 0.02 0 -0 0 + 0.067 + + 0.001 + 0 + 0 + 0.001 + 0 + 0.001 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_R11_Link_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_R11_Link.obj + + + + + + -0.027 -0.1017 -0 1.5708 -0 0 + astribot_arm_right_link_7 + astribot_gripper_right_Link_R2 + + 0 1 0 + + -3.14 + 3.14 + 1 + 1 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0 0 0.02 0 -0 0 + 0.03 + + 0.001 + 0 + 0 + 0.001 + 0 + 0.001 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_R2_Link_collision_mesh.obj + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/s1_gripper/obj/astribot_gripper_R2_Link.obj + + + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_head.sdf b/assets/robots/astribot_s1/source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_head.sdf new file mode 100644 index 0000000000000000000000000000000000000000..cbc349479213b4ab489e1e2f53749b49e1e7ee5c --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_head.sdf @@ -0,0 +1,909 @@ + + + + + + 0.0 + + 0 + 0 + 0 + 0 + 0 + 0 + + + + + + astribot_torso_base + base + + + + -0.062784 0.007017 0.035375 0 -0 0 + 39.24781 + + 1.071997 + 0.015889 + -0.058447 + 1.218431 + -0.002015 + 1.489411 + + + + 0 0 -0.05 0 -0 0 + + + 0.1 + 0.3 + + + + + + 0 0 0.12 1.57079 1.57079 -3.14159 + astribot_torso_base + astribot_torso_link_1 + + 0 0 1 + + 0.0 + 1.5 + 420 + 7.87 + 100 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + -0.078229 0.033333 0.0 0 -0 0 + 9.2571 + + 0.386957 + 0.0513559 + 0.0 + 0.1483 + 0.0 + 0.374664 + + + + -0.15 0 0 0 1.5708 0 + + + 0.3 + 0.1 + + + + + + -0.38 0 0 0 -0 0 + astribot_torso_link_1 + astribot_torso_link_2 + + 0 0 1 + + -2.35 + 0.0 + 420 + 7.87 + 100 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + -0.23187 0.033333 0.0 0 -0 0 + 5.6183 + + 0.0082545 + 0.0011523 + 0.00035614 + 0.012677 + -5.8287e-05 + 0.017512 + + + + -0.15 0.03 0 0.25 1.5708 0 + + + 0.3 + 0.1 + + + + + + -0.39 0 0 0 -0 0 + astribot_torso_link_2 + astribot_torso_link_3 + + 0 0 1 + + 0.0 + 2.4 + 370 + 8.94 + 100 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0.133333 -0.086872 0.0 0 -0 0 + 0.49013 + + 0.00022212 + -2.6767e-07 + 4.3987e-07 + 0.00036522 + 3.8834e-07 + 0.00038039 + + + + -0.18 0.01 0 0 1.5708 0 + + + 0.35 + 0.09 + + + + + + 0 0 0 1.5708 0 -1.5708 + astribot_torso_link_3 + astribot_torso_link_4 + + 0 0 1 + + -1.58 + 1.58 + 370 + 8.94 + 100 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0.00476227 -4.56967e-05 0.24291257 0 -0 0 + 11.7741 + + 0.01657683 + -9.94098e-06 + -0.00010001 + 0.01490436 + 9.86752e-07 + 0.01106293 + + + + + -0 0.150002 0.399354 -0 -1.22173 -1.5708 + astribot_torso_link_4 + astribot_arm_left_link_1 + + 0 0 1 + + -3.087 + 1.517 + 112.5 + 10.47 + 100 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + -0.05454545 -0.03065188 -0.02912452 0 -0 0 + 0.65930388 + + 0.00064791 + 1.49e-06 + 1.33e-06 + 0.00065264 + 1.6e-06 + 0.00050137 + + + + + 0 0 0 1.5708 -0 0 + astribot_arm_left_link_1 + astribot_arm_left_link_2 + + 0 0 1 + + -1.517 + 0.55 + 112.5 + 10.47 + 100 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + -0.07272727 0.00957826 0.05428061 0 -0 0 + 1.60392141 + + 0.00360751 + -9.193e-05 + 7.764e-05 + 0.00283747 + 0.00054945 + 0.00172927 + + + + + 0 0.05 0 1.5708 0 -1.5708 + astribot_arm_left_link_2 + astribot_arm_left_link_3 + + 0 0 1 + + -3.08 + 1.517 + 56.25 + 10.47 + 100 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + -0.0054798 0.00064517 0.08585372 0 -0 0 + 2.2120539 + + 0.01752179 + 2.336e-05 + 0.00144018 + 0.01784671 + -3.027e-05 + 0.0021843 + + + + 0 0 0.15 0 -0 0 + + + 0.18 + 0.05 + + + + + + 0.03 0 0.309 -1.5708 0 0 + astribot_arm_left_link_3 + astribot_arm_left_link_4 + + 0 0 1 + + 0.0 + 2.55 + 36.96 + 19.34 + 100 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0.01577584 -0.11111111 0.01513556 0 -0 0 + 0.3292914 + + 0.00047693 + 6.35e-06 + 1.35e-06 + 0.00036801 + 7.05e-06 + 0.00050082 + + + + 0 0 0 0 -0 0 + + + 0.06 + + + + + + 0 0 0 1.5708 -0 0 + astribot_arm_left_link_4 + astribot_arm_left_link_5 + + 0 0 1 + + -2.37 + 2.37 + 36.96 + 34.53 + 100 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + -0.00984351 0.00748991 0.13684719 0 -0 0 + 1.11676558 + + 0.00454092 + 1.58e-06 + -5.91e-06 + 0.00438922 + -4.927e-05 + 0.00079442 + + + + 0 0 0.14 0 -0 0 + + + 0.14 + 0.05 + + + + + + 0 0 0.277 -1.5708 0 0 + astribot_arm_left_link_5 + astribot_arm_left_link_6 + + 0 0 1 + + -0.78 + 0.78 + 18 + 16.75 + 100 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0.01036298 -0.00408524 -0.04047131 0 -0 0 + 0.20218776 + + 0.00016474 + 7e-08 + 2.5e-07 + 0.00015608 + 1.8e-07 + 8.555e-05 + + + + + 0 0 0 3.14159 1.57079 3.14159 + astribot_arm_left_link_6 + astribot_arm_left_link_7 + + 0 0 1 + + -1.55 + 1.55 + 18 + 16.75 + 100 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0.00351446 -0.07525743 0.00311834 0 -0 0 + 0.80380588 + + 0.00013672 + 1.6e-07 + -2.4e-07 + 0.00010783 + -3.35e-06 + 5.858e-05 + + + + 0.006 0 0 0 -0 0 + + + 0.05 + + + + + + 0 0 0 0 -0 0 + astribot_arm_left_link_7 + astribot_arm_left_tool_link + + + 0 0 0 0 -0 0 + + 0 0 0 0 -0 0 + 0.0 + + 0.000 + 0 + 0 + 0.000 + 0 + 0.000 + + + + + 0 -0.15 0 0 0 0 + astribot_arm_left_tool_link + astribot_arm_left_end_effector + + + 0 0 0 0 0 0 + + 0 0 0 0 -0 0 + 0.0 + + 0.000 + 0 + 0 + 0.000 + 0 + 0.000 + + + + + -0 -0.150002 0.399354 0 -1.22173 1.5708 + astribot_torso_link_4 + astribot_arm_right_link_1 + + 0 0 1 + + -1.517 + 3.087 + 112.5 + 10.47 + 100 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + -0.05454545 -0.03065188 -0.02912452 0 -0 0 + 0.65930388 + + 0.00064791 + 1.49e-06 + 1.33e-06 + 0.00065264 + 1.6e-06 + 0.00050137 + + + + + 0 0 0 1.5708 -0 0 + astribot_arm_right_link_1 + astribot_arm_right_link_2 + + 0 0 1 + + -1.517 + 0.55 + 112.5 + 10.47 + 100 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + -0.07272727 0.00957826 -0.05428061 0 -0 0 + 1.60392141 + + 0.00394196 + -8.846e-05 + -3.742e-05 + 0.00316298 + -0.0007079 + 0.00177295 + + + + + 0 0.05 0 1.5708 0 -1.5708 + astribot_arm_right_link_2 + astribot_arm_right_link_3 + + 0 0 1 + + -1.517 + 3.08 + 56.25 + 10.47 + 100 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + -0.0054798 0.00064517 0.08585372 0 -0 0 + 2.2120539 + + 0.01752179 + 2.336e-05 + 0.00144018 + 0.01784671 + -3.027e-05 + 0.0021843 + + + + 0 0 0.15 0 -0 0 + + + 0.18 + 0.05 + + + + + + 0.03 0 0.309 -1.5708 0 0 + astribot_arm_right_link_3 + astribot_arm_right_link_4 + + 0 0 1 + + 0.0 + 2.55 + 36.96 + 19.34 + 100 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0.01577584 -0.11111111 0.01513556 0 -0 0 + 0.3292914 + + 0.00047693 + 6.35e-06 + 1.35e-06 + 0.00036801 + 7.05e-06 + 0.00050082 + + + + 0 0 0 0 -0 0 + + + 0.06 + + + + + + 0 0 0 1.5708 -0 0 + astribot_arm_right_link_4 + astribot_arm_right_link_5 + + 0 0 1 + + -2.37 + 2.37 + 36.96 + 34.53 + 100 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + -0.00984351 0.00748991 0.13684719 0 -0 0 + 1.11676558 + + 0.00454092 + 1.58e-06 + -5.91e-06 + 0.00438922 + -4.927e-05 + 0.00079442 + + + + 0 0 0.14 0 -0 0 + + + 0.14 + 0.05 + + + + + + 0 0 0.277 -1.5708 0 0 + astribot_arm_right_link_5 + astribot_arm_right_link_6 + + 0 0 1 + + -0.78 + 0.78 + 18 + 16.75 + 100 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0.01036298 -0.00408524 -0.04047131 0 -0 0 + 0.20218776 + + 0.00016474 + 7e-08 + 2.5e-07 + 0.00015608 + 1.8e-07 + 8.555e-05 + + + + + 0 0 0 3.14159 1.57079 3.14159 + astribot_arm_right_link_6 + astribot_arm_right_link_7 + + 0 0 1 + + -1.55 + 1.55 + 18 + 16.75 + 100 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0.00351446 -0.07525743 0.00311834 0 -0 0 + 0.80380588 + + 0.00013672 + 1.6e-07 + -2.4e-07 + 0.00010783 + -3.35e-06 + 5.858e-05 + + + + 0.006 0 0 0 -0 0 + + + 0.05 + + + + + + 0 0 0 0 -0 0 + astribot_arm_right_link_7 + astribot_arm_right_tool_link + + + 0 0 0 0 -0 0 + + 0 0 0 0 -0 0 + 0.0 + + 0.000 + 0 + 0 + 0.000 + 0 + 0.000 + + + + + 0 -0.15 0 0 0 0 + astribot_arm_right_tool_link + astribot_arm_right_end_effector + + + 0 0 0 0 0 0 + + 0 0 0 0 -0 0 + 0.0 + + 0.000 + 0 + 0 + 0.000 + 0 + 0.000 + + + + + 0 0 0.46765 0 -0 0 + astribot_torso_link_4 + astribot_head_link_1 + + 0 0 1 + + -1.6 + 1.6 + 21.28 + 15.11 + 100 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0.07444791 0.03404337 -0.14889563 0 -0 0 + 0.1868499 + + 4.567e-05 + 3e-08 + 4e-08 + 4.789e-05 + -9.1e-07 + 3.779e-05 + + + + + 0 0 0 -1.5708 0 0 + astribot_head_link_1 + astribot_head_link_2 + + 0 0 1 + + -1 + 1 + 21.28 + 15.11 + 100 + + + 0 + 0 + + + + + 0 0 0 0 -0 0 + + 0.02119279 -0.19825652 -0.00084482 0 -0 0 + 0.87099978 + + 0.0055566 + -0.000416 + -3.6e-07 + 0.00151908 + -0.00012043 + 0.00544493 + + + + 0 -0.15 0 0 -0 0 + + + 0.11 + + + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_head.urdf b/assets/robots/astribot_s1/source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_head.urdf new file mode 100644 index 0000000000000000000000000000000000000000..6c32a4750d2d90fd33ef243302c119aa0bfcc539 --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_head.urdf @@ -0,0 +1,685 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/robots/astribot_s1/source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf b/assets/robots/astribot_s1/source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf new file mode 100644 index 0000000000000000000000000000000000000000..f6728e54c8cc8eea140a0845843a3910d49e6dd7 --- /dev/null +++ b/assets/robots/astribot_s1/source/astribot_descriptions/urdf/astribot_s1_urdf/astribot_whole_body_with_wheel.urdf @@ -0,0 +1,749 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/robots/astribot_s1/source_visual_clearances.json b/assets/robots/astribot_s1/source_visual_clearances.json new file mode 100644 index 0000000000000000000000000000000000000000..21ba1259e4bd9358520cf725cc2241fa4d3c4366 --- /dev/null +++ b/assets/robots/astribot_s1/source_visual_clearances.json @@ -0,0 +1,34 @@ +[ + { + "bodies": [ + "astribot_torso_link_3", + "astribot_arm_left_link_1" + ], + "intersects": false, + "distance_m": 0.2730469810469051 + }, + { + "bodies": [ + "astribot_torso_link_3", + "astribot_arm_right_link_1" + ], + "intersects": false, + "distance_m": 0.2729868688382309 + }, + { + "bodies": [ + "astribot_torso_link_4", + "astribot_arm_left_link_2" + ], + "intersects": false, + "distance_m": 0.0003734529841029955 + }, + { + "bodies": [ + "astribot_torso_link_4", + "astribot_arm_right_link_2" + ], + "intersects": false, + "distance_m": 0.0003974994267346765 + } +] \ No newline at end of file diff --git a/assets/robots/astribot_s1/usd/.asset_hash b/assets/robots/astribot_s1/usd/.asset_hash new file mode 100644 index 0000000000000000000000000000000000000000..a526da0e26a6e8233a339a519633b9b4e965bd78 --- /dev/null +++ b/assets/robots/astribot_s1/usd/.asset_hash @@ -0,0 +1 @@ +53889d5f878f13faf390f888ddf06cb0 \ No newline at end of file diff --git a/assets/robots/astribot_s1/usd/config.yaml b/assets/robots/astribot_s1/usd/config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..eb0dbe0420b10a583d76d2331483653c285183c6 --- /dev/null +++ b/assets/robots/astribot_s1/usd/config.yaml @@ -0,0 +1,23 @@ +asset_path: /workspace/yifei/workstation-embodiments/robolab_bimanual/assets/robots/astribot_s1/robot_import.urdf +usd_dir: /workspace/yifei/workstation-embodiments/robolab_bimanual/assets/robots/astribot_s1/usd +usd_file_name: robot.usd +force_usd_conversion: true +make_instanceable: false +fix_base: true +root_link_name: null +link_density: 0.0 +merge_fixed_joints: false +convert_mimic_joints_to_normal_joints: true +joint_drive: + drive_type: force + target_type: position + gains: + stiffness: 0.0 + damping: 0.0 +collider_type: convex_decomposition +self_collision: true +replace_cylinders_with_capsules: false +collision_from_visuals: false +## +# Generated by UrdfConverter on 2026-11-07 at 23:34:07. +## diff --git a/assets/robots/astribot_s1/usd/configuration/materials/textures/logo_texture.png b/assets/robots/astribot_s1/usd/configuration/materials/textures/logo_texture.png new file mode 100644 index 0000000000000000000000000000000000000000..ecfb198b524bb29ebcb8e18497bd0236d3c52b84 Binary files /dev/null and b/assets/robots/astribot_s1/usd/configuration/materials/textures/logo_texture.png differ diff --git a/assets/robots/astribot_s1/usd/configuration/robot_physics.usd b/assets/robots/astribot_s1/usd/configuration/robot_physics.usd new file mode 100644 index 0000000000000000000000000000000000000000..6f81c45f63aa1f97922fe72091d218a1df1b826a Binary files /dev/null and b/assets/robots/astribot_s1/usd/configuration/robot_physics.usd differ diff --git a/assets/robots/astribot_s1/usd/configuration/robot_robot.usd b/assets/robots/astribot_s1/usd/configuration/robot_robot.usd new file mode 100644 index 0000000000000000000000000000000000000000..a351bd8e136fe507da3e0df1924fc70738d2170b Binary files /dev/null and b/assets/robots/astribot_s1/usd/configuration/robot_robot.usd differ diff --git a/assets/robots/astribot_s1/usd/configuration/robot_sensor.usd b/assets/robots/astribot_s1/usd/configuration/robot_sensor.usd new file mode 100644 index 0000000000000000000000000000000000000000..2023fc87f34f9a64c967db8e10707304e3e725b1 Binary files /dev/null and b/assets/robots/astribot_s1/usd/configuration/robot_sensor.usd differ diff --git a/assets/robots/astribot_s1/usd/robot.usd b/assets/robots/astribot_s1/usd/robot.usd new file mode 100644 index 0000000000000000000000000000000000000000..03392386f0bdc50d6c99187a6181ccb2c48e5611 Binary files /dev/null and b/assets/robots/astribot_s1/usd/robot.usd differ diff --git a/assets/robots/galaxea_a1z/benchmark_head/baseline_v17.json b/assets/robots/galaxea_a1z/benchmark_head/baseline_v17.json new file mode 100644 index 0000000000000000000000000000000000000000..499a9d6cf3e4d702a4925e1763c7d149d7b6308f --- /dev/null +++ b/assets/robots/galaxea_a1z/benchmark_head/baseline_v17.json @@ -0,0 +1,1166 @@ +{ + "profile": { + "id": "galaxea_a1z", + "label": "Galaxea A1Z + G1Z \u00b7 Dual Arm", + "source_robot": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "usd": "../galaxea_a1z/usd/robot.usd", + "native_root": "/galaxea_a1z_benchmark", + "source_revision": "55d4850dcdcc8b1c2e0f7655296344a4e9dd1a30", + "base_position": [ + -0.04, + 0.0, + 0.08 + ], + "ground_offset": 0.7769999999999999, + "home": { + "left_arm_joint1": 0.05992097804404975, + "left_arm_joint2": 0.9754452387743513, + "left_arm_joint3": -1.148199497118911, + "left_arm_joint4": 0.6994880040087724, + "left_arm_joint5": 0.10392874645545758, + "left_arm_joint6": -0.060256720183872764, + "left_gripper_finger_left_joint": 0.048, + "left_gripper_finger_rIght_joint": -0.048, + "right_arm_joint1": -0.059920978014919454, + "right_arm_joint2": 0.9754452371570582, + "right_arm_joint3": -1.1481994941052112, + "right_arm_joint4": 0.6994880019396595, + "right_arm_joint5": -0.10392874658705627, + "right_arm_joint6": 0.060256720187681787, + "right_gripper_finger_left_joint": 0.048, + "right_gripper_finger_rIght_joint": -0.048 + }, + "joints": { + "left_arm_joint1": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 20.0, + "velocity": 1.5, + "mimic": false + }, + "left_arm_joint2": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 25.0, + "velocity": 1.5, + "mimic": false + }, + "left_arm_joint3": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 20.0, + "velocity": 1.5, + "mimic": false + }, + "left_arm_joint4": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 9.0, + "velocity": 1.5, + "mimic": false + }, + "left_arm_joint5": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 3.5, + "velocity": 1.5, + "mimic": false + }, + "left_arm_joint6": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 3.5, + "velocity": 1.5, + "mimic": false + }, + "left_gripper_finger_left_joint": { + "type": "linear", + "stiffness": 1200.0, + "damping": 20.0, + "effort": 3.0, + "velocity": 0.1, + "mimic": false + }, + "left_gripper_finger_rIght_joint": { + "type": "linear", + "stiffness": 1200.0, + "damping": 20.0, + "effort": 3.0, + "velocity": 0.1, + "mimic": true + }, + "right_arm_joint1": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 20.0, + "velocity": 1.5, + "mimic": false + }, + "right_arm_joint2": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 25.0, + "velocity": 1.5, + "mimic": false + }, + "right_arm_joint3": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 20.0, + "velocity": 1.5, + "mimic": false + }, + "right_arm_joint4": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 9.0, + "velocity": 1.5, + "mimic": false + }, + "right_arm_joint5": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 3.5, + "velocity": 1.5, + "mimic": false + }, + "right_arm_joint6": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 3.5, + "velocity": 1.5, + "mimic": false + }, + "right_gripper_finger_left_joint": { + "type": "linear", + "stiffness": 1200.0, + "damping": 20.0, + "effort": 3.0, + "velocity": 0.1, + "mimic": false + }, + "right_gripper_finger_rIght_joint": { + "type": "linear", + "stiffness": 1200.0, + "damping": 20.0, + "effort": 3.0, + "velocity": 0.1, + "mimic": true + } + }, + "arms": { + "left": { + "asset": "robot", + "joints": [ + "left_arm_joint1", + "left_arm_joint2", + "left_arm_joint3", + "left_arm_joint4", + "left_arm_joint5", + "left_arm_joint6" + ], + "tcp_body": "left_arm_link6", + "tcp_offset_pos": [ + 0.1777, + 0.0, + 0.0 + ], + "tcp_offset_quat": [ + 0.7071067811865477, + 0.0, + 0.7071067811865475, + 0.0 + ], + "master_joint": "left_gripper_finger_left_joint", + "gripper_open": 0.048, + "gripper_closed": 0.0, + "contact_bodies": [ + "left_gripper_finger_left_link", + "left_gripper_finger_rIght_link" + ], + "source_tcp": "left_benchmark_tcp", + "home_target_world": [ + 0.3, + 0.24, + 0.38 + ], + "home_orientation_wxyz": [ + 0.5000000000000001, + 0.0, + 0.8660254037844386, + 0.0 + ] + }, + "right": { + "asset": "robot", + "joints": [ + "right_arm_joint1", + "right_arm_joint2", + "right_arm_joint3", + "right_arm_joint4", + "right_arm_joint5", + "right_arm_joint6" + ], + "tcp_body": "right_arm_link6", + "tcp_offset_pos": [ + 0.1777, + 0.0, + 0.0 + ], + "tcp_offset_quat": [ + 0.7071067811865477, + 0.0, + 0.7071067811865475, + 0.0 + ], + "master_joint": "right_gripper_finger_left_joint", + "gripper_open": 0.048, + "gripper_closed": 0.0, + "contact_bodies": [ + "right_gripper_finger_left_link", + "right_gripper_finger_rIght_link" + ], + "source_tcp": "right_benchmark_tcp", + "home_target_world": [ + 0.3, + -0.24, + 0.38 + ], + "home_orientation_wxyz": [ + 0.5000000000000001, + 0.0, + 0.8660254037844386, + 0.0 + ] + } + }, + "cameras": { + "left_wrist_camera": { + "parent_body": "left_arm_link6", + "position": [ + 0.12269999999999995, + 0.0, + 0.12000000000000001 + ], + "quaternion_wxyz": [ + -0.6678408913172661, + -0.23235434982922035, + 0.23235434982922032, + 0.667840891317266 + ], + "focal_length": 24.0, + "horizontal_aperture": 36.0, + "vertical_aperture": 27.0, + "clipping_range": [ + 0.01, + 10.0 + ], + "source_prim": "benchmark virtual wrist camera" + }, + "right_wrist_camera": { + "parent_body": "right_arm_link6", + "position": [ + 0.12269999999999995, + 0.0, + 0.12000000000000001 + ], + "quaternion_wxyz": [ + -0.6678408913172661, + -0.23235434982922035, + 0.23235434982922032, + 0.667840891317266 + ], + "focal_length": 24.0, + "horizontal_aperture": 36.0, + "vertical_aperture": 27.0, + "clipping_range": [ + 0.01, + 10.0 + ], + "source_prim": "benchmark virtual wrist camera" + }, + "head_camera": { + "parent_body": "benchmark_base", + "position": [ + -0.060000000000000005, + 0.0, + 0.8 + ], + "quaternion_wxyz": [ + -0.6752854811484117, + -0.20973678492376605, + 0.20973678492376605, + 0.6752854811484117 + ], + "focal_length": 20.0, + "horizontal_aperture": 36.0, + "vertical_aperture": 27.0, + "clipping_range": [ + 0.01, + 10.0 + ], + "source_prim": "benchmark virtual head camera; manufacturer deployment reference" + } + }, + "action_frame": "benchmark_base; X forward, Y left, Z up; absolute canonical TCP xyz + quaternion WXYZ; TCP +Z approach, closing local Y", + "support": null, + "platform": { + "usd": "platform/fixture.usd", + "source": "RoboLab assets/fixtures/franka_table.usd (same fixture as DROID)", + "dimensions_m": [ + 0.3, + 0.74 + ], + "center_xy_m": [ + -0.02, + 0.0 + ], + "height_m": 0.7769999999999999, + "gantry": "virtual benchmark cameras; no source camera mount geometry" + }, + "source_arm_mounts": { + "left": [ + [ + 0.9838436927881214, + 0.17902957342582415, + 0.0, + 0.0 + ], + [ + -0.17902957342582415, + 0.9838436927881214, + -0.0, + 0.26 + ], + [ + -0.0, + 0.0, + 1.0, + 0.0 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ], + "right": [ + [ + 0.9838436927881214, + -0.17902957342582415, + 0.0, + 0.0 + ], + [ + 0.17902957342582415, + 0.9838436927881214, + 0.0, + -0.26 + ], + [ + 0.0, + 0.0, + 1.0, + 0.0 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + "camera_note": "One fixed rear-centre head camera and two virtual wrist cameras; ideal benchmark intrinsics. Manufacturer deployment references guide the head pose; no measured real-world calibration.", + "gripper_note": "Original source parallel gripper meshes, coordinates and -1 mimic preserved; each hand has an independent master.", + "model_note": "Two complete native single-arm assemblies mounted on a common benchmark root using proper rotations. Low DROID-derived metal platform; unchanged task tables.", + "placement_note": "Common base x=-0.04 m; DROID platform front x=0.09 m stays 0.048405 m behind the nearest task-table front x=0.138405 m. Ready TCP world targets are unchanged and solved again within native joint limits.", + "tcp_note": "Geometry-derived midpoint of G1Z distal finger pads, arm_link6 X=177.7 mm (finger origin 72.7 mm plus 105 mm pad coordinate); approach +X and closing Y. Original rIght capitalization is preserved.", + "drive_overrides": [], + "internal_collision_filters": [ + { + "bodies": [ + "left_gripper_finger_left_link", + "left_gripper_finger_rIght_link" + ], + "reason": "The source-coupled opposing fingers intersect/touch at the closed hard stop; filter only the internal finger pair, retaining all external contacts." + }, + { + "bodies": [ + "left_arm_link4", + "left_arm_link6" + ], + "reason": "Native adjacent-wrist housings separated by arm_link5 overlap about 1.0-1.5 mm in source zero and ready poses (triangle-mesh FCL); preserve source geometry and filter only the mechanically adjacent housing pair." + }, + { + "bodies": [ + "right_gripper_finger_left_link", + "right_gripper_finger_rIght_link" + ], + "reason": "The source-coupled opposing fingers intersect/touch at the closed hard stop; filter only the internal finger pair, retaining all external contacts." + }, + { + "bodies": [ + "right_arm_link4", + "right_arm_link6" + ], + "reason": "Native adjacent-wrist housings separated by arm_link5 overlap about 1.0-1.5 mm in source zero and ready poses (triangle-mesh FCL); preserve source geometry and filter only the mechanically adjacent housing pair." + } + ], + "internal_collision_filter_notes": [ + { + "pair": [ + "left_gripper_finger_left_link", + "left_gripper_finger_rIght_link" + ], + "reason": "The source-coupled opposing fingers intersect/touch at the closed hard stop; filter only the internal finger pair, retaining all external contacts." + }, + { + "pair": [ + "left_arm_link4", + "left_arm_link6" + ], + "reason": "Native adjacent-wrist housings separated by arm_link5 overlap about 1.0-1.5 mm in source zero and ready poses (triangle-mesh FCL); preserve source geometry and filter only the mechanically adjacent housing pair." + }, + { + "pair": [ + "right_gripper_finger_left_link", + "right_gripper_finger_rIght_link" + ], + "reason": "The source-coupled opposing fingers intersect/touch at the closed hard stop; filter only the internal finger pair, retaining all external contacts." + }, + { + "pair": [ + "right_arm_link4", + "right_arm_link6" + ], + "reason": "Native adjacent-wrist housings separated by arm_link5 overlap about 1.0-1.5 mm in source zero and ready poses (triangle-mesh FCL); preserve source geometry and filter only the mechanically adjacent housing pair." + } + ], + "collision_decomposition_overrides": [ + { + "bodies": [ + "left_base_link", + "left_arm_link2" + ], + "settings": { + "shrink_wrap": true, + "error_percentage": 1.0, + "max_convex_hulls": 64, + "voxel_resolution": 1000000, + "hull_vertex_limit": 128, + "min_thickness": 0.0002 + }, + "reason": "Native source base and arm_link2 retain approximately 5.50-5.59 mm clearance in zero, ready and low-grasp poses; their exact enclosing convex hulls also remain clear. Imported untuned decomposition produced large base-arm contacts. Use shrink-wrapped finer decomposition to limit inflation outside the source surfaces without a collision filter.", + "source_distance_evidence": { + "method": "Source URDF FK; python-fcl native triangle meshes and exact enclosing convex hulls. Distances in metres; negative signed distance denotes intersection.", + "canonical_urdf_sha256": "fcd2cbe2ed41e3bc62d5cd17dde4bbeff1ccca6c7090710df71987b91fd0249e", + "source_collision_meshes": [ + { + "body": "left_base_link", + "path": "source/A1Z/A1Z_G1Z/meshes/base_link.STL", + "sha256": "3ad75b62388108b0792028dfaadb65e8cbb7e8698042d5c270f566808a479345" + }, + { + "body": "left_arm_link2", + "path": "source/A1Z/A1Z_G1Z/meshes/arm_link2.STL", + "sha256": "38735343df6f709e83edc91432ad7880456cdc32af9f50df651d7eaa62cdb06f" + } + ], + "poses": [ + { + "pose": "source_zero", + "joints": { + "left_arm_joint1": 0.0, + "left_arm_joint2": 0.0, + "left_arm_joint3": 0.0, + "left_arm_joint4": 0.0, + "left_arm_joint5": 0.0, + "left_arm_joint6": 0.0, + "left_gripper_finger_left_joint": 0.0, + "left_gripper_finger_rIght_joint": 0.0 + }, + "native_mesh": { + "intersects": false, + "signed_distance_m": 0.005499997392296785, + "max_contact_depth_m": 0.0 + }, + "convex_mesh": { + "intersects": false, + "signed_distance_m": 0.005499997392296785, + "max_contact_depth_m": 0.0 + } + }, + { + "pose": "ready", + "joints": { + "left_arm_joint1": 0.05992097804404975, + "left_arm_joint2": 0.9754452387743513, + "left_arm_joint3": -1.148199497118911, + "left_arm_joint4": 0.6994880040087724, + "left_arm_joint5": 0.10392874645545758, + "left_arm_joint6": -0.060256720183872764, + "left_gripper_finger_left_joint": 0.048, + "left_gripper_finger_rIght_joint": -0.048 + }, + "native_mesh": { + "intersects": false, + "signed_distance_m": 0.005516987858247186, + "max_contact_depth_m": 0.0 + }, + "convex_mesh": { + "intersects": false, + "signed_distance_m": 0.005507239095790785, + "max_contact_depth_m": 0.0 + } + }, + { + "pose": "low_tabletop_grasp", + "joints": { + "left_arm_joint1": 0.03810294539582347, + "left_arm_joint2": 2.244686542603657, + "left_arm_joint3": -1.6855873086008837, + "left_arm_joint4": 1.0116970926999886, + "left_arm_joint5": 8.486917684097946e-15, + "left_arm_joint6": -0.14189705460416746, + "left_gripper_finger_left_joint": 0.048, + "left_gripper_finger_rIght_joint": -0.048 + }, + "native_mesh": { + "intersects": false, + "signed_distance_m": 0.005591606784263302, + "max_contact_depth_m": 0.0 + }, + "convex_mesh": { + "intersects": false, + "signed_distance_m": 0.005505637776655331, + "max_contact_depth_m": 0.0 + } + } + ], + "physics_validation": "pending reconversion and runtime contact audit" + } + }, + { + "bodies": [ + "right_base_link", + "right_arm_link2" + ], + "settings": { + "shrink_wrap": true, + "error_percentage": 1.0, + "max_convex_hulls": 64, + "voxel_resolution": 1000000, + "hull_vertex_limit": 128, + "min_thickness": 0.0002 + }, + "reason": "Native source base and arm_link2 retain approximately 5.50-5.59 mm clearance in zero, ready and low-grasp poses; their exact enclosing convex hulls also remain clear. Imported untuned decomposition produced large base-arm contacts. Use shrink-wrapped finer decomposition to limit inflation outside the source surfaces without a collision filter.", + "source_distance_evidence": { + "method": "Source URDF FK; python-fcl native triangle meshes and exact enclosing convex hulls. Distances in metres; negative signed distance denotes intersection.", + "canonical_urdf_sha256": "fcd2cbe2ed41e3bc62d5cd17dde4bbeff1ccca6c7090710df71987b91fd0249e", + "source_collision_meshes": [ + { + "body": "right_base_link", + "path": "source/A1Z/A1Z_G1Z/meshes/base_link.STL", + "sha256": "3ad75b62388108b0792028dfaadb65e8cbb7e8698042d5c270f566808a479345" + }, + { + "body": "right_arm_link2", + "path": "source/A1Z/A1Z_G1Z/meshes/arm_link2.STL", + "sha256": "38735343df6f709e83edc91432ad7880456cdc32af9f50df651d7eaa62cdb06f" + } + ], + "poses": [ + { + "pose": "source_zero", + "joints": { + "right_arm_joint1": 0.0, + "right_arm_joint2": 0.0, + "right_arm_joint3": 0.0, + "right_arm_joint4": 0.0, + "right_arm_joint5": 0.0, + "right_arm_joint6": 0.0, + "right_gripper_finger_left_joint": 0.0, + "right_gripper_finger_rIght_joint": 0.0 + }, + "native_mesh": { + "intersects": false, + "signed_distance_m": 0.005499997392296785, + "max_contact_depth_m": 0.0 + }, + "convex_mesh": { + "intersects": false, + "signed_distance_m": 0.005499997392296785, + "max_contact_depth_m": 0.0 + } + }, + { + "pose": "ready", + "joints": { + "right_arm_joint1": -0.059920978014919454, + "right_arm_joint2": 0.9754452371570582, + "right_arm_joint3": -1.1481994941052112, + "right_arm_joint4": 0.6994880019396595, + "right_arm_joint5": -0.10392874658705627, + "right_arm_joint6": 0.060256720187681787, + "right_gripper_finger_left_joint": 0.048, + "right_gripper_finger_rIght_joint": -0.048 + }, + "native_mesh": { + "intersects": false, + "signed_distance_m": 0.005504147857230052, + "max_contact_depth_m": 0.0 + }, + "convex_mesh": { + "intersects": false, + "signed_distance_m": 0.005503230016466494, + "max_contact_depth_m": 0.0 + } + }, + { + "pose": "low_tabletop_grasp", + "joints": { + "right_arm_joint1": -0.03810294539591964, + "right_arm_joint2": 2.2446865426042817, + "right_arm_joint3": -1.6855873086018913, + "right_arm_joint4": 1.011697092700421, + "right_arm_joint5": -1.6145843350605364e-14, + "right_arm_joint6": 0.14189705460409896, + "right_gripper_finger_left_joint": 0.048, + "right_gripper_finger_rIght_joint": -0.048 + }, + "native_mesh": { + "intersects": false, + "signed_distance_m": 0.005573826685983732, + "max_contact_depth_m": 0.0 + }, + "convex_mesh": { + "intersects": false, + "signed_distance_m": 0.005505637776655692, + "max_contact_depth_m": 0.0 + } + } + ], + "physics_validation": "pending reconversion and runtime contact audit" + } + } + ], + "visual_material_overrides": [ + { + "material_name": "left_base_link_source_material_0", + "roughness": 0.35, + "metallic": 0.65, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "left_arm_link1_source_material_0", + "roughness": 0.36, + "metallic": 0.6, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "left_arm_link2_source_material_0", + "roughness": 0.38, + "metallic": 0.55, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "left_arm_link3_source_material_0", + "roughness": 0.29, + "metallic": 0.75, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "left_arm_link4_source_material_0", + "roughness": 0.36, + "metallic": 0.55, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "left_arm_link5_source_material_0", + "roughness": 0.37, + "metallic": 0.55, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "left_arm_link6_source_material_0", + "roughness": 0.34, + "metallic": 0.55, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "left_gripper_finger_left_link_source_material_0", + "roughness": 0.65, + "metallic": 0.0, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "left_gripper_finger_rIght_link_source_material_0", + "roughness": 0.65, + "metallic": 0.0, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "right_base_link_source_material_0", + "roughness": 0.35, + "metallic": 0.65, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "right_arm_link1_source_material_0", + "roughness": 0.36, + "metallic": 0.6, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "right_arm_link2_source_material_0", + "roughness": 0.38, + "metallic": 0.55, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "right_arm_link3_source_material_0", + "roughness": 0.29, + "metallic": 0.75, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "right_arm_link4_source_material_0", + "roughness": 0.36, + "metallic": 0.55, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "right_arm_link5_source_material_0", + "roughness": 0.37, + "metallic": 0.55, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "right_arm_link6_source_material_0", + "roughness": 0.34, + "metallic": 0.55, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "right_gripper_finger_left_link_source_material_0", + "roughness": 0.65, + "metallic": 0.0, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "right_gripper_finger_rIght_link_source_material_0", + "roughness": 0.65, + "metallic": 0.0, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + } + ], + "appearance_refinement": { + "reference": { + "pages": [ + "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "https://galaxea-ai.com/en/news/galaxea-launches-lemo.html" + ], + "images": [ + "https://galaxea-dynamics.com/cdn/shop/files/A1Z-Main-New.jpg?v=1793589921&width=1920", + "https://galaxea-dynamics.com/cdn/shop/files/A1Z-Gripper_Open.jpg?v=1791598979&width=1920", + "https://galaxea-ai.com/en/images/pc/product4/color.png" + ], + "observation": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "camera_basis": "Official LEMO deployment demonstrates two A1Z arms with wrist cameras and a raised central camera. Only that mounting arrangement informs this virtual camera; this existing benchmark assembly is not represented as a factory LEMO model.", + "eye_world_m": [ + -0.1, + 0.0, + 0.88 + ], + "target_world_m": [ + 0.45, + 0.0, + 0.08 + ], + "focal_length_mm": 20.0 + }, + "note": "Manufacturer-photo appearance and head-view refinement, accessed 2026-11-07. Colors and PBR values are visual approximations, not measured colorimetry. Camera pose and ideal pinhole intrinsics are benchmark choices: no real-hardware intrinsic/extrinsic calibration, distortion calibration or color-chart calibration was supplied. Native source scale, geometry, joints, tools, fixed bases and task scenes are retained; benchmark control and camera sampling use 30 Hz.", + "per_visual_materials": [ + { + "body": "left_base_link", + "mesh": "source/A1Z/A1Z_G1Z/meshes/base_link.STL", + "material_name": "left_base_link_source_material_0", + "rgba": [ + 0.025, + 0.029, + 0.035, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_arm_link1", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link1.STL", + "material_name": "left_arm_link1_source_material_0", + "rgba": [ + 0.045, + 0.05, + 0.06, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_arm_link2", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link2.STL", + "material_name": "left_arm_link2_source_material_0", + "rgba": [ + 0.07, + 0.078, + 0.09, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_arm_link3", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link3.STL", + "material_name": "left_arm_link3_source_material_0", + "rgba": [ + 0.42, + 0.45, + 0.5, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_arm_link4", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link4.STL", + "material_name": "left_arm_link4_source_material_0", + "rgba": [ + 0.035, + 0.04, + 0.05, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_arm_link5", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link5.STL", + "material_name": "left_arm_link5_source_material_0", + "rgba": [ + 0.045, + 0.05, + 0.06, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_arm_link6", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link6.STL", + "material_name": "left_arm_link6_source_material_0", + "rgba": [ + 0.08, + 0.088, + 0.1, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_gripper_finger_left_link", + "mesh": "source/A1Z/A1Z_G1Z/meshes/gripper_finger_left_link.STL", + "material_name": "left_gripper_finger_left_link_source_material_0", + "rgba": [ + 0.025, + 0.029, + 0.035, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_gripper_finger_rIght_link", + "mesh": "source/A1Z/A1Z_G1Z/meshes/gripper_finger_rIght_link.STL", + "material_name": "left_gripper_finger_rIght_link_source_material_0", + "rgba": [ + 0.025, + 0.029, + 0.035, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_base_link", + "mesh": "source/A1Z/A1Z_G1Z/meshes/base_link.STL", + "material_name": "right_base_link_source_material_0", + "rgba": [ + 0.025, + 0.029, + 0.035, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_arm_link1", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link1.STL", + "material_name": "right_arm_link1_source_material_0", + "rgba": [ + 0.045, + 0.05, + 0.06, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_arm_link2", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link2.STL", + "material_name": "right_arm_link2_source_material_0", + "rgba": [ + 0.07, + 0.078, + 0.09, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_arm_link3", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link3.STL", + "material_name": "right_arm_link3_source_material_0", + "rgba": [ + 0.42, + 0.45, + 0.5, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_arm_link4", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link4.STL", + "material_name": "right_arm_link4_source_material_0", + "rgba": [ + 0.035, + 0.04, + 0.05, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_arm_link5", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link5.STL", + "material_name": "right_arm_link5_source_material_0", + "rgba": [ + 0.045, + 0.05, + 0.06, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_arm_link6", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link6.STL", + "material_name": "right_arm_link6_source_material_0", + "rgba": [ + 0.08, + 0.088, + 0.1, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_gripper_finger_left_link", + "mesh": "source/A1Z/A1Z_G1Z/meshes/gripper_finger_left_link.STL", + "material_name": "right_gripper_finger_left_link_source_material_0", + "rgba": [ + 0.025, + 0.029, + 0.035, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_gripper_finger_rIght_link", + "mesh": "source/A1Z/A1Z_G1Z/meshes/gripper_finger_rIght_link.STL", + "material_name": "right_gripper_finger_rIght_link_source_material_0", + "rgba": [ + 0.025, + 0.029, + 0.035, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + } + ] + } + }, + "hashes": { + "profile.json": "5f42fe127780b672938a955176d85d4f5f26bbb5bf2ea16ebd32daa1fbcf7dfe", + "robot.urdf": "cae0d562badb65d26d3692a463d7409060d888cf58932d3ab61e4c503fb9af63", + "provenance.json": "d651a42c08ac0bb52f4fd5de053a1c38807e3f183c11a36e4a20fe911e1bbc9c" + } +} diff --git a/assets/robots/galaxea_a1z/benchmark_head/bolts.stl b/assets/robots/galaxea_a1z/benchmark_head/bolts.stl new file mode 100644 index 0000000000000000000000000000000000000000..ac9e3ed20c4e34673818d3e05a51d992ad69619c Binary files /dev/null and b/assets/robots/galaxea_a1z/benchmark_head/bolts.stl differ diff --git a/assets/robots/galaxea_a1z/benchmark_head/evidence/cpu_geometry_checker.py b/assets/robots/galaxea_a1z/benchmark_head/evidence/cpu_geometry_checker.py new file mode 100644 index 0000000000000000000000000000000000000000..9d87230dde857fef2219c3531c0fd08c4fdbb30a --- /dev/null +++ b/assets/robots/galaxea_a1z/benchmark_head/evidence/cpu_geometry_checker.py @@ -0,0 +1,297 @@ +"""Add a documented central ZED X Mini retrofit to three compact benchmarks. + +CPU-only, idempotent post-process after prepare_compact_dream_assets.py. +Preserves all original arm links/joints/materials, home, wrist cameras and30Hz. +Run with numpy/scipy/trimesh/python-fcl; --scene-check also needs standalone pxr. +Fresh conversion and actual camera/physics validation are still required. +""" +import argparse +import copy +import hashlib +import json +import math +import shutil +import urllib.request +import xml.etree.ElementTree as E +from pathlib import Path + +import numpy as np +import trimesh +from scipy.spatial.transform import Rotation +from prepare_compact_dream_assets import Kinematics, GeometryAudit, matrix, fixed, quaternion + +ROOT = Path(__file__).resolve().parents[2] +NAMES = ("metal_arm", "rebot_b601_dm", "galaxea_a1z") +DIAGNOSTICS = ROOT.parent / "diagnostics/embodiment_layout_v18" +PREFIX = "benchmark_head_" +REVISION = "126e47fe66af1ef850986f3383f24080b74fda9c" +SOURCE = "https://raw.githubusercontent.com/TrossenRobotics/trossen_arm_description/" + REVISION + "/" +SOURCE_FILES = { + "workbench.urdf": ("urdf/generated/workbench.urdf", "911584df6ba45b282d93c7fd3bf1f98653061298fc67cd48e58a8e8ebfffcc23"), + "zedxm.stl": ("meshes/peripherals/zedxm.stl", "44a0f81cf49fc6c21b909abd928bceba9d89e132ad16294538dea5d1a7e30711"), + "LICENSE": ("LICENSE", "110a998ebd9a901d31173892d43224f8f59f12ebfd6398b9f3dea0ee9a01ab16"), +} +EYE_WORLD = np.array([.03, 0., .56]) +TARGET_WORLD = np.array([.46, 0., .06]) +OPTICAL_POSITION = np.array([-.01, .025, .016]) +ROS_OPTICAL = matrix(rpy=(-math.pi / 2, 0., -math.pi / 2)) +GL_OPTICAL = ROS_OPTICAL @ matrix(rpy=(math.pi, 0., 0.)) +PROTECTED_FIELDS = ("home", "joints", "arms", "base_position", "base_quaternion", "ground_offset", + "internal_collision_filters", "collision_decomposition_overrides", "appearance_refinement") + + +def sha(path): + return hashlib.sha256(path.read_bytes()).hexdigest() + + +def write_json(path, data): + path.write_text(json.dumps(data, indent=2) + "\n") + + +def source_files(folder): + target = folder / "benchmark_head/source" + target.mkdir(parents=True, exist_ok=True) + records = [] + for name, (relative, digest) in SOURCE_FILES.items(): + path = target / name + if not path.exists(): + cached = DIAGNOSTICS / "source_camera" / name + path.write_bytes(cached.read_bytes() if cached.exists() else urllib.request.urlopen(SOURCE + relative, timeout=30).read()) + assert sha(path) == digest, path + records.append(dict(path=str(path.relative_to(folder)), source_url=SOURCE + relative, sha256=digest)) + return records + + +def add_mesh(link, filename, material, collision=True): + for tag in ("visual", "collision") if collision else ("visual",): + node = E.SubElement(link, tag) + E.SubElement(E.SubElement(node, "geometry"), "mesh", filename=filename) + if tag == "visual": + E.SubElement(node, "material", name=material) + + +def inertial(link, mass, xyz=(0., 0., 0.)): + node = E.SubElement(link, "inertial") + E.SubElement(node, "origin", xyz=" ".join(map(str, xyz)), rpy="0 0 0") + E.SubElement(node, "mass", value=str(mass)) + E.SubElement(node, "inertia", ixx="0.01", iyy="0.01", izz="0.01", ixy="0", ixz="0", iyz="0") + + +def box(extents, center): + mesh = trimesh.creation.box(extents=extents) + mesh.apply_translation(center) + return mesh + + +def cylinder_between(start, end, radius): + start, end = np.array(start), np.array(end) + mesh = trimesh.creation.cylinder(radius, height=float(np.linalg.norm(end-start)), sections=32) + transform = trimesh.geometry.align_vectors([0., 0., 1.], end-start) + transform[:3, 3] = (start+end)/2 + mesh.apply_transform(transform) + return mesh + + +def add_mount(root, folder, profile): + for child in list(root): + if child.get("name", "").startswith(PREFIX): + root.remove(child) + base = np.array(profile["base_position"]) + pitch = math.atan2(EYE_WORLD[2]-TARGET_WORLD[2], TARGET_WORLD[0]-EYE_WORLD[0]) + camera = matrix(rpy=(0., pitch, 0.)) + camera[:3, 3] = EYE_WORLD-base-camera[:3, :3] @ OPTICAL_POSITION + post_bottom = np.array([-.055, -.025, base[2]+.006])-base + post_top = np.array([-.055, -.025, .52])-base + rear_camera = camera[:3, 3]+camera[:3, :3] @ np.array([-.025, 0., .016]) + # Short centered support, foot plate, and rear bracket. None crosses the + # camera's forward optical volume; all are explicit benchmark geometry. + support = trimesh.util.concatenate([ + box([.08, .08, .006], post_bottom-[0., 0., .003]), + cylinder_between(post_bottom, post_top, .012), + cylinder_between(post_top, rear_camera, .009), + ]) + bolts = trimesh.util.concatenate([cylinder_between(post_bottom+[x, y, -.003], post_bottom+[x, y, .004], .004) + for x in (-.027, .027) for y in (-.027, .027)]) + for name, mesh in (("support.stl", support), ("bolts.stl", bolts)): + mesh.export(folder / "benchmark_head" / name) + for name, color in (("benchmark_head_mount_metal", ".42 .45 .48 1"), + ("benchmark_head_mount_bolts", ".04 .04 .04 1"), + ("benchmark_head_zed_source_gray", ".25 .25 .25 1")): + E.SubElement(E.SubElement(root, "material", name=name), "color", rgba=color) + post = E.SubElement(root, "link", name="benchmark_head_support") + inertial(post, .75, (post_bottom+post_top)/2) + add_mesh(post, "benchmark_head/support.stl", "benchmark_head_mount_metal") + add_mesh(post, "benchmark_head/bolts.stl", "benchmark_head_mount_bolts", collision=False) + fixed(root, "benchmark_head_support_joint", "benchmark_base", "benchmark_head_support", np.eye(4)) + head = E.SubElement(root, "link", name="benchmark_head_camera_link") + inertial(head, .15, (0., 0., .016)) + add_mesh(head, "benchmark_head/source/zedxm.stl", "benchmark_head_zed_source_gray") + fixed(root, "benchmark_head_camera_mount_joint", "benchmark_base", "benchmark_head_camera_link", camera) + fixed(root, "benchmark_head_optical_joint", "benchmark_head_camera_link", "benchmark_head_optical_frame", + matrix(OPTICAL_POSITION) @ ROS_OPTICAL, add_link=True) + return camera, pitch + + +def camera_evidence(root, folder, profile): + kin = Kinematics(root) + audit = GeometryAudit(root, folder, kin) + cam = profile["cameras"]["head_camera"] + c = kin.fk(cam["parent_body"], profile["home"]) @ matrix(cam["position"], quat=cam["quaternion_wxyz"]) + world = matrix(profile["base_position"]) @ c + assert np.allclose(world[:3, 3], EYE_WORLD, atol=1e-10) + ros = kin.fk("benchmark_head_optical_frame", profile["home"]) @ matrix(rpy=(math.pi, 0., 0.)) + assert np.allclose(c, ros, atol=1e-10) + evidence = json.loads((folder / "static_validation.json").read_text()) + states = {"ready_open": profile["home"].copy(), "ready_closed": profile["home"].copy()} + for a in profile["arms"].values(): + states["ready_closed"][a["master_joint"]] = a["gripper_closed"] + for side in ("left", "right"): + low = profile["home"].copy() + low.update(evidence["low_tabletop_grasp"][side]["joints"]) + states[side+"_low_open"] = low + results = {} + for label, state in states.items(): + meshes = [] + managers = {which: {kind: trimesh.collision.CollisionManager() for kind in ("source", "convex")} + for which in ("arm", "head")} + for link, mesh in audit.meshes.items(): + which = "head" if link.startswith(PREFIX) else "arm" + for kind, cm in managers[which].items(): + cm.add_object(link, mesh if kind == "source" else mesh.convex_hull, kin.fk(link, state)) + collision = {} + for kind in ("source", "convex"): + head, arm = managers["head"][kind], managers["arm"][kind] + _, pairs = head.in_collision_other(arm, return_names=True) + distance, pair = head.min_distance_other(arm, return_names=True) + collision[kind] = dict(pairs=sorted(map(list, pairs)), minimum_distance_m=float(distance), closest_pair=pair) + assert not pairs, (label, kind, pairs) + for link, mesh in audit.visuals.items(): + m = mesh.copy() + m.apply_transform(kin.fk(link, state)) + meshes.append(m) + visual = trimesh.util.concatenate(meshes) + targets_world = np.array([[x, y, .055] for x in np.linspace(.20, .85, 11) for y in np.linspace(-.30, .30, 7)]) + targets = targets_world-np.array(profile["base_position"]) + eye = c[:3, 3] + vectors = targets-eye + lengths = np.linalg.norm(vectors, axis=1) + locations, ray_ids, _ = visual.ray.intersects_location(np.repeat(eye[None], len(targets), axis=0), vectors/lengths[:, None], multiple_hits=True) + blocked = set() + for point, ray in zip(locations, ray_ids): + distance = float(np.linalg.norm(point-eye)) + if cam["clipping_range"][0] < distance < lengths[ray]-.002: + blocked.add(int(ray)) + camera_points = (targets-eye) @ c[:3, :3] + depths = -camera_points[:, 2] + ndc = camera_points[:, :2] / depths[:, None] / np.array([1., .75]) + inside = (depths > .03) & (np.abs(ndc[:, 0]) <= 1.) & (np.abs(ndc[:, 1]) <= 1.) + grid = [dict(world_xyz=p.tolist(), pixel=[float((uv[0]+1)*320), float((1-uv[1])*240)], in_frame=bool(ok), robot_occluded=i in blocked) + for i, (p, uv, ok) in enumerate(zip(targets_world, ndc, inside))] + visible = [x for x in grid if x["in_frame"] and not x["robot_occluded"]] + far = [x for x in grid if x["world_xyz"][0] >= .65] + tcp = {} + for side, a in profile["arms"].items(): + t = kin.fk(a["tcp_body"], state) @ matrix(a["tcp_offset_pos"], quat=a["tcp_offset_quat"]) + cp = c[:3, :3].T @ (t[:3, 3]-eye) + uv = cp[:2]/-cp[2]/[1., .75] + tcp[side] = dict(pixel=[float((uv[0]+1)*320), float((1-uv[1])*240)], in_frame=bool(np.all(np.abs(uv) <= 1.) and cp[2]<0)) + results[label] = dict(head_arm_collision=collision, table_probe_count=len(grid), visible_probe_count=len(visible), + far_visible_probe_count=sum(x["in_frame"] and not x["robot_occluded"] for x in far), + far_probe_count=len(far), table_probes=grid, tcp_projection=tcp) + assert len(visible)/len(grid) >= .65, (label, len(visible)) + assert all(x["in_frame"] for x in tcp.values()), (label, tcp) + return dict(method="Source-mesh FK and exact triangle rays; finite sparse table grid, not task success or rendered image validation.", + camera_world=world.tolist(), optical_frame_matches_source_convention=True, states=results, + rendered_head_overview_review_required=True, control_hz=30) + + +def scene_evidence(root, folder, profile): + from pxr import Usd, UsdGeom + from source_scene_geometry import scene_manager + kin = Kinematics(root) + audit = GeometryAudit(root, folder, kin) + head_meshes = {name: mesh for name, mesh in audit.meshes.items() if name.startswith(PREFIX)} + scenes = sorted({x["scene"] for x in json.loads((ROOT/"extensions/bimanual/catalog.json").read_text())["tasks"]}) + records = {} + for scene in scenes: + path = ROOT/"assets/scenes"/scene + stage = Usd.Stage.Open(str(path), load=Usd.Stage.LoadNone) + ground = stage.GetPrimAtPath(stage.GetDefaultPrim().GetPath().AppendChild("GroundPlane")) + ground_z = float(UsdGeom.Xformable(ground).ComputeLocalToWorldTransform(Usd.TimeCode.Default()).ExtractTranslation()[2]) + base = np.array(profile["base_position"]) + base[2] = ground_z+profile["ground_offset"] + scene_cm, audit_scene = scene_manager(scene, return_audit=True) + head_cm = trimesh.collision.CollisionManager() + for name, mesh in head_meshes.items(): + head_cm.add_object(name, mesh, matrix(base) @ kin.fk(name, profile["home"])) + _, pairs = head_cm.in_collision_other(scene_cm, return_names=True) + distance, pair = head_cm.min_distance_other(scene_cm, return_names=True) + assert not pairs, (scene, pairs) + records[scene] = dict(source_scene_sha256=sha(path), actual_base_position=base.tolist(), + intersections=sorted(map(list, pairs)), minimum_distance_m=float(distance), closest_pair=pair, + source_scene_geometry=audit_scene) + return dict(scope="Only added static head/support vs complete task collision geometry; native arms unchanged. Actual scene ground rebasing; KLT payloads resolved by portable source loader. Not a PhysX test.", scenes=records) + + +def prepare(name, check_scenes): + folder = ROOT/"assets/robots"/name + root = E.parse(folder/"robot.urdf").getroot() + original_elements = {node.get("name"): E.tostring(node) for node in root if not node.get("name", "").startswith(PREFIX)} + profile = json.loads((folder/"profile.json").read_text()) + protected = {key: copy.deepcopy(profile.get(key)) for key in PROTECTED_FIELDS} + wrists = {side: copy.deepcopy(profile["cameras"][side+"_wrist_camera"]) for side in ("left", "right")} + old_head = profile.get("central_head_retrofit_v18", {}).get("previous_head_camera", copy.deepcopy(profile["cameras"]["head_camera"])) + sources = source_files(folder) + camera, pitch = add_mount(root, folder, profile) + profile["cameras"]["head_camera"] = dict(parent_body="benchmark_head_camera_link", position=OPTICAL_POSITION.tolist(), + quaternion_wxyz=quaternion(GL_OPTICAL), focal_length=18., horizontal_aperture=36., vertical_aperture=27., + clipping_range=[.03, 10.], source_prim="benchmark_head_optical_frame", source_frame_to_camera_quaternion_wxyz=[0.,1.,0.,0.], + source_note="Copied pinned Trossen ZED X Mini optical geometry; benchmark central retrofit, not factory mount or measured calibration.") + profile["camera_note"] = "One physical central ZED X Mini benchmark head retrofit plus two unchanged virtual wrist cameras. Ideal pinhole intrinsics; no measured hardware calibration." + profile["platform"]["gantry"] = "Short central camera post and rear bracket between arms, attached to the unchanged DROID-derived platform." + profile["central_head_retrofit_v18"] = dict(previous_head_camera=old_head, optical_world_m=EYE_WORLD.tolist(), look_target_world_m=TARGET_WORLD.tolist(), + downward_tilt_deg=math.degrees(pitch), horizontal_fov_deg=90., vertical_fov_deg=math.degrees(2*math.atan(.75)), + source_repository="https://github.com/TrossenRobotics/trossen_arm_description", source_revision=REVISION, source_files=sources, + hardware_reference="https://www.stereolabs.com/store/products/zed-x-mini-stereo-camera", source_license="BSD-3-Clause; copied LICENSE retained", + generation_entrypoint="extensions/bimanual/refine_compact_heads_v18.py", manufacturer_dual_arm_assembly=False, measured_calibration=False, + note="Benchmark-authored support and placement; source camera dimensions and optical offsets retained. Original robot colors/materials, arm geometry/kinematics/home, wrist extrinsics/intrinsics and30Hz remain unchanged.") + for key, value in protected.items(): + assert profile.get(key) == value, key + assert all(profile["cameras"][side+"_wrist_camera"] == value for side, value in wrists.items()) + assert original_elements == {node.get("name"): E.tostring(node) for node in root if not node.get("name", "").startswith(PREFIX)} + evidence = camera_evidence(root, folder, profile) + evidence["source_arm_elements_unchanged"] = True + evidence["protected_profile_fields_unchanged"] = True + if check_scenes: + evidence["task_scene_geometry"] = scene_evidence(root, folder, profile) + E.indent(root) + E.ElementTree(root).write(folder/"robot.urdf", encoding="utf-8", xml_declaration=True) + absolute = copy.deepcopy(root) + for mesh in absolute.iter("mesh"): + mesh.set("filename", str((folder/mesh.get("filename")).resolve())) + E.ElementTree(absolute).write(folder/"robot_import.urdf", encoding="utf-8", xml_declaration=True) + write_json(folder/"profile.json", profile) + evidence.update(profile_sha256=sha(folder/"profile.json"), urdf_sha256=sha(folder/"robot.urdf"), checker_sha256=sha(Path(__file__))) + write_json(folder/"central_head_validation_v18.json", evidence) + provenance = json.loads((folder/"provenance.json").read_text()) + provenance["central_head_retrofit_v18"] = profile["central_head_retrofit_v18"] + provenance["central_head_retrofit_v18"]["validation"] = "central_head_validation_v18.json" + provenance["central_head_retrofit_v18"]["generator_sha256"] = sha(Path(__file__)) + provenance["derivations"] = [x for x in provenance["derivations"] if not x.startswith("v18 central head retrofit:")] + provenance["derivations"].append("v18 central head retrofit: physical source ZED X Mini at the inter-arm center on a short benchmark support; ideal optical model, not hardware calibration. Native arm geometry/materials and wrists retained; new conversion and rendered review required.") + provenance["generated_files"] = [{"path":str(p.relative_to(folder)),"bytes":p.stat().st_size,"sha256":sha(p)} + for p in sorted(folder.rglob("*")) if p.is_file() and p.name!="provenance.json"] + write_json(folder/"provenance.json", provenance) + DIAGNOSTICS.mkdir(parents=True, exist_ok=True) + write_json(DIAGNOSTICS/(name+"_head_candidate.json"), evidence) + print(name, "SOURCE_READY", "eye", EYE_WORLD.tolist(), "down", math.degrees(pitch), + "visible", {k: v["visible_probe_count"] for k,v in evidence["states"].items()}, flush=True) + + +if __name__ == "__main__": + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("robots", nargs="*", choices=NAMES, default=list(NAMES)) + parser.add_argument("--scene-check", action="store_true") + args = parser.parse_args() + for robot in args.robots: + prepare(robot, args.scene_check) diff --git a/assets/robots/galaxea_a1z/benchmark_head/evidence/historical_v17_head_camera_validation.json b/assets/robots/galaxea_a1z/benchmark_head/evidence/historical_v17_head_camera_validation.json new file mode 100644 index 0000000000000000000000000000000000000000..97e1ea165c1fda8416296b7e839f7479242df820 --- /dev/null +++ b/assets/robots/galaxea_a1z/benchmark_head/evidence/historical_v17_head_camera_validation.json @@ -0,0 +1,385 @@ +{ + "method": "Source FK and exact native visual ray tests; ideal pinhole projection. No task-object, lighting or rendered-image assessment.", + "world_eye_m": [ + -0.1, + 0.0, + 0.88 + ], + "reference_basis": "Official LEMO deployment demonstrates two A1Z arms with wrist cameras and a raised central camera. Only that mounting arrangement informs this virtual camera; this existing benchmark assembly is not represented as a factory LEMO model.", + "table_corners": [ + { + "world_m": [ + 0.19859091043472288, + -0.47793697752058506, + 0.003000683747231947 + ], + "image_ndc": [ + 0.5954413014293706, + -0.416604671337683 + ], + "in_frame": true + }, + { + "world_m": [ + 0.19859091043472288, + 0.5220630224794149, + 0.003000683747231947 + ], + "image_ndc": [ + -0.650416059343106, + -0.416604671337683 + ], + "in_frame": true + }, + { + "world_m": [ + 0.8985908985137939, + -0.47793697752058506, + 0.003000683747231947 + ], + "image_ndc": [ + 0.4121662641831399, + 0.3748912204022606 + ], + "in_frame": true + }, + { + "world_m": [ + 0.8985908985137939, + 0.5220630224794149, + 0.003000683747231947 + ], + "image_ndc": [ + -0.4502199573671431, + 0.3748912204022606 + ], + "in_frame": true + } + ], + "poses": { + "ready": { + "tcp_projections": [ + { + "world_m": [ + 0.3000000000009992, + 0.24000000000341729, + 0.37999999995896366 + ], + "image_ndc": [ + -0.4175588782404032, + 0.10752688166262062 + ], + "in_frame": true, + "side": "left", + "source_mesh_occluders": [] + }, + { + "world_m": [ + 0.2999999998826132, + -0.24000000003425284, + 0.3799999995576815 + ], + "image_ndc": [ + 0.41755887812169873, + 0.10752688086456015 + ], + "in_frame": true, + "side": "right", + "source_mesh_occluders": [] + } + ], + "table_visibility_probes": [ + { + "world_m": [ + 0.3, + -0.3, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "world_m": [ + 0.3, + 0.0, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "world_m": [ + 0.3, + 0.3, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "world_m": [ + 0.55, + -0.3, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "world_m": [ + 0.55, + 0.0, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "world_m": [ + 0.55, + 0.3, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "world_m": [ + 0.8, + -0.3, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "world_m": [ + 0.8, + 0.0, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "world_m": [ + 0.8, + 0.3, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + } + ] + }, + "left_low_grasp": { + "tcp_projections": [ + { + "world_m": [ + 0.3799999999499562, + 0.2000000000071455, + 0.04999999998392392 + ], + "image_ndc": [ + -0.23247710536336325, + -0.11574074082059761 + ], + "in_frame": true, + "side": "left", + "source_mesh_occluders": [] + }, + { + "world_m": [ + 0.2999999998826132, + -0.24000000003425284, + 0.3799999995576815 + ], + "image_ndc": [ + 0.41755887812169873, + 0.10752688086456015 + ], + "in_frame": true, + "side": "right", + "source_mesh_occluders": [] + } + ], + "table_visibility_probes": [ + { + "world_m": [ + 0.3, + -0.3, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "world_m": [ + 0.3, + 0.0, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "world_m": [ + 0.3, + 0.3, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "world_m": [ + 0.55, + -0.3, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "world_m": [ + 0.55, + 0.0, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "world_m": [ + 0.55, + 0.3, + 0.003000683747231947 + ], + "source_mesh_occluders": [ + "left_arm_link5", + "left_arm_link6" + ] + }, + { + "world_m": [ + 0.8, + -0.3, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "world_m": [ + 0.8, + 0.0, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "world_m": [ + 0.8, + 0.3, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + } + ] + }, + "right_low_grasp": { + "tcp_projections": [ + { + "world_m": [ + 0.3000000000009992, + 0.24000000000341729, + 0.37999999995896366 + ], + "image_ndc": [ + -0.4175588782404032, + 0.10752688166262062 + ], + "in_frame": true, + "side": "left", + "source_mesh_occluders": [] + }, + { + "world_m": [ + 0.3799999999501062, + -0.20000000000716683, + 0.04999999998391268 + ], + "image_ndc": [ + 0.23247710536336513, + -0.11574074082040459 + ], + "in_frame": true, + "side": "right", + "source_mesh_occluders": [] + } + ], + "table_visibility_probes": [ + { + "world_m": [ + 0.3, + -0.3, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "world_m": [ + 0.3, + 0.0, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "world_m": [ + 0.3, + 0.3, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "world_m": [ + 0.55, + -0.3, + 0.003000683747231947 + ], + "source_mesh_occluders": [ + "right_arm_link5", + "right_arm_link6" + ] + }, + { + "world_m": [ + 0.55, + 0.0, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "world_m": [ + 0.55, + 0.3, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "world_m": [ + 0.8, + -0.3, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "world_m": [ + 0.8, + 0.0, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "world_m": [ + 0.8, + 0.3, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + } + ] + } + } +} diff --git a/assets/robots/galaxea_a1z/benchmark_head/source/LICENSE b/assets/robots/galaxea_a1z/benchmark_head/source/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..58eba301302e53e8620a045056c216c88676d49e --- /dev/null +++ b/assets/robots/galaxea_a1z/benchmark_head/source/LICENSE @@ -0,0 +1,29 @@ +BSD 3-Clause License + +Copyright (c) 2025, Trossen Robotics +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/assets/robots/galaxea_a1z/benchmark_head/source/workbench.urdf b/assets/robots/galaxea_a1z/benchmark_head/source/workbench.urdf new file mode 100644 index 0000000000000000000000000000000000000000..e17da45ec2f31191547eb4df758ee0d61b2b4d0d --- /dev/null +++ b/assets/robots/galaxea_a1z/benchmark_head/source/workbench.urdf @@ -0,0 +1,815 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/robots/galaxea_a1z/benchmark_head/support.stl b/assets/robots/galaxea_a1z/benchmark_head/support.stl new file mode 100644 index 0000000000000000000000000000000000000000..5550e92604c09efbad9b8e7bebedb5bafca77dfe Binary files /dev/null and b/assets/robots/galaxea_a1z/benchmark_head/support.stl differ diff --git a/assets/robots/galaxea_a1z/camera_ray_validation.json b/assets/robots/galaxea_a1z/camera_ray_validation.json new file mode 100644 index 0000000000000000000000000000000000000000..9ffaf33e0dbb3c90d5a0b05df6175796124e6c64 --- /dev/null +++ b/assets/robots/galaxea_a1z/camera_ray_validation.json @@ -0,0 +1,1117 @@ +{ + "robot": "galaxea_a1z", + "method": "Source URDF FK; exact source visual triangle/segment tests (10 mm near clip, 2 mm target tolerance); OpenGL pinhole projection at 640x480.", + "limitations": "Finite-table coverage counts rays intersecting the table rectangle before source occlusion. Separate sparse visibility probes test native robot occlusion; task objects, lighting and image usefulness require rendered validation. Perturbed camera poses are framing probes, not IK or task-success evidence.", + "canonical_eye_m": [ + -0.12, + 0.0, + -0.055 + ], + "look_target_in_tcp_m": [ + 0.0, + 0.0, + 0.04 + ], + "up_in_tcp": [ + -1.0, + 0.0, + 0.0 + ], + "tested_targets_in_tcp_m": [ + [ + 0.0, + 0.0, + 0.0 + ], + [ + 0.0, + 0.0, + 0.08 + ], + [ + 0.015, + 0.0, + 0.0 + ], + [ + -0.015, + 0.0, + 0.0 + ], + [ + 0.0, + 0.015, + 0.0 + ], + [ + 0.0, + -0.015, + 0.0 + ] + ], + "representative_table": { + "scene": "assets/scenes/rubiks_cube_bowl.usda", + "prim": "/World/table", + "x_range_m": [ + 0.19859091043472288, + 0.8985908985137939 + ], + "y_range_m": [ + -0.47793697752058506, + 0.5220630224794149 + ], + "top_z_m": 0.003000683747231947, + "scene_sha256": "1eb9aa3eec31568dceeab5ff8a45d13e4b1c4944bb2b0cc85e53eed1c7d9e66a" + }, + "poses": { + "left_ready": { + "tcp_world_m": [ + 0.3000000000009992, + 0.24000000000341729, + 0.37999999995896366 + ], + "camera_world_m": [ + 0.3123686027774188, + 0.24000000000271943, + 0.511423048414549 + ], + "camera_forward_world": [ + 0.14552160590969926, + 2.856396540349293e-12, + -0.9893550738806882 + ], + "tcp_image_pixel": [ + 320.0, + 344.3566878980893 + ], + "tcp_rays": [ + { + "target_in_tcp_m": [ + 0.0, + 0.0, + 0.0 + ], + "occluders": [] + }, + { + "target_in_tcp_m": [ + 0.0, + 0.0, + 0.08 + ], + "occluders": [] + }, + { + "target_in_tcp_m": [ + 0.015, + 0.0, + 0.0 + ], + "occluders": [] + }, + { + "target_in_tcp_m": [ + -0.015, + 0.0, + 0.0 + ], + "occluders": [] + }, + { + "target_in_tcp_m": [ + 0.0, + 0.015, + 0.0 + ], + "occluders": [] + }, + { + "target_in_tcp_m": [ + 0.0, + -0.015, + 0.0 + ], + "occluders": [] + } + ], + "table_pixel_grid": [ + 81, + 61 + ], + "framing_perturbations": [ + { + "kind": "nominal", + "value": [ + 0.0, + 0.0, + 0.0 + ], + "table_fraction": 0.7158469945355191 + }, + { + "kind": "world_translation_m", + "value": [ + -0.02, + -0.0, + -0.0 + ], + "table_fraction": 0.6871078729002226 + }, + { + "kind": "canonical_tcp_rotation_rad", + "value": [ + -0.06, + -0.0, + -0.0 + ], + "table_fraction": 0.6958105646630237 + }, + { + "kind": "world_translation_m", + "value": [ + 0.02, + 0.0, + 0.0 + ], + "table_fraction": 0.7447885043513459 + }, + { + "kind": "canonical_tcp_rotation_rad", + "value": [ + 0.06, + 0.0, + 0.0 + ], + "table_fraction": 0.7366929771301356 + }, + { + "kind": "world_translation_m", + "value": [ + -0.0, + -0.02, + -0.0 + ], + "table_fraction": 0.7370977534911961 + }, + { + "kind": "canonical_tcp_rotation_rad", + "value": [ + -0.0, + -0.06, + -0.0 + ], + "table_fraction": 0.7545031370167982 + }, + { + "kind": "world_translation_m", + "value": [ + 0.0, + 0.02, + 0.0 + ], + "table_fraction": 0.6950010119409027 + }, + { + "kind": "canonical_tcp_rotation_rad", + "value": [ + 0.0, + 0.06, + 0.0 + ], + "table_fraction": 0.6777980165958308 + }, + { + "kind": "world_translation_m", + "value": [ + -0.0, + -0.0, + -0.02 + ], + "table_fraction": 0.7281926735478648 + }, + { + "kind": "canonical_tcp_rotation_rad", + "value": [ + -0.0, + -0.0, + -0.06 + ], + "table_fraction": 0.7423598461849829 + }, + { + "kind": "world_translation_m", + "value": [ + 0.0, + 0.0, + 0.02 + ], + "table_fraction": 0.6907508601497673 + }, + { + "kind": "canonical_tcp_rotation_rad", + "value": [ + 0.0, + 0.0, + 0.06 + ], + "table_fraction": 0.6885245901639344 + } + ], + "minimum_table_fraction": 0.6777980165958308, + "table_visibility_probes": [ + { + "image_ndc": [ + 0.0, + 0.0 + ], + "hits_table": true, + "hit_world_m": [ + 0.3871510958782902, + 0.2400000000041873, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "image_ndc": [ + -0.5, + 0.0 + ], + "hits_table": true, + "hit_world_m": [ + 0.3871510958803499, + 0.4327097679975052, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "image_ndc": [ + 0.5, + 0.0 + ], + "hits_table": true, + "hit_world_m": [ + 0.3871510958762306, + 0.04729023201150703, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "image_ndc": [ + 0.0, + -0.5 + ], + "hits_table": true, + "hit_world_m": [ + 0.24686699683802474, + 0.24000000000559657, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "image_ndc": [ + 0.0, + 0.5 + ], + "hits_table": true, + "hit_world_m": [ + 0.53954269519976, + 0.24000000000265642, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + } + ] + }, + "left_low_tabletop_grasp": { + "tcp_world_m": [ + 0.3799999999499562, + 0.2000000000071455, + 0.04999999998392392 + ], + "camera_world_m": [ + 0.49999999994493965, + 0.20000000000786058, + 0.10499999999486917 + ], + "camera_forward_world": [ + -0.784045824405147, + -8.075260497711108e-12, + -0.6207029444370742 + ], + "tcp_image_pixel": [ + 320.00000000000006, + 344.3566878980891 + ], + "tcp_rays": [ + { + "target_in_tcp_m": [ + 0.0, + 0.0, + 0.0 + ], + "occluders": [] + }, + { + "target_in_tcp_m": [ + 0.0, + 0.0, + 0.08 + ], + "occluders": [] + }, + { + "target_in_tcp_m": [ + 0.015, + 0.0, + 0.0 + ], + "occluders": [] + }, + { + "target_in_tcp_m": [ + -0.015, + 0.0, + 0.0 + ], + "occluders": [] + }, + { + "target_in_tcp_m": [ + 0.0, + 0.015, + 0.0 + ], + "occluders": [] + }, + { + "target_in_tcp_m": [ + 0.0, + -0.015, + 0.0 + ], + "occluders": [] + } + ], + "table_pixel_grid": [ + 81, + 61 + ], + "framing_perturbations": [ + { + "kind": "nominal", + "value": [ + 0.0, + 0.0, + 0.0 + ], + "table_fraction": 0.819672131147541 + }, + { + "kind": "world_translation_m", + "value": [ + -0.02, + -0.0, + -0.0 + ], + "table_fraction": 0.7868852459016393 + }, + { + "kind": "canonical_tcp_rotation_rad", + "value": [ + -0.06, + -0.0, + -0.0 + ], + "table_fraction": 0.8121837684679215 + }, + { + "kind": "world_translation_m", + "value": [ + 0.02, + 0.0, + 0.0 + ], + "table_fraction": 0.8360655737704918 + }, + { + "kind": "canonical_tcp_rotation_rad", + "value": [ + 0.06, + 0.0, + 0.0 + ], + "table_fraction": 0.8121837684679215 + }, + { + "kind": "world_translation_m", + "value": [ + -0.0, + -0.02, + -0.0 + ], + "table_fraction": 0.819672131147541 + }, + { + "kind": "canonical_tcp_rotation_rad", + "value": [ + -0.0, + -0.06, + -0.0 + ], + "table_fraction": 0.8524590163934426 + }, + { + "kind": "world_translation_m", + "value": [ + 0.0, + 0.02, + 0.0 + ], + "table_fraction": 0.819672131147541 + }, + { + "kind": "canonical_tcp_rotation_rad", + "value": [ + 0.0, + 0.06, + 0.0 + ], + "table_fraction": 0.7704918032786885 + }, + { + "kind": "world_translation_m", + "value": [ + -0.0, + -0.0, + -0.02 + ], + "table_fraction": 0.8688524590163934 + }, + { + "kind": "canonical_tcp_rotation_rad", + "value": [ + -0.0, + -0.0, + -0.06 + ], + "table_fraction": 0.8123861566484517 + }, + { + "kind": "world_translation_m", + "value": [ + 0.0, + 0.0, + 0.02 + ], + "table_fraction": 0.7540983606557377 + }, + { + "kind": "canonical_tcp_rotation_rad", + "value": [ + 0.0, + 0.0, + 0.06 + ], + "table_fraction": 0.8123861566484517 + } + ], + "minimum_table_fraction": 0.7540983606557377, + "table_visibility_probes": [ + { + "image_ndc": [ + 0.0, + 0.0 + ], + "hits_table": true, + "hit_world_m": [ + 0.3711587583931244, + 0.2000000000065336, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "image_ndc": [ + -0.5, + 0.0 + ], + "hits_table": true, + "hit_world_m": [ + 0.37115875839413853, + 0.2616232675218059, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "image_ndc": [ + 0.5, + 0.0 + ], + "hits_table": true, + "hit_world_m": [ + 0.37115875839211027, + 0.1383767324902917, + 0.003000683747231933 + ], + "source_mesh_occluders": [] + }, + { + "image_ndc": [ + 0.0, + -0.5 + ], + "hits_table": true, + "hit_world_m": [ + 0.25567000522055594, + 0.20000000000653462, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "image_ndc": [ + 0.0, + 0.5 + ], + "hits_table": true, + "hit_world_m": [ + 0.42610000991077773, + 0.2000000000065331, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + } + ] + }, + "right_ready": { + "tcp_world_m": [ + 0.2999999998826132, + -0.24000000003425284, + 0.3799999995576815 + ], + "camera_world_m": [ + 0.31236860257021876, + -0.24000000003701755, + 0.5114230480216254 + ], + "camera_forward_world": [ + 0.14552160657829236, + 2.560000606175451e-12, + -0.9893550737823464 + ], + "tcp_image_pixel": [ + 320.00000000000006, + 344.356687898089 + ], + "tcp_rays": [ + { + "target_in_tcp_m": [ + 0.0, + 0.0, + 0.0 + ], + "occluders": [] + }, + { + "target_in_tcp_m": [ + 0.0, + 0.0, + 0.08 + ], + "occluders": [] + }, + { + "target_in_tcp_m": [ + 0.015, + 0.0, + 0.0 + ], + "occluders": [] + }, + { + "target_in_tcp_m": [ + -0.015, + 0.0, + 0.0 + ], + "occluders": [] + }, + { + "target_in_tcp_m": [ + 0.0, + 0.015, + 0.0 + ], + "occluders": [] + }, + { + "target_in_tcp_m": [ + 0.0, + -0.015, + 0.0 + ], + "occluders": [] + } + ], + "table_pixel_grid": [ + 81, + 61 + ], + "framing_perturbations": [ + { + "kind": "nominal", + "value": [ + 0.0, + 0.0, + 0.0 + ], + "table_fraction": 0.6690953248330298 + }, + { + "kind": "world_translation_m", + "value": [ + -0.02, + -0.0, + -0.0 + ], + "table_fraction": 0.6421776968225056 + }, + { + "kind": "canonical_tcp_rotation_rad", + "value": [ + -0.06, + -0.0, + -0.0 + ], + "table_fraction": 0.6869054847196924 + }, + { + "kind": "world_translation_m", + "value": [ + 0.02, + 0.0, + 0.0 + ], + "table_fraction": 0.6962153410240842 + }, + { + "kind": "canonical_tcp_rotation_rad", + "value": [ + 0.06, + 0.0, + 0.0 + ], + "table_fraction": 0.6522971058490185 + }, + { + "kind": "world_translation_m", + "value": [ + -0.0, + -0.02, + -0.0 + ], + "table_fraction": 0.6478445658773527 + }, + { + "kind": "canonical_tcp_rotation_rad", + "value": [ + -0.0, + -0.06, + -0.0 + ], + "table_fraction": 0.7057275855090063 + }, + { + "kind": "world_translation_m", + "value": [ + 0.0, + 0.02, + 0.0 + ], + "table_fraction": 0.6903460837887068 + }, + { + "kind": "canonical_tcp_rotation_rad", + "value": [ + 0.0, + 0.06, + 0.0 + ], + "table_fraction": 0.6328678405181137 + }, + { + "kind": "world_translation_m", + "value": [ + -0.0, + -0.0, + -0.02 + ], + "table_fraction": 0.6794171220400729 + }, + { + "kind": "canonical_tcp_rotation_rad", + "value": [ + -0.0, + -0.0, + -0.06 + ], + "table_fraction": 0.6435944140862173 + }, + { + "kind": "world_translation_m", + "value": [ + 0.0, + 0.0, + 0.02 + ], + "table_fraction": 0.646427848613641 + }, + { + "kind": "canonical_tcp_rotation_rad", + "value": [ + 0.0, + 0.0, + 0.06 + ], + "table_fraction": 0.6943938473993119 + } + ], + "minimum_table_fraction": 0.6328678405181137, + "table_visibility_probes": [ + { + "image_ndc": [ + 0.0, + 0.0 + ], + "hits_table": true, + "hit_world_m": [ + 0.38715109596431463, + -0.240000000035702, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "image_ndc": [ + -0.5, + 0.0 + ], + "hits_table": true, + "hit_world_m": [ + 0.3871510959794471, + -0.047290232171468466, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "image_ndc": [ + 0.5, + 0.0 + ], + "hits_table": true, + "hit_world_m": [ + 0.3871510959491821, + -0.43270976789791393, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "image_ndc": [ + 0.0, + -0.5 + ], + "hits_table": true, + "hit_world_m": [ + 0.24686699703073414, + -0.24000000002497177, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "image_ndc": [ + 0.0, + 0.5 + ], + "hits_table": true, + "hit_world_m": [ + 0.5395426952291751, + -0.2400000000473583, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + } + ] + }, + "right_low_tabletop_grasp": { + "tcp_world_m": [ + 0.3799999999501062, + -0.20000000000716683, + 0.04999999998391268 + ], + "camera_world_m": [ + 0.4999999999450923, + -0.20000000000788445, + 0.10499999999485216 + ], + "camera_forward_world": [ + -0.7840458244051768, + 8.088123602044675e-12, + -0.6207029444370364 + ], + "tcp_image_pixel": [ + 320.0, + 344.3566878980889 + ], + "tcp_rays": [ + { + "target_in_tcp_m": [ + 0.0, + 0.0, + 0.0 + ], + "occluders": [] + }, + { + "target_in_tcp_m": [ + 0.0, + 0.0, + 0.08 + ], + "occluders": [] + }, + { + "target_in_tcp_m": [ + 0.015, + 0.0, + 0.0 + ], + "occluders": [] + }, + { + "target_in_tcp_m": [ + -0.015, + 0.0, + 0.0 + ], + "occluders": [] + }, + { + "target_in_tcp_m": [ + 0.0, + 0.015, + 0.0 + ], + "occluders": [] + }, + { + "target_in_tcp_m": [ + 0.0, + -0.015, + 0.0 + ], + "occluders": [] + } + ], + "table_pixel_grid": [ + 81, + 61 + ], + "framing_perturbations": [ + { + "kind": "nominal", + "value": [ + 0.0, + 0.0, + 0.0 + ], + "table_fraction": 0.819672131147541 + }, + { + "kind": "world_translation_m", + "value": [ + -0.02, + -0.0, + -0.0 + ], + "table_fraction": 0.7868852459016393 + }, + { + "kind": "canonical_tcp_rotation_rad", + "value": [ + -0.06, + -0.0, + -0.0 + ], + "table_fraction": 0.8121837684679215 + }, + { + "kind": "world_translation_m", + "value": [ + 0.02, + 0.0, + 0.0 + ], + "table_fraction": 0.8360655737704918 + }, + { + "kind": "canonical_tcp_rotation_rad", + "value": [ + 0.06, + 0.0, + 0.0 + ], + "table_fraction": 0.8121837684679215 + }, + { + "kind": "world_translation_m", + "value": [ + -0.0, + -0.02, + -0.0 + ], + "table_fraction": 0.819672131147541 + }, + { + "kind": "canonical_tcp_rotation_rad", + "value": [ + -0.0, + -0.06, + -0.0 + ], + "table_fraction": 0.8524590163934426 + }, + { + "kind": "world_translation_m", + "value": [ + 0.0, + 0.02, + 0.0 + ], + "table_fraction": 0.819672131147541 + }, + { + "kind": "canonical_tcp_rotation_rad", + "value": [ + 0.0, + 0.06, + 0.0 + ], + "table_fraction": 0.7704918032786885 + }, + { + "kind": "world_translation_m", + "value": [ + -0.0, + -0.0, + -0.02 + ], + "table_fraction": 0.8688524590163934 + }, + { + "kind": "canonical_tcp_rotation_rad", + "value": [ + -0.0, + -0.0, + -0.06 + ], + "table_fraction": 0.8123861566484517 + }, + { + "kind": "world_translation_m", + "value": [ + 0.0, + 0.0, + 0.02 + ], + "table_fraction": 0.7540983606557377 + }, + { + "kind": "canonical_tcp_rotation_rad", + "value": [ + 0.0, + 0.0, + 0.06 + ], + "table_fraction": 0.8123861566484517 + } + ], + "minimum_table_fraction": 0.7540983606557377, + "table_visibility_probes": [ + { + "image_ndc": [ + 0.0, + 0.0 + ], + "hits_table": true, + "hit_world_m": [ + 0.3711587583932858, + -0.20000000000655535, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "image_ndc": [ + -0.5, + 0.0 + ], + "hits_table": true, + "hit_world_m": [ + 0.3711587583922745, + -0.13837673249032048, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "image_ndc": [ + 0.5, + 0.0 + ], + "hits_table": true, + "hit_world_m": [ + 0.37115875839429713, + -0.2616232675218217, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + }, + { + "image_ndc": [ + 0.0, + -0.5 + ], + "hits_table": true, + "hit_world_m": [ + 0.25567000522071626, + -0.20000000000655319, + 0.003000683747231961 + ], + "source_mesh_occluders": [] + }, + { + "image_ndc": [ + 0.0, + 0.5 + ], + "hits_table": true, + "hit_world_m": [ + 0.4261000099109353, + -0.20000000000655638, + 0.003000683747231947 + ], + "source_mesh_occluders": [] + } + ] + } + }, + "status": "passed CPU framing and source ray checks; render review pending" +} diff --git a/assets/robots/galaxea_a1z/central_head_validation_v18.json b/assets/robots/galaxea_a1z/central_head_validation_v18.json new file mode 100644 index 0000000000000000000000000000000000000000..b971474e9d4cb37d1ff09799742e2ec1cf993e59 --- /dev/null +++ b/assets/robots/galaxea_a1z/central_head_validation_v18.json @@ -0,0 +1,5441 @@ +{ + "method": "Source-mesh FK and exact triangle rays; finite sparse table grid, not task success or rendered image validation.", + "camera_world": [ + [ + 2.0538813749754266e-16, + 0.7581851963116832, + -0.6520392688280475, + 0.030000000000000006 + ], + [ + -1.0, + -1.1102230246251565e-16, + -4.440892098500626e-16, + 0.0 + ], + [ + -4.0909276567133503e-16, + 0.6520392688280476, + 0.758185196311683, + 0.56 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ], + "optical_frame_matches_source_convention": true, + "states": { + "ready_open": { + "head_arm_collision": { + "source": { + "pairs": [], + "minimum_distance_m": 0.0907971621817052, + "closest_pair": [ + "benchmark_head_support", + "right_base_link" + ] + }, + "convex": { + "pairs": [], + "minimum_distance_m": 0.0907971612501946, + "closest_pair": [ + "benchmark_head_support", + "right_base_link" + ] + } + }, + "table_probe_count": 77, + "visible_probe_count": 77, + "far_visible_probe_count": 28, + "far_probe_count": 28, + "table_probes": [ + { + "world_xyz": [ + 0.2, + -0.3, + 0.055 + ], + "pixel": [ + 514.438177027588, + 369.87714987714986 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.2, + -0.2, + 0.055 + ], + "pixel": [ + 449.62545135172536, + 369.87714987714986 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.2, + -0.1, + 0.055 + ], + "pixel": [ + 384.81272567586274, + 369.8771498771499 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.2, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 369.87714987714986 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.2, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 255.18727432413758, + 369.87714987714986 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.2, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 190.37454864827504, + 369.87714987714986 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.2, + 0.3, + 0.055 + ], + "pixel": [ + 125.56182297241247, + 369.87714987714986 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.265, + -0.3, + 0.055 + ], + "pixel": [ + 499.06680933441567, + 330.1937491161081 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.265, + -0.2, + 0.055 + ], + "pixel": [ + 439.37787288961044, + 330.1937491161081 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.265, + -0.1, + 0.055 + ], + "pixel": [ + 379.68893644480534, + 330.1937491161081 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.265, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 330.1937491161081 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.265, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 260.311063555195, + 330.1937491161081 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.265, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 200.6221271103899, + 330.1937491161081 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.265, + 0.3, + 0.055 + ], + "pixel": [ + 140.9331906655848, + 330.1937491161081 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.32999999999999996, + -0.3, + 0.055 + ], + "pixel": [ + 485.94776000047875, + 296.32503276539984 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.32999999999999996, + -0.2, + 0.055 + ], + "pixel": [ + 430.63184000031924, + 296.32503276539984 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.32999999999999996, + -0.1, + 0.055 + ], + "pixel": [ + 375.3159200001597, + 296.32503276539984 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.32999999999999996, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 296.32503276539984 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.32999999999999996, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 264.6840799998406, + 296.32503276539984 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.32999999999999996, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 209.3681599996811, + 296.32503276539984 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.32999999999999996, + 0.3, + 0.055 + ], + "pixel": [ + 154.05223999952165, + 296.32503276539984 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.39499999999999996, + -0.3, + 0.055 + ], + "pixel": [ + 474.6197837103008, + 267.0802295762609 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.39499999999999996, + -0.2, + 0.055 + ], + "pixel": [ + 423.07985580686716, + 267.0802295762609 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.39499999999999996, + -0.1, + 0.055 + ], + "pixel": [ + 371.53992790343364, + 267.0802295762609 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.39499999999999996, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 267.0802295762609 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.39499999999999996, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 268.4600720965666, + 267.0802295762609 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.39499999999999996, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 216.9201441931331, + 267.0802295762609 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.39499999999999996, + 0.3, + 0.055 + ], + "pixel": [ + 165.38021628969958, + 267.0802295762609 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.45999999999999996, + -0.3, + 0.055 + ], + "pixel": [ + 464.7395300415698, + 241.572930955647 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.45999999999999996, + -0.2, + 0.055 + ], + "pixel": [ + 416.49302002771327, + 241.57293095564705 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.45999999999999996, + -0.1, + 0.055 + ], + "pixel": [ + 368.2465100138568, + 241.57293095564705 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.45999999999999996, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 241.57293095564705 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.45999999999999996, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 271.7534899861436, + 241.57293095564705 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.45999999999999996, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 223.50697997228707, + 241.57293095564705 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.45999999999999996, + 0.3, + 0.055 + ], + "pixel": [ + 175.26046995843052, + 241.57293095564705 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5249999999999999, + -0.3, + 0.055 + ], + "pixel": [ + 456.0461382619161, + 219.12968733211562 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5249999999999999, + -0.2, + 0.055 + ], + "pixel": [ + 410.69742550794416, + 219.12968733211562 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5249999999999999, + -0.1, + 0.055 + ], + "pixel": [ + 365.34871275397217, + 219.12968733211562 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5249999999999999, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 219.12968733211562 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5249999999999999, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 274.6512872460282, + 219.12968733211562 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5249999999999999, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 229.30257449205618, + 219.12968733211562 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5249999999999999, + 0.3, + 0.055 + ], + "pixel": [ + 183.95386173808424, + 219.12968733211565 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5899999999999999, + -0.3, + 0.055 + ], + "pixel": [ + 448.337868315797, + 199.2296776809244 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5899999999999999, + -0.2, + 0.055 + ], + "pixel": [ + 405.55857887719804, + 199.22967768092442 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5899999999999999, + -0.1, + 0.055 + ], + "pixel": [ + 362.7792894385991, + 199.22967768092442 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5899999999999999, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 199.22967768092442 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5899999999999999, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 277.2207105614012, + 199.22967768092442 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5899999999999999, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 234.44142112280224, + 199.22967768092442 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5899999999999999, + 0.3, + 0.055 + ], + "pixel": [ + 191.66213168420336, + 199.22967768092445 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.6549999999999999, + -0.3, + 0.055 + ], + "pixel": [ + 441.45625024495473, + 181.4637889688249 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.6549999999999999, + -0.2, + 0.055 + ], + "pixel": [ + 400.97083349663654, + 181.46378896882493 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.6549999999999999, + -0.1, + 0.055 + ], + "pixel": [ + 360.4854167483183, + 181.46378896882493 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.6549999999999999, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 181.46378896882493 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.6549999999999999, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 279.514583251682, + 181.46378896882493 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.6549999999999999, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 239.0291665033638, + 181.46378896882493 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.6549999999999999, + 0.3, + 0.055 + ], + "pixel": [ + 198.54374975504555, + 181.46378896882496 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.72, + -0.3, + 0.055 + ], + "pixel": [ + 435.2750736347099, + 165.50619082301532 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.72, + -0.2, + 0.055 + ], + "pixel": [ + 396.8500490898066, + 165.50619082301532 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.72, + -0.1, + 0.055 + ], + "pixel": [ + 358.42502454490335, + 165.50619082301532 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.72, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 165.50619082301532 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.72, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 281.57497545509693, + 165.50619082301532 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.72, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 243.1499509101937, + 165.50619082301532 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.72, + 0.3, + 0.055 + ], + "pixel": [ + 204.72492636529046, + 165.50619082301532 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.7849999999999999, + -0.3, + 0.055 + ], + "pixel": [ + 429.6925763496191, + 151.09416962661354 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.7849999999999999, + -0.2, + 0.055 + ], + "pixel": [ + 393.12838423307943, + 151.09416962661354 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.7849999999999999, + -0.1, + 0.055 + ], + "pixel": [ + 356.56419211653974, + 151.09416962661354 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.7849999999999999, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 151.09416962661354 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.7849999999999999, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 283.4358078834605, + 151.0941696266136 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.7849999999999999, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 246.87161576692085, + 151.0941696266136 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.7849999999999999, + 0.3, + 0.055 + ], + "pixel": [ + 210.30742365038122, + 151.0941696266136 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.85, + -0.3, + 0.055 + ], + "pixel": [ + 424.62579811631576, + 138.01355147909433 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.85, + -0.2, + 0.055 + ], + "pixel": [ + 389.7505320775439, + 138.01355147909433 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.85, + -0.1, + 0.055 + ], + "pixel": [ + 354.875266038772, + 138.01355147909433 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.85, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 138.01355147909433 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.85, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 285.1247339612283, + 138.01355147909433 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.85, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 250.2494679224564, + 138.0135514790944 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.85, + 0.3, + 0.055 + ], + "pixel": [ + 215.37420188368455, + 138.0135514790944 + ], + "in_frame": true, + "robot_occluded": false + } + ], + "tcp_projection": { + "left": { + "pixel": [ + 74.25882412557293, + 150.56768562523126 + ], + "in_frame": true + }, + "right": { + "pixel": [ + 565.7411757274656, + 150.56768605002176 + ], + "in_frame": true + } + } + }, + "ready_closed": { + "head_arm_collision": { + "source": { + "pairs": [], + "minimum_distance_m": 0.0907971621817052, + "closest_pair": [ + "benchmark_head_support", + "right_base_link" + ] + }, + "convex": { + "pairs": [], + "minimum_distance_m": 0.0907971612501946, + "closest_pair": [ + "benchmark_head_support", + "right_base_link" + ] + } + }, + "table_probe_count": 77, + "visible_probe_count": 77, + "far_visible_probe_count": 28, + "far_probe_count": 28, + "table_probes": [ + { + "world_xyz": [ + 0.2, + -0.3, + 0.055 + ], + "pixel": [ + 514.438177027588, + 369.87714987714986 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.2, + -0.2, + 0.055 + ], + "pixel": [ + 449.62545135172536, + 369.87714987714986 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.2, + -0.1, + 0.055 + ], + "pixel": [ + 384.81272567586274, + 369.8771498771499 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.2, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 369.87714987714986 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.2, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 255.18727432413758, + 369.87714987714986 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.2, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 190.37454864827504, + 369.87714987714986 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.2, + 0.3, + 0.055 + ], + "pixel": [ + 125.56182297241247, + 369.87714987714986 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.265, + -0.3, + 0.055 + ], + "pixel": [ + 499.06680933441567, + 330.1937491161081 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.265, + -0.2, + 0.055 + ], + "pixel": [ + 439.37787288961044, + 330.1937491161081 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.265, + -0.1, + 0.055 + ], + "pixel": [ + 379.68893644480534, + 330.1937491161081 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.265, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 330.1937491161081 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.265, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 260.311063555195, + 330.1937491161081 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.265, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 200.6221271103899, + 330.1937491161081 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.265, + 0.3, + 0.055 + ], + "pixel": [ + 140.9331906655848, + 330.1937491161081 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.32999999999999996, + -0.3, + 0.055 + ], + "pixel": [ + 485.94776000047875, + 296.32503276539984 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.32999999999999996, + -0.2, + 0.055 + ], + "pixel": [ + 430.63184000031924, + 296.32503276539984 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.32999999999999996, + -0.1, + 0.055 + ], + "pixel": [ + 375.3159200001597, + 296.32503276539984 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.32999999999999996, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 296.32503276539984 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.32999999999999996, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 264.6840799998406, + 296.32503276539984 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.32999999999999996, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 209.3681599996811, + 296.32503276539984 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.32999999999999996, + 0.3, + 0.055 + ], + "pixel": [ + 154.05223999952165, + 296.32503276539984 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.39499999999999996, + -0.3, + 0.055 + ], + "pixel": [ + 474.6197837103008, + 267.0802295762609 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.39499999999999996, + -0.2, + 0.055 + ], + "pixel": [ + 423.07985580686716, + 267.0802295762609 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.39499999999999996, + -0.1, + 0.055 + ], + "pixel": [ + 371.53992790343364, + 267.0802295762609 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.39499999999999996, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 267.0802295762609 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.39499999999999996, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 268.4600720965666, + 267.0802295762609 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.39499999999999996, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 216.9201441931331, + 267.0802295762609 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.39499999999999996, + 0.3, + 0.055 + ], + "pixel": [ + 165.38021628969958, + 267.0802295762609 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.45999999999999996, + -0.3, + 0.055 + ], + "pixel": [ + 464.7395300415698, + 241.572930955647 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.45999999999999996, + -0.2, + 0.055 + ], + "pixel": [ + 416.49302002771327, + 241.57293095564705 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.45999999999999996, + -0.1, + 0.055 + ], + "pixel": [ + 368.2465100138568, + 241.57293095564705 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.45999999999999996, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 241.57293095564705 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.45999999999999996, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 271.7534899861436, + 241.57293095564705 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.45999999999999996, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 223.50697997228707, + 241.57293095564705 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.45999999999999996, + 0.3, + 0.055 + ], + "pixel": [ + 175.26046995843052, + 241.57293095564705 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5249999999999999, + -0.3, + 0.055 + ], + "pixel": [ + 456.0461382619161, + 219.12968733211562 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5249999999999999, + -0.2, + 0.055 + ], + "pixel": [ + 410.69742550794416, + 219.12968733211562 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5249999999999999, + -0.1, + 0.055 + ], + "pixel": [ + 365.34871275397217, + 219.12968733211562 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5249999999999999, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 219.12968733211562 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5249999999999999, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 274.6512872460282, + 219.12968733211562 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5249999999999999, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 229.30257449205618, + 219.12968733211562 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5249999999999999, + 0.3, + 0.055 + ], + "pixel": [ + 183.95386173808424, + 219.12968733211565 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5899999999999999, + -0.3, + 0.055 + ], + "pixel": [ + 448.337868315797, + 199.2296776809244 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5899999999999999, + -0.2, + 0.055 + ], + "pixel": [ + 405.55857887719804, + 199.22967768092442 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5899999999999999, + -0.1, + 0.055 + ], + "pixel": [ + 362.7792894385991, + 199.22967768092442 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5899999999999999, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 199.22967768092442 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5899999999999999, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 277.2207105614012, + 199.22967768092442 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5899999999999999, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 234.44142112280224, + 199.22967768092442 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5899999999999999, + 0.3, + 0.055 + ], + "pixel": [ + 191.66213168420336, + 199.22967768092445 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.6549999999999999, + -0.3, + 0.055 + ], + "pixel": [ + 441.45625024495473, + 181.4637889688249 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.6549999999999999, + -0.2, + 0.055 + ], + "pixel": [ + 400.97083349663654, + 181.46378896882493 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.6549999999999999, + -0.1, + 0.055 + ], + "pixel": [ + 360.4854167483183, + 181.46378896882493 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.6549999999999999, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 181.46378896882493 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.6549999999999999, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 279.514583251682, + 181.46378896882493 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.6549999999999999, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 239.0291665033638, + 181.46378896882493 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.6549999999999999, + 0.3, + 0.055 + ], + "pixel": [ + 198.54374975504555, + 181.46378896882496 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.72, + -0.3, + 0.055 + ], + "pixel": [ + 435.2750736347099, + 165.50619082301532 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.72, + -0.2, + 0.055 + ], + "pixel": [ + 396.8500490898066, + 165.50619082301532 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.72, + -0.1, + 0.055 + ], + "pixel": [ + 358.42502454490335, + 165.50619082301532 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.72, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 165.50619082301532 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.72, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 281.57497545509693, + 165.50619082301532 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.72, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 243.1499509101937, + 165.50619082301532 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.72, + 0.3, + 0.055 + ], + "pixel": [ + 204.72492636529046, + 165.50619082301532 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.7849999999999999, + -0.3, + 0.055 + ], + "pixel": [ + 429.6925763496191, + 151.09416962661354 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.7849999999999999, + -0.2, + 0.055 + ], + "pixel": [ + 393.12838423307943, + 151.09416962661354 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.7849999999999999, + -0.1, + 0.055 + ], + "pixel": [ + 356.56419211653974, + 151.09416962661354 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.7849999999999999, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 151.09416962661354 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.7849999999999999, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 283.4358078834605, + 151.0941696266136 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.7849999999999999, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 246.87161576692085, + 151.0941696266136 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.7849999999999999, + 0.3, + 0.055 + ], + "pixel": [ + 210.30742365038122, + 151.0941696266136 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.85, + -0.3, + 0.055 + ], + "pixel": [ + 424.62579811631576, + 138.01355147909433 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.85, + -0.2, + 0.055 + ], + "pixel": [ + 389.7505320775439, + 138.01355147909433 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.85, + -0.1, + 0.055 + ], + "pixel": [ + 354.875266038772, + 138.01355147909433 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.85, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 138.01355147909433 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.85, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 285.1247339612283, + 138.01355147909433 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.85, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 250.2494679224564, + 138.0135514790944 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.85, + 0.3, + 0.055 + ], + "pixel": [ + 215.37420188368455, + 138.0135514790944 + ], + "in_frame": true, + "robot_occluded": false + } + ], + "tcp_projection": { + "left": { + "pixel": [ + 74.25882412557293, + 150.56768562523126 + ], + "in_frame": true + }, + "right": { + "pixel": [ + 565.7411757274656, + 150.56768605002176 + ], + "in_frame": true + } + } + }, + "left_low_open": { + "head_arm_collision": { + "source": { + "pairs": [], + "minimum_distance_m": 0.0907971621817052, + "closest_pair": [ + "benchmark_head_support", + "right_base_link" + ] + }, + "convex": { + "pairs": [], + "minimum_distance_m": 0.0907971612501946, + "closest_pair": [ + "benchmark_head_support", + "right_base_link" + ] + } + }, + "table_probe_count": 77, + "visible_probe_count": 70, + "far_visible_probe_count": 25, + "far_probe_count": 28, + "table_probes": [ + { + "world_xyz": [ + 0.2, + -0.3, + 0.055 + ], + "pixel": [ + 514.438177027588, + 369.87714987714986 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.2, + -0.2, + 0.055 + ], + "pixel": [ + 449.62545135172536, + 369.87714987714986 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.2, + -0.1, + 0.055 + ], + "pixel": [ + 384.81272567586274, + 369.8771498771499 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.2, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 369.87714987714986 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.2, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 255.18727432413758, + 369.87714987714986 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.2, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 190.37454864827504, + 369.87714987714986 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.2, + 0.3, + 0.055 + ], + "pixel": [ + 125.56182297241247, + 369.87714987714986 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.265, + -0.3, + 0.055 + ], + "pixel": [ + 499.06680933441567, + 330.1937491161081 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.265, + -0.2, + 0.055 + ], + "pixel": [ + 439.37787288961044, + 330.1937491161081 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.265, + -0.1, + 0.055 + ], + "pixel": [ + 379.68893644480534, + 330.1937491161081 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.265, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 330.1937491161081 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.265, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 260.311063555195, + 330.1937491161081 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.265, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 200.6221271103899, + 330.1937491161081 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.265, + 0.3, + 0.055 + ], + "pixel": [ + 140.9331906655848, + 330.1937491161081 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.32999999999999996, + -0.3, + 0.055 + ], + "pixel": [ + 485.94776000047875, + 296.32503276539984 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.32999999999999996, + -0.2, + 0.055 + ], + "pixel": [ + 430.63184000031924, + 296.32503276539984 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.32999999999999996, + -0.1, + 0.055 + ], + "pixel": [ + 375.3159200001597, + 296.32503276539984 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.32999999999999996, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 296.32503276539984 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.32999999999999996, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 264.6840799998406, + 296.32503276539984 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.32999999999999996, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 209.3681599996811, + 296.32503276539984 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.32999999999999996, + 0.3, + 0.055 + ], + "pixel": [ + 154.05223999952165, + 296.32503276539984 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.39499999999999996, + -0.3, + 0.055 + ], + "pixel": [ + 474.6197837103008, + 267.0802295762609 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.39499999999999996, + -0.2, + 0.055 + ], + "pixel": [ + 423.07985580686716, + 267.0802295762609 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.39499999999999996, + -0.1, + 0.055 + ], + "pixel": [ + 371.53992790343364, + 267.0802295762609 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.39499999999999996, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 267.0802295762609 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.39499999999999996, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 268.4600720965666, + 267.0802295762609 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.39499999999999996, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 216.9201441931331, + 267.0802295762609 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.39499999999999996, + 0.3, + 0.055 + ], + "pixel": [ + 165.38021628969958, + 267.0802295762609 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.45999999999999996, + -0.3, + 0.055 + ], + "pixel": [ + 464.7395300415698, + 241.572930955647 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.45999999999999996, + -0.2, + 0.055 + ], + "pixel": [ + 416.49302002771327, + 241.57293095564705 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.45999999999999996, + -0.1, + 0.055 + ], + "pixel": [ + 368.2465100138568, + 241.57293095564705 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.45999999999999996, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 241.57293095564705 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.45999999999999996, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 271.7534899861436, + 241.57293095564705 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.45999999999999996, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 223.50697997228707, + 241.57293095564705 + ], + "in_frame": true, + "robot_occluded": true + }, + { + "world_xyz": [ + 0.45999999999999996, + 0.3, + 0.055 + ], + "pixel": [ + 175.26046995843052, + 241.57293095564705 + ], + "in_frame": true, + "robot_occluded": true + }, + { + "world_xyz": [ + 0.5249999999999999, + -0.3, + 0.055 + ], + "pixel": [ + 456.0461382619161, + 219.12968733211562 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5249999999999999, + -0.2, + 0.055 + ], + "pixel": [ + 410.69742550794416, + 219.12968733211562 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5249999999999999, + -0.1, + 0.055 + ], + "pixel": [ + 365.34871275397217, + 219.12968733211562 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5249999999999999, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 219.12968733211562 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5249999999999999, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 274.6512872460282, + 219.12968733211562 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5249999999999999, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 229.30257449205618, + 219.12968733211562 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5249999999999999, + 0.3, + 0.055 + ], + "pixel": [ + 183.95386173808424, + 219.12968733211565 + ], + "in_frame": true, + "robot_occluded": true + }, + { + "world_xyz": [ + 0.5899999999999999, + -0.3, + 0.055 + ], + "pixel": [ + 448.337868315797, + 199.2296776809244 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5899999999999999, + -0.2, + 0.055 + ], + "pixel": [ + 405.55857887719804, + 199.22967768092442 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5899999999999999, + -0.1, + 0.055 + ], + "pixel": [ + 362.7792894385991, + 199.22967768092442 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5899999999999999, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 199.22967768092442 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5899999999999999, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 277.2207105614012, + 199.22967768092442 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5899999999999999, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 234.44142112280224, + 199.22967768092442 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5899999999999999, + 0.3, + 0.055 + ], + "pixel": [ + 191.66213168420336, + 199.22967768092445 + ], + "in_frame": true, + "robot_occluded": true + }, + { + "world_xyz": [ + 0.6549999999999999, + -0.3, + 0.055 + ], + "pixel": [ + 441.45625024495473, + 181.4637889688249 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.6549999999999999, + -0.2, + 0.055 + ], + "pixel": [ + 400.97083349663654, + 181.46378896882493 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.6549999999999999, + -0.1, + 0.055 + ], + "pixel": [ + 360.4854167483183, + 181.46378896882493 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.6549999999999999, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 181.46378896882493 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.6549999999999999, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 279.514583251682, + 181.46378896882493 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.6549999999999999, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 239.0291665033638, + 181.46378896882493 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.6549999999999999, + 0.3, + 0.055 + ], + "pixel": [ + 198.54374975504555, + 181.46378896882496 + ], + "in_frame": true, + "robot_occluded": true + }, + { + "world_xyz": [ + 0.72, + -0.3, + 0.055 + ], + "pixel": [ + 435.2750736347099, + 165.50619082301532 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.72, + -0.2, + 0.055 + ], + "pixel": [ + 396.8500490898066, + 165.50619082301532 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.72, + -0.1, + 0.055 + ], + "pixel": [ + 358.42502454490335, + 165.50619082301532 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.72, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 165.50619082301532 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.72, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 281.57497545509693, + 165.50619082301532 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.72, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 243.1499509101937, + 165.50619082301532 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.72, + 0.3, + 0.055 + ], + "pixel": [ + 204.72492636529046, + 165.50619082301532 + ], + "in_frame": true, + "robot_occluded": true + }, + { + "world_xyz": [ + 0.7849999999999999, + -0.3, + 0.055 + ], + "pixel": [ + 429.6925763496191, + 151.09416962661354 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.7849999999999999, + -0.2, + 0.055 + ], + "pixel": [ + 393.12838423307943, + 151.09416962661354 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.7849999999999999, + -0.1, + 0.055 + ], + "pixel": [ + 356.56419211653974, + 151.09416962661354 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.7849999999999999, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 151.09416962661354 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.7849999999999999, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 283.4358078834605, + 151.0941696266136 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.7849999999999999, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 246.87161576692085, + 151.0941696266136 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.7849999999999999, + 0.3, + 0.055 + ], + "pixel": [ + 210.30742365038122, + 151.0941696266136 + ], + "in_frame": true, + "robot_occluded": true + }, + { + "world_xyz": [ + 0.85, + -0.3, + 0.055 + ], + "pixel": [ + 424.62579811631576, + 138.01355147909433 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.85, + -0.2, + 0.055 + ], + "pixel": [ + 389.7505320775439, + 138.01355147909433 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.85, + -0.1, + 0.055 + ], + "pixel": [ + 354.875266038772, + 138.01355147909433 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.85, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 138.01355147909433 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.85, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 285.1247339612283, + 138.01355147909433 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.85, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 250.2494679224564, + 138.0135514790944 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.85, + 0.3, + 0.055 + ], + "pixel": [ + 215.37420188368455, + 138.0135514790944 + ], + "in_frame": true, + "robot_occluded": false + } + ], + "tcp_projection": { + "left": { + "pixel": [ + 215.91603708253342, + 274.95930952081477 + ], + "in_frame": true + }, + "right": { + "pixel": [ + 565.7411757274656, + 150.56768605002176 + ], + "in_frame": true + } + } + }, + "right_low_open": { + "head_arm_collision": { + "source": { + "pairs": [], + "minimum_distance_m": 0.0907971621817052, + "closest_pair": [ + "benchmark_head_support", + "right_base_link" + ] + }, + "convex": { + "pairs": [], + "minimum_distance_m": 0.0907971612501946, + "closest_pair": [ + "benchmark_head_support", + "right_base_link" + ] + } + }, + "table_probe_count": 77, + "visible_probe_count": 70, + "far_visible_probe_count": 25, + "far_probe_count": 28, + "table_probes": [ + { + "world_xyz": [ + 0.2, + -0.3, + 0.055 + ], + "pixel": [ + 514.438177027588, + 369.87714987714986 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.2, + -0.2, + 0.055 + ], + "pixel": [ + 449.62545135172536, + 369.87714987714986 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.2, + -0.1, + 0.055 + ], + "pixel": [ + 384.81272567586274, + 369.8771498771499 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.2, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 369.87714987714986 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.2, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 255.18727432413758, + 369.87714987714986 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.2, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 190.37454864827504, + 369.87714987714986 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.2, + 0.3, + 0.055 + ], + "pixel": [ + 125.56182297241247, + 369.87714987714986 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.265, + -0.3, + 0.055 + ], + "pixel": [ + 499.06680933441567, + 330.1937491161081 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.265, + -0.2, + 0.055 + ], + "pixel": [ + 439.37787288961044, + 330.1937491161081 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.265, + -0.1, + 0.055 + ], + "pixel": [ + 379.68893644480534, + 330.1937491161081 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.265, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 330.1937491161081 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.265, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 260.311063555195, + 330.1937491161081 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.265, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 200.6221271103899, + 330.1937491161081 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.265, + 0.3, + 0.055 + ], + "pixel": [ + 140.9331906655848, + 330.1937491161081 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.32999999999999996, + -0.3, + 0.055 + ], + "pixel": [ + 485.94776000047875, + 296.32503276539984 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.32999999999999996, + -0.2, + 0.055 + ], + "pixel": [ + 430.63184000031924, + 296.32503276539984 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.32999999999999996, + -0.1, + 0.055 + ], + "pixel": [ + 375.3159200001597, + 296.32503276539984 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.32999999999999996, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 296.32503276539984 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.32999999999999996, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 264.6840799998406, + 296.32503276539984 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.32999999999999996, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 209.3681599996811, + 296.32503276539984 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.32999999999999996, + 0.3, + 0.055 + ], + "pixel": [ + 154.05223999952165, + 296.32503276539984 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.39499999999999996, + -0.3, + 0.055 + ], + "pixel": [ + 474.6197837103008, + 267.0802295762609 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.39499999999999996, + -0.2, + 0.055 + ], + "pixel": [ + 423.07985580686716, + 267.0802295762609 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.39499999999999996, + -0.1, + 0.055 + ], + "pixel": [ + 371.53992790343364, + 267.0802295762609 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.39499999999999996, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 267.0802295762609 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.39499999999999996, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 268.4600720965666, + 267.0802295762609 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.39499999999999996, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 216.9201441931331, + 267.0802295762609 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.39499999999999996, + 0.3, + 0.055 + ], + "pixel": [ + 165.38021628969958, + 267.0802295762609 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.45999999999999996, + -0.3, + 0.055 + ], + "pixel": [ + 464.7395300415698, + 241.572930955647 + ], + "in_frame": true, + "robot_occluded": true + }, + { + "world_xyz": [ + 0.45999999999999996, + -0.2, + 0.055 + ], + "pixel": [ + 416.49302002771327, + 241.57293095564705 + ], + "in_frame": true, + "robot_occluded": true + }, + { + "world_xyz": [ + 0.45999999999999996, + -0.1, + 0.055 + ], + "pixel": [ + 368.2465100138568, + 241.57293095564705 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.45999999999999996, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 241.57293095564705 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.45999999999999996, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 271.7534899861436, + 241.57293095564705 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.45999999999999996, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 223.50697997228707, + 241.57293095564705 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.45999999999999996, + 0.3, + 0.055 + ], + "pixel": [ + 175.26046995843052, + 241.57293095564705 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5249999999999999, + -0.3, + 0.055 + ], + "pixel": [ + 456.0461382619161, + 219.12968733211562 + ], + "in_frame": true, + "robot_occluded": true + }, + { + "world_xyz": [ + 0.5249999999999999, + -0.2, + 0.055 + ], + "pixel": [ + 410.69742550794416, + 219.12968733211562 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5249999999999999, + -0.1, + 0.055 + ], + "pixel": [ + 365.34871275397217, + 219.12968733211562 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5249999999999999, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 219.12968733211562 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5249999999999999, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 274.6512872460282, + 219.12968733211562 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5249999999999999, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 229.30257449205618, + 219.12968733211562 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5249999999999999, + 0.3, + 0.055 + ], + "pixel": [ + 183.95386173808424, + 219.12968733211565 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5899999999999999, + -0.3, + 0.055 + ], + "pixel": [ + 448.337868315797, + 199.2296776809244 + ], + "in_frame": true, + "robot_occluded": true + }, + { + "world_xyz": [ + 0.5899999999999999, + -0.2, + 0.055 + ], + "pixel": [ + 405.55857887719804, + 199.22967768092442 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5899999999999999, + -0.1, + 0.055 + ], + "pixel": [ + 362.7792894385991, + 199.22967768092442 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5899999999999999, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 199.22967768092442 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5899999999999999, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 277.2207105614012, + 199.22967768092442 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5899999999999999, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 234.44142112280224, + 199.22967768092442 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.5899999999999999, + 0.3, + 0.055 + ], + "pixel": [ + 191.66213168420336, + 199.22967768092445 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.6549999999999999, + -0.3, + 0.055 + ], + "pixel": [ + 441.45625024495473, + 181.4637889688249 + ], + "in_frame": true, + "robot_occluded": true + }, + { + "world_xyz": [ + 0.6549999999999999, + -0.2, + 0.055 + ], + "pixel": [ + 400.97083349663654, + 181.46378896882493 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.6549999999999999, + -0.1, + 0.055 + ], + "pixel": [ + 360.4854167483183, + 181.46378896882493 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.6549999999999999, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 181.46378896882493 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.6549999999999999, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 279.514583251682, + 181.46378896882493 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.6549999999999999, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 239.0291665033638, + 181.46378896882493 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.6549999999999999, + 0.3, + 0.055 + ], + "pixel": [ + 198.54374975504555, + 181.46378896882496 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.72, + -0.3, + 0.055 + ], + "pixel": [ + 435.2750736347099, + 165.50619082301532 + ], + "in_frame": true, + "robot_occluded": true + }, + { + "world_xyz": [ + 0.72, + -0.2, + 0.055 + ], + "pixel": [ + 396.8500490898066, + 165.50619082301532 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.72, + -0.1, + 0.055 + ], + "pixel": [ + 358.42502454490335, + 165.50619082301532 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.72, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 165.50619082301532 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.72, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 281.57497545509693, + 165.50619082301532 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.72, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 243.1499509101937, + 165.50619082301532 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.72, + 0.3, + 0.055 + ], + "pixel": [ + 204.72492636529046, + 165.50619082301532 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.7849999999999999, + -0.3, + 0.055 + ], + "pixel": [ + 429.6925763496191, + 151.09416962661354 + ], + "in_frame": true, + "robot_occluded": true + }, + { + "world_xyz": [ + 0.7849999999999999, + -0.2, + 0.055 + ], + "pixel": [ + 393.12838423307943, + 151.09416962661354 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.7849999999999999, + -0.1, + 0.055 + ], + "pixel": [ + 356.56419211653974, + 151.09416962661354 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.7849999999999999, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 151.09416962661354 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.7849999999999999, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 283.4358078834605, + 151.0941696266136 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.7849999999999999, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 246.87161576692085, + 151.0941696266136 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.7849999999999999, + 0.3, + 0.055 + ], + "pixel": [ + 210.30742365038122, + 151.0941696266136 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.85, + -0.3, + 0.055 + ], + "pixel": [ + 424.62579811631576, + 138.01355147909433 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.85, + -0.2, + 0.055 + ], + "pixel": [ + 389.7505320775439, + 138.01355147909433 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.85, + -0.1, + 0.055 + ], + "pixel": [ + 354.875266038772, + 138.01355147909433 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.85, + 0.0, + 0.055 + ], + "pixel": [ + 320.0000000000001, + 138.01355147909433 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.85, + 0.09999999999999998, + 0.055 + ], + "pixel": [ + 285.1247339612283, + 138.01355147909433 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.85, + 0.19999999999999996, + 0.055 + ], + "pixel": [ + 250.2494679224564, + 138.0135514790944 + ], + "in_frame": true, + "robot_occluded": false + }, + { + "world_xyz": [ + 0.85, + 0.3, + 0.055 + ], + "pixel": [ + 215.37420188368455, + 138.0135514790944 + ], + "in_frame": true, + "robot_occluded": false + } + ], + "tcp_projection": { + "left": { + "pixel": [ + 74.25882412557293, + 150.56768562523126 + ], + "in_frame": true + }, + "right": { + "pixel": [ + 424.08396291746, + 274.9593095207533 + ], + "in_frame": true + } + } + } + }, + "rendered_head_overview_review_required": true, + "control_hz": 30, + "source_arm_elements_unchanged": true, + "protected_profile_fields_unchanged": true, + "task_scene_geometry": { + "scope": "Only added static head/support vs complete task collision geometry; native arms unchanged. Actual scene ground rebasing; KLT payloads resolved by portable source loader. Not a PhysX test.", + "scenes": { + "bagel_plate_banana_bowl.usda": { + "source_scene_sha256": "c6ff0b2d7ecf7529e96376ffccb303cac3fa8a4aa75f3d7d0e6afb5386adb4bc", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.22498141315507408, + "closest_pair": [ + "benchmark_head_support", + "/world/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "c6ff0b2d7ecf7529e96376ffccb303cac3fa8a4aa75f3d7d0e6afb5386adb4bc", + "source_geometry_complete": true, + "collision_shape_count": 72, + "rigid_body_count": 6, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "banana_bowl.usda": { + "source_scene_sha256": "caf59864ffd777e53fb14e88e5620e19a967bbaa8d448bf98a8fdd41cb8832a0", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.22573387854753127, + "closest_pair": [ + "benchmark_head_support", + "/world/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "caf59864ffd777e53fb14e88e5620e19a967bbaa8d448bf98a8fdd41cb8832a0", + "source_geometry_complete": true, + "collision_shape_count": 7, + "rigid_body_count": 3, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "bananas_5_grey_bin.usda": { + "source_scene_sha256": "2a808fa6360bcfe6ad503e6c091ac11bb513154b40911196820126efd71f12c0", + "actual_base_position": [ + -0.04, + 0.0, + 0.1269999999999999 + ], + "intersections": [], + "minimum_distance_m": 0.22706234508737744, + "closest_pair": [ + "benchmark_head_support", + "/World/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "2a808fa6360bcfe6ad503e6c091ac11bb513154b40911196820126efd71f12c0", + "source_geometry_complete": true, + "collision_shape_count": 11, + "rigid_body_count": 7, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "bananas_5_in_crate.usda": { + "source_scene_sha256": "a24a7da1abc7d12549c1fd67a7c0c976ea7b7196ef241716eac467374fac8cbf", + "actual_base_position": [ + -0.04, + 0.0, + 0.1269999999999999 + ], + "intersections": [], + "minimum_distance_m": 0.22704154302109594, + "closest_pair": [ + "benchmark_head_support", + "/World/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "a24a7da1abc7d12549c1fd67a7c0c976ea7b7196ef241716eac467374fac8cbf", + "source_geometry_complete": true, + "collision_shape_count": 13, + "rigid_body_count": 7, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [ + { + "prim": "/World/purple_crate", + "source_url": "https://omniverse-content-production.s3-us-west-2.amazonaws.com/Assets/Isaac/4.5/Isaac/Props/KLT_Bin/small_KLT_visual_collision.usd", + "cache_sha256": "2e6172432c1b5ee2b7ea047229e070ccf1d49b69d01b4796c0445531af392bb9" + } + ], + "cached_source_files": [ + { + "source_url": "https://omniverse-content-production.s3-us-west-2.amazonaws.com/Assets/Isaac/4.5/Isaac/Props/KLT_Bin/small_KLT_visual_collision.usd", + "path": "extensions/bimanual/evidence/source_payload_cache/small_KLT_visual_collision.usd", + "sha256": "2e6172432c1b5ee2b7ea047229e070ccf1d49b69d01b4796c0445531af392bb9" + }, + { + "source_url": "https://omniverse-content-production.s3-us-west-2.amazonaws.com/Assets/Isaac/4.5/Isaac/Props/KLT_Bin/small_KLT_visual.usd", + "path": "extensions/bimanual/evidence/source_payload_cache/small_KLT_visual.usd", + "sha256": "2810154bdae1532dea35603024a0fefd94eaf3909cecc5edbe09b6cb510e3a2b" + } + ], + "original_scene_modified": false + } + }, + "bin_condiments.usda": { + "source_scene_sha256": "f31448cc2ee3bcef390013003999955f0ba986d38443443640cf5e7b2b318ab4", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.22501009933544222, + "closest_pair": [ + "benchmark_head_support", + "/world/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "f31448cc2ee3bcef390013003999955f0ba986d38443443640cf5e7b2b318ab4", + "source_geometry_complete": true, + "collision_shape_count": 17, + "rigid_body_count": 13, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "bin_mug_mustard_marker_bowl.usda": { + "source_scene_sha256": "9c0137e4c5510a13ae420245f834db3cda300d91f112ad30ee773be1eedc3491", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.2250045359287581, + "closest_pair": [ + "benchmark_head_support", + "/world/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "9c0137e4c5510a13ae420245f834db3cda300d91f112ad30ee773be1eedc3491", + "source_geometry_complete": true, + "collision_shape_count": 10, + "rigid_body_count": 6, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "blue.usda": { + "source_scene_sha256": "c33535281435c1211102f47f4cb0b0fad9015b2d42e91b7d1b9142493c354b9c", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.22575420229559803, + "closest_pair": [ + "benchmark_head_support", + "/world/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "c33535281435c1211102f47f4cb0b0fad9015b2d42e91b7d1b9142493c354b9c", + "source_geometry_complete": true, + "collision_shape_count": 10, + "rigid_body_count": 4, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "bottles_crate.usda": { + "source_scene_sha256": "2ead9e73187946fba05d8cf3971bf30fe7f773e61c3e8e9b7d4042f4bed31781", + "actual_base_position": [ + -0.04, + 0.0, + 0.1269999999999999 + ], + "intersections": [], + "minimum_distance_m": 0.2851540511129868, + "closest_pair": [ + "benchmark_head_support", + "/World/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "2ead9e73187946fba05d8cf3971bf30fe7f773e61c3e8e9b7d4042f4bed31781", + "source_geometry_complete": true, + "collision_shape_count": 11, + "rigid_body_count": 5, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [ + { + "prim": "/World/purple_crate", + "source_url": "https://omniverse-content-production.s3-us-west-2.amazonaws.com/Assets/Isaac/4.5/Isaac/Props/KLT_Bin/small_KLT_visual_collision.usd", + "cache_sha256": "2e6172432c1b5ee2b7ea047229e070ccf1d49b69d01b4796c0445531af392bb9" + } + ], + "cached_source_files": [ + { + "source_url": "https://omniverse-content-production.s3-us-west-2.amazonaws.com/Assets/Isaac/4.5/Isaac/Props/KLT_Bin/small_KLT_visual_collision.usd", + "path": "extensions/bimanual/evidence/source_payload_cache/small_KLT_visual_collision.usd", + "sha256": "2e6172432c1b5ee2b7ea047229e070ccf1d49b69d01b4796c0445531af392bb9" + }, + { + "source_url": "https://omniverse-content-production.s3-us-west-2.amazonaws.com/Assets/Isaac/4.5/Isaac/Props/KLT_Bin/small_KLT_visual.usd", + "path": "extensions/bimanual/evidence/source_payload_cache/small_KLT_visual.usd", + "sha256": "2810154bdae1532dea35603024a0fefd94eaf3909cecc5edbe09b6cb510e3a2b" + } + ], + "original_scene_modified": false + } + }, + "bowls_2_table.usda": { + "source_scene_sha256": "9cd522534edc56f2a47593ae1a8d62b5da64d9586f6b4abc5aa1b1867293c886", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.17164583775835296, + "closest_pair": [ + "benchmark_head_support", + "/world/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "9cd522534edc56f2a47593ae1a8d62b5da64d9586f6b4abc5aa1b1867293c886", + "source_geometry_complete": true, + "collision_shape_count": 7, + "rigid_body_count": 3, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "breakfast_table.usda": { + "source_scene_sha256": "aef72101f6da0da5792b83e4db4adb5b782c080216daceb2ed6ee8ce3328431d", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.22498273203599523, + "closest_pair": [ + "benchmark_head_support", + "/world/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "aef72101f6da0da5792b83e4db4adb5b782c080216daceb2ed6ee8ce3328431d", + "source_geometry_complete": true, + "collision_shape_count": 118, + "rigid_body_count": 20, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "butter_raisin_box.usda": { + "source_scene_sha256": "bc54f9d71398f8a5ff11730b3dbe6a513bc9cd5dda9f8948fe0bc08749a232cc", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.22573473932412777, + "closest_pair": [ + "benchmark_head_support", + "/world/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "bc54f9d71398f8a5ff11730b3dbe6a513bc9cd5dda9f8948fe0bc08749a232cc", + "source_geometry_complete": true, + "collision_shape_count": 7, + "rigid_body_count": 3, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "butter_raisin_box_grey_bin.usda": { + "source_scene_sha256": "65a449d6f07327bde8d73851f2e460502881aad1b0ef8f4283f2a8c0ba3ab5d6", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.2257622394399992, + "closest_pair": [ + "benchmark_head_support", + "/world/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "65a449d6f07327bde8d73851f2e460502881aad1b0ef8f4283f2a8c0ba3ab5d6", + "source_geometry_complete": true, + "collision_shape_count": 8, + "rigid_body_count": 4, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "cartons_in_crate.usda": { + "source_scene_sha256": "b8868f09a283630102a61cfd6194243a1cba434fb41d8e9785f490e01f2d6eda", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.2216831856143692, + "closest_pair": [ + "benchmark_head_support", + "/world/mug/obj_000009_Mesh" + ], + "source_scene_geometry": { + "scene_source_sha256": "b8868f09a283630102a61cfd6194243a1cba434fb41d8e9785f490e01f2d6eda", + "source_geometry_complete": true, + "collision_shape_count": 13, + "rigid_body_count": 9, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "cartons_in_vertical_crate.usda": { + "source_scene_sha256": "f9ce64cb0619b6fea4e22e207f1fb412699b787bf1be51abe84d171ae9f0bd49", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.2216831856143692, + "closest_pair": [ + "benchmark_head_support", + "/world/mug/obj_000009_Mesh" + ], + "source_scene_geometry": { + "scene_source_sha256": "f9ce64cb0619b6fea4e22e207f1fb412699b787bf1be51abe84d171ae9f0bd49", + "source_geometry_complete": true, + "collision_shape_count": 13, + "rigid_body_count": 9, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "cartons_on_box.usda": { + "source_scene_sha256": "c58ad6ed85eec0241a43ab0ed2d15c31b2740e33f81f840baeabbef9308084bf", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.2216831856143692, + "closest_pair": [ + "benchmark_head_support", + "/world/mug/obj_000009_Mesh" + ], + "source_scene_geometry": { + "scene_source_sha256": "c58ad6ed85eec0241a43ab0ed2d15c31b2740e33f81f840baeabbef9308084bf", + "source_geometry_complete": true, + "collision_shape_count": 16, + "rigid_body_count": 9, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "clutter_fruit_bottle_bluebin.usda": { + "source_scene_sha256": "bcb4c7b06653cc686819c5f12b84e4c529dc9d6e820f124c089078e37c437d8b", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.22573396104408072, + "closest_pair": [ + "benchmark_head_support", + "/world/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "bcb4c7b06653cc686819c5f12b84e4c529dc9d6e820f124c089078e37c437d8b", + "source_geometry_complete": true, + "collision_shape_count": 27, + "rigid_body_count": 18, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "colored_blocks.usda": { + "source_scene_sha256": "d1cc7b6a59f110b8178ae31c2825d4b1dfa17dd91be37e9d8a6aaa2c29cbf12e", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.2257345253716024, + "closest_pair": [ + "benchmark_head_support", + "/world/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "d1cc7b6a59f110b8178ae31c2825d4b1dfa17dd91be37e9d8a6aaa2c29cbf12e", + "source_geometry_complete": true, + "collision_shape_count": 9, + "rigid_body_count": 5, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "cooking_table.usda": { + "source_scene_sha256": "2f10a4c629fd48aa2be9cbf5aba3e84ac876ff6557283164f35b21631a0e0e06", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.22573502537457601, + "closest_pair": [ + "benchmark_head_support", + "/world/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "2f10a4c629fd48aa2be9cbf5aba3e84ac876ff6557283164f35b21631a0e0e06", + "source_geometry_complete": true, + "collision_shape_count": 20, + "rigid_body_count": 16, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "food_packing.usda": { + "source_scene_sha256": "9833aa206f9d7d2c8020843e27cb49f262b90c75a7ff957ec88667fcf8becc8c", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.22574716378779527, + "closest_pair": [ + "benchmark_head_support", + "/world/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "9833aa206f9d7d2c8020843e27cb49f262b90c75a7ff957ec88667fcf8becc8c", + "source_geometry_complete": true, + "collision_shape_count": 14, + "rigid_body_count": 10, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "foodpacking_1bin_1box_1can.usda": { + "source_scene_sha256": "fbea36f8ce9c96eb14f75aaa1b974c7aa21c68189df1700a0c79e879fc3600e4", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.22574509067176765, + "closest_pair": [ + "benchmark_head_support", + "/world/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "fbea36f8ce9c96eb14f75aaa1b974c7aa21c68189df1700a0c79e879fc3600e4", + "source_geometry_complete": true, + "collision_shape_count": 9, + "rigid_body_count": 5, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "foodpacking_1bin_2box_2can.usda": { + "source_scene_sha256": "beba8b30ff54e7c83a7e918d4450b07ce01c0ec1257082609dc695292c232bc6", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.22574509067176765, + "closest_pair": [ + "benchmark_head_support", + "/world/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "beba8b30ff54e7c83a7e918d4450b07ce01c0ec1257082609dc695292c232bc6", + "source_geometry_complete": true, + "collision_shape_count": 11, + "rigid_body_count": 7, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "foodpacking_1bin_3box_3can.usda": { + "source_scene_sha256": "9b5b7724f63bd0befe97061abaf8c30cddf490bf9e09943606f0143d03a7fcaf", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.22574509067176765, + "closest_pair": [ + "benchmark_head_support", + "/world/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "9b5b7724f63bd0befe97061abaf8c30cddf490bf9e09943606f0143d03a7fcaf", + "source_geometry_complete": true, + "collision_shape_count": 13, + "rigid_body_count": 9, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "fruits_in_basket.usda": { + "source_scene_sha256": "34f084bdde8057c59c2cadafa6cc83f1c13992a3a00d7c5c2286b1bf0927ff3a", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.22573502560984354, + "closest_pair": [ + "benchmark_head_support", + "/world/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "34f084bdde8057c59c2cadafa6cc83f1c13992a3a00d7c5c2286b1bf0927ff3a", + "source_geometry_complete": true, + "collision_shape_count": 23, + "rigid_body_count": 17, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "fruits_out_of_basket.usda": { + "source_scene_sha256": "2c9da47e527e91582e51780d9dceb1e061810dd1d8aa06ecb2079fd0a92eec69", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.22573513766943598, + "closest_pair": [ + "benchmark_head_support", + "/world/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "2c9da47e527e91582e51780d9dceb1e061810dd1d8aa06ecb2079fd0a92eec69", + "source_geometry_complete": true, + "collision_shape_count": 22, + "rigid_body_count": 16, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "green.usda": { + "source_scene_sha256": "7be3e4b68e701346c560a66880356ddcaf8ec851e1da05f69903581c680856a5", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.22573450503952505, + "closest_pair": [ + "benchmark_head_support", + "/world/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "7be3e4b68e701346c560a66880356ddcaf8ec851e1da05f69903581c680856a5", + "source_geometry_complete": true, + "collision_shape_count": 12, + "rigid_body_count": 5, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "ladle_pot.usda": { + "source_scene_sha256": "e6dcf2e8f868ea8572cee1b58b57befcc5e773867a12f5e6c93117336f99dfd9", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.22573327852119807, + "closest_pair": [ + "benchmark_head_support", + "/world/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "e6dcf2e8f868ea8572cee1b58b57befcc5e773867a12f5e6c93117336f99dfd9", + "source_geometry_complete": true, + "collision_shape_count": 21, + "rigid_body_count": 14, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "mug_banana_ketchup_bowl_rubiks3_bin.usda": { + "source_scene_sha256": "63f0f4ecdb0b5feeb6a48526deef44dd4f1879cd8d2ab35fe1c8c0ab64d6b24b", + "actual_base_position": [ + -0.04, + 0.0, + 0.1269999999999999 + ], + "intersections": [], + "minimum_distance_m": 0.22704924767314702, + "closest_pair": [ + "benchmark_head_support", + "/World/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "63f0f4ecdb0b5feeb6a48526deef44dd4f1879cd8d2ab35fe1c8c0ab64d6b24b", + "source_geometry_complete": true, + "collision_shape_count": 13, + "rigid_body_count": 9, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "mugs2_bananas2_ketchup_rubiks3_bin.usda": { + "source_scene_sha256": "7ad25733c00bb212f29fe243a865d8f10fe28ab334eeff429b9eed294b03e0a5", + "actual_base_position": [ + -0.04, + 0.0, + 0.1269999999999999 + ], + "intersections": [], + "minimum_distance_m": 0.2270464978304956, + "closest_pair": [ + "benchmark_head_support", + "/World/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "7ad25733c00bb212f29fe243a865d8f10fe28ab334eeff429b9eed294b03e0a5", + "source_geometry_complete": true, + "collision_shape_count": 15, + "rigid_body_count": 11, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "mugs4_measuringcup_drill_bowl.usda": { + "source_scene_sha256": "896438ef74ffb4124a5636989baeaa167baf95c9984dc3348b7e14d94289c474", + "actual_base_position": [ + -0.04, + 0.0, + 0.1269999999999999 + ], + "intersections": [], + "minimum_distance_m": 0.22704531690983273, + "closest_pair": [ + "benchmark_head_support", + "/World/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "896438ef74ffb4124a5636989baeaa167baf95c9984dc3348b7e14d94289c474", + "source_geometry_complete": true, + "collision_shape_count": 12, + "rigid_body_count": 8, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "mugs4_measuringcup_drill_bowl_v2.usda": { + "source_scene_sha256": "96937326711c09723b57b9e7abcad5e9319b6f55fcd02e72c3ef3cfad9d5e75b", + "actual_base_position": [ + -0.04, + 0.0, + 0.1269999999999999 + ], + "intersections": [], + "minimum_distance_m": 0.22705180175210463, + "closest_pair": [ + "benchmark_head_support", + "/World/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "96937326711c09723b57b9e7abcad5e9319b6f55fcd02e72c3ef3cfad9d5e75b", + "source_geometry_complete": true, + "collision_shape_count": 12, + "rigid_body_count": 8, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "mugs_on_shelf.usda": { + "source_scene_sha256": "47e5c7269d9a0004930fad3f3afe3d37e3ebded51c3f0c94dff43b37f88cfa7b", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.22573405277187897, + "closest_pair": [ + "benchmark_head_support", + "/world/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "47e5c7269d9a0004930fad3f3afe3d37e3ebded51c3f0c94dff43b37f88cfa7b", + "source_geometry_complete": true, + "collision_shape_count": 14, + "rigid_body_count": 6, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "mustard_raisin_box.usda": { + "source_scene_sha256": "ec90f563c60f6767c0460c6bd16d6bd56b95dba1e08667abddf8b70e429a5227", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.22575704645628591, + "closest_pair": [ + "benchmark_head_support", + "/world/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "ec90f563c60f6767c0460c6bd16d6bd56b95dba1e08667abddf8b70e429a5227", + "source_geometry_complete": true, + "collision_shape_count": 7, + "rigid_body_count": 3, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "objects_around_table.usda": { + "source_scene_sha256": "c202f24acb5e600a5cef1e04944820b3fb8d66060f4d4c2605e03acf3c0e759d", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.2216831856143692, + "closest_pair": [ + "benchmark_head_support", + "/world/mug/obj_000009_Mesh" + ], + "source_scene_geometry": { + "scene_source_sha256": "c202f24acb5e600a5cef1e04944820b3fb8d66060f4d4c2605e03acf3c0e759d", + "source_geometry_complete": true, + "collision_shape_count": 13, + "rigid_body_count": 9, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "rubiks_cube_3.usda": { + "source_scene_sha256": "8eb2e45277448de02a24ecdbaa9c02f9dbadc33b7b7afdbfadd7a702caf3720d", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.22573450503952505, + "closest_pair": [ + "benchmark_head_support", + "/world/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "8eb2e45277448de02a24ecdbaa9c02f9dbadc33b7b7afdbfadd7a702caf3720d", + "source_geometry_complete": true, + "collision_shape_count": 8, + "rigid_body_count": 4, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "rubiks_cube_banana_bowl.usda": { + "source_scene_sha256": "22b95d601defb9252a448a1b37d0548e1f2dc3bfb0c3d86a04c2ef5c4cc817a0", + "actual_base_position": [ + -0.04, + 0.0, + 0.1269999999999999 + ], + "intersections": [], + "minimum_distance_m": 0.2270400074101748, + "closest_pair": [ + "benchmark_head_support", + "/World/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "22b95d601defb9252a448a1b37d0548e1f2dc3bfb0c3d86a04c2ef5c4cc817a0", + "source_geometry_complete": true, + "collision_shape_count": 8, + "rigid_body_count": 4, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "rubiks_cube_banana_bowl_mug_bin.usda": { + "source_scene_sha256": "1d366fb9b851b3e932bc5308ce666098a994b15ef1d1706ae16040c765aaa9c8", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.22706443568351392, + "closest_pair": [ + "benchmark_head_support", + "/World/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "1d366fb9b851b3e932bc5308ce666098a994b15ef1d1706ae16040c765aaa9c8", + "source_geometry_complete": true, + "collision_shape_count": 10, + "rigid_body_count": 6, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "rubiks_cube_bowl.usda": { + "source_scene_sha256": "1eb9aa3eec31568dceeab5ff8a45d13e4b1c4944bb2b0cc85e53eed1c7d9e66a", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.22704618672703722, + "closest_pair": [ + "benchmark_head_support", + "/World/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "1eb9aa3eec31568dceeab5ff8a45d13e4b1c4944bb2b0cc85e53eed1c7d9e66a", + "source_geometry_complete": true, + "collision_shape_count": 7, + "rigid_body_count": 3, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "shelf_mugs_jug_bowl.usda": { + "source_scene_sha256": "2eeb23564b52f63152221be5c90362365b5175b45f931104ea002be78173bc74", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.22565683971949663, + "closest_pair": [ + "benchmark_head_support", + "/world/mug/obj_000009_Mesh" + ], + "source_scene_geometry": { + "scene_source_sha256": "2eeb23564b52f63152221be5c90362365b5175b45f931104ea002be78173bc74", + "source_geometry_complete": true, + "collision_shape_count": 14, + "rigid_body_count": 6, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "shelf_with_cleaning_products.usda": { + "source_scene_sha256": "ba4b8ed7f02ac4f383928685fd625db2dd318cce8c2430e1a5c35531bfc38005", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.22573393054648386, + "closest_pair": [ + "benchmark_head_support", + "/world/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "ba4b8ed7f02ac4f383928685fd625db2dd318cce8c2430e1a5c35531bfc38005", + "source_geometry_complete": true, + "collision_shape_count": 20, + "rigid_body_count": 9, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "tools_container.usda": { + "source_scene_sha256": "eb97ca2aebfcbf4b68f49d8d7fe9a6cb00827d00a7dc25d26190f2d84139ec94", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.22575610410037988, + "closest_pair": [ + "benchmark_head_support", + "/world/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "eb97ca2aebfcbf4b68f49d8d7fe9a6cb00827d00a7dc25d26190f2d84139ec94", + "source_geometry_complete": true, + "collision_shape_count": 12, + "rigid_body_count": 7, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "tools_picking.usda": { + "source_scene_sha256": "b2615ef7563f7bcc1e1562de21d994fbb2ff1ed1b227deec9cf3e0a72e378ed8", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.22574633301758248, + "closest_pair": [ + "benchmark_head_support", + "/world/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "b2615ef7563f7bcc1e1562de21d994fbb2ff1ed1b227deec9cf3e0a72e378ed8", + "source_geometry_complete": true, + "collision_shape_count": 16, + "rigid_body_count": 12, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "toys_cleanup.usda": { + "source_scene_sha256": "141d5828904833424de841ffa285b6859980387dc642eb6d72fddbebc9bebf69", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.2247474577276372, + "closest_pair": [ + "benchmark_head_support", + "/world/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "141d5828904833424de841ffa285b6859980387dc642eb6d72fddbebc9bebf69", + "source_geometry_complete": true, + "collision_shape_count": 16, + "rigid_body_count": 12, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "two_bin.usda": { + "source_scene_sha256": "9c4d40ac50887b4b99bafd6be9c39c98ad99eebc3031e07d7c0c28061d747de6", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.2250045359287581, + "closest_pair": [ + "benchmark_head_support", + "/world/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "9c4d40ac50887b4b99bafd6be9c39c98ad99eebc3031e07d7c0c28061d747de6", + "source_geometry_complete": true, + "collision_shape_count": 8, + "rigid_body_count": 4, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "wire_shelf_mugs_plate_spatula.usda": { + "source_scene_sha256": "f89516140c2c7759938114c62307660eec78b4b3f32d2f8e302c6250eca2d8c5", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.20269946168382938, + "closest_pair": [ + "benchmark_head_support", + "/world/plate_small/geometry/collision_mesh" + ], + "source_scene_geometry": { + "scene_source_sha256": "f89516140c2c7759938114c62307660eec78b4b3f32d2f8e302c6250eca2d8c5", + "source_geometry_complete": true, + "collision_shape_count": 15, + "rigid_body_count": 9, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "workdesk.usda": { + "source_scene_sha256": "511f673cdec8a71442e3f7004889841e460aca04f1f9f6a0342ef11f94df2f3d", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.22573398657625196, + "closest_pair": [ + "benchmark_head_support", + "/world/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "511f673cdec8a71442e3f7004889841e460aca04f1f9f6a0342ef11f94df2f3d", + "source_geometry_complete": true, + "collision_shape_count": 19, + "rigid_body_count": 15, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "workdesk_bin.usda": { + "source_scene_sha256": "8ed37ae17925c7689d3def8502a8c6a14782908a3377384420821fbac88d62e8", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.2257337165933021, + "closest_pair": [ + "benchmark_head_support", + "/world/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "8ed37ae17925c7689d3def8502a8c6a14782908a3377384420821fbac88d62e8", + "source_geometry_complete": true, + "collision_shape_count": 18, + "rigid_body_count": 14, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + }, + "workdesk_snacks.usda": { + "source_scene_sha256": "993e40612c2cf3a1f1aff67444370d69f52f9580128907c8a8b528c7456dbf19", + "actual_base_position": [ + -0.04, + 0.0, + 0.07999999999999996 + ], + "intersections": [], + "minimum_distance_m": 0.22573405277187897, + "closest_pair": [ + "benchmark_head_support", + "/world/table/table_01/top" + ], + "source_scene_geometry": { + "scene_source_sha256": "993e40612c2cf3a1f1aff67444370d69f52f9580128907c8a8b528c7456dbf19", + "source_geometry_complete": true, + "collision_shape_count": 19, + "rigid_body_count": 14, + "rigid_bodies_without_collision_geometry": [], + "composition_errors": [], + "session_only_payload_substitutions": [], + "cached_source_files": [], + "original_scene_modified": false + } + } + } + }, + "profile_sha256": "3c9d7c8621abcf2ae8ea4537f3e1e0adba6a6a6678819583a5dce6cf92f7d278", + "urdf_sha256": "1977cbe63015b5868fea9e7de0dd13100f7e4c2ed287aca4d69b57133125eb4d", + "checker_sha256": "e63bacf0ddb6a4f4980035f45d5472d5d8ac2063b300ca3f3d026fe653e221b4", + "metadata_finalizer_sha256": "2e1f5fd914539797960e37a88784c001db232a78fb2cf2547d4e042f2c79a456", + "evaluated_checker_snapshot": "benchmark_head/evidence/cpu_geometry_checker.py", + "protected_profile_fields": [ + "home", + "joints", + "arms", + "base_position", + "base_quaternion", + "ground_offset", + "internal_collision_filters", + "collision_decomposition_overrides", + "visual_material_overrides" + ], + "original_arm_material_values_unchanged": true, + "wrist_camera_fields_unchanged": true, + "head_camera_fields_unchanged_by_metadata_finalization": true +} diff --git a/assets/robots/galaxea_a1z/conversion.json b/assets/robots/galaxea_a1z/conversion.json new file mode 100644 index 0000000000000000000000000000000000000000..e4d6e11af61b77c5e29142eb483c9a8834405f06 --- /dev/null +++ b/assets/robots/galaxea_a1z/conversion.json @@ -0,0 +1,531 @@ +{ + "native_root": "/galaxea_a1z_benchmark", + "native_mimic_joints": [ + "left_gripper_finger_rIght_joint", + "right_gripper_finger_rIght_joint" + ], + "resolved_source_mimics": [ + { + "joint": "left_gripper_finger_rIght_joint", + "reference": "left_gripper_finger_left_joint", + "multiplier": -1.0, + "offset": 0.0, + "type": "linear" + }, + { + "joint": "right_gripper_finger_rIght_joint", + "reference": "right_gripper_finger_left_joint", + "multiplier": -1.0, + "offset": 0.0, + "type": "linear" + } + ], + "fixed_base": true, + "self_collision": true, + "normalized_collider_schemas": [ + "/galaxea_a1z_benchmark/benchmark_head_camera_link/collisions/zedxm/node_STL_BINARY_/mesh", + "/galaxea_a1z_benchmark/benchmark_head_support/collisions/support/node_STL_BINARY_/mesh", + "/galaxea_a1z_benchmark/left_base_link/collisions/base_link/node_STL_BINARY_/mesh", + "/galaxea_a1z_benchmark/left_arm_link1/collisions/arm_link1/node_STL_BINARY_/mesh", + "/galaxea_a1z_benchmark/left_arm_link2/collisions/arm_link2/node_STL_BINARY_/mesh", + "/galaxea_a1z_benchmark/left_arm_link3/collisions/arm_link3/node_STL_BINARY_/mesh", + "/galaxea_a1z_benchmark/left_arm_link4/collisions/arm_link4/node_STL_BINARY_/mesh", + "/galaxea_a1z_benchmark/left_arm_link5/collisions/arm_link5/node_STL_BINARY_/mesh", + "/galaxea_a1z_benchmark/left_arm_link6/collisions/arm_link6/node_STL_BINARY_/mesh", + "/galaxea_a1z_benchmark/left_gripper_finger_left_link/collisions/gripper_finger_left_link/node_STL_BINARY_/mesh", + "/galaxea_a1z_benchmark/left_gripper_finger_rIght_link/collisions/gripper_finger_rIght_link/node_STL_BINARY_/mesh", + "/galaxea_a1z_benchmark/right_base_link/collisions/base_link/node_STL_BINARY_/mesh", + "/galaxea_a1z_benchmark/right_arm_link1/collisions/arm_link1/node_STL_BINARY_/mesh", + "/galaxea_a1z_benchmark/right_arm_link2/collisions/arm_link2/node_STL_BINARY_/mesh", + "/galaxea_a1z_benchmark/right_arm_link3/collisions/arm_link3/node_STL_BINARY_/mesh", + "/galaxea_a1z_benchmark/right_arm_link4/collisions/arm_link4/node_STL_BINARY_/mesh", + "/galaxea_a1z_benchmark/right_arm_link5/collisions/arm_link5/node_STL_BINARY_/mesh", + "/galaxea_a1z_benchmark/right_arm_link6/collisions/arm_link6/node_STL_BINARY_/mesh", + "/galaxea_a1z_benchmark/right_gripper_finger_left_link/collisions/gripper_finger_left_link/node_STL_BINARY_/mesh", + "/galaxea_a1z_benchmark/right_gripper_finger_rIght_link/collisions/gripper_finger_rIght_link/node_STL_BINARY_/mesh" + ], + "internal_collision_filters": [ + { + "bodies": [ + "benchmark_base", + "left_base_link" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "benchmark_base", + "right_base_link" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "benchmark_base", + "benchmark_head_support" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "benchmark_base", + "benchmark_head_camera_link" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "benchmark_base", + "benchmark_head_optical_frame" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "left_base_link", + "right_base_link" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "left_base_link", + "benchmark_head_support" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "left_base_link", + "benchmark_head_camera_link" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "left_base_link", + "benchmark_head_optical_frame" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "right_base_link", + "benchmark_head_support" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "right_base_link", + "benchmark_head_camera_link" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "right_base_link", + "benchmark_head_optical_frame" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "benchmark_head_support", + "benchmark_head_camera_link" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "benchmark_head_support", + "benchmark_head_optical_frame" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "benchmark_head_camera_link", + "benchmark_head_optical_frame" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "left_arm_link6", + "left_benchmark_tcp" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "right_arm_link6", + "right_benchmark_tcp" + ], + "reason": "Same source fixed-joint rigid group" + }, + { + "bodies": [ + "left_gripper_finger_left_link", + "left_gripper_finger_rIght_link" + ], + "reason": "The source-coupled opposing fingers intersect/touch at the closed hard stop; filter only the internal finger pair, retaining all external contacts." + }, + { + "bodies": [ + "left_arm_link4", + "left_arm_link6" + ], + "reason": "Native adjacent-wrist housings separated by arm_link5 overlap about 1.0-1.5 mm in source zero and ready poses (triangle-mesh FCL); preserve source geometry and filter only the mechanically adjacent housing pair." + }, + { + "bodies": [ + "right_gripper_finger_left_link", + "right_gripper_finger_rIght_link" + ], + "reason": "The source-coupled opposing fingers intersect/touch at the closed hard stop; filter only the internal finger pair, retaining all external contacts." + }, + { + "bodies": [ + "right_arm_link4", + "right_arm_link6" + ], + "reason": "Native adjacent-wrist housings separated by arm_link5 overlap about 1.0-1.5 mm in source zero and ready poses (triangle-mesh FCL); preserve source geometry and filter only the mechanically adjacent housing pair." + } + ], + "collision_decomposition_overrides": [ + { + "mesh": "/galaxea_a1z_benchmark/left_base_link/collisions/base_link/node_STL_BINARY_/mesh", + "settings": { + "shrink_wrap": true, + "error_percentage": 1.0, + "max_convex_hulls": 64, + "voxel_resolution": 1000000, + "hull_vertex_limit": 128, + "min_thickness": 0.0002 + }, + "reason": "Native source base and arm_link2 retain approximately 5.50-5.59 mm clearance in zero, ready and low-grasp poses; their exact enclosing convex hulls also remain clear. Imported untuned decomposition produced large base-arm contacts. Use shrink-wrapped finer decomposition to limit inflation outside the source surfaces without a collision filter." + }, + { + "mesh": "/galaxea_a1z_benchmark/left_arm_link2/collisions/arm_link2/node_STL_BINARY_/mesh", + "settings": { + "shrink_wrap": true, + "error_percentage": 1.0, + "max_convex_hulls": 64, + "voxel_resolution": 1000000, + "hull_vertex_limit": 128, + "min_thickness": 0.0002 + }, + "reason": "Native source base and arm_link2 retain approximately 5.50-5.59 mm clearance in zero, ready and low-grasp poses; their exact enclosing convex hulls also remain clear. Imported untuned decomposition produced large base-arm contacts. Use shrink-wrapped finer decomposition to limit inflation outside the source surfaces without a collision filter." + }, + { + "mesh": "/galaxea_a1z_benchmark/right_base_link/collisions/base_link/node_STL_BINARY_/mesh", + "settings": { + "shrink_wrap": true, + "error_percentage": 1.0, + "max_convex_hulls": 64, + "voxel_resolution": 1000000, + "hull_vertex_limit": 128, + "min_thickness": 0.0002 + }, + "reason": "Native source base and arm_link2 retain approximately 5.50-5.59 mm clearance in zero, ready and low-grasp poses; their exact enclosing convex hulls also remain clear. Imported untuned decomposition produced large base-arm contacts. Use shrink-wrapped finer decomposition to limit inflation outside the source surfaces without a collision filter." + }, + { + "mesh": "/galaxea_a1z_benchmark/right_arm_link2/collisions/arm_link2/node_STL_BINARY_/mesh", + "settings": { + "shrink_wrap": true, + "error_percentage": 1.0, + "max_convex_hulls": 64, + "voxel_resolution": 1000000, + "hull_vertex_limit": 128, + "min_thickness": 0.0002 + }, + "reason": "Native source base and arm_link2 retain approximately 5.50-5.59 mm clearance in zero, ready and low-grasp poses; their exact enclosing convex hulls also remain clear. Imported untuned decomposition produced large base-arm contacts. Use shrink-wrapped finer decomposition to limit inflation outside the source surfaces without a collision filter." + } + ], + "visual_material_overrides": [ + { + "material": "/galaxea_a1z_benchmark/Looks/material_left_base_link_source_material_0", + "shader": "/galaxea_a1z_benchmark/Looks/material_left_base_link_source_material_0/Shader", + "properties": { + "reflection_roughness_constant": 0.35, + "metallic_constant": 0.65 + }, + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented." + }, + { + "material": "/galaxea_a1z_benchmark/Looks/material_left_arm_link1_source_material_0", + "shader": "/galaxea_a1z_benchmark/Looks/material_left_arm_link1_source_material_0/Shader", + "properties": { + "reflection_roughness_constant": 0.36, + "metallic_constant": 0.6 + }, + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented." + }, + { + "material": "/galaxea_a1z_benchmark/Looks/material_left_arm_link2_source_material_0", + "shader": "/galaxea_a1z_benchmark/Looks/material_left_arm_link2_source_material_0/Shader", + "properties": { + "reflection_roughness_constant": 0.38, + "metallic_constant": 0.55 + }, + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented." + }, + { + "material": "/galaxea_a1z_benchmark/Looks/material_left_arm_link3_source_material_0", + "shader": "/galaxea_a1z_benchmark/Looks/material_left_arm_link3_source_material_0/Shader", + "properties": { + "reflection_roughness_constant": 0.29, + "metallic_constant": 0.75 + }, + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented." + }, + { + "material": "/galaxea_a1z_benchmark/Looks/material_left_arm_link4_source_material_0", + "shader": "/galaxea_a1z_benchmark/Looks/material_left_arm_link4_source_material_0/Shader", + "properties": { + "reflection_roughness_constant": 0.36, + "metallic_constant": 0.55 + }, + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented." + }, + { + "material": "/galaxea_a1z_benchmark/Looks/material_left_arm_link5_source_material_0", + "shader": "/galaxea_a1z_benchmark/Looks/material_left_arm_link5_source_material_0/Shader", + "properties": { + "reflection_roughness_constant": 0.37, + "metallic_constant": 0.55 + }, + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented." + }, + { + "material": "/galaxea_a1z_benchmark/Looks/material_left_arm_link6_source_material_0", + "shader": "/galaxea_a1z_benchmark/Looks/material_left_arm_link6_source_material_0/Shader", + "properties": { + "reflection_roughness_constant": 0.34, + "metallic_constant": 0.55 + }, + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented." + }, + { + "material": "/galaxea_a1z_benchmark/Looks/material_left_gripper_finger_left_link_source_material_0", + "shader": "/galaxea_a1z_benchmark/Looks/material_left_gripper_finger_left_link_source_material_0/Shader", + "properties": { + "reflection_roughness_constant": 0.65, + "metallic_constant": 0.0 + }, + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented." + }, + { + "material": "/galaxea_a1z_benchmark/Looks/material_left_gripper_finger_rIght_link_source_material_0", + "shader": "/galaxea_a1z_benchmark/Looks/material_left_gripper_finger_rIght_link_source_material_0/Shader", + "properties": { + "reflection_roughness_constant": 0.65, + "metallic_constant": 0.0 + }, + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented." + }, + { + "material": "/galaxea_a1z_benchmark/Looks/material_right_base_link_source_material_0", + "shader": "/galaxea_a1z_benchmark/Looks/material_right_base_link_source_material_0/Shader", + "properties": { + "reflection_roughness_constant": 0.35, + "metallic_constant": 0.65 + }, + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented." + }, + { + "material": "/galaxea_a1z_benchmark/Looks/material_right_arm_link1_source_material_0", + "shader": "/galaxea_a1z_benchmark/Looks/material_right_arm_link1_source_material_0/Shader", + "properties": { + "reflection_roughness_constant": 0.36, + "metallic_constant": 0.6 + }, + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented." + }, + { + "material": "/galaxea_a1z_benchmark/Looks/material_right_arm_link2_source_material_0", + "shader": "/galaxea_a1z_benchmark/Looks/material_right_arm_link2_source_material_0/Shader", + "properties": { + "reflection_roughness_constant": 0.38, + "metallic_constant": 0.55 + }, + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented." + }, + { + "material": "/galaxea_a1z_benchmark/Looks/material_right_arm_link3_source_material_0", + "shader": "/galaxea_a1z_benchmark/Looks/material_right_arm_link3_source_material_0/Shader", + "properties": { + "reflection_roughness_constant": 0.29, + "metallic_constant": 0.75 + }, + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented." + }, + { + "material": "/galaxea_a1z_benchmark/Looks/material_right_arm_link4_source_material_0", + "shader": "/galaxea_a1z_benchmark/Looks/material_right_arm_link4_source_material_0/Shader", + "properties": { + "reflection_roughness_constant": 0.36, + "metallic_constant": 0.55 + }, + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented." + }, + { + "material": "/galaxea_a1z_benchmark/Looks/material_right_arm_link5_source_material_0", + "shader": "/galaxea_a1z_benchmark/Looks/material_right_arm_link5_source_material_0/Shader", + "properties": { + "reflection_roughness_constant": 0.37, + "metallic_constant": 0.55 + }, + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented." + }, + { + "material": "/galaxea_a1z_benchmark/Looks/material_right_arm_link6_source_material_0", + "shader": "/galaxea_a1z_benchmark/Looks/material_right_arm_link6_source_material_0/Shader", + "properties": { + "reflection_roughness_constant": 0.34, + "metallic_constant": 0.55 + }, + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented." + }, + { + "material": "/galaxea_a1z_benchmark/Looks/material_right_gripper_finger_left_link_source_material_0", + "shader": "/galaxea_a1z_benchmark/Looks/material_right_gripper_finger_left_link_source_material_0/Shader", + "properties": { + "reflection_roughness_constant": 0.65, + "metallic_constant": 0.0 + }, + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented." + }, + { + "material": "/galaxea_a1z_benchmark/Looks/material_right_gripper_finger_rIght_link_source_material_0", + "shader": "/galaxea_a1z_benchmark/Looks/material_right_gripper_finger_rIght_link_source_material_0/Shader", + "properties": { + "reflection_roughness_constant": 0.65, + "metallic_constant": 0.0 + }, + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented." + } + ], + "unresolved": [], + "runtime_builtin_material_modules": [ + "OmniPBR.mdl" + ], + "collision_approximation": "convexDecomposition on authored source mesh collisions; primitives retained", + "contact_offset_m": 0.001, + "platform": { + "source": "RoboLab DROID FRANKA_TABLE_FIXTURE", + "source_layers": [ + { + "path": "assets/fixtures/franka_table.usd", + "sha256": "f5a00da4c05db6dd0441f8c76a886a898435e61890dd1f445ff7e8f79e1e2495" + }, + { + "path": "assets/fixtures/Props/instaceable_meshes.usd", + "sha256": "b7827de44e5051d8d7803507b9362dbf8521181996449a88934b59ceb0d54db6" + } + ], + "source_mesh_and_materials_preserved": true, + "source_bounds_m": [ + [ + -0.17625000000000002, + -0.37929999828338623, + -0.794700026512146 + ], + [ + 0.7237510085105896, + 0.37929999828338623, + 0.0 + ] + ], + "installation_scale": [ + 0.3333329598113113, + 0.9754811539006707, + 0.9777274117004505 + ], + "installation_translation_m": [ + 0.07125006583325637, + 0.0, + -0.0 + ], + "rotation_z_deg": 180.0, + "fixture_top_relative_to_robot_root_m": 0.0, + "fixture_bottom_relative_to_robot_root_m": -0.7769999999999999, + "added_benchmark_frame_parts": [], + "native_workstation_geometry_removed": false, + "task_table_modified": false, + "license": "Apache-2.0", + "appearance_reference": [], + "support_geometry_note": "Benchmark approximations from published ABC Kit / YAM7 Duo photos; dimensions are installation choices, not measured product CAD. Small unmodeled mounting-fastener clearances keep separate static support colliders out of source camera CAD." + }, + "bodies": [ + "/galaxea_a1z_benchmark/benchmark_base", + "/galaxea_a1z_benchmark/benchmark_head_camera_link", + "/galaxea_a1z_benchmark/benchmark_head_optical_frame", + "/galaxea_a1z_benchmark/benchmark_head_support", + "/galaxea_a1z_benchmark/left_base_link", + "/galaxea_a1z_benchmark/left_arm_link1", + "/galaxea_a1z_benchmark/left_arm_link2", + "/galaxea_a1z_benchmark/left_arm_link3", + "/galaxea_a1z_benchmark/left_arm_link4", + "/galaxea_a1z_benchmark/left_arm_link5", + "/galaxea_a1z_benchmark/left_arm_link6", + "/galaxea_a1z_benchmark/left_benchmark_tcp", + "/galaxea_a1z_benchmark/left_gripper_finger_left_link", + "/galaxea_a1z_benchmark/left_gripper_finger_rIght_link", + "/galaxea_a1z_benchmark/right_base_link", + "/galaxea_a1z_benchmark/right_arm_link1", + "/galaxea_a1z_benchmark/right_arm_link2", + "/galaxea_a1z_benchmark/right_arm_link3", + "/galaxea_a1z_benchmark/right_arm_link4", + "/galaxea_a1z_benchmark/right_arm_link5", + "/galaxea_a1z_benchmark/right_arm_link6", + "/galaxea_a1z_benchmark/right_benchmark_tcp", + "/galaxea_a1z_benchmark/right_gripper_finger_left_link", + "/galaxea_a1z_benchmark/right_gripper_finger_rIght_link" + ], + "joint_names": [ + "benchmark_head_camera_mount_joint", + "benchmark_head_optical_joint", + "benchmark_head_support_joint", + "left_benchmark_mount", + "left_arm_joint1", + "left_arm_joint2", + "left_arm_joint3", + "left_arm_joint4", + "left_arm_joint5", + "left_arm_joint6", + "left_benchmark_tcp_fixed", + "left_gripper_finger_left_joint", + "left_gripper_finger_rIght_joint", + "right_benchmark_mount", + "right_arm_joint1", + "right_arm_joint2", + "right_arm_joint3", + "right_arm_joint4", + "right_arm_joint5", + "right_arm_joint6", + "right_benchmark_tcp_fixed", + "right_gripper_finger_left_joint", + "right_gripper_finger_rIght_joint", + "root_joint" + ] +} diff --git a/assets/robots/galaxea_a1z/evidence/workstation_head_height/installation.json b/assets/robots/galaxea_a1z/evidence/workstation_head_height/installation.json new file mode 100644 index 0000000000000000000000000000000000000000..4d5137d5cf8df8f6771d69a90bf4a66a9ec80249 --- /dev/null +++ b/assets/robots/galaxea_a1z/evidence/workstation_head_height/installation.json @@ -0,0 +1,97 @@ +{ + "revision": 1, + "height_above_table_m": 0.76, + "downward_pitch_deg": 55, + "root_above_table_m": 0.002, + "camera_in_root": [ + [ + 0.0, + 0.8191520442889918, + -0.5735764363510462, + 0.07 + ], + [ + -1.0, + 0.0, + -0.0, + 0.0 + ], + [ + 0.0, + 0.5735764363510462, + 0.8191520442889918, + 0.758 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ], + "previous_camera_in_root": [ + [ + 2.0538813749754266e-16, + 0.7581851963116832, + -0.6520392688280475, + 0.07 + ], + [ + -1.0, + -1.1102230246251565e-16, + -4.440892098500626e-16, + 0.0 + ], + [ + -4.0909276567133503e-16, + 0.6520392688280476, + 0.758185196311683, + 0.48000000000000004 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ], + "mount_joint": "benchmark_head_camera_mount_joint", + "changed_support_links": [ + "benchmark_head_support" + ], + "added_fixed_links": [], + "head_camera": { + "parent_body": "benchmark_head_camera_link", + "position": [ + -0.01000000000000012, + 0.025000000000000012, + 0.016000000000000014 + ], + "quaternion_wxyz": [ + 0.5000000000000001, + 0.5000000000000001, + -0.5, + -0.5 + ], + "focal_length": 18.0, + "horizontal_aperture": 36.0, + "vertical_aperture": 27.0, + "clipping_range": [ + 0.03, + 10.0 + ], + "source_prim": "benchmark_head_optical_frame", + "source_frame_to_camera_quaternion_wxyz": [ + 0.0, + 1.0, + 0.0, + 0.0 + ], + "source_note": "Raised workstation head revision 1: source housing and optical frame move together on a visible fixed support, above the tabletop ready-arm envelope. Nominal benchmark mounting, not measured hardware calibration." + }, + "native_arm_joints_tcp_wrist_cameras_unchanged": true, + "native_head_camera_cad_retained": true, + "measured_real_world_calibration": false, + "generator": "extensions/bimanual/prepare_workstation_head_cameras.py", + "config": "configs/layouts/workstation_heads.json" +} diff --git a/assets/robots/galaxea_a1z/evidence/workstation_head_height/source/profile.json b/assets/robots/galaxea_a1z/evidence/workstation_head_height/source/profile.json new file mode 100644 index 0000000000000000000000000000000000000000..8579df35dfe6efeb537788ada7b6b0c01e215c57 --- /dev/null +++ b/assets/robots/galaxea_a1z/evidence/workstation_head_height/source/profile.json @@ -0,0 +1,1365 @@ +{ + "id": "galaxea_a1z", + "label": "Galaxea A1Z + G1Z \u00b7 Dual Arm", + "source_robot": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "usd": "../galaxea_a1z/usd/robot.usd", + "native_root": "/galaxea_a1z_benchmark", + "source_revision": "55d4850dcdcc8b1c2e0f7655296344a4e9dd1a30", + "base_position": [ + -0.04, + 0.0, + 0.08 + ], + "ground_offset": 0.7769999999999999, + "home": { + "left_arm_joint1": 0.05992097804404975, + "left_arm_joint2": 0.9754452387743513, + "left_arm_joint3": -1.148199497118911, + "left_arm_joint4": 0.6994880040087724, + "left_arm_joint5": 0.10392874645545758, + "left_arm_joint6": -0.060256720183872764, + "left_gripper_finger_left_joint": 0.048, + "left_gripper_finger_rIght_joint": -0.048, + "right_arm_joint1": -0.059920978014919454, + "right_arm_joint2": 0.9754452371570582, + "right_arm_joint3": -1.1481994941052112, + "right_arm_joint4": 0.6994880019396595, + "right_arm_joint5": -0.10392874658705627, + "right_arm_joint6": 0.060256720187681787, + "right_gripper_finger_left_joint": 0.048, + "right_gripper_finger_rIght_joint": -0.048 + }, + "joints": { + "left_arm_joint1": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 20.0, + "velocity": 1.5, + "mimic": false + }, + "left_arm_joint2": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 25.0, + "velocity": 1.5, + "mimic": false + }, + "left_arm_joint3": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 20.0, + "velocity": 1.5, + "mimic": false + }, + "left_arm_joint4": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 9.0, + "velocity": 1.5, + "mimic": false + }, + "left_arm_joint5": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 3.5, + "velocity": 1.5, + "mimic": false + }, + "left_arm_joint6": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 3.5, + "velocity": 1.5, + "mimic": false + }, + "left_gripper_finger_left_joint": { + "type": "linear", + "stiffness": 1200.0, + "damping": 20.0, + "effort": 3.0, + "velocity": 0.1, + "mimic": false + }, + "left_gripper_finger_rIght_joint": { + "type": "linear", + "stiffness": 1200.0, + "damping": 20.0, + "effort": 3.0, + "velocity": 0.1, + "mimic": true + }, + "right_arm_joint1": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 20.0, + "velocity": 1.5, + "mimic": false + }, + "right_arm_joint2": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 25.0, + "velocity": 1.5, + "mimic": false + }, + "right_arm_joint3": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 20.0, + "velocity": 1.5, + "mimic": false + }, + "right_arm_joint4": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 9.0, + "velocity": 1.5, + "mimic": false + }, + "right_arm_joint5": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 3.5, + "velocity": 1.5, + "mimic": false + }, + "right_arm_joint6": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 3.5, + "velocity": 1.5, + "mimic": false + }, + "right_gripper_finger_left_joint": { + "type": "linear", + "stiffness": 1200.0, + "damping": 20.0, + "effort": 3.0, + "velocity": 0.1, + "mimic": false + }, + "right_gripper_finger_rIght_joint": { + "type": "linear", + "stiffness": 1200.0, + "damping": 20.0, + "effort": 3.0, + "velocity": 0.1, + "mimic": true + } + }, + "arms": { + "left": { + "asset": "robot", + "joints": [ + "left_arm_joint1", + "left_arm_joint2", + "left_arm_joint3", + "left_arm_joint4", + "left_arm_joint5", + "left_arm_joint6" + ], + "tcp_body": "left_arm_link6", + "tcp_offset_pos": [ + 0.1777, + 0.0, + 0.0 + ], + "tcp_offset_quat": [ + 0.7071067811865477, + 0.0, + 0.7071067811865475, + 0.0 + ], + "master_joint": "left_gripper_finger_left_joint", + "gripper_open": 0.048, + "gripper_closed": 0.0, + "contact_bodies": [ + "left_gripper_finger_left_link", + "left_gripper_finger_rIght_link" + ], + "source_tcp": "left_benchmark_tcp", + "home_target_world": [ + 0.3, + 0.24, + 0.38 + ], + "home_orientation_wxyz": [ + 0.5000000000000001, + 0.0, + 0.8660254037844386, + 0.0 + ] + }, + "right": { + "asset": "robot", + "joints": [ + "right_arm_joint1", + "right_arm_joint2", + "right_arm_joint3", + "right_arm_joint4", + "right_arm_joint5", + "right_arm_joint6" + ], + "tcp_body": "right_arm_link6", + "tcp_offset_pos": [ + 0.1777, + 0.0, + 0.0 + ], + "tcp_offset_quat": [ + 0.7071067811865477, + 0.0, + 0.7071067811865475, + 0.0 + ], + "master_joint": "right_gripper_finger_left_joint", + "gripper_open": 0.048, + "gripper_closed": 0.0, + "contact_bodies": [ + "right_gripper_finger_left_link", + "right_gripper_finger_rIght_link" + ], + "source_tcp": "right_benchmark_tcp", + "home_target_world": [ + 0.3, + -0.24, + 0.38 + ], + "home_orientation_wxyz": [ + 0.5000000000000001, + 0.0, + 0.8660254037844386, + 0.0 + ] + } + }, + "cameras": { + "left_wrist_camera": { + "parent_body": "left_arm_link6", + "position": [ + 0.12269999999999995, + 0.0, + 0.12000000000000001 + ], + "quaternion_wxyz": [ + -0.6678408913172661, + -0.23235434982922035, + 0.23235434982922032, + 0.667840891317266 + ], + "focal_length": 24.0, + "horizontal_aperture": 36.0, + "vertical_aperture": 27.0, + "clipping_range": [ + 0.01, + 10.0 + ], + "source_prim": "benchmark virtual wrist camera" + }, + "right_wrist_camera": { + "parent_body": "right_arm_link6", + "position": [ + 0.12269999999999995, + 0.0, + 0.12000000000000001 + ], + "quaternion_wxyz": [ + -0.6678408913172661, + -0.23235434982922035, + 0.23235434982922032, + 0.667840891317266 + ], + "focal_length": 24.0, + "horizontal_aperture": 36.0, + "vertical_aperture": 27.0, + "clipping_range": [ + 0.01, + 10.0 + ], + "source_prim": "benchmark virtual wrist camera" + }, + "head_camera": { + "parent_body": "benchmark_head_camera_link", + "position": [ + -0.01, + 0.025, + 0.016 + ], + "quaternion_wxyz": [ + 0.5, + 0.5000000000000001, + -0.4999999999999999, + -0.4999999999999999 + ], + "focal_length": 18.0, + "horizontal_aperture": 36.0, + "vertical_aperture": 27.0, + "clipping_range": [ + 0.03, + 10.0 + ], + "source_prim": "benchmark_head_optical_frame", + "source_frame_to_camera_quaternion_wxyz": [ + 0.0, + 1.0, + 0.0, + 0.0 + ], + "source_note": "Copied pinned Trossen ZED X Mini optical geometry; benchmark central retrofit, not factory mount or measured calibration." + } + }, + "action_frame": "benchmark_base; X forward, Y left, Z up; absolute canonical TCP xyz + quaternion WXYZ; TCP +Z approach, closing local Y", + "support": null, + "platform": { + "usd": "platform/fixture.usd", + "source": "RoboLab assets/fixtures/franka_table.usd (same fixture as DROID)", + "dimensions_m": [ + 0.3, + 0.74 + ], + "center_xy_m": [ + -0.02, + 0.0 + ], + "height_m": 0.7769999999999999, + "gantry": "Physical central ZED X Mini on a short metal post and rear bracket between the two arms; benchmark retrofit attached to the unchanged platform." + }, + "source_arm_mounts": { + "left": [ + [ + 0.9838436927881214, + 0.17902957342582415, + 0.0, + 0.0 + ], + [ + -0.17902957342582415, + 0.9838436927881214, + -0.0, + 0.26 + ], + [ + -0.0, + 0.0, + 1.0, + 0.0 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ], + "right": [ + [ + 0.9838436927881214, + -0.17902957342582415, + 0.0, + 0.0 + ], + [ + 0.17902957342582415, + 0.9838436927881214, + 0.0, + -0.26 + ], + [ + 0.0, + 0.0, + 1.0, + 0.0 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + "camera_note": "One physical central ZED X Mini benchmark retrofit, with matching source left-lens optical frame, plus two unchanged virtual wrist cameras. Ideal pinhole intrinsics at30Hz; no real-hardware intrinsic/extrinsic or color calibration.", + "gripper_note": "Original source parallel gripper meshes, coordinates and -1 mimic preserved; each hand has an independent master.", + "model_note": "Two complete native single-arm assemblies on a shared benchmark root and unchanged low DROID-derived metal platform. A source ZED X Mini camera is physically mounted between the arms on a short benchmark-authored post; this retrofit is not a factory dual-arm model. Task tables and native arm/tool geometry remain unchanged.", + "placement_note": "Common base x=-0.04 m; DROID platform front x=0.09 m stays 0.048405 m behind the nearest task-table front x=0.138405 m. Ready TCP world targets are unchanged and solved again within native joint limits.", + "tcp_note": "Geometry-derived midpoint of G1Z distal finger pads, arm_link6 X=177.7 mm (finger origin 72.7 mm plus 105 mm pad coordinate); approach +X and closing Y. Original rIght capitalization is preserved.", + "drive_overrides": [], + "internal_collision_filters": [ + { + "bodies": [ + "left_gripper_finger_left_link", + "left_gripper_finger_rIght_link" + ], + "reason": "The source-coupled opposing fingers intersect/touch at the closed hard stop; filter only the internal finger pair, retaining all external contacts." + }, + { + "bodies": [ + "left_arm_link4", + "left_arm_link6" + ], + "reason": "Native adjacent-wrist housings separated by arm_link5 overlap about 1.0-1.5 mm in source zero and ready poses (triangle-mesh FCL); preserve source geometry and filter only the mechanically adjacent housing pair." + }, + { + "bodies": [ + "right_gripper_finger_left_link", + "right_gripper_finger_rIght_link" + ], + "reason": "The source-coupled opposing fingers intersect/touch at the closed hard stop; filter only the internal finger pair, retaining all external contacts." + }, + { + "bodies": [ + "right_arm_link4", + "right_arm_link6" + ], + "reason": "Native adjacent-wrist housings separated by arm_link5 overlap about 1.0-1.5 mm in source zero and ready poses (triangle-mesh FCL); preserve source geometry and filter only the mechanically adjacent housing pair." + } + ], + "internal_collision_filter_notes": [ + { + "pair": [ + "left_gripper_finger_left_link", + "left_gripper_finger_rIght_link" + ], + "reason": "The source-coupled opposing fingers intersect/touch at the closed hard stop; filter only the internal finger pair, retaining all external contacts." + }, + { + "pair": [ + "left_arm_link4", + "left_arm_link6" + ], + "reason": "Native adjacent-wrist housings separated by arm_link5 overlap about 1.0-1.5 mm in source zero and ready poses (triangle-mesh FCL); preserve source geometry and filter only the mechanically adjacent housing pair." + }, + { + "pair": [ + "right_gripper_finger_left_link", + "right_gripper_finger_rIght_link" + ], + "reason": "The source-coupled opposing fingers intersect/touch at the closed hard stop; filter only the internal finger pair, retaining all external contacts." + }, + { + "pair": [ + "right_arm_link4", + "right_arm_link6" + ], + "reason": "Native adjacent-wrist housings separated by arm_link5 overlap about 1.0-1.5 mm in source zero and ready poses (triangle-mesh FCL); preserve source geometry and filter only the mechanically adjacent housing pair." + } + ], + "collision_decomposition_overrides": [ + { + "bodies": [ + "left_base_link", + "left_arm_link2" + ], + "settings": { + "shrink_wrap": true, + "error_percentage": 1.0, + "max_convex_hulls": 64, + "voxel_resolution": 1000000, + "hull_vertex_limit": 128, + "min_thickness": 0.0002 + }, + "reason": "Native source base and arm_link2 retain approximately 5.50-5.59 mm clearance in zero, ready and low-grasp poses; their exact enclosing convex hulls also remain clear. Imported untuned decomposition produced large base-arm contacts. Use shrink-wrapped finer decomposition to limit inflation outside the source surfaces without a collision filter.", + "source_distance_evidence": { + "method": "Source URDF FK; python-fcl native triangle meshes and exact enclosing convex hulls. Distances in metres; negative signed distance denotes intersection.", + "canonical_urdf_sha256": "fcd2cbe2ed41e3bc62d5cd17dde4bbeff1ccca6c7090710df71987b91fd0249e", + "source_collision_meshes": [ + { + "body": "left_base_link", + "path": "source/A1Z/A1Z_G1Z/meshes/base_link.STL", + "sha256": "3ad75b62388108b0792028dfaadb65e8cbb7e8698042d5c270f566808a479345" + }, + { + "body": "left_arm_link2", + "path": "source/A1Z/A1Z_G1Z/meshes/arm_link2.STL", + "sha256": "38735343df6f709e83edc91432ad7880456cdc32af9f50df651d7eaa62cdb06f" + } + ], + "poses": [ + { + "pose": "source_zero", + "joints": { + "left_arm_joint1": 0.0, + "left_arm_joint2": 0.0, + "left_arm_joint3": 0.0, + "left_arm_joint4": 0.0, + "left_arm_joint5": 0.0, + "left_arm_joint6": 0.0, + "left_gripper_finger_left_joint": 0.0, + "left_gripper_finger_rIght_joint": 0.0 + }, + "native_mesh": { + "intersects": false, + "signed_distance_m": 0.005499997392296785, + "max_contact_depth_m": 0.0 + }, + "convex_mesh": { + "intersects": false, + "signed_distance_m": 0.005499997392296785, + "max_contact_depth_m": 0.0 + } + }, + { + "pose": "ready", + "joints": { + "left_arm_joint1": 0.05992097804404975, + "left_arm_joint2": 0.9754452387743513, + "left_arm_joint3": -1.148199497118911, + "left_arm_joint4": 0.6994880040087724, + "left_arm_joint5": 0.10392874645545758, + "left_arm_joint6": -0.060256720183872764, + "left_gripper_finger_left_joint": 0.048, + "left_gripper_finger_rIght_joint": -0.048 + }, + "native_mesh": { + "intersects": false, + "signed_distance_m": 0.005516987858247186, + "max_contact_depth_m": 0.0 + }, + "convex_mesh": { + "intersects": false, + "signed_distance_m": 0.005507239095790785, + "max_contact_depth_m": 0.0 + } + }, + { + "pose": "low_tabletop_grasp", + "joints": { + "left_arm_joint1": 0.03810294539582347, + "left_arm_joint2": 2.244686542603657, + "left_arm_joint3": -1.6855873086008837, + "left_arm_joint4": 1.0116970926999886, + "left_arm_joint5": 8.486917684097946e-15, + "left_arm_joint6": -0.14189705460416746, + "left_gripper_finger_left_joint": 0.048, + "left_gripper_finger_rIght_joint": -0.048 + }, + "native_mesh": { + "intersects": false, + "signed_distance_m": 0.005591606784263302, + "max_contact_depth_m": 0.0 + }, + "convex_mesh": { + "intersects": false, + "signed_distance_m": 0.005505637776655331, + "max_contact_depth_m": 0.0 + } + } + ], + "physics_validation": "pending reconversion and runtime contact audit" + } + }, + { + "bodies": [ + "right_base_link", + "right_arm_link2" + ], + "settings": { + "shrink_wrap": true, + "error_percentage": 1.0, + "max_convex_hulls": 64, + "voxel_resolution": 1000000, + "hull_vertex_limit": 128, + "min_thickness": 0.0002 + }, + "reason": "Native source base and arm_link2 retain approximately 5.50-5.59 mm clearance in zero, ready and low-grasp poses; their exact enclosing convex hulls also remain clear. Imported untuned decomposition produced large base-arm contacts. Use shrink-wrapped finer decomposition to limit inflation outside the source surfaces without a collision filter.", + "source_distance_evidence": { + "method": "Source URDF FK; python-fcl native triangle meshes and exact enclosing convex hulls. Distances in metres; negative signed distance denotes intersection.", + "canonical_urdf_sha256": "fcd2cbe2ed41e3bc62d5cd17dde4bbeff1ccca6c7090710df71987b91fd0249e", + "source_collision_meshes": [ + { + "body": "right_base_link", + "path": "source/A1Z/A1Z_G1Z/meshes/base_link.STL", + "sha256": "3ad75b62388108b0792028dfaadb65e8cbb7e8698042d5c270f566808a479345" + }, + { + "body": "right_arm_link2", + "path": "source/A1Z/A1Z_G1Z/meshes/arm_link2.STL", + "sha256": "38735343df6f709e83edc91432ad7880456cdc32af9f50df651d7eaa62cdb06f" + } + ], + "poses": [ + { + "pose": "source_zero", + "joints": { + "right_arm_joint1": 0.0, + "right_arm_joint2": 0.0, + "right_arm_joint3": 0.0, + "right_arm_joint4": 0.0, + "right_arm_joint5": 0.0, + "right_arm_joint6": 0.0, + "right_gripper_finger_left_joint": 0.0, + "right_gripper_finger_rIght_joint": 0.0 + }, + "native_mesh": { + "intersects": false, + "signed_distance_m": 0.005499997392296785, + "max_contact_depth_m": 0.0 + }, + "convex_mesh": { + "intersects": false, + "signed_distance_m": 0.005499997392296785, + "max_contact_depth_m": 0.0 + } + }, + { + "pose": "ready", + "joints": { + "right_arm_joint1": -0.059920978014919454, + "right_arm_joint2": 0.9754452371570582, + "right_arm_joint3": -1.1481994941052112, + "right_arm_joint4": 0.6994880019396595, + "right_arm_joint5": -0.10392874658705627, + "right_arm_joint6": 0.060256720187681787, + "right_gripper_finger_left_joint": 0.048, + "right_gripper_finger_rIght_joint": -0.048 + }, + "native_mesh": { + "intersects": false, + "signed_distance_m": 0.005504147857230052, + "max_contact_depth_m": 0.0 + }, + "convex_mesh": { + "intersects": false, + "signed_distance_m": 0.005503230016466494, + "max_contact_depth_m": 0.0 + } + }, + { + "pose": "low_tabletop_grasp", + "joints": { + "right_arm_joint1": -0.03810294539591964, + "right_arm_joint2": 2.2446865426042817, + "right_arm_joint3": -1.6855873086018913, + "right_arm_joint4": 1.011697092700421, + "right_arm_joint5": -1.6145843350605364e-14, + "right_arm_joint6": 0.14189705460409896, + "right_gripper_finger_left_joint": 0.048, + "right_gripper_finger_rIght_joint": -0.048 + }, + "native_mesh": { + "intersects": false, + "signed_distance_m": 0.005573826685983732, + "max_contact_depth_m": 0.0 + }, + "convex_mesh": { + "intersects": false, + "signed_distance_m": 0.005505637776655692, + "max_contact_depth_m": 0.0 + } + } + ], + "physics_validation": "pending reconversion and runtime contact audit" + } + } + ], + "visual_material_overrides": [ + { + "material_name": "left_base_link_source_material_0", + "roughness": 0.35, + "metallic": 0.65, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "left_arm_link1_source_material_0", + "roughness": 0.36, + "metallic": 0.6, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "left_arm_link2_source_material_0", + "roughness": 0.38, + "metallic": 0.55, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "left_arm_link3_source_material_0", + "roughness": 0.29, + "metallic": 0.75, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "left_arm_link4_source_material_0", + "roughness": 0.36, + "metallic": 0.55, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "left_arm_link5_source_material_0", + "roughness": 0.37, + "metallic": 0.55, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "left_arm_link6_source_material_0", + "roughness": 0.34, + "metallic": 0.55, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "left_gripper_finger_left_link_source_material_0", + "roughness": 0.65, + "metallic": 0.0, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "left_gripper_finger_rIght_link_source_material_0", + "roughness": 0.65, + "metallic": 0.0, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "right_base_link_source_material_0", + "roughness": 0.35, + "metallic": 0.65, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "right_arm_link1_source_material_0", + "roughness": 0.36, + "metallic": 0.6, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "right_arm_link2_source_material_0", + "roughness": 0.38, + "metallic": 0.55, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "right_arm_link3_source_material_0", + "roughness": 0.29, + "metallic": 0.75, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "right_arm_link4_source_material_0", + "roughness": 0.36, + "metallic": 0.55, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "right_arm_link5_source_material_0", + "roughness": 0.37, + "metallic": 0.55, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "right_arm_link6_source_material_0", + "roughness": 0.34, + "metallic": 0.55, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "right_gripper_finger_left_link_source_material_0", + "roughness": 0.65, + "metallic": 0.0, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "right_gripper_finger_rIght_link_source_material_0", + "roughness": 0.65, + "metallic": 0.0, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + } + ], + "appearance_refinement": { + "reference": { + "pages": [ + "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "https://galaxea-ai.com/en/news/galaxea-launches-lemo.html" + ], + "images": [ + "https://galaxea-dynamics.com/cdn/shop/files/A1Z-Main-New.jpg?v=1793589921&width=1920", + "https://galaxea-dynamics.com/cdn/shop/files/A1Z-Gripper_Open.jpg?v=1791598979&width=1920", + "https://galaxea-ai.com/en/images/pc/product4/color.png" + ], + "observation": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "camera_basis": "v18 uses a physical central ZED X Mini retrofit with copied Trossen source optical offsets on a short benchmark support. Manufacturer photographs below remain arm appearance references; they do not establish this camera as a factory installation or measured calibration.", + "eye_world_m": [ + 0.03, + 0.0, + 0.56 + ], + "target_world_m": [ + 0.46, + 0.0, + 0.06 + ], + "focal_length_mm": 18.0 + }, + "note": "Source/photo arm colors and PBR values retained fromv17 without change; unmeasured visual approximation. The active v18 central head retrofit is described by layout_refinement_v18; the former virtual-head reference is retained only as historical metadata there. Native arm geometry, joints, tools, fixed bases, task scenes and wrist cameras remain unchanged; control/camera30Hz.", + "per_visual_materials": [ + { + "body": "left_base_link", + "mesh": "source/A1Z/A1Z_G1Z/meshes/base_link.STL", + "material_name": "left_base_link_source_material_0", + "rgba": [ + 0.025, + 0.029, + 0.035, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_arm_link1", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link1.STL", + "material_name": "left_arm_link1_source_material_0", + "rgba": [ + 0.045, + 0.05, + 0.06, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_arm_link2", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link2.STL", + "material_name": "left_arm_link2_source_material_0", + "rgba": [ + 0.07, + 0.078, + 0.09, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_arm_link3", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link3.STL", + "material_name": "left_arm_link3_source_material_0", + "rgba": [ + 0.42, + 0.45, + 0.5, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_arm_link4", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link4.STL", + "material_name": "left_arm_link4_source_material_0", + "rgba": [ + 0.035, + 0.04, + 0.05, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_arm_link5", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link5.STL", + "material_name": "left_arm_link5_source_material_0", + "rgba": [ + 0.045, + 0.05, + 0.06, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_arm_link6", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link6.STL", + "material_name": "left_arm_link6_source_material_0", + "rgba": [ + 0.08, + 0.088, + 0.1, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_gripper_finger_left_link", + "mesh": "source/A1Z/A1Z_G1Z/meshes/gripper_finger_left_link.STL", + "material_name": "left_gripper_finger_left_link_source_material_0", + "rgba": [ + 0.025, + 0.029, + 0.035, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_gripper_finger_rIght_link", + "mesh": "source/A1Z/A1Z_G1Z/meshes/gripper_finger_rIght_link.STL", + "material_name": "left_gripper_finger_rIght_link_source_material_0", + "rgba": [ + 0.025, + 0.029, + 0.035, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_base_link", + "mesh": "source/A1Z/A1Z_G1Z/meshes/base_link.STL", + "material_name": "right_base_link_source_material_0", + "rgba": [ + 0.025, + 0.029, + 0.035, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_arm_link1", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link1.STL", + "material_name": "right_arm_link1_source_material_0", + "rgba": [ + 0.045, + 0.05, + 0.06, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_arm_link2", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link2.STL", + "material_name": "right_arm_link2_source_material_0", + "rgba": [ + 0.07, + 0.078, + 0.09, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_arm_link3", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link3.STL", + "material_name": "right_arm_link3_source_material_0", + "rgba": [ + 0.42, + 0.45, + 0.5, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_arm_link4", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link4.STL", + "material_name": "right_arm_link4_source_material_0", + "rgba": [ + 0.035, + 0.04, + 0.05, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_arm_link5", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link5.STL", + "material_name": "right_arm_link5_source_material_0", + "rgba": [ + 0.045, + 0.05, + 0.06, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_arm_link6", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link6.STL", + "material_name": "right_arm_link6_source_material_0", + "rgba": [ + 0.08, + 0.088, + 0.1, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_gripper_finger_left_link", + "mesh": "source/A1Z/A1Z_G1Z/meshes/gripper_finger_left_link.STL", + "material_name": "right_gripper_finger_left_link_source_material_0", + "rgba": [ + 0.025, + 0.029, + 0.035, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_gripper_finger_rIght_link", + "mesh": "source/A1Z/A1Z_G1Z/meshes/gripper_finger_rIght_link.STL", + "material_name": "right_gripper_finger_rIght_link_source_material_0", + "rgba": [ + 0.025, + 0.029, + 0.035, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + } + ] + }, + "layout_refinement_v18": { + "previous_head_camera": { + "parent_body": "benchmark_base", + "position": [ + -0.060000000000000005, + 0.0, + 0.8 + ], + "quaternion_wxyz": [ + -0.6752854811484117, + -0.20973678492376605, + 0.20973678492376605, + 0.6752854811484117 + ], + "focal_length": 20.0, + "horizontal_aperture": 36.0, + "vertical_aperture": 27.0, + "clipping_range": [ + 0.01, + 10.0 + ], + "source_prim": "benchmark virtual head camera; manufacturer deployment reference" + }, + "optical_world_m": [ + 0.03, + 0.0, + 0.56 + ], + "look_target_world_m": [ + 0.46, + 0.0, + 0.06 + ], + "downward_tilt_deg": 49.30446896050798, + "horizontal_fov_deg": 90.0, + "vertical_fov_deg": 73.73979529168804, + "source_repository": "https://github.com/TrossenRobotics/trossen_arm_description", + "source_revision": "126e47fe66af1ef850986f3383f24080b74fda9c", + "source_files": [ + { + "path": "benchmark_head/source/workbench.urdf", + "source_url": "https://raw.githubusercontent.com/TrossenRobotics/trossen_arm_description/126e47fe66af1ef850986f3383f24080b74fda9c/urdf/generated/workbench.urdf", + "sha256": "911584df6ba45b282d93c7fd3bf1f98653061298fc67cd48e58a8e8ebfffcc23" + }, + { + "path": "benchmark_head/source/zedxm.stl", + "source_url": "https://raw.githubusercontent.com/TrossenRobotics/trossen_arm_description/126e47fe66af1ef850986f3383f24080b74fda9c/meshes/peripherals/zedxm.stl", + "sha256": "44a0f81cf49fc6c21b909abd928bceba9d89e132ad16294538dea5d1a7e30711" + }, + { + "path": "benchmark_head/source/LICENSE", + "source_url": "https://raw.githubusercontent.com/TrossenRobotics/trossen_arm_description/126e47fe66af1ef850986f3383f24080b74fda9c/LICENSE", + "sha256": "110a998ebd9a901d31173892d43224f8f59f12ebfd6398b9f3dea0ee9a01ab16" + } + ], + "hardware_reference": "https://www.stereolabs.com/store/products/zed-x-mini-stereo-camera", + "source_license": "BSD-3-Clause; copied LICENSE retained", + "generation_entrypoint": "extensions/bimanual/refine_compact_heads_v18.py", + "manufacturer_dual_arm_assembly": false, + "measured_calibration": false, + "note": "Benchmark-authored support and placement; source camera dimensions and optical offsets retained. Original robot colors/materials, arm geometry/kinematics/home, wrist extrinsics/intrinsics and30Hz remain unchanged.", + "actual_camera_model": "Stereolabs ZED X Mini, copied pinned Trossen source mesh and left optical frame", + "old_head_camera": { + "parent_body": "benchmark_base", + "position": [ + -0.060000000000000005, + 0.0, + 0.8 + ], + "quaternion_wxyz": [ + -0.6752854811484117, + -0.20973678492376605, + 0.20973678492376605, + 0.6752854811484117 + ], + "focal_length": 20.0, + "horizontal_aperture": 36.0, + "vertical_aperture": 27.0, + "clipping_range": [ + 0.01, + 10.0 + ], + "source_prim": "benchmark virtual head camera; manufacturer deployment reference" + }, + "new_head_camera": { + "parent_body": "benchmark_head_camera_link", + "position": [ + -0.01, + 0.025, + 0.016 + ], + "quaternion_wxyz": [ + 0.5, + 0.5000000000000001, + -0.4999999999999999, + -0.4999999999999999 + ], + "focal_length": 18.0, + "horizontal_aperture": 36.0, + "vertical_aperture": 27.0, + "clipping_range": [ + 0.03, + 10.0 + ], + "source_prim": "benchmark_head_optical_frame", + "source_frame_to_camera_quaternion_wxyz": [ + 0.0, + 1.0, + 0.0, + 0.0 + ], + "source_note": "Copied pinned Trossen ZED X Mini optical geometry; benchmark central retrofit, not factory mount or measured calibration." + }, + "old_head_world_transform": [ + [ + 0.0, + 0.8240419241993678, + -0.5665288228870653, + -0.1 + ], + [ + -1.0000000000000002, + 0.0, + 0.0, + 0.0 + ], + [ + 0.0, + 0.5665288228870653, + 0.824041924199368, + 0.88 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ], + "new_head_world_transform": [ + [ + 2.0538813749754266e-16, + 0.7581851963116832, + -0.6520392688280475, + 0.030000000000000006 + ], + [ + -1.0, + -1.1102230246251565e-16, + -4.440892098500626e-16, + 0.0 + ], + [ + -4.0909276567133503e-16, + 0.6520392688280476, + 0.758185196311683, + 0.56 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ], + "baseline_source_hashes": { + "profile.json": "5f42fe127780b672938a955176d85d4f5f26bbb5bf2ea16ebd32daa1fbcf7dfe", + "robot.urdf": "cae0d562badb65d26d3692a463d7409060d888cf58932d3ab61e4c503fb9af63", + "provenance.json": "d651a42c08ac0bb52f4fd5de053a1c38807e3f183c11a36e4a20fe911e1bbc9c" + }, + "baseline_snapshot": "benchmark_head/baseline_v17.json", + "historical_v17_head_reference": { + "pages": [ + "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "https://galaxea-ai.com/en/news/galaxea-launches-lemo.html" + ], + "images": [ + "https://galaxea-dynamics.com/cdn/shop/files/A1Z-Main-New.jpg?v=1793589921&width=1920", + "https://galaxea-dynamics.com/cdn/shop/files/A1Z-Gripper_Open.jpg?v=1791598979&width=1920", + "https://galaxea-ai.com/en/images/pc/product4/color.png" + ], + "observation": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "camera_basis": "Official LEMO deployment demonstrates two A1Z arms with wrist cameras and a raised central camera. Only that mounting arrangement informs this virtual camera; this existing benchmark assembly is not represented as a factory LEMO model.", + "eye_world_m": [ + -0.1, + 0.0, + 0.88 + ], + "target_world_m": [ + 0.45, + 0.0, + 0.08 + ], + "focal_length_mm": 20.0 + }, + "static_validation": "central_head_validation_v18.json", + "control_hz": 30, + "final_rendered_review_pending": true + } +} diff --git a/assets/robots/galaxea_a1z/evidence/workstation_head_height/source/provenance.json b/assets/robots/galaxea_a1z/evidence/workstation_head_height/source/provenance.json new file mode 100644 index 0000000000000000000000000000000000000000..e779ab2c771b92d4a5db5164fa9849ca7729f0cc --- /dev/null +++ b/assets/robots/galaxea_a1z/evidence/workstation_head_height/source/provenance.json @@ -0,0 +1,1241 @@ +{ + "repository": "https://github.com/userguide-galaxea/URDF", + "revision": "55d4850dcdcc8b1c2e0f7655296344a4e9dd1a30", + "entry": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_files": [ + { + "path": "A1Z/A1Z_G1Z/CMakeLists.txt", + "sha256": "dee3544f44219d13560deeffa8b2dcc87c2f44141df92302164fcd2f23988bad" + }, + { + "path": "A1Z/A1Z_G1Z/launch/display.launch", + "sha256": "feb7736e84d0670ec3702f9f6f79f079e06fd2eb26d045c5a031b50edee9d421" + }, + { + "path": "A1Z/A1Z_G1Z/launch/gazebo.launch", + "sha256": "cfc2e7d8a173d73b2522dd25b7752e99b5bcac40437fb2da846ef2bde054813d" + }, + { + "path": "A1Z/A1Z_G1Z/meshes/arm_link1.STL", + "sha256": "8a92b987c41998e9edca22d9eca991fb8f85789060e59dfc8ffb0000c39b2756" + }, + { + "path": "A1Z/A1Z_G1Z/meshes/arm_link2.STL", + "sha256": "38735343df6f709e83edc91432ad7880456cdc32af9f50df651d7eaa62cdb06f" + }, + { + "path": "A1Z/A1Z_G1Z/meshes/arm_link3.STL", + "sha256": "6b91d251eb5b96f0ba9b8a1f875ff204627b54dd596529ce5c8f6f3eed538c89" + }, + { + "path": "A1Z/A1Z_G1Z/meshes/arm_link4.STL", + "sha256": "da8d3bd051d39ba13b25636f243b5f0898009ca1656b5efbd226be80b1a8f410" + }, + { + "path": "A1Z/A1Z_G1Z/meshes/arm_link5.STL", + "sha256": "737afd2cc87651ed3a2e7a56aedb1190b256cbfe1b68339b30cc04efe787ef18" + }, + { + "path": "A1Z/A1Z_G1Z/meshes/arm_link6.STL", + "sha256": "e0fa3550a433a40755c4a8c8f2e9a8b369052b7ab8836f5c44c36554a90a4422" + }, + { + "path": "A1Z/A1Z_G1Z/meshes/base_link.STL", + "sha256": "3ad75b62388108b0792028dfaadb65e8cbb7e8698042d5c270f566808a479345" + }, + { + "path": "A1Z/A1Z_G1Z/meshes/gripper_finger_left_link.STL", + "sha256": "f0bfdd48fc91b37f3156b290fc5947ff54cd3e09a47c568ccc2bd53c984b916e" + }, + { + "path": "A1Z/A1Z_G1Z/meshes/gripper_finger_rIght_link.STL", + "sha256": "7ae5bb8843726cab85befab71ef456f26d437ee313427fd193f25857b590cf27" + }, + { + "path": "A1Z/A1Z_G1Z/package.xml", + "sha256": "f019ac07ecee64bc309b8d7fee64239a8a051581c036b27992cd5963f0527d76" + }, + { + "path": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "sha256": "665e7ea27a726598f1b05cd42de83743ec73f1d8f921bda0f226105a4d7aa92c" + } + ], + "source_joint_mapping": { + "left_arm_joint1": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "arm_joint1" + }, + "left_arm_joint2": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "arm_joint2" + }, + "left_arm_joint3": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "arm_joint3" + }, + "left_arm_joint4": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "arm_joint4" + }, + "left_arm_joint5": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "arm_joint5" + }, + "left_arm_joint6": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "arm_joint6" + }, + "left_gripper_finger_left_joint": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "gripper_finger_left_joint" + }, + "left_gripper_finger_rIght_joint": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "gripper_finger_rIght_joint" + }, + "right_arm_joint1": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "arm_joint1" + }, + "right_arm_joint2": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "arm_joint2" + }, + "right_arm_joint3": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "arm_joint3" + }, + "right_arm_joint4": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "arm_joint4" + }, + "right_arm_joint5": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "arm_joint5" + }, + "right_arm_joint6": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "arm_joint6" + }, + "right_gripper_finger_left_joint": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "gripper_finger_left_joint" + }, + "right_gripper_finger_rIght_joint": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "gripper_finger_rIght_joint" + } + }, + "source_joint_origins_axes_limits_unchanged": true, + "source_visual_and_collision_geometry_unchanged": true, + "source_arm_mounts": { + "left": [ + [ + 0.9838436927881214, + 0.17902957342582415, + 0.0, + 0.0 + ], + [ + -0.17902957342582415, + 0.9838436927881214, + -0.0, + 0.26 + ], + [ + -0.0, + 0.0, + 1.0, + 0.0 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ], + "right": [ + [ + 0.9838436927881214, + -0.17902957342582415, + 0.0, + 0.0 + ], + [ + 0.17902957342582415, + 0.9838436927881214, + 0.0, + -0.26 + ], + [ + 0.0, + 0.0, + 1.0, + 0.0 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + "benchmark_placement": { + "base_position_m": [ + -0.04, + 0.0, + 0.08 + ], + "platform_front_world_x_m": 0.09, + "nearest_task_table_front_x_m": 0.138405, + "static_front_gap_m": 0.048405, + "note": "Common base x=-0.04 m; DROID platform front x=0.09 m stays 0.048405 m behind the nearest task-table front x=0.138405 m. Ready TCP world targets are unchanged and solved again within native joint limits.", + "camera_extrinsics_preserved": false, + "wrist_camera_extrinsics_preserved": true, + "head_camera_replaced_in_v18": true + }, + "derivations": [ + "Two complete source arms with left/right name prefixes under shared benchmark_base", + "Fixed mounting translations and proper yaw rotations", + "Geometry-derived canonical TCP +Z approach, closing local Y", + "Separate DROID-derived metal platform; task scenes unchanged", + "Physical central ZED X Mini benchmark head retrofit and unchanged virtual wrists, with ideal pinhole intrinsics", + "Numerical ready pose and low-tabletop reach evidence; PhysX audit required", + "Scoped PhysX convex-decomposition precision settings for source-clear body pairs that contacted after import; source meshes, joint coordinates, ready pose and collision filters remain unchanged. Reconverted PhysX validation is required; native mesh clearance alone is not physics validation.", + "Virtual wrist cameras use the canonical X side above the ready TCP (Metal +X, reBot/Galaxea -X), eye [side*0.12, 0, -0.055] m, target [0, 0, 0.04] m, up [side, 0, 0], and 24 mm focal length. Source-mesh rays and finite-table image coverage are checked at ready and low grasp; rendered validation remains required.", + "Manufacturer-photo appearance and head-view refinement, accessed 2026-11-07. Colors and PBR values are visual approximations, not measured colorimetry. Camera pose and ideal pinhole intrinsics are benchmark choices: no real-hardware intrinsic/extrinsic calibration, distortion calibration or color-chart calibration was supplied. Native source scale, geometry, joints, tools, fixed bases and task scenes are retained; benchmark control and camera sampling use 30 Hz.", + "v18 central head retrofit: physical source ZED X Mini at the inter-arm center on a short benchmark support; ideal optical model, not hardware calibration. Native arm geometry/materials and wrists retained; new conversion and rendered review required." + ], + "promoted_materials": [ + "left_base_link_source_material_0", + "left_arm_link1_source_material_0", + "left_arm_link2_source_material_0", + "left_arm_link3_source_material_0", + "left_arm_link4_source_material_0", + "left_arm_link5_source_material_0", + "left_arm_link6_source_material_0", + "left_gripper_finger_left_link_source_material_0", + "left_gripper_finger_rIght_link_source_material_0", + "right_base_link_source_material_0", + "right_arm_link1_source_material_0", + "right_arm_link2_source_material_0", + "right_arm_link3_source_material_0", + "right_arm_link4_source_material_0", + "right_arm_link5_source_material_0", + "right_arm_link6_source_material_0", + "right_gripper_finger_left_link_source_material_0", + "right_gripper_finger_rIght_link_source_material_0" + ], + "drive_overrides": [], + "internal_collision_filters": [ + { + "pair": [ + "left_gripper_finger_left_link", + "left_gripper_finger_rIght_link" + ], + "reason": "The source-coupled opposing fingers intersect/touch at the closed hard stop; filter only the internal finger pair, retaining all external contacts." + }, + { + "pair": [ + "left_arm_link4", + "left_arm_link6" + ], + "reason": "Native adjacent-wrist housings separated by arm_link5 overlap about 1.0-1.5 mm in source zero and ready poses (triangle-mesh FCL); preserve source geometry and filter only the mechanically adjacent housing pair." + }, + { + "pair": [ + "right_gripper_finger_left_link", + "right_gripper_finger_rIght_link" + ], + "reason": "The source-coupled opposing fingers intersect/touch at the closed hard stop; filter only the internal finger pair, retaining all external contacts." + }, + { + "pair": [ + "right_arm_link4", + "right_arm_link6" + ], + "reason": "Native adjacent-wrist housings separated by arm_link5 overlap about 1.0-1.5 mm in source zero and ready poses (triangle-mesh FCL); preserve source geometry and filter only the mechanically adjacent housing pair." + } + ], + "camera_ray_validation": "camera_ray_validation.json", + "tcp_note": "Geometry-derived midpoint of G1Z distal finger pads, arm_link6 X=177.7 mm (finger origin 72.7 mm plus 105 mm pad coordinate); approach +X and closing Y. Original rIght capitalization is preserved.", + "licensing_note": "Source package.xml declares BSD, but the pinned repository supplies no license text or identified copyright holder. Original package metadata is retained; no license text is invented.", + "generated_files": [ + { + "path": "benchmark_head/baseline_v17.json", + "bytes": 44789, + "sha256": "b87952cc0ff7572a2869c876d39f4c3bfd30d8fda17546aff8b795d247d833cd" + }, + { + "path": "benchmark_head/bolts.stl", + "bytes": 25684, + "sha256": "0bfa7cede2d9400aa8fb9f8f57898d7b6fb13c3aab5844e91ee848bd68783926" + }, + { + "path": "benchmark_head/evidence/cpu_geometry_checker.py", + "bytes": 18155, + "sha256": "e63bacf0ddb6a4f4980035f45d5472d5d8ac2063b300ca3f3d026fe653e221b4" + }, + { + "path": "benchmark_head/evidence/historical_v17_head_camera_validation.json", + "bytes": 8391, + "sha256": "6fbb03a1320b2cb93c876b272541b98e1c67722c451fbed9920715ae5f0441a6" + }, + { + "path": "benchmark_head/source/LICENSE", + "bytes": 1524, + "sha256": "110a998ebd9a901d31173892d43224f8f59f12ebfd6398b9f3dea0ee9a01ab16" + }, + { + "path": "benchmark_head/source/workbench.urdf", + "bytes": 32343, + "sha256": "911584df6ba45b282d93c7fd3bf1f98653061298fc67cd48e58a8e8ebfffcc23" + }, + { + "path": "benchmark_head/source/zedxm.stl", + "bytes": 577484, + "sha256": "44a0f81cf49fc6c21b909abd928bceba9d89e132ad16294538dea5d1a7e30711" + }, + { + "path": "benchmark_head/support.stl", + "bytes": 13484, + "sha256": "3843067708267cb50a57ff0b8191a1dd04227729e025ab2faffcb2301ea99a34" + }, + { + "path": "camera_ray_validation.json", + "bytes": 23980, + "sha256": "0d2f02b1cd06a1b79c3f6ca2292cef6cb2fff3a3b5e0967b66942793ffa78493" + }, + { + "path": "central_head_validation_v18.json", + "bytes": 139256, + "sha256": "d7c6e59fcb4f0c097f2070e0cc2c5d91573638525426eeea18f35f2235cc00b4" + }, + { + "path": "conversion.json", + "bytes": 26653, + "sha256": "0bd3c61adaef93aae4ba1585c27024694bc56320a1538ec1c12afce75522bdd8" + }, + { + "path": "licenses/SOURCE_LICENSE_NOTES.txt", + "bytes": 285, + "sha256": "f0d9d751b113bf823241c4428f7fa6de15f1d374e9b2cf8af13822272f906688" + }, + { + "path": "platform/LICENSE", + "bytes": 11461, + "sha256": "d7dcc1c2365f327e1112dc0a4c5b133bc06dabc4554d5d5319a763bb64d78db4" + }, + { + "path": "platform/droid_source.usd", + "bytes": 17794881, + "sha256": "0303a50c5705a16d5d69098241f92fb4c529f0682d44433f6a019f2f8ad9706e" + }, + { + "path": "platform/fixture.usd", + "bytes": 1730, + "sha256": "1b3b28cfdda0be084611ec97c34eed546e3b9391adb509a68d69d41123560b60" + }, + { + "path": "profile.json", + "bytes": 49218, + "sha256": "3c9d7c8621abcf2ae8ea4537f3e1e0adba6a6a6678819583a5dce6cf92f7d278" + }, + { + "path": "robot.urdf", + "bytes": 23191, + "sha256": "1977cbe63015b5868fea9e7de0dd13100f7e4c2ed287aca4d69b57133125eb4d" + }, + { + "path": "robot_import.urdf", + "bytes": 26635, + "sha256": "6be6dcbad6b2c8311cea09b442819e680f2b127eeb4173eb71c340537623381a" + }, + { + "path": "source/A1Z/A1Z_G1Z/CMakeLists.txt", + "bytes": 278, + "sha256": "dee3544f44219d13560deeffa8b2dcc87c2f44141df92302164fcd2f23988bad" + }, + { + "path": "source/A1Z/A1Z_G1Z/launch/display.launch", + "bytes": 412, + "sha256": "feb7736e84d0670ec3702f9f6f79f079e06fd2eb26d045c5a031b50edee9d421" + }, + { + "path": "source/A1Z/A1Z_G1Z/launch/gazebo.launch", + "bytes": 549, + "sha256": "cfc2e7d8a173d73b2522dd25b7752e99b5bcac40437fb2da846ef2bde054813d" + }, + { + "path": "source/A1Z/A1Z_G1Z/meshes/arm_link1.STL", + "bytes": 704484, + "sha256": "8a92b987c41998e9edca22d9eca991fb8f85789060e59dfc8ffb0000c39b2756" + }, + { + "path": "source/A1Z/A1Z_G1Z/meshes/arm_link2.STL", + "bytes": 1593784, + "sha256": "38735343df6f709e83edc91432ad7880456cdc32af9f50df651d7eaa62cdb06f" + }, + { + "path": "source/A1Z/A1Z_G1Z/meshes/arm_link3.STL", + "bytes": 1835984, + "sha256": "6b91d251eb5b96f0ba9b8a1f875ff204627b54dd596529ce5c8f6f3eed538c89" + }, + { + "path": "source/A1Z/A1Z_G1Z/meshes/arm_link4.STL", + "bytes": 1236084, + "sha256": "da8d3bd051d39ba13b25636f243b5f0898009ca1656b5efbd226be80b1a8f410" + }, + { + "path": "source/A1Z/A1Z_G1Z/meshes/arm_link5.STL", + "bytes": 1363484, + "sha256": "737afd2cc87651ed3a2e7a56aedb1190b256cbfe1b68339b30cc04efe787ef18" + }, + { + "path": "source/A1Z/A1Z_G1Z/meshes/arm_link6.STL", + "bytes": 3681784, + "sha256": "e0fa3550a433a40755c4a8c8f2e9a8b369052b7ab8836f5c44c36554a90a4422" + }, + { + "path": "source/A1Z/A1Z_G1Z/meshes/base_link.STL", + "bytes": 410384, + "sha256": "3ad75b62388108b0792028dfaadb65e8cbb7e8698042d5c270f566808a479345" + }, + { + "path": "source/A1Z/A1Z_G1Z/meshes/gripper_finger_left_link.STL", + "bytes": 598584, + "sha256": "f0bfdd48fc91b37f3156b290fc5947ff54cd3e09a47c568ccc2bd53c984b916e" + }, + { + "path": "source/A1Z/A1Z_G1Z/meshes/gripper_finger_rIght_link.STL", + "bytes": 598584, + "sha256": "7ae5bb8843726cab85befab71ef456f26d437ee313427fd193f25857b590cf27" + }, + { + "path": "source/A1Z/A1Z_G1Z/package.xml", + "bytes": 636, + "sha256": "f019ac07ecee64bc309b8d7fee64239a8a051581c036b27992cd5963f0527d76" + }, + { + "path": "source/A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "bytes": 11237, + "sha256": "665e7ea27a726598f1b05cd42de83743ec73f1d8f921bda0f226105a4d7aa92c" + }, + { + "path": "source/A1Z/README.md", + "bytes": 2380, + "sha256": "12429b1252f29b58c0f03555fd730b48fee25a8dd99771dfa9d696f61912039d" + }, + { + "path": "source/README.md", + "bytes": 389, + "sha256": "9d717c8cbeaa16d3b41fc778cf0b8c3639185c6f96d46fdc6a144981937a7c0f" + }, + { + "path": "static_validation.json", + "bytes": 28268, + "sha256": "906edf23293481e845fed9a3dd87db87f8f1f755896f58c3e694efb42b124d6d" + }, + { + "path": "usd/.asset_hash", + "bytes": 32, + "sha256": "5bd98cf9b0aca89280f4652c16763647e1e30b2a8c78c3dfb428ee8db6d4cbb1" + }, + { + "path": "usd/config.yaml", + "bytes": 702, + "sha256": "064aa6f1b2e84ff305621197aa8489bceb37607a7a105f7ba2436228c11338f6" + }, + { + "path": "usd/configuration/robot_base.usd", + "bytes": 18214833, + "sha256": "259b01c6d4bbd1db0bba463d8067a7b4c71e2f33f63a385a54b17c45b4d11963" + }, + { + "path": "usd/configuration/robot_physics.usd", + "bytes": 8302, + "sha256": "966a33dae8e61d70ecc24293e81edfc916b5a1226cf138442e88414a1dc180f4" + }, + { + "path": "usd/configuration/robot_robot.usd", + "bytes": 2495, + "sha256": "512e8a2985975a34c44625c2e71ff29621a7ee45d9c33bac54039e10c6123aad" + }, + { + "path": "usd/configuration/robot_sensor.usd", + "bytes": 661, + "sha256": "f3baa7cf8f15173e351faa217c299829e27bbc15d62d5b03ea0501057ee470c8" + }, + { + "path": "usd/robot.usd", + "bytes": 4903, + "sha256": "cb1f0c0311a1eddea4dcee0dd0ae0fcca0b08251e8d3da465b45d708a6c65d1a" + } + ], + "collision_decomposition_overrides": [ + { + "bodies": [ + "left_base_link", + "left_arm_link2" + ], + "settings": { + "shrink_wrap": true, + "error_percentage": 1.0, + "max_convex_hulls": 64, + "voxel_resolution": 1000000, + "hull_vertex_limit": 128, + "min_thickness": 0.0002 + }, + "reason": "Native source base and arm_link2 retain approximately 5.50-5.59 mm clearance in zero, ready and low-grasp poses; their exact enclosing convex hulls also remain clear. Imported untuned decomposition produced large base-arm contacts. Use shrink-wrapped finer decomposition to limit inflation outside the source surfaces without a collision filter.", + "source_distance_evidence": { + "method": "Source URDF FK; python-fcl native triangle meshes and exact enclosing convex hulls. Distances in metres; negative signed distance denotes intersection.", + "canonical_urdf_sha256": "fcd2cbe2ed41e3bc62d5cd17dde4bbeff1ccca6c7090710df71987b91fd0249e", + "source_collision_meshes": [ + { + "body": "left_base_link", + "path": "source/A1Z/A1Z_G1Z/meshes/base_link.STL", + "sha256": "3ad75b62388108b0792028dfaadb65e8cbb7e8698042d5c270f566808a479345" + }, + { + "body": "left_arm_link2", + "path": "source/A1Z/A1Z_G1Z/meshes/arm_link2.STL", + "sha256": "38735343df6f709e83edc91432ad7880456cdc32af9f50df651d7eaa62cdb06f" + } + ], + "poses": [ + { + "pose": "source_zero", + "joints": { + "left_arm_joint1": 0.0, + "left_arm_joint2": 0.0, + "left_arm_joint3": 0.0, + "left_arm_joint4": 0.0, + "left_arm_joint5": 0.0, + "left_arm_joint6": 0.0, + "left_gripper_finger_left_joint": 0.0, + "left_gripper_finger_rIght_joint": 0.0 + }, + "native_mesh": { + "intersects": false, + "signed_distance_m": 0.005499997392296785, + "max_contact_depth_m": 0.0 + }, + "convex_mesh": { + "intersects": false, + "signed_distance_m": 0.005499997392296785, + "max_contact_depth_m": 0.0 + } + }, + { + "pose": "ready", + "joints": { + "left_arm_joint1": 0.05992097804404975, + "left_arm_joint2": 0.9754452387743513, + "left_arm_joint3": -1.148199497118911, + "left_arm_joint4": 0.6994880040087724, + "left_arm_joint5": 0.10392874645545758, + "left_arm_joint6": -0.060256720183872764, + "left_gripper_finger_left_joint": 0.048, + "left_gripper_finger_rIght_joint": -0.048 + }, + "native_mesh": { + "intersects": false, + "signed_distance_m": 0.005516987858247186, + "max_contact_depth_m": 0.0 + }, + "convex_mesh": { + "intersects": false, + "signed_distance_m": 0.005507239095790785, + "max_contact_depth_m": 0.0 + } + }, + { + "pose": "low_tabletop_grasp", + "joints": { + "left_arm_joint1": 0.03810294539582347, + "left_arm_joint2": 2.244686542603657, + "left_arm_joint3": -1.6855873086008837, + "left_arm_joint4": 1.0116970926999886, + "left_arm_joint5": 8.486917684097946e-15, + "left_arm_joint6": -0.14189705460416746, + "left_gripper_finger_left_joint": 0.048, + "left_gripper_finger_rIght_joint": -0.048 + }, + "native_mesh": { + "intersects": false, + "signed_distance_m": 0.005591606784263302, + "max_contact_depth_m": 0.0 + }, + "convex_mesh": { + "intersects": false, + "signed_distance_m": 0.005505637776655331, + "max_contact_depth_m": 0.0 + } + } + ], + "physics_validation": "pending reconversion and runtime contact audit" + } + }, + { + "bodies": [ + "right_base_link", + "right_arm_link2" + ], + "settings": { + "shrink_wrap": true, + "error_percentage": 1.0, + "max_convex_hulls": 64, + "voxel_resolution": 1000000, + "hull_vertex_limit": 128, + "min_thickness": 0.0002 + }, + "reason": "Native source base and arm_link2 retain approximately 5.50-5.59 mm clearance in zero, ready and low-grasp poses; their exact enclosing convex hulls also remain clear. Imported untuned decomposition produced large base-arm contacts. Use shrink-wrapped finer decomposition to limit inflation outside the source surfaces without a collision filter.", + "source_distance_evidence": { + "method": "Source URDF FK; python-fcl native triangle meshes and exact enclosing convex hulls. Distances in metres; negative signed distance denotes intersection.", + "canonical_urdf_sha256": "fcd2cbe2ed41e3bc62d5cd17dde4bbeff1ccca6c7090710df71987b91fd0249e", + "source_collision_meshes": [ + { + "body": "right_base_link", + "path": "source/A1Z/A1Z_G1Z/meshes/base_link.STL", + "sha256": "3ad75b62388108b0792028dfaadb65e8cbb7e8698042d5c270f566808a479345" + }, + { + "body": "right_arm_link2", + "path": "source/A1Z/A1Z_G1Z/meshes/arm_link2.STL", + "sha256": "38735343df6f709e83edc91432ad7880456cdc32af9f50df651d7eaa62cdb06f" + } + ], + "poses": [ + { + "pose": "source_zero", + "joints": { + "right_arm_joint1": 0.0, + "right_arm_joint2": 0.0, + "right_arm_joint3": 0.0, + "right_arm_joint4": 0.0, + "right_arm_joint5": 0.0, + "right_arm_joint6": 0.0, + "right_gripper_finger_left_joint": 0.0, + "right_gripper_finger_rIght_joint": 0.0 + }, + "native_mesh": { + "intersects": false, + "signed_distance_m": 0.005499997392296785, + "max_contact_depth_m": 0.0 + }, + "convex_mesh": { + "intersects": false, + "signed_distance_m": 0.005499997392296785, + "max_contact_depth_m": 0.0 + } + }, + { + "pose": "ready", + "joints": { + "right_arm_joint1": -0.059920978014919454, + "right_arm_joint2": 0.9754452371570582, + "right_arm_joint3": -1.1481994941052112, + "right_arm_joint4": 0.6994880019396595, + "right_arm_joint5": -0.10392874658705627, + "right_arm_joint6": 0.060256720187681787, + "right_gripper_finger_left_joint": 0.048, + "right_gripper_finger_rIght_joint": -0.048 + }, + "native_mesh": { + "intersects": false, + "signed_distance_m": 0.005504147857230052, + "max_contact_depth_m": 0.0 + }, + "convex_mesh": { + "intersects": false, + "signed_distance_m": 0.005503230016466494, + "max_contact_depth_m": 0.0 + } + }, + { + "pose": "low_tabletop_grasp", + "joints": { + "right_arm_joint1": -0.03810294539591964, + "right_arm_joint2": 2.2446865426042817, + "right_arm_joint3": -1.6855873086018913, + "right_arm_joint4": 1.011697092700421, + "right_arm_joint5": -1.6145843350605364e-14, + "right_arm_joint6": 0.14189705460409896, + "right_gripper_finger_left_joint": 0.048, + "right_gripper_finger_rIght_joint": -0.048 + }, + "native_mesh": { + "intersects": false, + "signed_distance_m": 0.005573826685983732, + "max_contact_depth_m": 0.0 + }, + "convex_mesh": { + "intersects": false, + "signed_distance_m": 0.005505637776655692, + "max_contact_depth_m": 0.0 + } + } + ], + "physics_validation": "pending reconversion and runtime contact audit" + } + } + ], + "appearance_refinement": { + "reference": { + "pages": [ + "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "https://galaxea-ai.com/en/news/galaxea-launches-lemo.html" + ], + "images": [ + "https://galaxea-dynamics.com/cdn/shop/files/A1Z-Main-New.jpg?v=1793589921&width=1920", + "https://galaxea-dynamics.com/cdn/shop/files/A1Z-Gripper_Open.jpg?v=1791598979&width=1920", + "https://galaxea-ai.com/en/images/pc/product4/color.png" + ], + "observation": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "camera_basis": "v18 uses a physical central ZED X Mini retrofit with copied Trossen source optical offsets on a short benchmark support. Manufacturer photographs below remain arm appearance references; they do not establish this camera as a factory installation or measured calibration.", + "eye_world_m": [ + 0.03, + 0.0, + 0.56 + ], + "target_world_m": [ + 0.46, + 0.0, + 0.06 + ], + "focal_length_mm": 18.0 + }, + "note": "Source/photo arm colors and PBR values retained fromv17 without change; unmeasured visual approximation. The active v18 central head retrofit is described by layout_refinement_v18; the former virtual-head reference is retained only as historical metadata there. Native arm geometry, joints, tools, fixed bases, task scenes and wrist cameras remain unchanged; control/camera30Hz.", + "per_visual_materials": [ + { + "body": "left_base_link", + "mesh": "source/A1Z/A1Z_G1Z/meshes/base_link.STL", + "material_name": "left_base_link_source_material_0", + "rgba": [ + 0.025, + 0.029, + 0.035, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_arm_link1", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link1.STL", + "material_name": "left_arm_link1_source_material_0", + "rgba": [ + 0.045, + 0.05, + 0.06, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_arm_link2", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link2.STL", + "material_name": "left_arm_link2_source_material_0", + "rgba": [ + 0.07, + 0.078, + 0.09, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_arm_link3", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link3.STL", + "material_name": "left_arm_link3_source_material_0", + "rgba": [ + 0.42, + 0.45, + 0.5, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_arm_link4", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link4.STL", + "material_name": "left_arm_link4_source_material_0", + "rgba": [ + 0.035, + 0.04, + 0.05, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_arm_link5", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link5.STL", + "material_name": "left_arm_link5_source_material_0", + "rgba": [ + 0.045, + 0.05, + 0.06, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_arm_link6", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link6.STL", + "material_name": "left_arm_link6_source_material_0", + "rgba": [ + 0.08, + 0.088, + 0.1, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_gripper_finger_left_link", + "mesh": "source/A1Z/A1Z_G1Z/meshes/gripper_finger_left_link.STL", + "material_name": "left_gripper_finger_left_link_source_material_0", + "rgba": [ + 0.025, + 0.029, + 0.035, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_gripper_finger_rIght_link", + "mesh": "source/A1Z/A1Z_G1Z/meshes/gripper_finger_rIght_link.STL", + "material_name": "left_gripper_finger_rIght_link_source_material_0", + "rgba": [ + 0.025, + 0.029, + 0.035, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_base_link", + "mesh": "source/A1Z/A1Z_G1Z/meshes/base_link.STL", + "material_name": "right_base_link_source_material_0", + "rgba": [ + 0.025, + 0.029, + 0.035, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_arm_link1", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link1.STL", + "material_name": "right_arm_link1_source_material_0", + "rgba": [ + 0.045, + 0.05, + 0.06, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_arm_link2", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link2.STL", + "material_name": "right_arm_link2_source_material_0", + "rgba": [ + 0.07, + 0.078, + 0.09, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_arm_link3", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link3.STL", + "material_name": "right_arm_link3_source_material_0", + "rgba": [ + 0.42, + 0.45, + 0.5, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_arm_link4", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link4.STL", + "material_name": "right_arm_link4_source_material_0", + "rgba": [ + 0.035, + 0.04, + 0.05, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_arm_link5", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link5.STL", + "material_name": "right_arm_link5_source_material_0", + "rgba": [ + 0.045, + 0.05, + 0.06, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_arm_link6", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link6.STL", + "material_name": "right_arm_link6_source_material_0", + "rgba": [ + 0.08, + 0.088, + 0.1, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_gripper_finger_left_link", + "mesh": "source/A1Z/A1Z_G1Z/meshes/gripper_finger_left_link.STL", + "material_name": "right_gripper_finger_left_link_source_material_0", + "rgba": [ + 0.025, + 0.029, + 0.035, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_gripper_finger_rIght_link", + "mesh": "source/A1Z/A1Z_G1Z/meshes/gripper_finger_rIght_link.STL", + "material_name": "right_gripper_finger_rIght_link_source_material_0", + "rgba": [ + 0.025, + 0.029, + 0.035, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + } + ] + }, + "head_camera_validation": "central_head_validation_v18.json", + "source_geometry_and_kinematics_unchanged_by_appearance_refinement": true, + "layout_refinement_v18": { + "previous_head_camera": { + "parent_body": "benchmark_base", + "position": [ + -0.060000000000000005, + 0.0, + 0.8 + ], + "quaternion_wxyz": [ + -0.6752854811484117, + -0.20973678492376605, + 0.20973678492376605, + 0.6752854811484117 + ], + "focal_length": 20.0, + "horizontal_aperture": 36.0, + "vertical_aperture": 27.0, + "clipping_range": [ + 0.01, + 10.0 + ], + "source_prim": "benchmark virtual head camera; manufacturer deployment reference" + }, + "optical_world_m": [ + 0.03, + 0.0, + 0.56 + ], + "look_target_world_m": [ + 0.46, + 0.0, + 0.06 + ], + "downward_tilt_deg": 49.30446896050798, + "horizontal_fov_deg": 90.0, + "vertical_fov_deg": 73.73979529168804, + "source_repository": "https://github.com/TrossenRobotics/trossen_arm_description", + "source_revision": "126e47fe66af1ef850986f3383f24080b74fda9c", + "source_files": [ + { + "path": "benchmark_head/source/workbench.urdf", + "source_url": "https://raw.githubusercontent.com/TrossenRobotics/trossen_arm_description/126e47fe66af1ef850986f3383f24080b74fda9c/urdf/generated/workbench.urdf", + "sha256": "911584df6ba45b282d93c7fd3bf1f98653061298fc67cd48e58a8e8ebfffcc23" + }, + { + "path": "benchmark_head/source/zedxm.stl", + "source_url": "https://raw.githubusercontent.com/TrossenRobotics/trossen_arm_description/126e47fe66af1ef850986f3383f24080b74fda9c/meshes/peripherals/zedxm.stl", + "sha256": "44a0f81cf49fc6c21b909abd928bceba9d89e132ad16294538dea5d1a7e30711" + }, + { + "path": "benchmark_head/source/LICENSE", + "source_url": "https://raw.githubusercontent.com/TrossenRobotics/trossen_arm_description/126e47fe66af1ef850986f3383f24080b74fda9c/LICENSE", + "sha256": "110a998ebd9a901d31173892d43224f8f59f12ebfd6398b9f3dea0ee9a01ab16" + } + ], + "hardware_reference": "https://www.stereolabs.com/store/products/zed-x-mini-stereo-camera", + "source_license": "BSD-3-Clause; copied LICENSE retained", + "generation_entrypoint": "extensions/bimanual/refine_compact_heads_v18.py", + "manufacturer_dual_arm_assembly": false, + "measured_calibration": false, + "note": "Benchmark-authored support and placement; source camera dimensions and optical offsets retained. Original robot colors/materials, arm geometry/kinematics/home, wrist extrinsics/intrinsics and30Hz remain unchanged.", + "actual_camera_model": "Stereolabs ZED X Mini, copied pinned Trossen source mesh and left optical frame", + "old_head_camera": { + "parent_body": "benchmark_base", + "position": [ + -0.060000000000000005, + 0.0, + 0.8 + ], + "quaternion_wxyz": [ + -0.6752854811484117, + -0.20973678492376605, + 0.20973678492376605, + 0.6752854811484117 + ], + "focal_length": 20.0, + "horizontal_aperture": 36.0, + "vertical_aperture": 27.0, + "clipping_range": [ + 0.01, + 10.0 + ], + "source_prim": "benchmark virtual head camera; manufacturer deployment reference" + }, + "new_head_camera": { + "parent_body": "benchmark_head_camera_link", + "position": [ + -0.01, + 0.025, + 0.016 + ], + "quaternion_wxyz": [ + 0.5, + 0.5000000000000001, + -0.4999999999999999, + -0.4999999999999999 + ], + "focal_length": 18.0, + "horizontal_aperture": 36.0, + "vertical_aperture": 27.0, + "clipping_range": [ + 0.03, + 10.0 + ], + "source_prim": "benchmark_head_optical_frame", + "source_frame_to_camera_quaternion_wxyz": [ + 0.0, + 1.0, + 0.0, + 0.0 + ], + "source_note": "Copied pinned Trossen ZED X Mini optical geometry; benchmark central retrofit, not factory mount or measured calibration." + }, + "old_head_world_transform": [ + [ + 0.0, + 0.8240419241993678, + -0.5665288228870653, + -0.1 + ], + [ + -1.0000000000000002, + 0.0, + 0.0, + 0.0 + ], + [ + 0.0, + 0.5665288228870653, + 0.824041924199368, + 0.88 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ], + "new_head_world_transform": [ + [ + 2.0538813749754266e-16, + 0.7581851963116832, + -0.6520392688280475, + 0.030000000000000006 + ], + [ + -1.0, + -1.1102230246251565e-16, + -4.440892098500626e-16, + 0.0 + ], + [ + -4.0909276567133503e-16, + 0.6520392688280476, + 0.758185196311683, + 0.56 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ], + "baseline_source_hashes": { + "profile.json": "5f42fe127780b672938a955176d85d4f5f26bbb5bf2ea16ebd32daa1fbcf7dfe", + "robot.urdf": "cae0d562badb65d26d3692a463d7409060d888cf58932d3ab61e4c503fb9af63", + "provenance.json": "d651a42c08ac0bb52f4fd5de053a1c38807e3f183c11a36e4a20fe911e1bbc9c" + }, + "baseline_snapshot": "benchmark_head/baseline_v17.json", + "historical_v17_head_reference": { + "pages": [ + "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "https://galaxea-ai.com/en/news/galaxea-launches-lemo.html" + ], + "images": [ + "https://galaxea-dynamics.com/cdn/shop/files/A1Z-Main-New.jpg?v=1793589921&width=1920", + "https://galaxea-dynamics.com/cdn/shop/files/A1Z-Gripper_Open.jpg?v=1791598979&width=1920", + "https://galaxea-ai.com/en/images/pc/product4/color.png" + ], + "observation": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "camera_basis": "Official LEMO deployment demonstrates two A1Z arms with wrist cameras and a raised central camera. Only that mounting arrangement informs this virtual camera; this existing benchmark assembly is not represented as a factory LEMO model.", + "eye_world_m": [ + -0.1, + 0.0, + 0.88 + ], + "target_world_m": [ + 0.45, + 0.0, + 0.08 + ], + "focal_length_mm": 20.0 + }, + "static_validation": "central_head_validation_v18.json", + "control_hz": 30, + "final_rendered_review_pending": true, + "generator_sha256": "e63bacf0ddb6a4f4980035f45d5472d5d8ac2063b300ca3f3d026fe653e221b4", + "metadata_finalizer_sha256": "2e1f5fd914539797960e37a88784c001db232a78fb2cf2547d4e042f2c79a456" + } +} diff --git a/assets/robots/galaxea_a1z/evidence/workstation_head_height/source/robot.urdf b/assets/robots/galaxea_a1z/evidence/workstation_head_height/source/robot.urdf new file mode 100644 index 0000000000000000000000000000000000000000..b772baa765be398840e144c568728255121f11a4 --- /dev/null +++ b/assets/robots/galaxea_a1z/evidence/workstation_head_height/source/robot.urdf @@ -0,0 +1,639 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/assets/robots/galaxea_a1z/evidence/workstation_head_height/source/robot_import.urdf b/assets/robots/galaxea_a1z/evidence/workstation_head_height/source/robot_import.urdf new file mode 100644 index 0000000000000000000000000000000000000000..9cd2306c36d4eb17e42c79df5534783865578eb3 --- /dev/null +++ b/assets/robots/galaxea_a1z/evidence/workstation_head_height/source/robot_import.urdf @@ -0,0 +1,639 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/assets/robots/galaxea_a1z/licenses/SOURCE_LICENSE_NOTES.txt b/assets/robots/galaxea_a1z/licenses/SOURCE_LICENSE_NOTES.txt new file mode 100644 index 0000000000000000000000000000000000000000..47d5e21cda4783ab48d9f675822c0c6dd1a28518 --- /dev/null +++ b/assets/robots/galaxea_a1z/licenses/SOURCE_LICENSE_NOTES.txt @@ -0,0 +1,3 @@ +Source package.xml declares BSD, but the pinned repository supplies no license text or identified copyright holder. Original package metadata is retained; no license text is invented. +Source: https://github.com/userguide-galaxea/URDF +Revision: 55d4850dcdcc8b1c2e0f7655296344a4e9dd1a30 diff --git a/assets/robots/galaxea_a1z/platform/LICENSE b/assets/robots/galaxea_a1z/platform/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..b950a913527022b744ab38fb0f5c6505f8318996 --- /dev/null +++ b/assets/robots/galaxea_a1z/platform/LICENSE @@ -0,0 +1,204 @@ +Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. \ No newline at end of file diff --git a/assets/robots/galaxea_a1z/platform/fixture.usd b/assets/robots/galaxea_a1z/platform/fixture.usd new file mode 100644 index 0000000000000000000000000000000000000000..1f2a4aab0d3298c6694c6e61807d6a79ec1ceaf8 Binary files /dev/null and b/assets/robots/galaxea_a1z/platform/fixture.usd differ diff --git a/assets/robots/galaxea_a1z/platform/provenance.json b/assets/robots/galaxea_a1z/platform/provenance.json new file mode 100644 index 0000000000000000000000000000000000000000..680bd3c7634196515ba26839c439c24b84bd646e --- /dev/null +++ b/assets/robots/galaxea_a1z/platform/provenance.json @@ -0,0 +1,45 @@ +{ + "source": "RoboLab DROID FRANKA_TABLE_FIXTURE", + "source_layers": [ + { + "path": "assets/fixtures/franka_table.usd", + "sha256": "f5a00da4c05db6dd0441f8c76a886a898435e61890dd1f445ff7e8f79e1e2495" + }, + { + "path": "assets/fixtures/Props/instaceable_meshes.usd", + "sha256": "b7827de44e5051d8d7803507b9362dbf8521181996449a88934b59ceb0d54db6" + } + ], + "source_mesh_and_materials_preserved": true, + "source_bounds_m": [ + [ + -0.17625000000000002, + -0.37929999828338623, + -0.794700026512146 + ], + [ + 0.7237510085105896, + 0.37929999828338623, + 0.0 + ] + ], + "installation_scale": [ + 0.3333329598113113, + 0.9754811539006707, + 0.9777274117004505 + ], + "installation_translation_m": [ + 0.07125006583325637, + 0.0, + -0.0 + ], + "rotation_z_deg": 180.0, + "fixture_top_relative_to_robot_root_m": 0.0, + "fixture_bottom_relative_to_robot_root_m": -0.7769999999999999, + "added_benchmark_frame_parts": [], + "native_workstation_geometry_removed": false, + "task_table_modified": false, + "license": "Apache-2.0", + "appearance_reference": [], + "support_geometry_note": "Benchmark approximations from published ABC Kit / YAM7 Duo photos; dimensions are installation choices, not measured product CAD. Small unmodeled mounting-fastener clearances keep separate static support colliders out of source camera CAD." +} diff --git a/assets/robots/galaxea_a1z/profile.json b/assets/robots/galaxea_a1z/profile.json new file mode 100644 index 0000000000000000000000000000000000000000..c5798fa198280076dc2c37447906168e846724b6 --- /dev/null +++ b/assets/robots/galaxea_a1z/profile.json @@ -0,0 +1,1542 @@ +{ + "id": "galaxea_a1z", + "label": "Galaxea A1Z + G1Z \u00b7 Dual Arm", + "source_robot": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "usd": "../galaxea_a1z/usd/robot.usd", + "native_root": "/galaxea_a1z_benchmark", + "source_revision": "55d4850dcdcc8b1c2e0f7655296344a4e9dd1a30", + "base_position": [ + -0.04, + 0.0, + 0.08 + ], + "ground_offset": 0.7769999999999999, + "home": { + "left_arm_joint1": 0.05992097804404975, + "left_arm_joint2": 0.9754452387743513, + "left_arm_joint3": -1.148199497118911, + "left_arm_joint4": 0.6994880040087724, + "left_arm_joint5": 0.10392874645545758, + "left_arm_joint6": -0.060256720183872764, + "left_gripper_finger_left_joint": 0.048, + "left_gripper_finger_rIght_joint": -0.048, + "right_arm_joint1": -0.059920978014919454, + "right_arm_joint2": 0.9754452371570582, + "right_arm_joint3": -1.1481994941052112, + "right_arm_joint4": 0.6994880019396595, + "right_arm_joint5": -0.10392874658705627, + "right_arm_joint6": 0.060256720187681787, + "right_gripper_finger_left_joint": 0.048, + "right_gripper_finger_rIght_joint": -0.048 + }, + "joints": { + "left_arm_joint1": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 20.0, + "velocity": 1.5, + "mimic": false + }, + "left_arm_joint2": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 25.0, + "velocity": 1.5, + "mimic": false + }, + "left_arm_joint3": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 20.0, + "velocity": 1.5, + "mimic": false + }, + "left_arm_joint4": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 9.0, + "velocity": 1.5, + "mimic": false + }, + "left_arm_joint5": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 3.5, + "velocity": 1.5, + "mimic": false + }, + "left_arm_joint6": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 3.5, + "velocity": 1.5, + "mimic": false + }, + "left_gripper_finger_left_joint": { + "type": "linear", + "stiffness": 1200.0, + "damping": 20.0, + "effort": 3.0, + "velocity": 0.1, + "mimic": false + }, + "left_gripper_finger_rIght_joint": { + "type": "linear", + "stiffness": 1200.0, + "damping": 20.0, + "effort": 3.0, + "velocity": 0.1, + "mimic": true + }, + "right_arm_joint1": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 20.0, + "velocity": 1.5, + "mimic": false + }, + "right_arm_joint2": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 25.0, + "velocity": 1.5, + "mimic": false + }, + "right_arm_joint3": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 20.0, + "velocity": 1.5, + "mimic": false + }, + "right_arm_joint4": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 9.0, + "velocity": 1.5, + "mimic": false + }, + "right_arm_joint5": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 3.5, + "velocity": 1.5, + "mimic": false + }, + "right_arm_joint6": { + "type": "angular", + "stiffness": 800.0, + "damping": 60.0, + "effort": 3.5, + "velocity": 1.5, + "mimic": false + }, + "right_gripper_finger_left_joint": { + "type": "linear", + "stiffness": 1200.0, + "damping": 20.0, + "effort": 3.0, + "velocity": 0.1, + "mimic": false + }, + "right_gripper_finger_rIght_joint": { + "type": "linear", + "stiffness": 1200.0, + "damping": 20.0, + "effort": 3.0, + "velocity": 0.1, + "mimic": true + } + }, + "arms": { + "left": { + "asset": "robot", + "joints": [ + "left_arm_joint1", + "left_arm_joint2", + "left_arm_joint3", + "left_arm_joint4", + "left_arm_joint5", + "left_arm_joint6" + ], + "tcp_body": "left_arm_link6", + "tcp_offset_pos": [ + 0.1777, + 0.0, + 0.0 + ], + "tcp_offset_quat": [ + 0.7071067811865477, + 0.0, + 0.7071067811865475, + 0.0 + ], + "master_joint": "left_gripper_finger_left_joint", + "gripper_open": 0.048, + "gripper_closed": 0.0, + "contact_bodies": [ + "left_gripper_finger_left_link", + "left_gripper_finger_rIght_link" + ], + "source_tcp": "left_benchmark_tcp", + "home_target_world": [ + 0.3, + 0.24, + 0.38 + ], + "home_orientation_wxyz": [ + 0.5000000000000001, + 0.0, + 0.8660254037844386, + 0.0 + ] + }, + "right": { + "asset": "robot", + "joints": [ + "right_arm_joint1", + "right_arm_joint2", + "right_arm_joint3", + "right_arm_joint4", + "right_arm_joint5", + "right_arm_joint6" + ], + "tcp_body": "right_arm_link6", + "tcp_offset_pos": [ + 0.1777, + 0.0, + 0.0 + ], + "tcp_offset_quat": [ + 0.7071067811865477, + 0.0, + 0.7071067811865475, + 0.0 + ], + "master_joint": "right_gripper_finger_left_joint", + "gripper_open": 0.048, + "gripper_closed": 0.0, + "contact_bodies": [ + "right_gripper_finger_left_link", + "right_gripper_finger_rIght_link" + ], + "source_tcp": "right_benchmark_tcp", + "home_target_world": [ + 0.3, + -0.24, + 0.38 + ], + "home_orientation_wxyz": [ + 0.5000000000000001, + 0.0, + 0.8660254037844386, + 0.0 + ] + } + }, + "cameras": { + "left_wrist_camera": { + "parent_body": "left_arm_link6", + "position": [ + 0.12271649809441512, + -2.045049288997006e-05, + 0.07040006463328237 + ], + "quaternion_wxyz": [ + -0.5963553201631231, + -0.38003864358690315, + 0.3797944060017287, + 0.5963951464118061 + ], + "focal_length": 11.040981262631282, + "horizontal_aperture": 20.955, + "vertical_aperture": 15.716249999999999, + "clipping_range": [ + 0.01, + 10.0 + ], + "source_prim": "left_wrist_camera", + "convention": "opengl", + "source_kind": "verified_yam_fallback", + "source_file": "configs/robots/yam_verified.json", + "source_note": "Verified YAM optical mount transported through each calibrated fingertip/tool frame. Benchmark installation, not a factory camera definition." + }, + "right_wrist_camera": { + "parent_body": "right_arm_link6", + "position": [ + 0.12271649409109411, + -2.0433767323916645e-05, + 0.07040001781173397 + ], + "quaternion_wxyz": [ + -0.5963553476503192, + -0.38003860045408694, + 0.3797944491374235, + 0.5963951189422719 + ], + "focal_length": 11.040981262631282, + "horizontal_aperture": 20.955, + "vertical_aperture": 15.716249999999999, + "clipping_range": [ + 0.01, + 10.0 + ], + "source_prim": "right_wrist_camera", + "convention": "opengl", + "source_kind": "verified_yam_fallback", + "source_file": "configs/robots/yam_verified.json", + "source_note": "Verified YAM optical mount transported through each calibrated fingertip/tool frame. Benchmark installation, not a factory camera definition." + }, + "head_camera": { + "parent_body": "benchmark_head_camera_link", + "position": [ + -0.01000000000000012, + 0.025000000000000012, + 0.016000000000000014 + ], + "quaternion_wxyz": [ + 0.5000000000000001, + 0.5000000000000001, + -0.5, + -0.5 + ], + "focal_length": 18.0, + "horizontal_aperture": 36.0, + "vertical_aperture": 27.0, + "clipping_range": [ + 0.03, + 10.0 + ], + "source_prim": "benchmark_head_optical_frame", + "source_frame_to_camera_quaternion_wxyz": [ + 0.0, + 1.0, + 0.0, + 0.0 + ], + "source_note": "Raised workstation head revision 1: source housing and optical frame move together on a visible fixed support, above the tabletop ready-arm envelope. Nominal benchmark mounting, not measured hardware calibration." + } + }, + "action_frame": "benchmark_base; X forward, Y left, Z up; absolute canonical TCP xyz + quaternion WXYZ; TCP +Z approach, closing local Y", + "support": null, + "platform": { + "usd": "platform/fixture.usd", + "source": "RoboLab assets/fixtures/franka_table.usd (same fixture as DROID)", + "dimensions_m": [ + 0.3, + 0.74 + ], + "center_xy_m": [ + -0.02, + 0.0 + ], + "height_m": 0.7769999999999999, + "gantry": "Physical central ZED X Mini on a short metal post and rear bracket between the two arms; benchmark retrofit attached to the unchanged platform." + }, + "source_arm_mounts": { + "left": [ + [ + 0.9838436927881214, + 0.17902957342582415, + 0.0, + 0.0 + ], + [ + -0.17902957342582415, + 0.9838436927881214, + -0.0, + 0.26 + ], + [ + -0.0, + 0.0, + 1.0, + 0.0 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ], + "right": [ + [ + 0.9838436927881214, + -0.17902957342582415, + 0.0, + 0.0 + ], + [ + 0.17902957342582415, + 0.9838436927881214, + 0.0, + -0.26 + ], + [ + 0.0, + 0.0, + 1.0, + 0.0 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + "camera_note": "Wrist cameras: Verified YAM optical mount transported through each calibrated fingertip/tool frame. Benchmark installation, not a factory camera definition. Head camera retained.", + "gripper_note": "Original source parallel gripper meshes, coordinates and -1 mimic preserved; each hand has an independent master.", + "model_note": "Two complete native single-arm assemblies on a shared benchmark root and unchanged low DROID-derived metal platform. A source ZED X Mini camera is physically mounted between the arms on a short benchmark-authored post; this retrofit is not a factory dual-arm model. Task tables and native arm/tool geometry remain unchanged.", + "placement_note": "Common base x=-0.04 m; DROID platform front x=0.09 m stays 0.048405 m behind the nearest task-table front x=0.138405 m. Ready TCP world targets are unchanged and solved again within native joint limits.", + "tcp_note": "Geometry-derived midpoint of G1Z distal finger pads, arm_link6 X=177.7 mm (finger origin 72.7 mm plus 105 mm pad coordinate); approach +X and closing Y. Original rIght capitalization is preserved.", + "drive_overrides": [], + "internal_collision_filters": [ + { + "bodies": [ + "left_gripper_finger_left_link", + "left_gripper_finger_rIght_link" + ], + "reason": "The source-coupled opposing fingers intersect/touch at the closed hard stop; filter only the internal finger pair, retaining all external contacts." + }, + { + "bodies": [ + "left_arm_link4", + "left_arm_link6" + ], + "reason": "Native adjacent-wrist housings separated by arm_link5 overlap about 1.0-1.5 mm in source zero and ready poses (triangle-mesh FCL); preserve source geometry and filter only the mechanically adjacent housing pair." + }, + { + "bodies": [ + "right_gripper_finger_left_link", + "right_gripper_finger_rIght_link" + ], + "reason": "The source-coupled opposing fingers intersect/touch at the closed hard stop; filter only the internal finger pair, retaining all external contacts." + }, + { + "bodies": [ + "right_arm_link4", + "right_arm_link6" + ], + "reason": "Native adjacent-wrist housings separated by arm_link5 overlap about 1.0-1.5 mm in source zero and ready poses (triangle-mesh FCL); preserve source geometry and filter only the mechanically adjacent housing pair." + } + ], + "internal_collision_filter_notes": [ + { + "pair": [ + "left_gripper_finger_left_link", + "left_gripper_finger_rIght_link" + ], + "reason": "The source-coupled opposing fingers intersect/touch at the closed hard stop; filter only the internal finger pair, retaining all external contacts." + }, + { + "pair": [ + "left_arm_link4", + "left_arm_link6" + ], + "reason": "Native adjacent-wrist housings separated by arm_link5 overlap about 1.0-1.5 mm in source zero and ready poses (triangle-mesh FCL); preserve source geometry and filter only the mechanically adjacent housing pair." + }, + { + "pair": [ + "right_gripper_finger_left_link", + "right_gripper_finger_rIght_link" + ], + "reason": "The source-coupled opposing fingers intersect/touch at the closed hard stop; filter only the internal finger pair, retaining all external contacts." + }, + { + "pair": [ + "right_arm_link4", + "right_arm_link6" + ], + "reason": "Native adjacent-wrist housings separated by arm_link5 overlap about 1.0-1.5 mm in source zero and ready poses (triangle-mesh FCL); preserve source geometry and filter only the mechanically adjacent housing pair." + } + ], + "collision_decomposition_overrides": [ + { + "bodies": [ + "left_base_link", + "left_arm_link2" + ], + "settings": { + "shrink_wrap": true, + "error_percentage": 1.0, + "max_convex_hulls": 64, + "voxel_resolution": 1000000, + "hull_vertex_limit": 128, + "min_thickness": 0.0002 + }, + "reason": "Native source base and arm_link2 retain approximately 5.50-5.59 mm clearance in zero, ready and low-grasp poses; their exact enclosing convex hulls also remain clear. Imported untuned decomposition produced large base-arm contacts. Use shrink-wrapped finer decomposition to limit inflation outside the source surfaces without a collision filter.", + "source_distance_evidence": { + "method": "Source URDF FK; python-fcl native triangle meshes and exact enclosing convex hulls. Distances in metres; negative signed distance denotes intersection.", + "canonical_urdf_sha256": "fcd2cbe2ed41e3bc62d5cd17dde4bbeff1ccca6c7090710df71987b91fd0249e", + "source_collision_meshes": [ + { + "body": "left_base_link", + "path": "source/A1Z/A1Z_G1Z/meshes/base_link.STL", + "sha256": "3ad75b62388108b0792028dfaadb65e8cbb7e8698042d5c270f566808a479345" + }, + { + "body": "left_arm_link2", + "path": "source/A1Z/A1Z_G1Z/meshes/arm_link2.STL", + "sha256": "38735343df6f709e83edc91432ad7880456cdc32af9f50df651d7eaa62cdb06f" + } + ], + "poses": [ + { + "pose": "source_zero", + "joints": { + "left_arm_joint1": 0.0, + "left_arm_joint2": 0.0, + "left_arm_joint3": 0.0, + "left_arm_joint4": 0.0, + "left_arm_joint5": 0.0, + "left_arm_joint6": 0.0, + "left_gripper_finger_left_joint": 0.0, + "left_gripper_finger_rIght_joint": 0.0 + }, + "native_mesh": { + "intersects": false, + "signed_distance_m": 0.005499997392296785, + "max_contact_depth_m": 0.0 + }, + "convex_mesh": { + "intersects": false, + "signed_distance_m": 0.005499997392296785, + "max_contact_depth_m": 0.0 + } + }, + { + "pose": "ready", + "joints": { + "left_arm_joint1": 0.05992097804404975, + "left_arm_joint2": 0.9754452387743513, + "left_arm_joint3": -1.148199497118911, + "left_arm_joint4": 0.6994880040087724, + "left_arm_joint5": 0.10392874645545758, + "left_arm_joint6": -0.060256720183872764, + "left_gripper_finger_left_joint": 0.048, + "left_gripper_finger_rIght_joint": -0.048 + }, + "native_mesh": { + "intersects": false, + "signed_distance_m": 0.005516987858247186, + "max_contact_depth_m": 0.0 + }, + "convex_mesh": { + "intersects": false, + "signed_distance_m": 0.005507239095790785, + "max_contact_depth_m": 0.0 + } + }, + { + "pose": "low_tabletop_grasp", + "joints": { + "left_arm_joint1": 0.03810294539582347, + "left_arm_joint2": 2.244686542603657, + "left_arm_joint3": -1.6855873086008837, + "left_arm_joint4": 1.0116970926999886, + "left_arm_joint5": 8.486917684097946e-15, + "left_arm_joint6": -0.14189705460416746, + "left_gripper_finger_left_joint": 0.048, + "left_gripper_finger_rIght_joint": -0.048 + }, + "native_mesh": { + "intersects": false, + "signed_distance_m": 0.005591606784263302, + "max_contact_depth_m": 0.0 + }, + "convex_mesh": { + "intersects": false, + "signed_distance_m": 0.005505637776655331, + "max_contact_depth_m": 0.0 + } + } + ], + "physics_validation": "pending reconversion and runtime contact audit" + } + }, + { + "bodies": [ + "right_base_link", + "right_arm_link2" + ], + "settings": { + "shrink_wrap": true, + "error_percentage": 1.0, + "max_convex_hulls": 64, + "voxel_resolution": 1000000, + "hull_vertex_limit": 128, + "min_thickness": 0.0002 + }, + "reason": "Native source base and arm_link2 retain approximately 5.50-5.59 mm clearance in zero, ready and low-grasp poses; their exact enclosing convex hulls also remain clear. Imported untuned decomposition produced large base-arm contacts. Use shrink-wrapped finer decomposition to limit inflation outside the source surfaces without a collision filter.", + "source_distance_evidence": { + "method": "Source URDF FK; python-fcl native triangle meshes and exact enclosing convex hulls. Distances in metres; negative signed distance denotes intersection.", + "canonical_urdf_sha256": "fcd2cbe2ed41e3bc62d5cd17dde4bbeff1ccca6c7090710df71987b91fd0249e", + "source_collision_meshes": [ + { + "body": "right_base_link", + "path": "source/A1Z/A1Z_G1Z/meshes/base_link.STL", + "sha256": "3ad75b62388108b0792028dfaadb65e8cbb7e8698042d5c270f566808a479345" + }, + { + "body": "right_arm_link2", + "path": "source/A1Z/A1Z_G1Z/meshes/arm_link2.STL", + "sha256": "38735343df6f709e83edc91432ad7880456cdc32af9f50df651d7eaa62cdb06f" + } + ], + "poses": [ + { + "pose": "source_zero", + "joints": { + "right_arm_joint1": 0.0, + "right_arm_joint2": 0.0, + "right_arm_joint3": 0.0, + "right_arm_joint4": 0.0, + "right_arm_joint5": 0.0, + "right_arm_joint6": 0.0, + "right_gripper_finger_left_joint": 0.0, + "right_gripper_finger_rIght_joint": 0.0 + }, + "native_mesh": { + "intersects": false, + "signed_distance_m": 0.005499997392296785, + "max_contact_depth_m": 0.0 + }, + "convex_mesh": { + "intersects": false, + "signed_distance_m": 0.005499997392296785, + "max_contact_depth_m": 0.0 + } + }, + { + "pose": "ready", + "joints": { + "right_arm_joint1": -0.059920978014919454, + "right_arm_joint2": 0.9754452371570582, + "right_arm_joint3": -1.1481994941052112, + "right_arm_joint4": 0.6994880019396595, + "right_arm_joint5": -0.10392874658705627, + "right_arm_joint6": 0.060256720187681787, + "right_gripper_finger_left_joint": 0.048, + "right_gripper_finger_rIght_joint": -0.048 + }, + "native_mesh": { + "intersects": false, + "signed_distance_m": 0.005504147857230052, + "max_contact_depth_m": 0.0 + }, + "convex_mesh": { + "intersects": false, + "signed_distance_m": 0.005503230016466494, + "max_contact_depth_m": 0.0 + } + }, + { + "pose": "low_tabletop_grasp", + "joints": { + "right_arm_joint1": -0.03810294539591964, + "right_arm_joint2": 2.2446865426042817, + "right_arm_joint3": -1.6855873086018913, + "right_arm_joint4": 1.011697092700421, + "right_arm_joint5": -1.6145843350605364e-14, + "right_arm_joint6": 0.14189705460409896, + "right_gripper_finger_left_joint": 0.048, + "right_gripper_finger_rIght_joint": -0.048 + }, + "native_mesh": { + "intersects": false, + "signed_distance_m": 0.005573826685983732, + "max_contact_depth_m": 0.0 + }, + "convex_mesh": { + "intersects": false, + "signed_distance_m": 0.005505637776655692, + "max_contact_depth_m": 0.0 + } + } + ], + "physics_validation": "pending reconversion and runtime contact audit" + } + } + ], + "visual_material_overrides": [ + { + "material_name": "left_base_link_source_material_0", + "roughness": 0.35, + "metallic": 0.65, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "left_arm_link1_source_material_0", + "roughness": 0.36, + "metallic": 0.6, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "left_arm_link2_source_material_0", + "roughness": 0.38, + "metallic": 0.55, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "left_arm_link3_source_material_0", + "roughness": 0.29, + "metallic": 0.75, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "left_arm_link4_source_material_0", + "roughness": 0.36, + "metallic": 0.55, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "left_arm_link5_source_material_0", + "roughness": 0.37, + "metallic": 0.55, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "left_arm_link6_source_material_0", + "roughness": 0.34, + "metallic": 0.55, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "left_gripper_finger_left_link_source_material_0", + "roughness": 0.65, + "metallic": 0.0, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "left_gripper_finger_rIght_link_source_material_0", + "roughness": 0.65, + "metallic": 0.0, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "right_base_link_source_material_0", + "roughness": 0.35, + "metallic": 0.65, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "right_arm_link1_source_material_0", + "roughness": 0.36, + "metallic": 0.6, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "right_arm_link2_source_material_0", + "roughness": 0.38, + "metallic": 0.55, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "right_arm_link3_source_material_0", + "roughness": 0.29, + "metallic": 0.75, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "right_arm_link4_source_material_0", + "roughness": 0.36, + "metallic": 0.55, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "right_arm_link5_source_material_0", + "roughness": 0.37, + "metallic": 0.55, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "right_arm_link6_source_material_0", + "roughness": 0.34, + "metallic": 0.55, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "right_gripper_finger_left_link_source_material_0", + "roughness": 0.65, + "metallic": 0.0, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + }, + { + "material_name": "right_gripper_finger_rIght_link_source_material_0", + "roughness": 0.65, + "metallic": 0.0, + "reason": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "source_url": "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "description": "Unmeasured visual PBR approximation; native visual mesh and material assignment retained." + } + ], + "appearance_refinement": { + "reference": { + "pages": [ + "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "https://galaxea-ai.com/en/news/galaxea-launches-lemo.html" + ], + "images": [ + "https://galaxea-dynamics.com/cdn/shop/files/A1Z-Main-New.jpg?v=1793589921&width=1920", + "https://galaxea-dynamics.com/cdn/shop/files/A1Z-Gripper_Open.jpg?v=1791598979&width=1920", + "https://galaxea-ai.com/en/images/pc/product4/color.png" + ], + "observation": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "camera_basis": "v18 uses a physical central ZED X Mini retrofit with copied Trossen source optical offsets on a short benchmark support. Manufacturer photographs below remain arm appearance references; they do not establish this camera as a factory installation or measured calibration.", + "eye_world_m": [ + 0.03, + 0.0, + 0.56 + ], + "target_world_m": [ + 0.46, + 0.0, + 0.06 + ], + "focal_length_mm": 18.0 + }, + "note": "Source/photo arm colors and PBR values retained fromv17 without change; unmeasured visual approximation. The active v18 central head retrofit is described by layout_refinement_v18; the former virtual-head reference is retained only as historical metadata there. Native arm geometry, joints, tools, fixed bases, task scenes and wrist cameras remain unchanged; control/camera30Hz.", + "per_visual_materials": [ + { + "body": "left_base_link", + "mesh": "source/A1Z/A1Z_G1Z/meshes/base_link.STL", + "material_name": "left_base_link_source_material_0", + "rgba": [ + 0.025, + 0.029, + 0.035, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_arm_link1", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link1.STL", + "material_name": "left_arm_link1_source_material_0", + "rgba": [ + 0.045, + 0.05, + 0.06, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_arm_link2", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link2.STL", + "material_name": "left_arm_link2_source_material_0", + "rgba": [ + 0.07, + 0.078, + 0.09, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_arm_link3", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link3.STL", + "material_name": "left_arm_link3_source_material_0", + "rgba": [ + 0.42, + 0.45, + 0.5, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_arm_link4", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link4.STL", + "material_name": "left_arm_link4_source_material_0", + "rgba": [ + 0.035, + 0.04, + 0.05, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_arm_link5", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link5.STL", + "material_name": "left_arm_link5_source_material_0", + "rgba": [ + 0.045, + 0.05, + 0.06, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_arm_link6", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link6.STL", + "material_name": "left_arm_link6_source_material_0", + "rgba": [ + 0.08, + 0.088, + 0.1, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_gripper_finger_left_link", + "mesh": "source/A1Z/A1Z_G1Z/meshes/gripper_finger_left_link.STL", + "material_name": "left_gripper_finger_left_link_source_material_0", + "rgba": [ + 0.025, + 0.029, + 0.035, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_gripper_finger_rIght_link", + "mesh": "source/A1Z/A1Z_G1Z/meshes/gripper_finger_rIght_link.STL", + "material_name": "left_gripper_finger_rIght_link_source_material_0", + "rgba": [ + 0.025, + 0.029, + 0.035, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_base_link", + "mesh": "source/A1Z/A1Z_G1Z/meshes/base_link.STL", + "material_name": "right_base_link_source_material_0", + "rgba": [ + 0.025, + 0.029, + 0.035, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_arm_link1", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link1.STL", + "material_name": "right_arm_link1_source_material_0", + "rgba": [ + 0.045, + 0.05, + 0.06, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_arm_link2", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link2.STL", + "material_name": "right_arm_link2_source_material_0", + "rgba": [ + 0.07, + 0.078, + 0.09, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_arm_link3", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link3.STL", + "material_name": "right_arm_link3_source_material_0", + "rgba": [ + 0.42, + 0.45, + 0.5, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_arm_link4", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link4.STL", + "material_name": "right_arm_link4_source_material_0", + "rgba": [ + 0.035, + 0.04, + 0.05, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_arm_link5", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link5.STL", + "material_name": "right_arm_link5_source_material_0", + "rgba": [ + 0.045, + 0.05, + 0.06, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_arm_link6", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link6.STL", + "material_name": "right_arm_link6_source_material_0", + "rgba": [ + 0.08, + 0.088, + 0.1, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_gripper_finger_left_link", + "mesh": "source/A1Z/A1Z_G1Z/meshes/gripper_finger_left_link.STL", + "material_name": "right_gripper_finger_left_link_source_material_0", + "rgba": [ + 0.025, + 0.029, + 0.035, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_gripper_finger_rIght_link", + "mesh": "source/A1Z/A1Z_G1Z/meshes/gripper_finger_rIght_link.STL", + "material_name": "right_gripper_finger_rIght_link_source_material_0", + "rgba": [ + 0.025, + 0.029, + 0.035, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + } + ] + }, + "layout_refinement_v18": { + "previous_head_camera": { + "parent_body": "benchmark_base", + "position": [ + -0.060000000000000005, + 0.0, + 0.8 + ], + "quaternion_wxyz": [ + -0.6752854811484117, + -0.20973678492376605, + 0.20973678492376605, + 0.6752854811484117 + ], + "focal_length": 20.0, + "horizontal_aperture": 36.0, + "vertical_aperture": 27.0, + "clipping_range": [ + 0.01, + 10.0 + ], + "source_prim": "benchmark virtual head camera; manufacturer deployment reference" + }, + "optical_world_m": [ + 0.03, + 0.0, + 0.56 + ], + "look_target_world_m": [ + 0.46, + 0.0, + 0.06 + ], + "downward_tilt_deg": 49.30446896050798, + "horizontal_fov_deg": 90.0, + "vertical_fov_deg": 73.73979529168804, + "source_repository": "https://github.com/TrossenRobotics/trossen_arm_description", + "source_revision": "126e47fe66af1ef850986f3383f24080b74fda9c", + "source_files": [ + { + "path": "benchmark_head/source/workbench.urdf", + "source_url": "https://raw.githubusercontent.com/TrossenRobotics/trossen_arm_description/126e47fe66af1ef850986f3383f24080b74fda9c/urdf/generated/workbench.urdf", + "sha256": "911584df6ba45b282d93c7fd3bf1f98653061298fc67cd48e58a8e8ebfffcc23" + }, + { + "path": "benchmark_head/source/zedxm.stl", + "source_url": "https://raw.githubusercontent.com/TrossenRobotics/trossen_arm_description/126e47fe66af1ef850986f3383f24080b74fda9c/meshes/peripherals/zedxm.stl", + "sha256": "44a0f81cf49fc6c21b909abd928bceba9d89e132ad16294538dea5d1a7e30711" + }, + { + "path": "benchmark_head/source/LICENSE", + "source_url": "https://raw.githubusercontent.com/TrossenRobotics/trossen_arm_description/126e47fe66af1ef850986f3383f24080b74fda9c/LICENSE", + "sha256": "110a998ebd9a901d31173892d43224f8f59f12ebfd6398b9f3dea0ee9a01ab16" + } + ], + "hardware_reference": "https://www.stereolabs.com/store/products/zed-x-mini-stereo-camera", + "source_license": "BSD-3-Clause; copied LICENSE retained", + "generation_entrypoint": "extensions/bimanual/refine_compact_heads_v18.py", + "manufacturer_dual_arm_assembly": false, + "measured_calibration": false, + "note": "Benchmark-authored support and placement; source camera dimensions and optical offsets retained. Original robot colors/materials, arm geometry/kinematics/home, wrist extrinsics/intrinsics and30Hz remain unchanged.", + "actual_camera_model": "Stereolabs ZED X Mini, copied pinned Trossen source mesh and left optical frame", + "old_head_camera": { + "parent_body": "benchmark_base", + "position": [ + -0.060000000000000005, + 0.0, + 0.8 + ], + "quaternion_wxyz": [ + -0.6752854811484117, + -0.20973678492376605, + 0.20973678492376605, + 0.6752854811484117 + ], + "focal_length": 20.0, + "horizontal_aperture": 36.0, + "vertical_aperture": 27.0, + "clipping_range": [ + 0.01, + 10.0 + ], + "source_prim": "benchmark virtual head camera; manufacturer deployment reference" + }, + "new_head_camera": { + "parent_body": "benchmark_head_camera_link", + "position": [ + -0.01, + 0.025, + 0.016 + ], + "quaternion_wxyz": [ + 0.5, + 0.5000000000000001, + -0.4999999999999999, + -0.4999999999999999 + ], + "focal_length": 18.0, + "horizontal_aperture": 36.0, + "vertical_aperture": 27.0, + "clipping_range": [ + 0.03, + 10.0 + ], + "source_prim": "benchmark_head_optical_frame", + "source_frame_to_camera_quaternion_wxyz": [ + 0.0, + 1.0, + 0.0, + 0.0 + ], + "source_note": "Copied pinned Trossen ZED X Mini optical geometry; benchmark central retrofit, not factory mount or measured calibration." + }, + "old_head_world_transform": [ + [ + 0.0, + 0.8240419241993678, + -0.5665288228870653, + -0.1 + ], + [ + -1.0000000000000002, + 0.0, + 0.0, + 0.0 + ], + [ + 0.0, + 0.5665288228870653, + 0.824041924199368, + 0.88 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ], + "new_head_world_transform": [ + [ + 2.0538813749754266e-16, + 0.7581851963116832, + -0.6520392688280475, + 0.030000000000000006 + ], + [ + -1.0, + -1.1102230246251565e-16, + -4.440892098500626e-16, + 0.0 + ], + [ + -4.0909276567133503e-16, + 0.6520392688280476, + 0.758185196311683, + 0.56 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ], + "baseline_source_hashes": { + "profile.json": "5f42fe127780b672938a955176d85d4f5f26bbb5bf2ea16ebd32daa1fbcf7dfe", + "robot.urdf": "cae0d562badb65d26d3692a463d7409060d888cf58932d3ab61e4c503fb9af63", + "provenance.json": "d651a42c08ac0bb52f4fd5de053a1c38807e3f183c11a36e4a20fe911e1bbc9c" + }, + "baseline_snapshot": "benchmark_head/baseline_v17.json", + "historical_v17_head_reference": { + "pages": [ + "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "https://galaxea-ai.com/en/news/galaxea-launches-lemo.html" + ], + "images": [ + "https://galaxea-dynamics.com/cdn/shop/files/A1Z-Main-New.jpg?v=1793589921&width=1920", + "https://galaxea-dynamics.com/cdn/shop/files/A1Z-Gripper_Open.jpg?v=1791598979&width=1920", + "https://galaxea-ai.com/en/images/pc/product4/color.png" + ], + "observation": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "camera_basis": "Official LEMO deployment demonstrates two A1Z arms with wrist cameras and a raised central camera. Only that mounting arrangement informs this virtual camera; this existing benchmark assembly is not represented as a factory LEMO model.", + "eye_world_m": [ + -0.1, + 0.0, + 0.88 + ], + "target_world_m": [ + 0.45, + 0.0, + 0.08 + ], + "focal_length_mm": 20.0 + }, + "static_validation": "central_head_validation_v18.json", + "control_hz": 30, + "final_rendered_review_pending": true + }, + "workstation_head_installation": { + "revision": 1, + "height_above_table_m": 0.76, + "downward_pitch_deg": 55, + "root_above_table_m": 0.002, + "camera_in_root": [ + [ + 0.0, + 0.8191520442889918, + -0.5735764363510462, + 0.07 + ], + [ + -1.0, + 0.0, + -0.0, + 0.0 + ], + [ + 0.0, + 0.5735764363510462, + 0.8191520442889918, + 0.758 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ], + "previous_camera_in_root": [ + [ + 2.0538813749754266e-16, + 0.7581851963116832, + -0.6520392688280475, + 0.07 + ], + [ + -1.0, + -1.1102230246251565e-16, + -4.440892098500626e-16, + 0.0 + ], + [ + -4.0909276567133503e-16, + 0.6520392688280476, + 0.758185196311683, + 0.48000000000000004 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ], + "mount_joint": "benchmark_head_camera_mount_joint", + "changed_support_links": [ + "benchmark_head_support" + ], + "added_fixed_links": [], + "head_camera": { + "parent_body": "benchmark_head_camera_link", + "position": [ + -0.01000000000000012, + 0.025000000000000012, + 0.016000000000000014 + ], + "quaternion_wxyz": [ + 0.5000000000000001, + 0.5000000000000001, + -0.5, + -0.5 + ], + "focal_length": 18.0, + "horizontal_aperture": 36.0, + "vertical_aperture": 27.0, + "clipping_range": [ + 0.03, + 10.0 + ], + "source_prim": "benchmark_head_optical_frame", + "source_frame_to_camera_quaternion_wxyz": [ + 0.0, + 1.0, + 0.0, + 0.0 + ], + "source_note": "Raised workstation head revision 1: source housing and optical frame move together on a visible fixed support, above the tabletop ready-arm envelope. Nominal benchmark mounting, not measured hardware calibration." + }, + "native_arm_joints_tcp_wrist_cameras_unchanged": true, + "native_head_camera_cad_retained": true, + "measured_real_world_calibration": false, + "generator": "extensions/bimanual/prepare_workstation_head_cameras.py", + "config": "configs/layouts/workstation_heads.json" + }, + "wrist_source_alignment": { + "revision": "source-priority-20261118", + "kind": "verified_yam_fallback", + "sources_sha256": { + "configs/robots/yam_verified.json": "6ae269a9066ccc74a3ba1b38217e3d2f772d2d44e860746a8fb0a3bf7efeea48" + }, + "mounts": { + "left": { + "parent_body": "left_arm_link6", + "optical_transform_opengl": [ + [ + 0.0001380770124687626, + 0.4226537351667096, + -0.9062912341429589, + 0.12271649809441512 + ], + [ + -0.9999999387618718, + -0.00023308256586575412, + -0.00026105319368151914, + -2.045049288997006e-05 + ], + [ + -0.00032157579366236727, + 0.9062912146888252, + 0.4226536771008418, + 0.07040006463328237 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + "right": { + "parent_body": "right_arm_link6", + "optical_transform_opengl": [ + [ + 0.0001380770124687626, + 0.4226537351667096, + -0.9062912341429589, + 0.12271649409109411 + ], + [ + -0.9999999388083786, + -0.0002329514665356657, + -0.00026099205481905336, + -2.0433767323916645e-05 + ], + [ + -0.00032143113892012107, + 0.9062912147225323, + 0.4226536771385999, + 0.07040001781173397 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + }, + "head_home_control_and_finger_physics_unchanged": true, + "image_postprocessing": false, + "real_world_calibrated": false, + "generator": "tools/cameras/prepare_source_mounts.py", + "intrinsics": "Verified YAM 87-degree horizontal FOV, 640x480" + } +} diff --git a/assets/robots/galaxea_a1z/provenance.json b/assets/robots/galaxea_a1z/provenance.json new file mode 100644 index 0000000000000000000000000000000000000000..b8d6c0f69f6c30cb7236809665318574bf0a12f5 --- /dev/null +++ b/assets/robots/galaxea_a1z/provenance.json @@ -0,0 +1,1431 @@ +{ + "repository": "https://github.com/userguide-galaxea/URDF", + "revision": "55d4850dcdcc8b1c2e0f7655296344a4e9dd1a30", + "entry": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_files": [ + { + "path": "A1Z/A1Z_G1Z/CMakeLists.txt", + "sha256": "dee3544f44219d13560deeffa8b2dcc87c2f44141df92302164fcd2f23988bad" + }, + { + "path": "A1Z/A1Z_G1Z/launch/display.launch", + "sha256": "feb7736e84d0670ec3702f9f6f79f079e06fd2eb26d045c5a031b50edee9d421" + }, + { + "path": "A1Z/A1Z_G1Z/launch/gazebo.launch", + "sha256": "cfc2e7d8a173d73b2522dd25b7752e99b5bcac40437fb2da846ef2bde054813d" + }, + { + "path": "A1Z/A1Z_G1Z/meshes/arm_link1.STL", + "sha256": "8a92b987c41998e9edca22d9eca991fb8f85789060e59dfc8ffb0000c39b2756" + }, + { + "path": "A1Z/A1Z_G1Z/meshes/arm_link2.STL", + "sha256": "38735343df6f709e83edc91432ad7880456cdc32af9f50df651d7eaa62cdb06f" + }, + { + "path": "A1Z/A1Z_G1Z/meshes/arm_link3.STL", + "sha256": "6b91d251eb5b96f0ba9b8a1f875ff204627b54dd596529ce5c8f6f3eed538c89" + }, + { + "path": "A1Z/A1Z_G1Z/meshes/arm_link4.STL", + "sha256": "da8d3bd051d39ba13b25636f243b5f0898009ca1656b5efbd226be80b1a8f410" + }, + { + "path": "A1Z/A1Z_G1Z/meshes/arm_link5.STL", + "sha256": "737afd2cc87651ed3a2e7a56aedb1190b256cbfe1b68339b30cc04efe787ef18" + }, + { + "path": "A1Z/A1Z_G1Z/meshes/arm_link6.STL", + "sha256": "e0fa3550a433a40755c4a8c8f2e9a8b369052b7ab8836f5c44c36554a90a4422" + }, + { + "path": "A1Z/A1Z_G1Z/meshes/base_link.STL", + "sha256": "3ad75b62388108b0792028dfaadb65e8cbb7e8698042d5c270f566808a479345" + }, + { + "path": "A1Z/A1Z_G1Z/meshes/gripper_finger_left_link.STL", + "sha256": "f0bfdd48fc91b37f3156b290fc5947ff54cd3e09a47c568ccc2bd53c984b916e" + }, + { + "path": "A1Z/A1Z_G1Z/meshes/gripper_finger_rIght_link.STL", + "sha256": "7ae5bb8843726cab85befab71ef456f26d437ee313427fd193f25857b590cf27" + }, + { + "path": "A1Z/A1Z_G1Z/package.xml", + "sha256": "f019ac07ecee64bc309b8d7fee64239a8a051581c036b27992cd5963f0527d76" + }, + { + "path": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "sha256": "665e7ea27a726598f1b05cd42de83743ec73f1d8f921bda0f226105a4d7aa92c" + } + ], + "source_joint_mapping": { + "left_arm_joint1": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "arm_joint1" + }, + "left_arm_joint2": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "arm_joint2" + }, + "left_arm_joint3": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "arm_joint3" + }, + "left_arm_joint4": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "arm_joint4" + }, + "left_arm_joint5": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "arm_joint5" + }, + "left_arm_joint6": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "arm_joint6" + }, + "left_gripper_finger_left_joint": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "gripper_finger_left_joint" + }, + "left_gripper_finger_rIght_joint": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "gripper_finger_rIght_joint" + }, + "right_arm_joint1": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "arm_joint1" + }, + "right_arm_joint2": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "arm_joint2" + }, + "right_arm_joint3": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "arm_joint3" + }, + "right_arm_joint4": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "arm_joint4" + }, + "right_arm_joint5": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "arm_joint5" + }, + "right_arm_joint6": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "arm_joint6" + }, + "right_gripper_finger_left_joint": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "gripper_finger_left_joint" + }, + "right_gripper_finger_rIght_joint": { + "source_file": "A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "source_joint": "gripper_finger_rIght_joint" + } + }, + "source_joint_origins_axes_limits_unchanged": true, + "source_visual_and_collision_geometry_unchanged": true, + "source_arm_mounts": { + "left": [ + [ + 0.9838436927881214, + 0.17902957342582415, + 0.0, + 0.0 + ], + [ + -0.17902957342582415, + 0.9838436927881214, + -0.0, + 0.26 + ], + [ + -0.0, + 0.0, + 1.0, + 0.0 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ], + "right": [ + [ + 0.9838436927881214, + -0.17902957342582415, + 0.0, + 0.0 + ], + [ + 0.17902957342582415, + 0.9838436927881214, + 0.0, + -0.26 + ], + [ + 0.0, + 0.0, + 1.0, + 0.0 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + "benchmark_placement": { + "base_position_m": [ + -0.04, + 0.0, + 0.08 + ], + "platform_front_world_x_m": 0.09, + "nearest_task_table_front_x_m": 0.138405, + "static_front_gap_m": 0.048405, + "note": "Common base x=-0.04 m; DROID platform front x=0.09 m stays 0.048405 m behind the nearest task-table front x=0.138405 m. Ready TCP world targets are unchanged and solved again within native joint limits.", + "camera_extrinsics_preserved": false, + "wrist_camera_extrinsics_preserved": true, + "head_camera_replaced_in_v18": true + }, + "derivations": [ + "Two complete source arms with left/right name prefixes under shared benchmark_base", + "Fixed mounting translations and proper yaw rotations", + "Geometry-derived canonical TCP +Z approach, closing local Y", + "Separate DROID-derived metal platform; task scenes unchanged", + "Physical central ZED X Mini benchmark head retrofit and unchanged virtual wrists, with ideal pinhole intrinsics", + "Numerical ready pose and low-tabletop reach evidence; PhysX audit required", + "Scoped PhysX convex-decomposition precision settings for source-clear body pairs that contacted after import; source meshes, joint coordinates, ready pose and collision filters remain unchanged. Reconverted PhysX validation is required; native mesh clearance alone is not physics validation.", + "Virtual wrist cameras use the canonical X side above the ready TCP (Metal +X, reBot/Galaxea -X), eye [side*0.12, 0, -0.055] m, target [0, 0, 0.04] m, up [side, 0, 0], and 24 mm focal length. Source-mesh rays and finite-table image coverage are checked at ready and low grasp; rendered validation remains required.", + "Manufacturer-photo appearance and head-view refinement, accessed 2026-11-07. Colors and PBR values are visual approximations, not measured colorimetry. Camera pose and ideal pinhole intrinsics are benchmark choices: no real-hardware intrinsic/extrinsic calibration, distortion calibration or color-chart calibration was supplied. Native source scale, geometry, joints, tools, fixed bases and task scenes are retained; benchmark control and camera sampling use 30 Hz.", + "v18 central head retrofit: physical source ZED X Mini at the inter-arm center on a short benchmark support; ideal optical model, not hardware calibration. Native arm geometry/materials and wrists retained; new conversion and rendered review required." + ], + "promoted_materials": [ + "left_base_link_source_material_0", + "left_arm_link1_source_material_0", + "left_arm_link2_source_material_0", + "left_arm_link3_source_material_0", + "left_arm_link4_source_material_0", + "left_arm_link5_source_material_0", + "left_arm_link6_source_material_0", + "left_gripper_finger_left_link_source_material_0", + "left_gripper_finger_rIght_link_source_material_0", + "right_base_link_source_material_0", + "right_arm_link1_source_material_0", + "right_arm_link2_source_material_0", + "right_arm_link3_source_material_0", + "right_arm_link4_source_material_0", + "right_arm_link5_source_material_0", + "right_arm_link6_source_material_0", + "right_gripper_finger_left_link_source_material_0", + "right_gripper_finger_rIght_link_source_material_0" + ], + "drive_overrides": [], + "internal_collision_filters": [ + { + "pair": [ + "left_gripper_finger_left_link", + "left_gripper_finger_rIght_link" + ], + "reason": "The source-coupled opposing fingers intersect/touch at the closed hard stop; filter only the internal finger pair, retaining all external contacts." + }, + { + "pair": [ + "left_arm_link4", + "left_arm_link6" + ], + "reason": "Native adjacent-wrist housings separated by arm_link5 overlap about 1.0-1.5 mm in source zero and ready poses (triangle-mesh FCL); preserve source geometry and filter only the mechanically adjacent housing pair." + }, + { + "pair": [ + "right_gripper_finger_left_link", + "right_gripper_finger_rIght_link" + ], + "reason": "The source-coupled opposing fingers intersect/touch at the closed hard stop; filter only the internal finger pair, retaining all external contacts." + }, + { + "pair": [ + "right_arm_link4", + "right_arm_link6" + ], + "reason": "Native adjacent-wrist housings separated by arm_link5 overlap about 1.0-1.5 mm in source zero and ready poses (triangle-mesh FCL); preserve source geometry and filter only the mechanically adjacent housing pair." + } + ], + "camera_ray_validation": "camera_ray_validation.json", + "tcp_note": "Geometry-derived midpoint of G1Z distal finger pads, arm_link6 X=177.7 mm (finger origin 72.7 mm plus 105 mm pad coordinate); approach +X and closing Y. Original rIght capitalization is preserved.", + "licensing_note": "Source package.xml declares BSD, but the pinned repository supplies no license text or identified copyright holder. Original package metadata is retained; no license text is invented.", + "generated_files": [ + { + "path": "benchmark_head/baseline_v17.json", + "bytes": 44789, + "sha256": "b87952cc0ff7572a2869c876d39f4c3bfd30d8fda17546aff8b795d247d833cd" + }, + { + "path": "benchmark_head/bolts.stl", + "bytes": 25684, + "sha256": "0bfa7cede2d9400aa8fb9f8f57898d7b6fb13c3aab5844e91ee848bd68783926" + }, + { + "path": "benchmark_head/evidence/cpu_geometry_checker.py", + "bytes": 18155, + "sha256": "e63bacf0ddb6a4f4980035f45d5472d5d8ac2063b300ca3f3d026fe653e221b4" + }, + { + "path": "benchmark_head/evidence/historical_v17_head_camera_validation.json", + "bytes": 8391, + "sha256": "6fbb03a1320b2cb93c876b272541b98e1c67722c451fbed9920715ae5f0441a6" + }, + { + "path": "benchmark_head/source/LICENSE", + "bytes": 1524, + "sha256": "110a998ebd9a901d31173892d43224f8f59f12ebfd6398b9f3dea0ee9a01ab16" + }, + { + "path": "benchmark_head/source/workbench.urdf", + "bytes": 32343, + "sha256": "911584df6ba45b282d93c7fd3bf1f98653061298fc67cd48e58a8e8ebfffcc23" + }, + { + "path": "benchmark_head/source/zedxm.stl", + "bytes": 577484, + "sha256": "44a0f81cf49fc6c21b909abd928bceba9d89e132ad16294538dea5d1a7e30711" + }, + { + "path": "benchmark_head/support.stl", + "bytes": 13484, + "sha256": "d5245a8a86780b6029ec691a0080d218ea73683c1cbee63e782b466de2f8f6bd" + }, + { + "path": "camera_ray_validation.json", + "bytes": 23980, + "sha256": "0d2f02b1cd06a1b79c3f6ca2292cef6cb2fff3a3b5e0967b66942793ffa78493" + }, + { + "path": "central_head_validation_v18.json", + "bytes": 139256, + "sha256": "d7c6e59fcb4f0c097f2070e0cc2c5d91573638525426eeea18f35f2235cc00b4" + }, + { + "path": "conversion.json", + "bytes": 26653, + "sha256": "0bd3c61adaef93aae4ba1585c27024694bc56320a1538ec1c12afce75522bdd8" + }, + { + "path": "evidence/workstation_head_height/installation.json", + "bytes": 2073, + "sha256": "66bf176e3a1c6f9712548535cff2c204588d6c4404e4c72add9301c738fc544c" + }, + { + "path": "evidence/workstation_head_height/source/profile.json", + "bytes": 49218, + "sha256": "3c9d7c8621abcf2ae8ea4537f3e1e0adba6a6a6678819583a5dce6cf92f7d278" + }, + { + "path": "evidence/workstation_head_height/source/robot.urdf", + "bytes": 23191, + "sha256": "1977cbe63015b5868fea9e7de0dd13100f7e4c2ed287aca4d69b57133125eb4d" + }, + { + "path": "evidence/workstation_head_height/source/robot_import.urdf", + "bytes": 26635, + "sha256": "6be6dcbad6b2c8311cea09b442819e680f2b127eeb4173eb71c340537623381a" + }, + { + "path": "licenses/SOURCE_LICENSE_NOTES.txt", + "bytes": 285, + "sha256": "f0d9d751b113bf823241c4428f7fa6de15f1d374e9b2cf8af13822272f906688" + }, + { + "path": "platform/LICENSE", + "bytes": 11461, + "sha256": "d7dcc1c2365f327e1112dc0a4c5b133bc06dabc4554d5d5319a763bb64d78db4" + }, + { + "path": "platform/droid_source.usd", + "bytes": 17794876, + "sha256": "d138538390970b4e715b3141e356af52a3accd712d14dc100061e1c96ea0125d" + }, + { + "path": "platform/fixture.usd", + "bytes": 1730, + "sha256": "1b3b28cfdda0be084611ec97c34eed546e3b9391adb509a68d69d41123560b60" + }, + { + "path": "profile.json", + "bytes": 54170, + "sha256": "ee9529055e2618ed91cc473b379ae0fe54a2c264d7c3da0fa45fd2eb79570db7" + }, + { + "path": "robot.urdf", + "bytes": 23238, + "sha256": "c9faf576792a8e45836c52887642d257a90edf0247364d32b386ecb443eea61a" + }, + { + "path": "robot_import.urdf", + "bytes": 26682, + "sha256": "75fcb87944223947305d2c1569123099bb0cd8616d68393c5008aa9cd1aa5a3f" + }, + { + "path": "source/A1Z/A1Z_G1Z/CMakeLists.txt", + "bytes": 278, + "sha256": "dee3544f44219d13560deeffa8b2dcc87c2f44141df92302164fcd2f23988bad" + }, + { + "path": "source/A1Z/A1Z_G1Z/launch/display.launch", + "bytes": 412, + "sha256": "feb7736e84d0670ec3702f9f6f79f079e06fd2eb26d045c5a031b50edee9d421" + }, + { + "path": "source/A1Z/A1Z_G1Z/launch/gazebo.launch", + "bytes": 549, + "sha256": "cfc2e7d8a173d73b2522dd25b7752e99b5bcac40437fb2da846ef2bde054813d" + }, + { + "path": "source/A1Z/A1Z_G1Z/meshes/arm_link1.STL", + "bytes": 704484, + "sha256": "8a92b987c41998e9edca22d9eca991fb8f85789060e59dfc8ffb0000c39b2756" + }, + { + "path": "source/A1Z/A1Z_G1Z/meshes/arm_link2.STL", + "bytes": 1593784, + "sha256": "38735343df6f709e83edc91432ad7880456cdc32af9f50df651d7eaa62cdb06f" + }, + { + "path": "source/A1Z/A1Z_G1Z/meshes/arm_link3.STL", + "bytes": 1835984, + "sha256": "6b91d251eb5b96f0ba9b8a1f875ff204627b54dd596529ce5c8f6f3eed538c89" + }, + { + "path": "source/A1Z/A1Z_G1Z/meshes/arm_link4.STL", + "bytes": 1236084, + "sha256": "da8d3bd051d39ba13b25636f243b5f0898009ca1656b5efbd226be80b1a8f410" + }, + { + "path": "source/A1Z/A1Z_G1Z/meshes/arm_link5.STL", + "bytes": 1363484, + "sha256": "737afd2cc87651ed3a2e7a56aedb1190b256cbfe1b68339b30cc04efe787ef18" + }, + { + "path": "source/A1Z/A1Z_G1Z/meshes/arm_link6.STL", + "bytes": 3681784, + "sha256": "e0fa3550a433a40755c4a8c8f2e9a8b369052b7ab8836f5c44c36554a90a4422" + }, + { + "path": "source/A1Z/A1Z_G1Z/meshes/base_link.STL", + "bytes": 410384, + "sha256": "3ad75b62388108b0792028dfaadb65e8cbb7e8698042d5c270f566808a479345" + }, + { + "path": "source/A1Z/A1Z_G1Z/meshes/gripper_finger_left_link.STL", + "bytes": 598584, + "sha256": "f0bfdd48fc91b37f3156b290fc5947ff54cd3e09a47c568ccc2bd53c984b916e" + }, + { + "path": "source/A1Z/A1Z_G1Z/meshes/gripper_finger_rIght_link.STL", + "bytes": 598584, + "sha256": "7ae5bb8843726cab85befab71ef456f26d437ee313427fd193f25857b590cf27" + }, + { + "path": "source/A1Z/A1Z_G1Z/package.xml", + "bytes": 636, + "sha256": "f019ac07ecee64bc309b8d7fee64239a8a051581c036b27992cd5963f0527d76" + }, + { + "path": "source/A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf", + "bytes": 11237, + "sha256": "665e7ea27a726598f1b05cd42de83743ec73f1d8f921bda0f226105a4d7aa92c" + }, + { + "path": "source/A1Z/README.md", + "bytes": 2380, + "sha256": "12429b1252f29b58c0f03555fd730b48fee25a8dd99771dfa9d696f61912039d" + }, + { + "path": "source/README.md", + "bytes": 389, + "sha256": "9d717c8cbeaa16d3b41fc778cf0b8c3639185c6f96d46fdc6a144981937a7c0f" + }, + { + "path": "static_validation.json", + "bytes": 28268, + "sha256": "906edf23293481e845fed9a3dd87db87f8f1f755896f58c3e694efb42b124d6d" + }, + { + "path": "usd/.asset_hash", + "bytes": 32, + "sha256": "715e0cb9584ac01cd91199fc62c369cb9560b84fab141d70ba295329816b6200" + }, + { + "path": "usd/config.yaml", + "bytes": 702, + "sha256": "fcfd543549b3efb108f2808316cea863b4deac2a52e7b14ee1bbbbba04931f1c" + }, + { + "path": "usd/configuration/robot_base.usd", + "bytes": 18214833, + "sha256": "7b970be342ae80242a8dae8cca047ebafdd1205c4bb2806f3a1fb17eef5ce871" + }, + { + "path": "usd/configuration/robot_physics.usd", + "bytes": 8302, + "sha256": "18c8aa91ec5562a0677085541d3651f778a2148e58544306a9812fd93d8d80f3" + }, + { + "path": "usd/configuration/robot_robot.usd", + "bytes": 2495, + "sha256": "512e8a2985975a34c44625c2e71ff29621a7ee45d9c33bac54039e10c6123aad" + }, + { + "path": "usd/configuration/robot_sensor.usd", + "bytes": 661, + "sha256": "f3baa7cf8f15173e351faa217c299829e27bbc15d62d5b03ea0501057ee470c8" + }, + { + "path": "usd/robot.usd", + "bytes": 4903, + "sha256": "cb1f0c0311a1eddea4dcee0dd0ae0fcca0b08251e8d3da465b45d708a6c65d1a" + } + ], + "collision_decomposition_overrides": [ + { + "bodies": [ + "left_base_link", + "left_arm_link2" + ], + "settings": { + "shrink_wrap": true, + "error_percentage": 1.0, + "max_convex_hulls": 64, + "voxel_resolution": 1000000, + "hull_vertex_limit": 128, + "min_thickness": 0.0002 + }, + "reason": "Native source base and arm_link2 retain approximately 5.50-5.59 mm clearance in zero, ready and low-grasp poses; their exact enclosing convex hulls also remain clear. Imported untuned decomposition produced large base-arm contacts. Use shrink-wrapped finer decomposition to limit inflation outside the source surfaces without a collision filter.", + "source_distance_evidence": { + "method": "Source URDF FK; python-fcl native triangle meshes and exact enclosing convex hulls. Distances in metres; negative signed distance denotes intersection.", + "canonical_urdf_sha256": "fcd2cbe2ed41e3bc62d5cd17dde4bbeff1ccca6c7090710df71987b91fd0249e", + "source_collision_meshes": [ + { + "body": "left_base_link", + "path": "source/A1Z/A1Z_G1Z/meshes/base_link.STL", + "sha256": "3ad75b62388108b0792028dfaadb65e8cbb7e8698042d5c270f566808a479345" + }, + { + "body": "left_arm_link2", + "path": "source/A1Z/A1Z_G1Z/meshes/arm_link2.STL", + "sha256": "38735343df6f709e83edc91432ad7880456cdc32af9f50df651d7eaa62cdb06f" + } + ], + "poses": [ + { + "pose": "source_zero", + "joints": { + "left_arm_joint1": 0.0, + "left_arm_joint2": 0.0, + "left_arm_joint3": 0.0, + "left_arm_joint4": 0.0, + "left_arm_joint5": 0.0, + "left_arm_joint6": 0.0, + "left_gripper_finger_left_joint": 0.0, + "left_gripper_finger_rIght_joint": 0.0 + }, + "native_mesh": { + "intersects": false, + "signed_distance_m": 0.005499997392296785, + "max_contact_depth_m": 0.0 + }, + "convex_mesh": { + "intersects": false, + "signed_distance_m": 0.005499997392296785, + "max_contact_depth_m": 0.0 + } + }, + { + "pose": "ready", + "joints": { + "left_arm_joint1": 0.05992097804404975, + "left_arm_joint2": 0.9754452387743513, + "left_arm_joint3": -1.148199497118911, + "left_arm_joint4": 0.6994880040087724, + "left_arm_joint5": 0.10392874645545758, + "left_arm_joint6": -0.060256720183872764, + "left_gripper_finger_left_joint": 0.048, + "left_gripper_finger_rIght_joint": -0.048 + }, + "native_mesh": { + "intersects": false, + "signed_distance_m": 0.005516987858247186, + "max_contact_depth_m": 0.0 + }, + "convex_mesh": { + "intersects": false, + "signed_distance_m": 0.005507239095790785, + "max_contact_depth_m": 0.0 + } + }, + { + "pose": "low_tabletop_grasp", + "joints": { + "left_arm_joint1": 0.03810294539582347, + "left_arm_joint2": 2.244686542603657, + "left_arm_joint3": -1.6855873086008837, + "left_arm_joint4": 1.0116970926999886, + "left_arm_joint5": 8.486917684097946e-15, + "left_arm_joint6": -0.14189705460416746, + "left_gripper_finger_left_joint": 0.048, + "left_gripper_finger_rIght_joint": -0.048 + }, + "native_mesh": { + "intersects": false, + "signed_distance_m": 0.005591606784263302, + "max_contact_depth_m": 0.0 + }, + "convex_mesh": { + "intersects": false, + "signed_distance_m": 0.005505637776655331, + "max_contact_depth_m": 0.0 + } + } + ], + "physics_validation": "pending reconversion and runtime contact audit" + } + }, + { + "bodies": [ + "right_base_link", + "right_arm_link2" + ], + "settings": { + "shrink_wrap": true, + "error_percentage": 1.0, + "max_convex_hulls": 64, + "voxel_resolution": 1000000, + "hull_vertex_limit": 128, + "min_thickness": 0.0002 + }, + "reason": "Native source base and arm_link2 retain approximately 5.50-5.59 mm clearance in zero, ready and low-grasp poses; their exact enclosing convex hulls also remain clear. Imported untuned decomposition produced large base-arm contacts. Use shrink-wrapped finer decomposition to limit inflation outside the source surfaces without a collision filter.", + "source_distance_evidence": { + "method": "Source URDF FK; python-fcl native triangle meshes and exact enclosing convex hulls. Distances in metres; negative signed distance denotes intersection.", + "canonical_urdf_sha256": "fcd2cbe2ed41e3bc62d5cd17dde4bbeff1ccca6c7090710df71987b91fd0249e", + "source_collision_meshes": [ + { + "body": "right_base_link", + "path": "source/A1Z/A1Z_G1Z/meshes/base_link.STL", + "sha256": "3ad75b62388108b0792028dfaadb65e8cbb7e8698042d5c270f566808a479345" + }, + { + "body": "right_arm_link2", + "path": "source/A1Z/A1Z_G1Z/meshes/arm_link2.STL", + "sha256": "38735343df6f709e83edc91432ad7880456cdc32af9f50df651d7eaa62cdb06f" + } + ], + "poses": [ + { + "pose": "source_zero", + "joints": { + "right_arm_joint1": 0.0, + "right_arm_joint2": 0.0, + "right_arm_joint3": 0.0, + "right_arm_joint4": 0.0, + "right_arm_joint5": 0.0, + "right_arm_joint6": 0.0, + "right_gripper_finger_left_joint": 0.0, + "right_gripper_finger_rIght_joint": 0.0 + }, + "native_mesh": { + "intersects": false, + "signed_distance_m": 0.005499997392296785, + "max_contact_depth_m": 0.0 + }, + "convex_mesh": { + "intersects": false, + "signed_distance_m": 0.005499997392296785, + "max_contact_depth_m": 0.0 + } + }, + { + "pose": "ready", + "joints": { + "right_arm_joint1": -0.059920978014919454, + "right_arm_joint2": 0.9754452371570582, + "right_arm_joint3": -1.1481994941052112, + "right_arm_joint4": 0.6994880019396595, + "right_arm_joint5": -0.10392874658705627, + "right_arm_joint6": 0.060256720187681787, + "right_gripper_finger_left_joint": 0.048, + "right_gripper_finger_rIght_joint": -0.048 + }, + "native_mesh": { + "intersects": false, + "signed_distance_m": 0.005504147857230052, + "max_contact_depth_m": 0.0 + }, + "convex_mesh": { + "intersects": false, + "signed_distance_m": 0.005503230016466494, + "max_contact_depth_m": 0.0 + } + }, + { + "pose": "low_tabletop_grasp", + "joints": { + "right_arm_joint1": -0.03810294539591964, + "right_arm_joint2": 2.2446865426042817, + "right_arm_joint3": -1.6855873086018913, + "right_arm_joint4": 1.011697092700421, + "right_arm_joint5": -1.6145843350605364e-14, + "right_arm_joint6": 0.14189705460409896, + "right_gripper_finger_left_joint": 0.048, + "right_gripper_finger_rIght_joint": -0.048 + }, + "native_mesh": { + "intersects": false, + "signed_distance_m": 0.005573826685983732, + "max_contact_depth_m": 0.0 + }, + "convex_mesh": { + "intersects": false, + "signed_distance_m": 0.005505637776655692, + "max_contact_depth_m": 0.0 + } + } + ], + "physics_validation": "pending reconversion and runtime contact audit" + } + } + ], + "appearance_refinement": { + "reference": { + "pages": [ + "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "https://galaxea-ai.com/en/news/galaxea-launches-lemo.html" + ], + "images": [ + "https://galaxea-dynamics.com/cdn/shop/files/A1Z-Main-New.jpg?v=1793589921&width=1920", + "https://galaxea-dynamics.com/cdn/shop/files/A1Z-Gripper_Open.jpg?v=1791598979&width=1920", + "https://galaxea-ai.com/en/images/pc/product4/color.png" + ], + "observation": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "camera_basis": "v18 uses a physical central ZED X Mini retrofit with copied Trossen source optical offsets on a short benchmark support. Manufacturer photographs below remain arm appearance references; they do not establish this camera as a factory installation or measured calibration.", + "eye_world_m": [ + 0.03, + 0.0, + 0.56 + ], + "target_world_m": [ + 0.46, + 0.0, + 0.06 + ], + "focal_length_mm": 18.0 + }, + "note": "Source/photo arm colors and PBR values retained fromv17 without change; unmeasured visual approximation. The active v18 central head retrofit is described by layout_refinement_v18; the former virtual-head reference is retained only as historical metadata there. Native arm geometry, joints, tools, fixed bases, task scenes and wrist cameras remain unchanged; control/camera30Hz.", + "per_visual_materials": [ + { + "body": "left_base_link", + "mesh": "source/A1Z/A1Z_G1Z/meshes/base_link.STL", + "material_name": "left_base_link_source_material_0", + "rgba": [ + 0.025, + 0.029, + 0.035, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_arm_link1", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link1.STL", + "material_name": "left_arm_link1_source_material_0", + "rgba": [ + 0.045, + 0.05, + 0.06, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_arm_link2", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link2.STL", + "material_name": "left_arm_link2_source_material_0", + "rgba": [ + 0.07, + 0.078, + 0.09, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_arm_link3", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link3.STL", + "material_name": "left_arm_link3_source_material_0", + "rgba": [ + 0.42, + 0.45, + 0.5, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_arm_link4", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link4.STL", + "material_name": "left_arm_link4_source_material_0", + "rgba": [ + 0.035, + 0.04, + 0.05, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_arm_link5", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link5.STL", + "material_name": "left_arm_link5_source_material_0", + "rgba": [ + 0.045, + 0.05, + 0.06, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_arm_link6", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link6.STL", + "material_name": "left_arm_link6_source_material_0", + "rgba": [ + 0.08, + 0.088, + 0.1, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_gripper_finger_left_link", + "mesh": "source/A1Z/A1Z_G1Z/meshes/gripper_finger_left_link.STL", + "material_name": "left_gripper_finger_left_link_source_material_0", + "rgba": [ + 0.025, + 0.029, + 0.035, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "left_gripper_finger_rIght_link", + "mesh": "source/A1Z/A1Z_G1Z/meshes/gripper_finger_rIght_link.STL", + "material_name": "left_gripper_finger_rIght_link_source_material_0", + "rgba": [ + 0.025, + 0.029, + 0.035, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_base_link", + "mesh": "source/A1Z/A1Z_G1Z/meshes/base_link.STL", + "material_name": "right_base_link_source_material_0", + "rgba": [ + 0.025, + 0.029, + 0.035, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_arm_link1", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link1.STL", + "material_name": "right_arm_link1_source_material_0", + "rgba": [ + 0.045, + 0.05, + 0.06, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_arm_link2", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link2.STL", + "material_name": "right_arm_link2_source_material_0", + "rgba": [ + 0.07, + 0.078, + 0.09, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_arm_link3", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link3.STL", + "material_name": "right_arm_link3_source_material_0", + "rgba": [ + 0.42, + 0.45, + 0.5, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_arm_link4", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link4.STL", + "material_name": "right_arm_link4_source_material_0", + "rgba": [ + 0.035, + 0.04, + 0.05, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_arm_link5", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link5.STL", + "material_name": "right_arm_link5_source_material_0", + "rgba": [ + 0.045, + 0.05, + 0.06, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_arm_link6", + "mesh": "source/A1Z/A1Z_G1Z/meshes/arm_link6.STL", + "material_name": "right_arm_link6_source_material_0", + "rgba": [ + 0.08, + 0.088, + 0.1, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_gripper_finger_left_link", + "mesh": "source/A1Z/A1Z_G1Z/meshes/gripper_finger_left_link.STL", + "material_name": "right_gripper_finger_left_link_source_material_0", + "rgba": [ + 0.025, + 0.029, + 0.035, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + }, + { + "body": "right_gripper_finger_rIght_link", + "mesh": "source/A1Z/A1Z_G1Z/meshes/gripper_finger_rIght_link.STL", + "material_name": "right_gripper_finger_rIght_link_source_material_0", + "rgba": [ + 0.025, + 0.029, + 0.035, + 1.0 + ], + "source_rgba": [ + 0.75294, + 0.75294, + 0.75294, + 1.0 + ], + "source_rgb_preserved": false + } + ] + }, + "head_camera_validation": "docs/benchmark/workstation_head_height.json", + "source_geometry_and_kinematics_unchanged_by_appearance_refinement": true, + "layout_refinement_v18": { + "previous_head_camera": { + "parent_body": "benchmark_base", + "position": [ + -0.060000000000000005, + 0.0, + 0.8 + ], + "quaternion_wxyz": [ + -0.6752854811484117, + -0.20973678492376605, + 0.20973678492376605, + 0.6752854811484117 + ], + "focal_length": 20.0, + "horizontal_aperture": 36.0, + "vertical_aperture": 27.0, + "clipping_range": [ + 0.01, + 10.0 + ], + "source_prim": "benchmark virtual head camera; manufacturer deployment reference" + }, + "optical_world_m": [ + 0.03, + 0.0, + 0.56 + ], + "look_target_world_m": [ + 0.46, + 0.0, + 0.06 + ], + "downward_tilt_deg": 49.30446896050798, + "horizontal_fov_deg": 90.0, + "vertical_fov_deg": 73.73979529168804, + "source_repository": "https://github.com/TrossenRobotics/trossen_arm_description", + "source_revision": "126e47fe66af1ef850986f3383f24080b74fda9c", + "source_files": [ + { + "path": "benchmark_head/source/workbench.urdf", + "source_url": "https://raw.githubusercontent.com/TrossenRobotics/trossen_arm_description/126e47fe66af1ef850986f3383f24080b74fda9c/urdf/generated/workbench.urdf", + "sha256": "911584df6ba45b282d93c7fd3bf1f98653061298fc67cd48e58a8e8ebfffcc23" + }, + { + "path": "benchmark_head/source/zedxm.stl", + "source_url": "https://raw.githubusercontent.com/TrossenRobotics/trossen_arm_description/126e47fe66af1ef850986f3383f24080b74fda9c/meshes/peripherals/zedxm.stl", + "sha256": "44a0f81cf49fc6c21b909abd928bceba9d89e132ad16294538dea5d1a7e30711" + }, + { + "path": "benchmark_head/source/LICENSE", + "source_url": "https://raw.githubusercontent.com/TrossenRobotics/trossen_arm_description/126e47fe66af1ef850986f3383f24080b74fda9c/LICENSE", + "sha256": "110a998ebd9a901d31173892d43224f8f59f12ebfd6398b9f3dea0ee9a01ab16" + } + ], + "hardware_reference": "https://www.stereolabs.com/store/products/zed-x-mini-stereo-camera", + "source_license": "BSD-3-Clause; copied LICENSE retained", + "generation_entrypoint": "extensions/bimanual/refine_compact_heads_v18.py", + "manufacturer_dual_arm_assembly": false, + "measured_calibration": false, + "note": "Benchmark-authored support and placement; source camera dimensions and optical offsets retained. Original robot colors/materials, arm geometry/kinematics/home, wrist extrinsics/intrinsics and30Hz remain unchanged.", + "actual_camera_model": "Stereolabs ZED X Mini, copied pinned Trossen source mesh and left optical frame", + "old_head_camera": { + "parent_body": "benchmark_base", + "position": [ + -0.060000000000000005, + 0.0, + 0.8 + ], + "quaternion_wxyz": [ + -0.6752854811484117, + -0.20973678492376605, + 0.20973678492376605, + 0.6752854811484117 + ], + "focal_length": 20.0, + "horizontal_aperture": 36.0, + "vertical_aperture": 27.0, + "clipping_range": [ + 0.01, + 10.0 + ], + "source_prim": "benchmark virtual head camera; manufacturer deployment reference" + }, + "new_head_camera": { + "parent_body": "benchmark_head_camera_link", + "position": [ + -0.01, + 0.025, + 0.016 + ], + "quaternion_wxyz": [ + 0.5, + 0.5000000000000001, + -0.4999999999999999, + -0.4999999999999999 + ], + "focal_length": 18.0, + "horizontal_aperture": 36.0, + "vertical_aperture": 27.0, + "clipping_range": [ + 0.03, + 10.0 + ], + "source_prim": "benchmark_head_optical_frame", + "source_frame_to_camera_quaternion_wxyz": [ + 0.0, + 1.0, + 0.0, + 0.0 + ], + "source_note": "Copied pinned Trossen ZED X Mini optical geometry; benchmark central retrofit, not factory mount or measured calibration." + }, + "old_head_world_transform": [ + [ + 0.0, + 0.8240419241993678, + -0.5665288228870653, + -0.1 + ], + [ + -1.0000000000000002, + 0.0, + 0.0, + 0.0 + ], + [ + 0.0, + 0.5665288228870653, + 0.824041924199368, + 0.88 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ], + "new_head_world_transform": [ + [ + 2.0538813749754266e-16, + 0.7581851963116832, + -0.6520392688280475, + 0.030000000000000006 + ], + [ + -1.0, + -1.1102230246251565e-16, + -4.440892098500626e-16, + 0.0 + ], + [ + -4.0909276567133503e-16, + 0.6520392688280476, + 0.758185196311683, + 0.56 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ], + "baseline_source_hashes": { + "profile.json": "5f42fe127780b672938a955176d85d4f5f26bbb5bf2ea16ebd32daa1fbcf7dfe", + "robot.urdf": "cae0d562badb65d26d3692a463d7409060d888cf58932d3ab61e4c503fb9af63", + "provenance.json": "d651a42c08ac0bb52f4fd5de053a1c38807e3f183c11a36e4a20fe911e1bbc9c" + }, + "baseline_snapshot": "benchmark_head/baseline_v17.json", + "historical_v17_head_reference": { + "pages": [ + "https://galaxea-dynamics.com/products/galaxea-a1z-lightweight-force-controlled-6-dof-robot-arm", + "https://galaxea-ai.com/en/news/galaxea-launches-lemo.html" + ], + "images": [ + "https://galaxea-dynamics.com/cdn/shop/files/A1Z-Main-New.jpg?v=1793589921&width=1920", + "https://galaxea-dynamics.com/cdn/shop/files/A1Z-Gripper_Open.jpg?v=1791598979&width=1920", + "https://galaxea-ai.com/en/images/pc/product4/color.png" + ], + "observation": "Official A1Z/G1Z images show a dark graphite upper arm, silver-grey forearm, dark joint housings, and black fingers. The source has one unsplit STL per rigid link and a uniform CAD grey, so only dominant per-link materials are represented; trim, labels and mixed-material subregions are not invented.", + "camera_basis": "Official LEMO deployment demonstrates two A1Z arms with wrist cameras and a raised central camera. Only that mounting arrangement informs this virtual camera; this existing benchmark assembly is not represented as a factory LEMO model.", + "eye_world_m": [ + -0.1, + 0.0, + 0.88 + ], + "target_world_m": [ + 0.45, + 0.0, + 0.08 + ], + "focal_length_mm": 20.0 + }, + "static_validation": "central_head_validation_v18.json", + "control_hz": 30, + "final_rendered_review_pending": true, + "generator_sha256": "e63bacf0ddb6a4f4980035f45d5472d5d8ac2063b300ca3f3d026fe653e221b4", + "metadata_finalizer_sha256": "2e1f5fd914539797960e37a88784c001db232a78fb2cf2547d4e042f2c79a456" + }, + "workstation_head_installation": { + "revision": 1, + "height_above_table_m": 0.76, + "downward_pitch_deg": 55, + "root_above_table_m": 0.002, + "camera_in_root": [ + [ + 0.0, + 0.8191520442889918, + -0.5735764363510462, + 0.07 + ], + [ + -1.0, + 0.0, + -0.0, + 0.0 + ], + [ + 0.0, + 0.5735764363510462, + 0.8191520442889918, + 0.758 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ], + "previous_camera_in_root": [ + [ + 2.0538813749754266e-16, + 0.7581851963116832, + -0.6520392688280475, + 0.07 + ], + [ + -1.0, + -1.1102230246251565e-16, + -4.440892098500626e-16, + 0.0 + ], + [ + -4.0909276567133503e-16, + 0.6520392688280476, + 0.758185196311683, + 0.48000000000000004 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ], + "mount_joint": "benchmark_head_camera_mount_joint", + "changed_support_links": [ + "benchmark_head_support" + ], + "added_fixed_links": [], + "head_camera": { + "parent_body": "benchmark_head_camera_link", + "position": [ + -0.01000000000000012, + 0.025000000000000012, + 0.016000000000000014 + ], + "quaternion_wxyz": [ + 0.5000000000000001, + 0.5000000000000001, + -0.5, + -0.5 + ], + "focal_length": 18.0, + "horizontal_aperture": 36.0, + "vertical_aperture": 27.0, + "clipping_range": [ + 0.03, + 10.0 + ], + "source_prim": "benchmark_head_optical_frame", + "source_frame_to_camera_quaternion_wxyz": [ + 0.0, + 1.0, + 0.0, + 0.0 + ], + "source_note": "Raised workstation head revision 1: source housing and optical frame move together on a visible fixed support, above the tabletop ready-arm envelope. Nominal benchmark mounting, not measured hardware calibration." + }, + "native_arm_joints_tcp_wrist_cameras_unchanged": true, + "native_head_camera_cad_retained": true, + "measured_real_world_calibration": false, + "generator": "extensions/bimanual/prepare_workstation_head_cameras.py", + "config": "configs/layouts/workstation_heads.json" + }, + "current_wrist_source_alignment": { + "revision": "source-priority-20261118", + "kind": "verified_yam_fallback", + "sources_sha256": { + "configs/robots/yam_verified.json": "6ae269a9066ccc74a3ba1b38217e3d2f772d2d44e860746a8fb0a3bf7efeea48" + }, + "mounts": { + "left": { + "parent_body": "left_arm_link6", + "optical_transform_opengl": [ + [ + 0.0001380770124687626, + 0.4226537351667096, + -0.9062912341429589, + 0.12271649809441512 + ], + [ + -0.9999999387618718, + -0.00023308256586575412, + -0.00026105319368151914, + -2.045049288997006e-05 + ], + [ + -0.00032157579366236727, + 0.9062912146888252, + 0.4226536771008418, + 0.07040006463328237 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + "right": { + "parent_body": "right_arm_link6", + "optical_transform_opengl": [ + [ + 0.0001380770124687626, + 0.4226537351667096, + -0.9062912341429589, + 0.12271649409109411 + ], + [ + -0.9999999388083786, + -0.0002329514665356657, + -0.00026099205481905336, + -2.0433767323916645e-05 + ], + [ + -0.00032143113892012107, + 0.9062912147225323, + 0.4226536771385999, + 0.07040001781173397 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + }, + "head_home_control_and_finger_physics_unchanged": true, + "image_postprocessing": false, + "real_world_calibrated": false, + "generator": "tools/cameras/prepare_source_mounts.py", + "intrinsics": "Verified YAM 87-degree horizontal FOV, 640x480" + }, + "historical_camera_metadata_superseded": true +} diff --git a/assets/robots/galaxea_a1z/robot.urdf b/assets/robots/galaxea_a1z/robot.urdf new file mode 100644 index 0000000000000000000000000000000000000000..a29187e18cb9fdd0ba979430203ba2e73390e3bb --- /dev/null +++ b/assets/robots/galaxea_a1z/robot.urdf @@ -0,0 +1,639 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/assets/robots/galaxea_a1z/robot_import.urdf b/assets/robots/galaxea_a1z/robot_import.urdf new file mode 100644 index 0000000000000000000000000000000000000000..26bb2879d1af4e5d0bb2e2c598e52f894d4f7118 --- /dev/null +++ b/assets/robots/galaxea_a1z/robot_import.urdf @@ -0,0 +1,639 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/assets/robots/galaxea_a1z/source/A1Z/A1Z_G1Z/CMakeLists.txt b/assets/robots/galaxea_a1z/source/A1Z/A1Z_G1Z/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..67246a86efd073424a3a0d9816ef4e049e7f1036 --- /dev/null +++ b/assets/robots/galaxea_a1z/source/A1Z/A1Z_G1Z/CMakeLists.txt @@ -0,0 +1,14 @@ +cmake_minimum_required(VERSION 2.8.3) + +project(A1Z_G1Z) + +find_package(catkin REQUIRED) + +catkin_package() + +find_package(roslaunch) + +foreach(dir launch meshes urdf) + install(DIRECTORY ${dir}/ + DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/${dir}) +endforeach(dir) diff --git a/assets/robots/galaxea_a1z/source/A1Z/A1Z_G1Z/launch/display.launch b/assets/robots/galaxea_a1z/source/A1Z/A1Z_G1Z/launch/display.launch new file mode 100644 index 0000000000000000000000000000000000000000..c340f47d7ece383f3b33d799ee5f625bf07622ed --- /dev/null +++ b/assets/robots/galaxea_a1z/source/A1Z/A1Z_G1Z/launch/display.launch @@ -0,0 +1,17 @@ + + + + + + \ No newline at end of file diff --git a/assets/robots/galaxea_a1z/source/A1Z/A1Z_G1Z/launch/gazebo.launch b/assets/robots/galaxea_a1z/source/A1Z/A1Z_G1Z/launch/gazebo.launch new file mode 100644 index 0000000000000000000000000000000000000000..4cbaa9f0061f487db1e88f5ef5a2bd74bace7fbc --- /dev/null +++ b/assets/robots/galaxea_a1z/source/A1Z/A1Z_G1Z/launch/gazebo.launch @@ -0,0 +1,20 @@ + + + + + + \ No newline at end of file diff --git a/assets/robots/galaxea_a1z/source/A1Z/A1Z_G1Z/package.xml b/assets/robots/galaxea_a1z/source/A1Z/A1Z_G1Z/package.xml new file mode 100644 index 0000000000000000000000000000000000000000..12ca1f62cd6f2eab0af510b80b9c6cad8c6cc2b2 --- /dev/null +++ b/assets/robots/galaxea_a1z/source/A1Z/A1Z_G1Z/package.xml @@ -0,0 +1,21 @@ + + A1Z_G1Z + 1.0.0 + +

URDF Description package for A1Z_G1Z

+

This package contains configuration data, 3D models and launch files +for A1Z_G1Z robot

+
+ TODO + + BSD + catkin + roslaunch + robot_state_publisher + rviz + joint_state_publisher_gui + gazebo + + + +
\ No newline at end of file diff --git a/assets/robots/galaxea_a1z/source/A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf b/assets/robots/galaxea_a1z/source/A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf new file mode 100644 index 0000000000000000000000000000000000000000..8e395b8d25e64de210cf4c5cf152c1b28c14e705 --- /dev/null +++ b/assets/robots/galaxea_a1z/source/A1Z/A1Z_G1Z/urdf/A1Z_G1Z.urdf @@ -0,0 +1,515 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/assets/robots/galaxea_a1z/source/A1Z/README.md b/assets/robots/galaxea_a1z/source/A1Z/README.md new file mode 100644 index 0000000000000000000000000000000000000000..408916c180c59bd610f308200a706b1daf7132b0 --- /dev/null +++ b/assets/robots/galaxea_a1z/source/A1Z/README.md @@ -0,0 +1,38 @@ +# A1Z models + +- `A1Z_Flange`: six-axis arm ending at the bare flange. +- `A1Z_G1Z`: the same arm with the G1Z gripper body and two moving fingers. + +The two models have identical `base_link` through `arm_link5` definitions and +meshes, and identical `arm_joint1` through `arm_joint6` definitions. Mesh package +prefixes differ. `arm_link6` deliberately differs: the G1Z model includes the +stationary gripper body in this link, while the Flange model contains only the +bare flange. Removing just the two finger links does not produce the Flange model. + +The G1Z update preserves the supplied masses, centers of mass, inertia tensors, +meshes and gripper kinematics. The six arm joints retain the repository's existing +effort and velocity limits instead of the CAD export's zero values. Existing +link, joint and mesh names (including the historical `rIght` spelling) are retained +for compatibility; mesh filenames match the URDF references exactly on Linux. + +The left finger travels from 0 to 0.048 m along its local Y axis. The right finger +travels from -0.048 to 0 m and mimics the left with multiplier -1 and offset 0. +Both fingers use `effort="3"` and `velocity="10.47"`; the velocity has the same +numeric value as J5/J6. Because the finger joints are prismatic, URDF interprets +these values as 3 N and 10.47 m/s, whereas J5/J6 velocity is in rad/s. These values +are not a transmission conversion of a 3 Nm motor rating. Motor torque and speed +require transmission geometry/ratio to derive physical linear force and speed; +the configured values have not been validated as hardware operating limits. + +Offline checks passed for XML structure, the connected link/joint trees, joint +axes and ranges, mimic consistency, case-sensitive mesh references, binary STL +sizes and finite coordinates, and all inertia tensors (positive principal moments +and rigid-body triangle inequalities). The G1Z model has 9 links and 8 joints; +the Flange model has 7 links and 6 joints. + +Historical CAD CSV files, export logs, and unused joint-name configurations have +been removed. The URDF files define the current models. These remain ROS 1 catkin +packages. Package names and launch URDF paths have been aligned, and display +launch files no longer reference a +missing RViz configuration. No ROS/RViz/Gazebo runtime, catkin build, hardware test, +or independent CAD mass-property verification was performed. diff --git a/assets/robots/galaxea_a1z/source/README.md b/assets/robots/galaxea_a1z/source/README.md new file mode 100644 index 0000000000000000000000000000000000000000..6aeccb936723fd4c0ced94eb52b5bc4d85e3af38 --- /dev/null +++ b/assets/robots/galaxea_a1z/source/README.md @@ -0,0 +1,15 @@ +We will promptly update the URDF file. + +Robot Arm: +- [A1Z URDF](./A1Z/) +- [A1X URDF](./A1X/) +- [A1Y URDF](./A1Y/) +- [A1 URDF](./A1/) + +Robot: +- [LEMO URDF](./LEMO/) +- [R1 Pro 2026 URDF](./R1Pro/urdf_r1pro_g1z_2026/) +- [R1 Lite 2026 URDF](./R1Lite/urdf_r1lite_2026/) +- [R1 PRO 2025 URDF](./R1Pro/urdf_r1pro_2025.urdf) +- [R1 Lite 2025 URDF](./R1Lite/urdf_r1lite_2025.urdf) +- [R1 URDF](./R1/) \ No newline at end of file diff --git a/assets/robots/galaxea_a1z/static_validation.json b/assets/robots/galaxea_a1z/static_validation.json new file mode 100644 index 0000000000000000000000000000000000000000..5ea06cd1887ab5f16811a472ddb612eece237bfc --- /dev/null +++ b/assets/robots/galaxea_a1z/static_validation.json @@ -0,0 +1,1166 @@ +{ + "method": "Source URDF FK and python-fcl native triangle mesh / convex-hull intersection checks; direct parent-child pairs excluded. PhysX and task execution remain separate validation stages.", + "source_joint_origins_axes_limits_unchanged": true, + "source_joint_preservation_checked": [ + "left_arm_joint1", + "left_arm_joint2", + "left_arm_joint3", + "left_arm_joint4", + "left_arm_joint5", + "left_arm_joint6", + "left_gripper_finger_left_joint", + "left_gripper_finger_rIght_joint", + "right_arm_joint1", + "right_arm_joint2", + "right_arm_joint3", + "right_arm_joint4", + "right_arm_joint5", + "right_arm_joint6", + "right_gripper_finger_left_joint", + "right_gripper_finger_rIght_joint" + ], + "source_visual_count_per_arm": 9, + "source_collision_count_per_arm": 9, + "internal_collision_filters": [ + { + "pair": [ + "left_gripper_finger_left_link", + "left_gripper_finger_rIght_link" + ], + "reason": "The source-coupled opposing fingers intersect/touch at the closed hard stop; filter only the internal finger pair, retaining all external contacts." + }, + { + "pair": [ + "left_arm_link4", + "left_arm_link6" + ], + "reason": "Native adjacent-wrist housings separated by arm_link5 overlap about 1.0-1.5 mm in source zero and ready poses (triangle-mesh FCL); preserve source geometry and filter only the mechanically adjacent housing pair." + }, + { + "pair": [ + "right_gripper_finger_left_link", + "right_gripper_finger_rIght_link" + ], + "reason": "The source-coupled opposing fingers intersect/touch at the closed hard stop; filter only the internal finger pair, retaining all external contacts." + }, + { + "pair": [ + "right_arm_link4", + "right_arm_link6" + ], + "reason": "Native adjacent-wrist housings separated by arm_link5 overlap about 1.0-1.5 mm in source zero and ready poses (triangle-mesh FCL); preserve source geometry and filter only the mechanically adjacent housing pair." + } + ], + "home": { + "nonadjacent_mesh_intersections": { + "native": [ + [ + "left_arm_link4", + "left_arm_link6" + ], + [ + "right_arm_link4", + "right_arm_link6" + ] + ], + "convex": [ + [ + "left_arm_link4", + "left_arm_link6" + ], + [ + "right_arm_link4", + "right_arm_link6" + ] + ] + }, + "visual_link_world_bounds_m": { + "left_base_link": [ + [ + -0.09390194920762931, + 0.15579716833222712, + 0.08 + ], + [ + 0.013901949207629306, + 0.3642028316677729, + 0.16250000327825548 + ] + ], + "left_arm_link1": [ + [ + -0.06288435599713903, + 0.2100427324552458, + 0.14899999994784593 + ], + [ + 0.0012267408737719823, + 0.3122554349007496, + 0.2079999956488609 + ] + ], + "left_arm_link2": [ + [ + -0.2012332415943443, + 0.21556910855548203, + 0.16800017890529872 + ], + [ + 0.013996172788571432, + 0.3214131805898307, + 0.4465790662734321 + ] + ], + "left_arm_link3": [ + [ + -0.202215479613014, + 0.20849143313658372, + 0.39073851531063436 + ], + [ + 0.09571815509706888, + 0.3296254378769634, + 0.5477744598397775 + ] + ], + "left_arm_link4": [ + [ + 0.04147293831547414, + 0.19697794574967323, + 0.4876694250973658 + ], + [ + 0.20451481482330966, + 0.2934951553347118, + 0.5785121141619437 + ] + ], + "left_arm_link5": [ + [ + 0.0741316243311273, + 0.21163032285758057, + 0.4410257613488487 + ], + [ + 0.16905773843079305, + 0.26836976576258376, + 0.529328908222878 + ] + ], + "left_arm_link6": [ + [ + 0.13270742119386172, + 0.18548161700771504, + 0.39747391661484277 + ], + [ + 0.23819840881411095, + 0.2945183830003565, + 0.49450803033684165 + ] + ], + "left_gripper_finger_left_link": [ + [ + 0.20927021838912177, + 0.2377850000897615, + 0.36965131003745705 + ], + [ + 0.31386643383839824, + 0.3206212033668782, + 0.45889871113504016 + ] + ], + "left_gripper_finger_rIght_link": [ + [ + 0.1912702183923215, + 0.15937879664099477, + 0.3696513111145899 + ], + [ + 0.3138674724052063, + 0.24221499991835055, + 0.44842636967421917 + ] + ], + "right_base_link": [ + [ + -0.09390194920762931, + -0.3642028316677729, + 0.08 + ], + [ + 0.013901949207629306, + -0.15579716833222712, + 0.16250000327825548 + ] + ], + "right_arm_link1": [ + [ + -0.0628843559984083, + -0.3077650986100735, + 0.14899999994784593 + ], + [ + 0.0012271809923210322, + -0.20553394180900864, + 0.2079999956488609 + ] + ], + "right_arm_link2": [ + [ + -0.20126916122185504, + -0.31737443143869265, + 0.16800017890513091 + ], + [ + 0.01396023543204173, + -0.2119704182406671, + 0.44657906603415815 + ] + ], + "right_arm_link3": [ + [ + -0.20221846522100564, + -0.32962545377765257, + 0.3907385150768964 + ], + [ + 0.09571815488860913, + -0.21198601405363082, + 0.547774459279463 + ] + ], + "right_arm_link4": [ + [ + 0.04090272901688135, + -0.2934951439620979, + 0.48766942461128104 + ], + [ + 0.20451481398399224, + -0.19697796177485222, + 0.5785121136514864 + ] + ], + "right_arm_link5": [ + [ + 0.07413162415257038, + -0.2683697657784888, + 0.4410257608418972 + ], + [ + 0.16906100701580462, + -0.21163032287671704, + 0.529328907698121 + ] + ], + "right_arm_link6": [ + [ + 0.13270742103111613, + -0.2945183830249444, + 0.39747391615036864 + ], + [ + 0.23819840864705324, + -0.18548161703230293, + 0.4945080298447022 + ] + ], + "right_gripper_finger_left_link": [ + [ + 0.2092702182298343, + -0.24221499994340043, + 0.369651309641809 + ], + [ + 0.31386643372595435, + -0.15937879666658541, + 0.4588987106795593 + ] + ], + "right_gripper_finger_rIght_link": [ + [ + 0.19127021825104665, + -0.32062120339246886, + 0.3696513107180377 + ], + [ + 0.3138674722865166, + -0.23778500011347803, + 0.44842636923059426 + ] + ] + }, + "world_bounds_m": [ + [ + -0.20221846522100564, + -0.3642028316677729, + 0.08 + ], + [ + 0.3138674724052063, + 0.3642028316677729, + 0.5785121141619437 + ] + ], + "tcp_world": { + "left": { + "position_m": [ + 0.3000000000009992, + 0.24000000000341729, + 0.37999999995896366 + ], + "quaternion_wxyz": [ + 0.5000000000508595, + 5.441148820523232e-12, + 0.8660254037550749, + -6.215116008662664e-13 + ] + }, + "right": { + "position_m": [ + 0.2999999998826132, + -0.24000000003425284, + 0.3799999995576815 + ], + "quaternion_wxyz": [ + 0.5000000003434838, + 3.6580371081584674e-11, + 0.8660254035861282, + -1.313029396294567e-11 + ] + } + }, + "unfiltered_native_intersections": [] + }, + "closed_gripper_home": { + "nonadjacent_mesh_intersections": { + "native": [ + [ + "left_arm_link4", + "left_arm_link6" + ], + [ + "left_gripper_finger_left_link", + "left_gripper_finger_rIght_link" + ], + [ + "right_arm_link4", + "right_arm_link6" + ], + [ + "right_gripper_finger_left_link", + "right_gripper_finger_rIght_link" + ] + ], + "convex": [ + [ + "left_arm_link4", + "left_arm_link6" + ], + [ + "left_gripper_finger_left_link", + "left_gripper_finger_rIght_link" + ], + [ + "right_arm_link4", + "right_arm_link6" + ], + [ + "right_gripper_finger_left_link", + "right_gripper_finger_rIght_link" + ] + ] + }, + "visual_link_world_bounds_m": { + "left_base_link": [ + [ + -0.09390194920762931, + 0.15579716833222712, + 0.08 + ], + [ + 0.013901949207629306, + 0.3642028316677729, + 0.16250000327825548 + ] + ], + "left_arm_link1": [ + [ + -0.06288435599713903, + 0.2100427324552458, + 0.14899999994784593 + ], + [ + 0.0012267408737719823, + 0.3122554349007496, + 0.2079999956488609 + ] + ], + "left_arm_link2": [ + [ + -0.2012332415943443, + 0.21556910855548203, + 0.16800017890529872 + ], + [ + 0.013996172788571432, + 0.3214131805898307, + 0.4465790662734321 + ] + ], + "left_arm_link3": [ + [ + -0.202215479613014, + 0.20849143313658372, + 0.39073851531063436 + ], + [ + 0.09571815509706888, + 0.3296254378769634, + 0.5477744598397775 + ] + ], + "left_arm_link4": [ + [ + 0.04147293831547414, + 0.19697794574967323, + 0.4876694250973658 + ], + [ + 0.20451481482330966, + 0.2934951553347118, + 0.5785121141619437 + ] + ], + "left_arm_link5": [ + [ + 0.0741316243311273, + 0.21163032285758057, + 0.4410257613488487 + ], + [ + 0.16905773843079305, + 0.26836976576258376, + 0.529328908222878 + ] + ], + "left_arm_link6": [ + [ + 0.13270742119386172, + 0.18548161700771504, + 0.39747391661484277 + ], + [ + 0.23819840881411095, + 0.2945183830003565, + 0.49450803033684165 + ] + ], + "left_gripper_finger_left_link": [ + [ + 0.20927021838863955, + 0.18978500008976149, + 0.36965131003724755 + ], + [ + 0.313866433837916, + 0.27262120336687823, + 0.45889871113483066 + ] + ], + "left_gripper_finger_rIght_link": [ + [ + 0.1912702183928037, + 0.20737879664099476, + 0.3696513111147994 + ], + [ + 0.3138674724056885, + 0.29021499991835054, + 0.44842636967442867 + ] + ], + "right_base_link": [ + [ + -0.09390194920762931, + -0.3642028316677729, + 0.08 + ], + [ + 0.013901949207629306, + -0.15579716833222712, + 0.16250000327825548 + ] + ], + "right_arm_link1": [ + [ + -0.0628843559984083, + -0.3077650986100735, + 0.14899999994784593 + ], + [ + 0.0012271809923210322, + -0.20553394180900864, + 0.2079999956488609 + ] + ], + "right_arm_link2": [ + [ + -0.20126916122185504, + -0.31737443143869265, + 0.16800017890513091 + ], + [ + 0.01396023543204173, + -0.2119704182406671, + 0.44657906603415815 + ] + ], + "right_arm_link3": [ + [ + -0.20221846522100564, + -0.32962545377765257, + 0.3907385150768964 + ], + [ + 0.09571815488860913, + -0.21198601405363082, + 0.547774459279463 + ] + ], + "right_arm_link4": [ + [ + 0.04090272901688135, + -0.2934951439620979, + 0.48766942461128104 + ], + [ + 0.20451481398399224, + -0.19697796177485222, + 0.5785121136514864 + ] + ], + "right_arm_link5": [ + [ + 0.07413162415257038, + -0.2683697657784888, + 0.4410257608418972 + ], + [ + 0.16906100701580462, + -0.21163032287671704, + 0.529328907698121 + ] + ], + "right_arm_link6": [ + [ + 0.13270742103111613, + -0.2945183830249444, + 0.39747391615036864 + ], + [ + 0.23819840864705324, + -0.18548161703230293, + 0.4945080298447022 + ] + ], + "right_gripper_finger_left_link": [ + [ + 0.2092702182261628, + -0.2902149999434004, + 0.36965130964114473 + ], + [ + 0.31386643372228284, + -0.2073787966665854, + 0.45889871067889504 + ] + ], + "right_gripper_finger_rIght_link": [ + [ + 0.1912702182547181, + -0.27262120339246887, + 0.36965131071870194 + ], + [ + 0.3138674722901881, + -0.18978500011347804, + 0.4484263692312585 + ] + ] + }, + "world_bounds_m": [ + [ + -0.20221846522100564, + -0.3642028316677729, + 0.08 + ], + [ + 0.3138674724056885, + 0.3642028316677729, + 0.5785121141619437 + ] + ], + "unfiltered_native_intersections": [] + }, + "low_tabletop_grasp": { + "left": { + "target_world_m": [ + 0.38, + 0.2, + 0.05 + ], + "quaternion_wxyz": [ + 6.123233995736766e-17, + 0.0, + 1.0, + 0.0 + ], + "joints": { + "left_arm_joint1": 0.03810294539582347, + "left_arm_joint2": 2.244686542603657, + "left_arm_joint3": -1.6855873086008837, + "left_arm_joint4": 1.0116970926999886, + "left_arm_joint5": 8.486917684097946e-15, + "left_arm_joint6": -0.14189705460416746 + }, + "position_error_m": 5.3046022785230753e-11, + "orientation_error_rad": 9.213489781509921e-11, + "geometry": { + "nonadjacent_mesh_intersections": { + "native": [ + [ + "left_arm_link4", + "left_arm_link6" + ], + [ + "right_arm_link4", + "right_arm_link6" + ] + ], + "convex": [ + [ + "left_arm_link4", + "left_arm_link6" + ], + [ + "right_arm_link4", + "right_arm_link6" + ] + ] + }, + "visual_link_world_bounds_m": { + "left_base_link": [ + [ + -0.09390194920762931, + 0.15579716833222712, + 0.08 + ], + [ + 0.013901949207629306, + 0.3642028316677729, + 0.16250000327825548 + ] + ], + "left_arm_link1": [ + [ + -0.06382949861238824, + 0.20939943882089815, + 0.14899999994784593 + ], + [ + 0.002114839559957331, + 0.31241672604309934, + 0.2079999956488609 + ] + ], + "left_arm_link2": [ + [ + -0.05505579003409018, + 0.1913383526492211, + 0.16800564105491078 + ], + [ + 0.17778449090936174, + 0.30284949814031836, + 0.43428395827768723 + ] + ], + "left_arm_link3": [ + [ + 0.1114160090176077, + 0.16075828309125056, + 0.29521890844856513 + ], + [ + 0.4140638471091056, + 0.2879096110734471, + 0.4617447976907748 + ] + ], + "left_arm_link4": [ + [ + 0.35838997516516224, + 0.14909455379739459, + 0.21213046568504995 + ], + [ + 0.47904444671466345, + 0.24600157149586147, + 0.3426833368349951 + ] + ], + "left_arm_link5": [ + [ + 0.339141027301349, + 0.17163029975954514, + 0.21569999881931506 + ], + [ + 0.4240244631819252, + 0.22836970009984134, + 0.29074999892015124 + ] + ], + "left_arm_link6": [ + [ + 0.34600400278063054, + 0.1454816170120604, + 0.13948800163718517 + ], + [ + 0.4139967011818428, + 0.2545183830047018, + 0.2276999999860428 + ] + ], + "left_gripper_finger_left_link": [ + [ + 0.3515716808752169, + 0.19778500009420658, + 0.035141049606788266 + ], + [ + 0.40842831962714093, + 0.2806212033711245, + 0.15949999979256868 + ] + ], + "left_gripper_finger_rIght_link": [ + [ + 0.35157168025681773, + 0.11937879664524106, + 0.03514104960802526 + ], + [ + 0.40842831900874177, + 0.20221499992263658, + 0.1594999997898841 + ] + ], + "right_base_link": [ + [ + -0.09390194920762931, + -0.3642028316677729, + 0.08 + ], + [ + 0.013901949207629306, + -0.15579716833222712, + 0.16250000327825548 + ] + ], + "right_arm_link1": [ + [ + -0.0628843559984083, + -0.3077650986100735, + 0.14899999994784593 + ], + [ + 0.0012271809923210322, + -0.20553394180900864, + 0.2079999956488609 + ] + ], + "right_arm_link2": [ + [ + -0.20126916122185504, + -0.31737443143869265, + 0.16800017890513091 + ], + [ + 0.01396023543204173, + -0.2119704182406671, + 0.44657906603415815 + ] + ], + "right_arm_link3": [ + [ + -0.20221846522100564, + -0.32962545377765257, + 0.3907385150768964 + ], + [ + 0.09571815488860913, + -0.21198601405363082, + 0.547774459279463 + ] + ], + "right_arm_link4": [ + [ + 0.04090272901688135, + -0.2934951439620979, + 0.48766942461128104 + ], + [ + 0.20451481398399224, + -0.19697796177485222, + 0.5785121136514864 + ] + ], + "right_arm_link5": [ + [ + 0.07413162415257038, + -0.2683697657784888, + 0.4410257608418972 + ], + [ + 0.16906100701580462, + -0.21163032287671704, + 0.529328907698121 + ] + ], + "right_arm_link6": [ + [ + 0.13270742103111613, + -0.2945183830249444, + 0.39747391615036864 + ], + [ + 0.23819840864705324, + -0.18548161703230293, + 0.4945080298447022 + ] + ], + "right_gripper_finger_left_link": [ + [ + 0.2092702182298343, + -0.24221499994340043, + 0.369651309641809 + ], + [ + 0.31386643372595435, + -0.15937879666658541, + 0.4588987106795593 + ] + ], + "right_gripper_finger_rIght_link": [ + [ + 0.19127021825104665, + -0.32062120339246886, + 0.3696513107180377 + ], + [ + 0.3138674722865166, + -0.23778500011347803, + 0.44842636923059426 + ] + ] + }, + "world_bounds_m": [ + [ + -0.20221846522100564, + -0.3642028316677729, + 0.035141049606788266 + ], + [ + 0.47904444671466345, + 0.3642028316677729, + 0.5785121136514864 + ] + ], + "unfiltered_native_intersections": [] + } + }, + "right": { + "target_world_m": [ + 0.38, + -0.2, + 0.05 + ], + "quaternion_wxyz": [ + 6.123233995736766e-17, + 0.0, + 1.0, + 0.0 + ], + "joints": { + "right_arm_joint1": -0.03810294539591964, + "right_arm_joint2": 2.2446865426042817, + "right_arm_joint3": -1.6855873086018913, + "right_arm_joint4": 1.011697092700421, + "right_arm_joint5": -1.6145843350605364e-14, + "right_arm_joint6": 0.14189705460409896 + }, + "position_error_m": 5.291084774519585e-11, + "orientation_error_rad": 9.208534822092747e-11, + "geometry": { + "nonadjacent_mesh_intersections": { + "native": [ + [ + "left_arm_link4", + "left_arm_link6" + ], + [ + "right_arm_link4", + "right_arm_link6" + ] + ], + "convex": [ + [ + "left_arm_link4", + "left_arm_link6" + ], + [ + "right_arm_link4", + "right_arm_link6" + ] + ] + }, + "visual_link_world_bounds_m": { + "left_base_link": [ + [ + -0.09390194920762931, + 0.15579716833222712, + 0.08 + ], + [ + 0.013901949207629306, + 0.3642028316677729, + 0.16250000327825548 + ] + ], + "left_arm_link1": [ + [ + -0.06288435599713903, + 0.2100427324552458, + 0.14899999994784593 + ], + [ + 0.0012267408737719823, + 0.3122554349007496, + 0.2079999956488609 + ] + ], + "left_arm_link2": [ + [ + -0.2012332415943443, + 0.21556910855548203, + 0.16800017890529872 + ], + [ + 0.013996172788571432, + 0.3214131805898307, + 0.4465790662734321 + ] + ], + "left_arm_link3": [ + [ + -0.202215479613014, + 0.20849143313658372, + 0.39073851531063436 + ], + [ + 0.09571815509706888, + 0.3296254378769634, + 0.5477744598397775 + ] + ], + "left_arm_link4": [ + [ + 0.04147293831547414, + 0.19697794574967323, + 0.4876694250973658 + ], + [ + 0.20451481482330966, + 0.2934951553347118, + 0.5785121141619437 + ] + ], + "left_arm_link5": [ + [ + 0.0741316243311273, + 0.21163032285758057, + 0.4410257613488487 + ], + [ + 0.16905773843079305, + 0.26836976576258376, + 0.529328908222878 + ] + ], + "left_arm_link6": [ + [ + 0.13270742119386172, + 0.18548161700771504, + 0.39747391661484277 + ], + [ + 0.23819840881411095, + 0.2945183830003565, + 0.49450803033684165 + ] + ], + "left_gripper_finger_left_link": [ + [ + 0.20927021838912177, + 0.2377850000897615, + 0.36965131003745705 + ], + [ + 0.31386643383839824, + 0.3206212033668782, + 0.45889871113504016 + ] + ], + "left_gripper_finger_rIght_link": [ + [ + 0.1912702183923215, + 0.15937879664099477, + 0.3696513111145899 + ], + [ + 0.3138674724052063, + 0.24221499991835055, + 0.44842636967421917 + ] + ], + "right_base_link": [ + [ + -0.09390194920762931, + -0.3642028316677729, + 0.08 + ], + [ + 0.013901949207629306, + -0.15579716833222712, + 0.16250000327825548 + ] + ], + "right_arm_link1": [ + [ + -0.06382949861238409, + -0.30801255054161075, + 0.14899999994784593 + ], + [ + 0.0021152784140135716, + -0.20498709315282915, + 0.2079999956488609 + ] + ], + "right_arm_link2": [ + [ + -0.05509821663230434, + -0.29970637001044287, + 0.16800564105491117 + ], + [ + 0.17774206735366657, + -0.1876643170762331, + 0.4342839582775839 + ] + ], + "right_arm_link3": [ + [ + 0.11141600764672091, + -0.28790960144843125, + 0.2952189084485535 + ], + [ + 0.4140638471092668, + -0.16379870513388983, + 0.46174479769069515 + ] + ], + "right_arm_link4": [ + [ + 0.35798303706948703, + -0.24600154054428683, + 0.21213046568503707 + ], + [ + 0.47904444671482166, + -0.14909457434400547, + 0.3426833368349837 + ] + ], + "right_arm_link5": [ + [ + 0.3391410273015107, + -0.22836970009985946, + 0.21569999881930502 + ], + [ + 0.4240244631820838, + -0.17163029975956387, + 0.29074999892014153 + ] + ], + "right_arm_link6": [ + [ + 0.3460040027807852, + -0.2545183830047218, + 0.1394880016371738 + ], + [ + 0.4139967011819974, + -0.14548161701208034, + 0.22769999998602625 + ] + ], + "right_gripper_finger_left_link": [ + [ + 0.3515716808753716, + -0.20221499992265657, + 0.03514104960801334 + ], + [ + 0.40842831962729564, + -0.11937879664526124, + 0.1594999997931546 + ] + ], + "right_gripper_finger_rIght_link": [ + [ + 0.3515716802569715, + -0.2806212033711447, + 0.03514104960677772 + ], + [ + 0.40842831900889554, + -0.19778500009422645, + 0.15949999978927443 + ] + ] + }, + "world_bounds_m": [ + [ + -0.202215479613014, + -0.3642028316677729, + 0.03514104960677772 + ], + [ + 0.47904444671482166, + 0.3642028316677729, + 0.5785121141619437 + ] + ], + "unfiltered_native_intersections": [] + } + } + } +} diff --git a/assets/robots/galaxea_a1z/usd/.asset_hash b/assets/robots/galaxea_a1z/usd/.asset_hash new file mode 100644 index 0000000000000000000000000000000000000000..c5d7a69461e3174361eff97df24eafe118e8d05d --- /dev/null +++ b/assets/robots/galaxea_a1z/usd/.asset_hash @@ -0,0 +1 @@ +e8331979843e6f08f8b925304e7d191e \ No newline at end of file diff --git a/assets/robots/galaxea_a1z/usd/config.yaml b/assets/robots/galaxea_a1z/usd/config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c45d4c63ac1aa6d2f6a456d0da29586688895a6d --- /dev/null +++ b/assets/robots/galaxea_a1z/usd/config.yaml @@ -0,0 +1,23 @@ +asset_path: /workspace/yifei/workstation-embodiments/robolab_bimanual/assets/robots/galaxea_a1z/robot_import.urdf +usd_dir: /workspace/yifei/workstation-embodiments/robolab_bimanual/assets/robots/galaxea_a1z/usd +usd_file_name: robot.usd +force_usd_conversion: true +make_instanceable: false +fix_base: true +root_link_name: null +link_density: 0.0 +merge_fixed_joints: false +convert_mimic_joints_to_normal_joints: true +joint_drive: + drive_type: force + target_type: position + gains: + stiffness: 0.0 + damping: 0.0 +collider_type: convex_decomposition +self_collision: true +replace_cylinders_with_capsules: false +collision_from_visuals: false +## +# Generated by UrdfConverter on 2026-11-11 at 01:00:46. +## diff --git a/assets/robots/galaxea_a1z/usd/configuration/robot_physics.usd b/assets/robots/galaxea_a1z/usd/configuration/robot_physics.usd new file mode 100644 index 0000000000000000000000000000000000000000..97bfa7d4f6dddd40195b8a127b85c973284310bb Binary files /dev/null and b/assets/robots/galaxea_a1z/usd/configuration/robot_physics.usd differ diff --git a/assets/robots/galaxea_a1z/usd/configuration/robot_robot.usd b/assets/robots/galaxea_a1z/usd/configuration/robot_robot.usd new file mode 100644 index 0000000000000000000000000000000000000000..4dbb4d2927a6c0ea17247ac891aa4a690f9cde97 Binary files /dev/null and b/assets/robots/galaxea_a1z/usd/configuration/robot_robot.usd differ diff --git a/assets/robots/galaxea_a1z/usd/configuration/robot_sensor.usd b/assets/robots/galaxea_a1z/usd/configuration/robot_sensor.usd new file mode 100644 index 0000000000000000000000000000000000000000..52fe244b908c6bf812bb0dcad33fe3094d69f081 Binary files /dev/null and b/assets/robots/galaxea_a1z/usd/configuration/robot_sensor.usd differ diff --git a/assets/robots/galaxea_a1z/usd/robot.usd b/assets/robots/galaxea_a1z/usd/robot.usd new file mode 100644 index 0000000000000000000000000000000000000000..472fc8866c403e65591c4e5bc1f79beb105e0b97 Binary files /dev/null and b/assets/robots/galaxea_a1z/usd/robot.usd differ