diff --git a/.gitattributes b/.gitattributes index 7b9f38c79bd199518b9b56135aa5d8ede21d7b3c..351375cdd2992648e127d42c09a4d4b01211c885 100644 --- a/.gitattributes +++ b/.gitattributes @@ -215,3 +215,39 @@ Projects/Street/Props/SM_Buidlng_001.usd filter=lfs diff=lfs merge=lfs -text NVIDIA/Environments/2024_1/DomeLights/Clear/noon_grass.hdr filter=lfs diff=lfs merge=lfs -text Projects/Street/Test/Props/SM_StreetDetails_002.usd filter=lfs diff=lfs merge=lfs -text Projects/Street/Materials/Textures/HDR_Courtyard_Daylight.dds filter=lfs diff=lfs merge=lfs -text +Users/worv/costnav/NovaCarter/Parts/OPEN_CASCADE_STEP_TRANSLATOR_6__KFTa.usd filter=lfs diff=lfs merge=lfs -text +Users/worv/costnav/NovaCarter/Parts/_014_IMPELLER_CONCORD_KFzT.usd filter=lfs diff=lfs merge=lfs -text +Users/worv/costnav/NovaCarter/Parts/_30_1337_000_1__KFvE.usd filter=lfs diff=lfs merge=lfs -text +Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KFbB.usd filter=lfs diff=lfs merge=lfs -text +Users/worv/costnav/NovaCarter/Parts/_30_1373_000_1_KFfE.usd filter=lfs diff=lfs merge=lfs -text +Projects/Street/Props/SM_Buidlng_023.usd filter=lfs diff=lfs merge=lfs -text +Projects/Street/Props/SM_Buidlng_024.usd filter=lfs diff=lfs merge=lfs -text +Projects/Street/Props/SM_Block_004.usd filter=lfs diff=lfs merge=lfs -text +Projects/Street/Props/SM_Buidlng_005.usd filter=lfs diff=lfs merge=lfs -text +Projects/Street/Props/SM_Buidlng_028.usd filter=lfs diff=lfs merge=lfs -text +Projects/Street/Props/SM_Buidlng_025.usd filter=lfs diff=lfs merge=lfs -text +Projects/Street/Props/SM_Buidlng_032.usd filter=lfs diff=lfs merge=lfs -text +Projects/Street/Props/SM_Buidlng_012.usd filter=lfs diff=lfs merge=lfs -text +Projects/Street/Props/SM_Buidlng_014.usd filter=lfs diff=lfs merge=lfs -text +Projects/Street/Props/SM_Buidlng_004.usd filter=lfs diff=lfs merge=lfs -text +Projects/Street/Props/SM_Buidlng_026.usd filter=lfs diff=lfs merge=lfs -text +Projects/Street/Props/SM_Buidlng_006.usd filter=lfs diff=lfs merge=lfs -text +Projects/Street/Props/SM_Buidlng_030.usd filter=lfs diff=lfs merge=lfs -text +Projects/Street/Props/SM_Buidlng_000.usd filter=lfs diff=lfs merge=lfs -text +Projects/Street/Props/SM_Buidlng_002.usd filter=lfs diff=lfs merge=lfs -text +Projects/Street/Props/SM_Buidlng_020.usd filter=lfs diff=lfs merge=lfs -text +Projects/Street/Props/SM_Buidlng_022.usd filter=lfs diff=lfs merge=lfs -text +Projects/Street/Props/SM_Buidlng_017.usd filter=lfs diff=lfs merge=lfs -text +Projects/Street/Props/SM_StreetDetails_004.usd filter=lfs diff=lfs merge=lfs -text +Projects/Street/Props/SM_Buidlng_021.usd filter=lfs diff=lfs merge=lfs -text +Projects/Street/Props/SM_Buidlng_029.usd filter=lfs diff=lfs merge=lfs -text +Projects/Street/Props/SM_Buidlng_018.usd filter=lfs diff=lfs merge=lfs -text +Projects/Street/Props/SM_Block_002.usd filter=lfs diff=lfs merge=lfs -text +Projects/Street/Props/SM_Buidlng_010.usd filter=lfs diff=lfs merge=lfs -text +Projects/Street/Props/SM_Buidlng_003.usd filter=lfs diff=lfs merge=lfs -text +Projects/Street/Props/SM_Buidlng_009.usd filter=lfs diff=lfs merge=lfs -text +Projects/Street/Props/SM_Buidlng_016.usd filter=lfs diff=lfs merge=lfs -text +Projects/Street/Props/SM_Buidlng_008.usd filter=lfs diff=lfs merge=lfs -text +Projects/Street/Props/SM_StreetDetails_003.usd filter=lfs diff=lfs merge=lfs -text +Projects/Street/Props/SM_Scaffolding_001.usd filter=lfs diff=lfs merge=lfs -text +Projects/Street/Props/SM_Buidlng_011.usd filter=lfs diff=lfs merge=lfs -text diff --git a/Projects/Street/Materials/MI_NYB_10.mdl b/Projects/Street/Materials/MI_NYB_10.mdl new file mode 100644 index 0000000000000000000000000000000000000000..c68e7970b598def80d4319edb2447d0618b06a3f --- /dev/null +++ b/Projects/Street/Materials/MI_NYB_10.mdl @@ -0,0 +1,106 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +import ::scene::*; +using .::OmniUe4Function import *; +using .::OmniUe4Translucent import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material MI_NYB_10( + uniform texture_2d Texture_1_ = texture_2d("./Textures/T_NYB_88.png",::tex::gamma_srgb) + [[ + anno::display_name("Texture (1)"), + anno::ui_order(32), + sampler_color() + ]], + float4 Specular_4_ = float4(0.9,0.9,0.9,1.0) + [[ + anno::display_name("Specular (4)"), + anno::ui_order(32) + ]], + float Specular_Level_5_ = 0.0 + [[ + anno::display_name("Specular_Level (5)"), + anno::ui_order(32) + ]], + float Glossiness_2_ = 0.1 + [[ + anno::display_name("Glossiness (2)"), + anno::ui_order(32) + ]], + uniform texture_2d Texture_8_ = texture_2d("./Textures/T_NYB_89.png",::tex::gamma_srgb) + [[ + anno::display_name("Texture (8)"), + anno::ui_order(32), + sampler_color() + ]], + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 WorldPositionOffset_mdl = float3(0.0,0.0,0.0); + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + + float3 Normal_mdl = float3(0.0,0.0,1.0); + + float4 Local0 = tex::lookup_float4(Texture_1_,float2(CustomizedUV0_mdl.x,1.0-CustomizedUV0_mdl.y),tex::wrap_repeat,tex::wrap_repeat); + float Local1 = (Specular_Level_5_ * Glossiness_2_); + float3 Local2 = (float3(Specular_4_.x,Specular_4_.y,Specular_4_.z) * Local1); + float3 Local3 = (float3(Local0.x,Local0.y,Local0.z) + Local2); + float Local4 = math::dot(float3(Local0.x,Local0.y,Local0.z), float3(0.3,0.59,0.11)); + float Local5 = (Local4 + -0.4); + float Local6 = (Local5 * -5.0); + float Local7 = math::min(math::max(Local6,0.0),1.0); + float Local8 = math::dot(Local2, float3(0.3,0.59,0.11)); + float Local9 = (Local4 + Local8); + float Local10 = (Local8 / Local9); + float Local11 = (Local10 - 0.5); + float Local12 = (Local11 * 4.0); + float Local13 = (Local12 + 0.5); + float Local14 = math::min(math::max(Local13,0.0),1.0); + float Local15 = (Local7 * Local14); + float3 Local16 = math::lerp(float3(Local0.x,Local0.y,Local0.z),Local3,Local15); + float Local17 = (Local8 * 12.5); + float Local18 = (1.0 - Glossiness_2_); + float4 Local19 = tex::lookup_float4(Texture_8_,float2(CustomizedUV0_mdl.x,1.0-CustomizedUV0_mdl.y),tex::wrap_repeat,tex::wrap_repeat); + float Local20 = math::dot(float3(Local19.x,Local19.y,Local19.z), float3(0.3,0.59,0.11)); + float Local21 = (1.0 - Local20); + + float3 EmissiveColor_mdl = float3(0.0,0.0,0.0); + float Opacity_mdl = Local21; + float OpacityMask_mdl = (math::saturate(Local21) - 1.0f / 255.0f) < 0.0f ? 0.0f : 1.0f; + float3 BaseColor_mdl = Local16; + float Metallic_mdl = Local15; + float Specular_mdl = Local17; + float Roughness_mdl = Local18; + float3 Refraction_mdl = math::max(float3(1.0,0.0,0.0), 1.0f); + float SurfaceThickness_mdl = 0.01; + float Displacement_mdl = 0.0; + + } in + ::OmniUe4Translucent( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: Opacity_mdl, + opacity_mask: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + refraction: Refraction_mdl.x, + two_sided: false); diff --git a/Projects/Street/Materials/MI_NYB_157.mdl b/Projects/Street/Materials/MI_NYB_157.mdl new file mode 100644 index 0000000000000000000000000000000000000000..4ae17141954c9d9082c0c1332435bb5699762966 --- /dev/null +++ b/Projects/Street/Materials/MI_NYB_157.mdl @@ -0,0 +1,105 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +import ::scene::*; +using .::OmniUe4Function import *; +using .::OmniUe4Translucent import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material MI_NYB_157( + uniform texture_2d Texture_1_ = texture_2d("./Textures/T_NYB_53.png",::tex::gamma_srgb) + [[ + anno::display_name("Texture (1)"), + anno::ui_order(32), + sampler_color() + ]], + float4 Specular_4_ = float4(0.9,0.9,0.9,1.0) + [[ + anno::display_name("Specular (4)"), + anno::ui_order(32) + ]], + float Specular_Level_5_ = 0.0 + [[ + anno::display_name("Specular_Level (5)"), + anno::ui_order(32) + ]], + float Glossiness_2_ = 0.1 + [[ + anno::display_name("Glossiness (2)"), + anno::ui_order(32) + ]], + uniform texture_2d Texture_8_ = texture_2d("./Textures/T_NYB_54.png",::tex::gamma_srgb) + [[ + anno::display_name("Texture (8)"), + anno::ui_order(32), + sampler_color() + ]], + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 WorldPositionOffset_mdl = float3(0.0,0.0,0.0); + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + + float3 Normal_mdl = float3(0.0,0.0,1.0); + + float4 Local0 = tex::lookup_float4(Texture_1_,float2(CustomizedUV0_mdl.x,1.0-CustomizedUV0_mdl.y),tex::wrap_repeat,tex::wrap_repeat); + float Local1 = (Specular_Level_5_ * Glossiness_2_); + float3 Local2 = (float3(Specular_4_.x,Specular_4_.y,Specular_4_.z) * Local1); + float3 Local3 = (float3(Local0.x,Local0.y,Local0.z) + Local2); + float Local4 = math::dot(float3(Local0.x,Local0.y,Local0.z), float3(0.3,0.59,0.11)); + float Local5 = (Local4 + -0.4); + float Local6 = (Local5 * -5.0); + float Local7 = math::min(math::max(Local6,0.0),1.0); + float Local8 = math::dot(Local2, float3(0.3,0.59,0.11)); + float Local9 = (Local4 + Local8); + float Local10 = (Local8 / Local9); + float Local11 = (Local10 - 0.5); + float Local12 = (Local11 * 4.0); + float Local13 = (Local12 + 0.5); + float Local14 = math::min(math::max(Local13,0.0),1.0); + float Local15 = (Local7 * Local14); + float3 Local16 = math::lerp(float3(Local0.x,Local0.y,Local0.z),Local3,Local15); + float Local17 = (Local8 * 12.5); + float Local18 = (1.0 - Glossiness_2_); + float4 Local19 = tex::lookup_float4(Texture_8_,float2(CustomizedUV0_mdl.x,1.0-CustomizedUV0_mdl.y),tex::wrap_repeat,tex::wrap_repeat); + float Local20 = math::dot(float3(Local19.x,Local19.y,Local19.z), float3(0.3,0.59,0.11)); + + float3 EmissiveColor_mdl = float3(0.0,0.0,0.0); + float Opacity_mdl = Local20; + float OpacityMask_mdl = (math::saturate(Local20) - 1.0f / 255.0f) < 0.0f ? 0.0f : 1.0f; + float3 BaseColor_mdl = Local16; + float Metallic_mdl = Local15; + float Specular_mdl = Local17; + float Roughness_mdl = Local18; + float3 Refraction_mdl = math::max(float3(1.0,0.0,0.0), 1.0f); + float SurfaceThickness_mdl = 0.01; + float Displacement_mdl = 0.0; + + } in + ::OmniUe4Translucent( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: Opacity_mdl, + opacity_mask: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + refraction: Refraction_mdl.x, + two_sided: false); diff --git a/Projects/Street/Materials/MI_NYB_17.mdl b/Projects/Street/Materials/MI_NYB_17.mdl new file mode 100644 index 0000000000000000000000000000000000000000..3f737fd78d7554bd7dff91938a177d63ebd2f184 --- /dev/null +++ b/Projects/Street/Materials/MI_NYB_17.mdl @@ -0,0 +1,93 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +import ::scene::*; +using .::OmniUe4Function import *; +using .::OmniUe4Base import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material MI_NYB_17( + uniform texture_2d Texture_1_ = texture_2d("./Textures/T_NYB_87.png",::tex::gamma_srgb) + [[ + anno::display_name("Texture (1)"), + anno::ui_order(32), + sampler_color() + ]], + float4 Specular_4_ = float4(0.9,0.9,0.9,1.0) + [[ + anno::display_name("Specular (4)"), + anno::ui_order(32) + ]], + float Specular_Level_5_ = 0.0 + [[ + anno::display_name("Specular_Level (5)"), + anno::ui_order(32) + ]], + float Glossiness_2_ = 0.1 + [[ + anno::display_name("Glossiness (2)"), + anno::ui_order(32) + ]], + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 WorldPositionOffset_mdl = float3(0.0,0.0,0.0); + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + + float3 Normal_mdl = float3(0.0,0.0,1.0); + + float4 Local0 = tex::lookup_float4(Texture_1_,float2(CustomizedUV0_mdl.x,1.0-CustomizedUV0_mdl.y),tex::wrap_repeat,tex::wrap_repeat); + float Local1 = (Specular_Level_5_ * Glossiness_2_); + float3 Local2 = (float3(Specular_4_.x,Specular_4_.y,Specular_4_.z) * Local1); + float3 Local3 = (float3(Local0.x,Local0.y,Local0.z) + Local2); + float Local4 = math::dot(float3(Local0.x,Local0.y,Local0.z), float3(0.3,0.59,0.11)); + float Local5 = (Local4 + -0.4); + float Local6 = (Local5 * -5.0); + float Local7 = math::min(math::max(Local6,0.0),1.0); + float Local8 = math::dot(Local2, float3(0.3,0.59,0.11)); + float Local9 = (Local4 + Local8); + float Local10 = (Local8 / Local9); + float Local11 = (Local10 - 0.5); + float Local12 = (Local11 * 4.0); + float Local13 = (Local12 + 0.5); + float Local14 = math::min(math::max(Local13,0.0),1.0); + float Local15 = (Local7 * Local14); + float3 Local16 = math::lerp(float3(Local0.x,Local0.y,Local0.z),Local3,Local15); + float Local17 = (Local8 * 12.5); + float Local18 = (1.0 - Glossiness_2_); + + float3 EmissiveColor_mdl = float3(0.0,0.0,0.0); + float OpacityMask_mdl = 1.0; + float3 BaseColor_mdl = Local16; + float Metallic_mdl = Local15; + float Specular_mdl = Local17; + float Roughness_mdl = Local18; + float SurfaceThickness_mdl = 0.01; + float Displacement_mdl = 0.0; + + } in + ::OmniUe4Base( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + two_sided: false); diff --git a/Projects/Street/Materials/MI_NYB_171.mdl b/Projects/Street/Materials/MI_NYB_171.mdl new file mode 100644 index 0000000000000000000000000000000000000000..7aec34331ad6a93ce5a7041ead64ecb9530cd51c --- /dev/null +++ b/Projects/Street/Materials/MI_NYB_171.mdl @@ -0,0 +1,226 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +import ::scene::*; +using .::OmniUe4Function import *; +using .::OmniUe4Translucent import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material MI_NYB_171( + float ReflectionFresnelPower = 3.972291 + [[ + anno::display_name("Reflection Fresnel Power"), + anno::description("(ENG) +Controls the power of the Fresnel effect on reflection. +(RUS) +????????? ????? ??????? ??????? ?? ?????????."), + anno::ui_order(32), + anno::in_group("Inner Reflection") + ]], + float GlassDepth = 6.0 + [[ + anno::display_name("Glass Depth"), + anno::ui_order(32), + anno::in_group("Inner Reflection"), + anno::soft_range(0.0, 10.0) + ]], + uniform texture_cube Cubemap = texture_cube("./Textures/HDR_Courtyard_Daylight.dds",::tex::gamma_linear) + [[ + anno::display_name("Cubemap"), + anno::description("(ENG) +Glass Inner Reflection cubemap. +Higher resolution maps will give higher quality reflections. +(RUS) +?ubemap ??? ??????????? ????????? ?? ??????. +????? ? ????? ??????? ??????????? ????? ?????? ????? ???????????? ?????????. "), + anno::ui_order(32), + anno::in_group("Inner Reflection"), + sampler_color() + ]], + float Reflection = 8.0 + [[ + anno::display_name("Reflection"), + anno::description("(ENG) +Brightness and intensity of reflection from Cubemap. +(RUS) +??????? ? ????????????? ????????? ?? Cubemap."), + anno::ui_order(32), + anno::in_group("Inner Reflection") + ]], + float ReflectionPower = 1.445675 + [[ + anno::display_name("Reflection Power"), + anno::description("(ENG) +Contrast reflection from Cubemap. +(RUS) +????????????? ????????? ?? Cubemap."), + anno::ui_order(32), + anno::in_group("Inner Reflection") + ]], + float FresnelMultiply = 0.0 + [[ + anno::display_name("Fresnel Multiply"), + anno::ui_order(32), + anno::in_group("Inner Reflection") + ]], + float ReflectionLerpA = 0.1 + [[ + anno::display_name("Reflection Lerp A"), + anno::description("(ENG) +Minimum value of fresnel reflection from linear Interpolation. +(RUS) +??????????? ???????? ????????? ??????? ?? ???????? ????????????."), + anno::ui_order(32), + anno::in_group("Inner Reflection") + ]], + float ReflectionLerpB = 1.413 + [[ + anno::display_name("Reflection Lerp B"), + anno::description("(ENG) +Maximum value of fresnel reflection from linear Interpolation. +(RUS) +???????????? ???????? ????????? ??????? ?? ???????? ????????????."), + anno::ui_order(32), + anno::in_group("Inner Reflection") + ]], + float4 GlassColorBlend = float4(0.0,0.5,0.5,0.0) + [[ + anno::display_name("Glass Color Blend"), + anno::ui_order(32), + anno::in_group("Color Correction") + ]], + float ColorBlendIntensity = 0.0 + [[ + anno::display_name("Color Blend Intensity"), + anno::ui_order(32), + anno::in_group("Color Correction"), + anno::soft_range(0.0, 1.0) + ]], + float Metallic = 0.0 + [[ + anno::display_name("Metallic"), + anno::ui_order(32), + anno::in_group("Properties") + ]], + float Specular = 0.85 + [[ + anno::display_name("Specular"), + anno::ui_order(32), + anno::in_group("Properties"), + anno::soft_range(0.0, 1.0) + ]], + float Roughness = 0.0 + [[ + anno::display_name("Roughness"), + anno::ui_order(32), + anno::in_group("Properties") + ]], + float TransparencyLerpA = 0.05 + [[ + anno::display_name("Transparency Lerp A"), + anno::description("(ENG) +The minimum value of Fresnel transparency. +(RUS) +??????????? ???????? ???????????? ?? ???????."), + anno::ui_order(32), + anno::in_group("Transparency") + ]], + float TransparencyLerpB = 0.25 + [[ + anno::display_name("Transparency Lerp B"), + anno::description("(ENG) +The maximum value of Fresnel transparency. +(RUS) +???????????? ???????? ???????????? ?? ???????."), + anno::ui_order(32), + anno::in_group("Transparency") + ]], + float TrasnparencyFresnelPower = 4.0 + [[ + anno::display_name("Trasnparency Fresnel Power"), + anno::description("(ENG) +Controls the power of the Fresnel effect on the Transparency. +(RUS) +????????? ???????? ??????? ??????? ?? ????????????."), + anno::ui_order(32), + anno::in_group("Transparency") + ]], + float Transparency = 5.95 + [[ + anno::display_name("Transparency"), + anno::description("(ENG) +The general value of transparency. +(RUS) +????? ???????? ????????????."), + anno::ui_order(32), + anno::in_group("Transparency") + ]]) + = + let { + float3 WorldPositionOffset_mdl = float3(0.0,0.0,0.0); + + + float3 Normal_mdl = float3(0.0,0.0,1.0); + + float3 Local0 = math::normalize(::vertex_normal_world_space(true)); + float Local1 = math::dot(::camera_vector(true), Local0); + float3 Local2 = (Local1 * Local0); + float3 Local3 = (Local2 * 2.0); + float3 Local4 = (Local3 - ::camera_vector(true)); + float Local5 = ::fresnel_function(::vertex_normal_world_space(true), ::camera_vector(true), false, ReflectionFresnelPower, false, 0.0, 1.0, true); + float3 Local6 = (Local5 * ::pixel_normal_world_space(true)); + float Local7 = (1.0 - GlassDepth); + float3 Local8 = (Local6 * Local7); + float3 Local9 = (Local4 + Local8); + float4 Local10 = tex::lookup_float4(Cubemap,Local9); + float3 Local11 = (float3(Local10.x,Local10.y,Local10.z) * Reflection); + float3 Local12 = math::pow(math::max(Local11,float3(0.000001)),float3(ReflectionPower,ReflectionPower,ReflectionPower)); + float Local13 = (0.0 - FresnelMultiply); + float Local14 = (FresnelMultiply + 1.0); + float Local15 = math::lerp(ReflectionLerpA,ReflectionLerpB,Local5); + float Local16 = math::lerp(Local13,Local14,Local15); + float Local17 = math::min(math::max(Local16,0.0),1.0); + float Local18 = math::min(math::max(Local17,0.0),1.0); + float3 Local19 = math::lerp(Local12,float3(0.0,0.0,0.0),Local18); + float3 Local20 = (Local19 * Local18); + float3 Local21 = (Local20 * float3(GlassColorBlend.x,GlassColorBlend.y,GlassColorBlend.z)); + float3 Local22 = math::lerp(Local20,Local21,ColorBlendIntensity); + float Local23 = ::fresnel_function(::vertex_normal_world_space(true), ::camera_vector(true), false, TrasnparencyFresnelPower, false, 0.0, 1.0, true); + float Local24 = math::lerp(TransparencyLerpA,TransparencyLerpB,Local23); + float Local25 = (Local24 * Transparency); + + float3 EmissiveColor_mdl = float3(0.0,0.0,0.0); + float Opacity_mdl = Local25; + float OpacityMask_mdl = (math::saturate(Local25) - 1.0f / 255.0f) < 0.0f ? 0.0f : 1.0f; + float3 BaseColor_mdl = Local22; + float Metallic_mdl = Metallic; + float Specular_mdl = Specular; + float Roughness_mdl = Roughness; + float3 Refraction_mdl = 1.491; + float SurfaceThickness_mdl = 0.01; + float Displacement_mdl = 0.0; + + } in + ::OmniUe4Translucent( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: Opacity_mdl, + opacity_mask: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + refraction: Refraction_mdl.x, + two_sided: false); diff --git a/Projects/Street/Materials/MI_NYB_175.mdl b/Projects/Street/Materials/MI_NYB_175.mdl new file mode 100644 index 0000000000000000000000000000000000000000..0e2c0d03a7fa36ae2144ba90a86041f20a678973 --- /dev/null +++ b/Projects/Street/Materials/MI_NYB_175.mdl @@ -0,0 +1,86 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +import ::scene::*; +using .::OmniUe4Function import *; +using .::OmniUe4Base import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material MI_NYB_175( + float4 Diffuse_Color_1_ = float4(0.588,0.588,0.588,1.0) + [[ + anno::display_name("Diffuse_Color (1)"), + anno::ui_order(32) + ]], + float4 Specular_4_ = float4(0.9,0.9,0.9,1.0) + [[ + anno::display_name("Specular (4)"), + anno::ui_order(32) + ]], + float Specular_Level_5_ = 0.0 + [[ + anno::display_name("Specular_Level (5)"), + anno::ui_order(32) + ]], + float Glossiness_2_ = 0.1 + [[ + anno::display_name("Glossiness (2)"), + anno::ui_order(32) + ]]) + = + let { + float3 WorldPositionOffset_mdl = float3(0.0,0.0,0.0); + + + float3 Normal_mdl = float3(0.0,0.0,1.0); + + float Local0 = (Specular_Level_5_ * Glossiness_2_); + float3 Local1 = (float3(Specular_4_.x,Specular_4_.y,Specular_4_.z) * Local0); + float3 Local2 = (float3(Diffuse_Color_1_.x,Diffuse_Color_1_.y,Diffuse_Color_1_.z) + Local1); + float Local3 = math::dot(float3(Diffuse_Color_1_.x,Diffuse_Color_1_.y,Diffuse_Color_1_.z), float3(0.3,0.59,0.11)); + float Local4 = (Local3 + -0.4); + float Local5 = (Local4 * -5.0); + float Local6 = math::min(math::max(Local5,0.0),1.0); + float Local7 = math::dot(Local1, float3(0.3,0.59,0.11)); + float Local8 = (Local3 + Local7); + float Local9 = (Local7 / Local8); + float Local10 = (Local9 - 0.5); + float Local11 = (Local10 * 4.0); + float Local12 = (Local11 + 0.5); + float Local13 = math::min(math::max(Local12,0.0),1.0); + float Local14 = (Local6 * Local13); + float3 Local15 = math::lerp(float3(Diffuse_Color_1_.x,Diffuse_Color_1_.y,Diffuse_Color_1_.z),Local2,Local14); + float Local16 = (Local7 * 12.5); + float Local17 = (1.0 - Glossiness_2_); + + float3 EmissiveColor_mdl = float3(0.0,0.0,0.0); + float OpacityMask_mdl = 1.0; + float3 BaseColor_mdl = Local15; + float Metallic_mdl = Local14; + float Specular_mdl = Local16; + float Roughness_mdl = Local17; + float SurfaceThickness_mdl = 0.01; + float Displacement_mdl = 0.0; + + } in + ::OmniUe4Base( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + two_sided: false); diff --git a/Projects/Street/Materials/MI_NYB_58.mdl b/Projects/Street/Materials/MI_NYB_58.mdl new file mode 100644 index 0000000000000000000000000000000000000000..a8b72b9d0d2c17b95fe112db134fa81f0993f737 --- /dev/null +++ b/Projects/Street/Materials/MI_NYB_58.mdl @@ -0,0 +1,124 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +import ::scene::*; +using .::OmniUe4Function import *; +using .::OmniUe4Base import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material MI_NYB_58( + uniform texture_2d Bump_Map_8_ = texture_2d("./Textures/T_NYB_128.png",::tex::gamma_srgb) + [[ + anno::display_name("Bump_Map (8)"), + anno::ui_order(32), + sampler_color() + ]], + float Normal_Intensity_14_ = 0.3 + [[ + anno::display_name("Normal_Intensity (14)"), + anno::ui_order(32) + ]], + uniform texture_2d Texture_1_ = texture_2d("./Textures/T_NYB_128.png",::tex::gamma_srgb) + [[ + anno::display_name("Texture (1)"), + anno::ui_order(32), + sampler_color() + ]], + float4 Specular_4_ = float4(0.9,0.9,0.9,1.0) + [[ + anno::display_name("Specular (4)"), + anno::ui_order(32) + ]], + float Specular_Level_5_ = 0.0 + [[ + anno::display_name("Specular_Level (5)"), + anno::ui_order(32) + ]], + float Glossiness_2_ = 0.1 + [[ + anno::display_name("Glossiness (2)"), + anno::ui_order(32) + ]], + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 WorldPositionOffset_mdl = float3(0.0,0.0,0.0); + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + float2 Local0 = (float2(0.001,0.0) + CustomizedUV0_mdl); + float4 Local1 = tex::lookup_float4(Bump_Map_8_,float2(Local0.x,1.0-Local0.y),tex::wrap_repeat,tex::wrap_repeat); + float Local2 = math::dot(float4(float3(Local1.x,Local1.y,Local1.z).x,float3(Local1.x,Local1.y,Local1.z).y,float3(Local1.x,Local1.y,Local1.z).z,Local1.w), float4(1.0,0.0,0.0,0.0)); + float4 Local3 = tex::lookup_float4(Bump_Map_8_,float2(CustomizedUV0_mdl.x,1.0-CustomizedUV0_mdl.y),tex::wrap_repeat,tex::wrap_repeat); + float Local4 = math::dot(float4(float3(Local3.x,Local3.y,Local3.z).x,float3(Local3.x,Local3.y,Local3.z).y,float3(Local3.x,Local3.y,Local3.z).z,Local3.w), float4(1.0,0.0,0.0,0.0)); + float Local5 = (Local2 - Local4); + float Local6 = (Local5 * 8.0); + float2 Local7 = (CustomizedUV0_mdl + float2(0.0,0.001)); + float4 Local8 = tex::lookup_float4(Bump_Map_8_,float2(Local7.x,1.0-Local7.y),tex::wrap_repeat,tex::wrap_repeat); + float Local9 = math::dot(float4(float3(Local8.x,Local8.y,Local8.z).x,float3(Local8.x,Local8.y,Local8.z).y,float3(Local8.x,Local8.y,Local8.z).z,Local8.w), float4(1.0,0.0,0.0,0.0)); + float Local10 = (Local9 - Local4); + float Local11 = (8.0 * Local10); + float3 Local12 = math::cross(float3(float2(1.0,0.0).x,float2(1.0,0.0).y,Local6),float3(float2(0.0,1.0).x,float2(0.0,1.0).y,Local11)); + float3 Local13 = (1.0 - Local12); + float Local14 = (Local13.x * Normal_Intensity_14_); + float Local15 = (Local13.y * Normal_Intensity_14_); + float Local16 = math::dot(float2(Local14,Local15), float2(Local14,Local15)); + float Local17 = (1.0 - Local16); + float Local18 = math::saturate(Local17); + float Local19 = math::sqrt(Local18); + + float3 Normal_mdl = float3(float2(Local14,Local15).x,float2(Local14,Local15).y,Local19); + + float4 Local20 = tex::lookup_float4(Texture_1_,float2(CustomizedUV0_mdl.x,1.0-CustomizedUV0_mdl.y),tex::wrap_repeat,tex::wrap_repeat); + float Local21 = (Specular_Level_5_ * Glossiness_2_); + float3 Local22 = (float3(Specular_4_.x,Specular_4_.y,Specular_4_.z) * Local21); + float3 Local23 = (float3(Local20.x,Local20.y,Local20.z) + Local22); + float Local24 = math::dot(float3(Local20.x,Local20.y,Local20.z), float3(0.3,0.59,0.11)); + float Local25 = (Local24 + -0.4); + float Local26 = (Local25 * -5.0); + float Local27 = math::min(math::max(Local26,0.0),1.0); + float Local28 = math::dot(Local22, float3(0.3,0.59,0.11)); + float Local29 = (Local24 + Local28); + float Local30 = (Local28 / Local29); + float Local31 = (Local30 - 0.5); + float Local32 = (Local31 * 4.0); + float Local33 = (Local32 + 0.5); + float Local34 = math::min(math::max(Local33,0.0),1.0); + float Local35 = (Local27 * Local34); + float3 Local36 = math::lerp(float3(Local20.x,Local20.y,Local20.z),Local23,Local35); + float Local37 = (Local28 * 12.5); + float Local38 = (1.0 - Glossiness_2_); + + float3 EmissiveColor_mdl = float3(0.0,0.0,0.0); + float OpacityMask_mdl = 1.0; + float3 BaseColor_mdl = Local36; + float Metallic_mdl = Local35; + float Specular_mdl = Local37; + float Roughness_mdl = Local38; + float SurfaceThickness_mdl = 0.01; + float Displacement_mdl = 0.0; + + } in + ::OmniUe4Base( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + two_sided: false); diff --git a/Projects/Street/Materials/MI_NYB_64.mdl b/Projects/Street/Materials/MI_NYB_64.mdl new file mode 100644 index 0000000000000000000000000000000000000000..3fca12f7d00a2df04f3f57d36d9c93e9a78d1ca4 --- /dev/null +++ b/Projects/Street/Materials/MI_NYB_64.mdl @@ -0,0 +1,125 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +import ::scene::*; +using .::OmniUe4Function import *; +using .::OmniUe4Base import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material MI_NYB_64( + float4 UV_Offset_7_ = float4(0.25,-0.5,0.0,1.0) + [[ + anno::display_name("UV_Offset (7)"), + anno::ui_order(32) + ]], + float4 Tiling_Pivot_8_ = float4(0.0,0.5,0.0,1.0) + [[ + anno::display_name("Tiling_Pivot (8)"), + anno::ui_order(32) + ]], + float4 UV_Tiling_6_ = float4(1.0,1.0,0.0,1.0) + [[ + anno::display_name("UV_Tiling (6)"), + anno::ui_order(32) + ]], + uniform texture_2d Texture_1_ = texture_2d("./Textures/T_NYB_39.png",::tex::gamma_srgb) + [[ + anno::display_name("Texture (1)"), + anno::ui_order(32), + sampler_color() + ]], + float4 Specular_11_ = float4(0.9,0.9,0.9,1.0) + [[ + anno::display_name("Specular (11)"), + anno::ui_order(32) + ]], + float Specular_Level_12_ = 0.0 + [[ + anno::display_name("Specular_Level (12)"), + anno::ui_order(32) + ]], + float Glossiness_9_ = 0.1 + [[ + anno::display_name("Glossiness (9)"), + anno::ui_order(32) + ]], + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 WorldPositionOffset_mdl = float3(0.0,0.0,0.0); + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + + float3 Normal_mdl = float3(0.0,0.0,1.0); + + float2 Local0 = (float2(0.5,0.5) * -1.0); + float2 Local1 = (CustomizedUV0_mdl * float2(2.5,2.0)); + float2 Local2 = (Local0 + Local1); + float Local3 = (0.0 * 6.283185); + float Local4 = math::cos(Local3); + float Local5 = math::sin(Local3); + float Local6 = (Local5 * -1.0); + float Local7 = math::dot(Local2, float2(Local4,Local6)); + float Local8 = math::dot(Local2, float2(Local5,Local4)); + float2 Local9 = (float2(0.5,0.5) + float2(Local7,Local8)); + float2 Local10 = (float2(float3(UV_Offset_7_.x,UV_Offset_7_.y,UV_Offset_7_.z).x,float3(UV_Offset_7_.x,UV_Offset_7_.y,UV_Offset_7_.z).y) + Local9); + float Local11 = (Local10.x - float2(float3(Tiling_Pivot_8_.x,Tiling_Pivot_8_.y,Tiling_Pivot_8_.z).x,float3(Tiling_Pivot_8_.x,Tiling_Pivot_8_.y,Tiling_Pivot_8_.z).y).x); + float Local12 = (Local11 * float2(float3(UV_Tiling_6_.x,UV_Tiling_6_.y,UV_Tiling_6_.z).x,float3(UV_Tiling_6_.x,UV_Tiling_6_.y,UV_Tiling_6_.z).y).x); + float Local13 = (Local12 + float2(float3(Tiling_Pivot_8_.x,Tiling_Pivot_8_.y,Tiling_Pivot_8_.z).x,float3(Tiling_Pivot_8_.x,Tiling_Pivot_8_.y,Tiling_Pivot_8_.z).y).x); + float Local14 = (Local10.y - float2(float3(Tiling_Pivot_8_.x,Tiling_Pivot_8_.y,Tiling_Pivot_8_.z).x,float3(Tiling_Pivot_8_.x,Tiling_Pivot_8_.y,Tiling_Pivot_8_.z).y).y); + float Local15 = (Local14 * float2(float3(UV_Tiling_6_.x,UV_Tiling_6_.y,UV_Tiling_6_.z).x,float3(UV_Tiling_6_.x,UV_Tiling_6_.y,UV_Tiling_6_.z).y).y); + float Local16 = (Local15 + float2(float3(Tiling_Pivot_8_.x,Tiling_Pivot_8_.y,Tiling_Pivot_8_.z).x,float3(Tiling_Pivot_8_.x,Tiling_Pivot_8_.y,Tiling_Pivot_8_.z).y).y); + float4 Local17 = tex::lookup_float4(Texture_1_,float2(float2(Local13,Local16).x,1.0-float2(Local13,Local16).y),tex::wrap_repeat,tex::wrap_repeat); + float Local18 = (Specular_Level_12_ * Glossiness_9_); + float3 Local19 = (float3(Specular_11_.x,Specular_11_.y,Specular_11_.z) * Local18); + float3 Local20 = (float3(Local17.x,Local17.y,Local17.z) + Local19); + float Local21 = math::dot(float3(Local17.x,Local17.y,Local17.z), float3(0.3,0.59,0.11)); + float Local22 = (Local21 + -0.4); + float Local23 = (Local22 * -5.0); + float Local24 = math::min(math::max(Local23,0.0),1.0); + float Local25 = math::dot(Local19, float3(0.3,0.59,0.11)); + float Local26 = (Local21 + Local25); + float Local27 = (Local25 / Local26); + float Local28 = (Local27 - 0.5); + float Local29 = (Local28 * 4.0); + float Local30 = (Local29 + 0.5); + float Local31 = math::min(math::max(Local30,0.0),1.0); + float Local32 = (Local24 * Local31); + float3 Local33 = math::lerp(float3(Local17.x,Local17.y,Local17.z),Local20,Local32); + float Local34 = (Local25 * 12.5); + float Local35 = (1.0 - Glossiness_9_); + + float3 EmissiveColor_mdl = float3(0.0,0.0,0.0); + float OpacityMask_mdl = 1.0; + float3 BaseColor_mdl = Local33; + float Metallic_mdl = Local32; + float Specular_mdl = Local34; + float Roughness_mdl = Local35; + float SurfaceThickness_mdl = 0.01; + float Displacement_mdl = 0.0; + + } in + ::OmniUe4Base( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + two_sided: false); diff --git a/Projects/Street/Materials/OmniUe4Base.mdl b/Projects/Street/Materials/OmniUe4Base.mdl new file mode 100644 index 0000000000000000000000000000000000000000..a441fbaf28040302c7aaabfbcf14b24a85bdf643 --- /dev/null +++ b/Projects/Street/Materials/OmniUe4Base.mdl @@ -0,0 +1,224 @@ +/*************************************************************************************************** + * Copyright 2020 NVIDIA Corporation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * 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. + * * Neither the name of NVIDIA CORPORATION 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 ``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 OWNER 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. + **************************************************************************************************/ + +//* 1.0.0 - first version +//* 1.0.1 - merge unlit template +//* 1.0.2 - Fix EDF in the back side: the EDF contained in surface is only used for the front side and not for the back side +//* 1.0.3 - UE4 normal mapping: Geometry normal shouldn't be changed +//* 1.0.4 - using absolute import paths when importing standard modules + +mdl 1.3; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::tex::*; +import ::anno::*; + +float emissive_multiplier() +[[ + anno::description("the multiplier to convert UE4 emissive to raw data"), + anno::noinline() +]] +{ + return 20.0f * 128.0f; +} + +float3 tangent_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in tangent space"), + anno::noinline() +]] +{ + return math::normalize( + tangent_u * normal.x - /* flip_tangent_v */ + tangent_v * normal.y + + state::normal() * (normal.z)); +} + +float3 world_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in world space"), + anno::noinline() +]] +{ + return tangent_space_normal( + math::normalize( + normal.x * float3(tangent_u.x, tangent_v.x, state::normal().x) - + normal.y * float3(tangent_u.y, tangent_v.y, state::normal().y) + + normal.z * float3(tangent_u.z, tangent_v.z, state::normal().z)), + tangent_u, + tangent_v + ); +} + +export material OmniUe4Base( + float3 base_color = float3(0.0, 0.0, 0.0), + float metallic = 0.0, + float roughness = 0.5, + float specular = 0.5, + float3 normal = float3(0.0,0.0,1.0), + float clearcoat_weight = 0.0, + float clearcoat_roughness = 0.0, + float3 clearcoat_normal = float3(0.0,0.0,1.0), + uniform bool enable_opacity = true, + float opacity = 1.0, + float3 emissive_color = float3(0.0, 0.0, 0.0), + float3 displacement = float3(0.0), + uniform bool is_tangent_space_normal = true, + uniform bool two_sided = false, + uniform bool is_unlit = false +) +[[ + anno::display_name("Omni UE4 Base"), + anno::description("Omni UE4 Base, supports UE4 default lit and clearcoat shading model"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("omni", "UE4", "omniverse", "lit", "clearcoat", "generic")) +]] + = let { + color final_base_color = math::saturate(base_color); + float final_metallic = math::saturate(metallic); + float final_roughness = math::saturate(roughness); + float final_specular = math::saturate(specular); + color final_emissive_color = math::max(emissive_color, 0.0f) * emissive_multiplier(); /*factor for converting ue4 emissive to raw value*/ + float final_clearcoat_weight = math::saturate(clearcoat_weight); + float final_clearcoat_roughness = math::saturate(clearcoat_roughness); + float3 final_normal = math::normalize(normal); + float3 final_clearcoat_normal = math::normalize(clearcoat_normal); + + // - compute final roughness by squaring the "roughness" parameter + float alpha = final_roughness * final_roughness; + // reduce the reflectivity at grazing angles to avoid "dark edges" for high roughness due to the layering + float grazing_refl = math::max((1.0 - final_roughness), 0.0); + + float3 the_normal = is_unlit ? state::normal() : + (is_tangent_space_normal ? + tangent_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ) : world_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + )); + + // for the dielectric component we layer the glossy component on top of the diffuse one, + // the glossy layer has no color tint + + bsdf dielectric_component = df::custom_curve_layer( + weight: final_specular, + normal_reflectivity: 0.08, + grazing_reflectivity: grazing_refl, + layer: df::microfacet_ggx_smith_bsdf(roughness_u: alpha), + base: df::diffuse_reflection_bsdf(tint: final_base_color), + normal: the_normal); + + // the metallic component doesn't have a diffuse component, it's only glossy + // base_color is applied to tint it + bsdf metallic_component = df::microfacet_ggx_smith_bsdf(tint: final_base_color, roughness_u: alpha); + + // final BSDF is a linear blend between dielectric and metallic component + bsdf dielectric_metal_mix = + df::normalized_mix( + components: + df::bsdf_component[]( + df::bsdf_component( + component: metallic_component, + weight: final_metallic), + df::bsdf_component( + component: dielectric_component, + weight: 1.0-final_metallic) + ) + ); + + // clearcoat layer + float clearcoat_grazing_refl = math::max((1.0 - final_clearcoat_roughness), 0.0); + float clearcoat_alpha = final_clearcoat_roughness * final_clearcoat_roughness; + + float3 the_clearcoat_normal = is_tangent_space_normal ? tangent_space_normal( + normal: final_clearcoat_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ) : world_space_normal( + normal: final_clearcoat_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ); + + + bsdf clearcoat = + df::custom_curve_layer( + base: df::weighted_layer( + layer: dielectric_metal_mix, + weight: 1.0, + normal: final_clearcoat_weight == 0.0 ? state::normal() : the_normal + ), + layer: df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_alpha, + tint: color(1.0) + ), + normal_reflectivity: 0.04, + grazing_reflectivity: clearcoat_grazing_refl, + normal: the_clearcoat_normal, + weight: final_clearcoat_weight + ); + bsdf surface = is_unlit ? bsdf() : clearcoat; +} +in material( + thin_walled: two_sided, // Graphene? + surface: material_surface( + scattering: surface, + emission: + material_emission ( + emission: df::diffuse_edf (), + intensity: final_emissive_color + ) + ), + backface: material_surface( + emission: + material_emission ( + emission: df::diffuse_edf (), + intensity: final_emissive_color + ) + ), + geometry: material_geometry( + displacement: displacement, + normal: final_clearcoat_weight == 0.0 ? the_normal : state::normal(), + cutout_opacity: enable_opacity ? opacity : 1.0 + ) +); diff --git a/Projects/Street/Materials/OmniUe4Function.mdl b/Projects/Street/Materials/OmniUe4Function.mdl new file mode 100644 index 0000000000000000000000000000000000000000..84f4f0da48ff31d03ee611373fe3a4d2e04c9079 --- /dev/null +++ b/Projects/Street/Materials/OmniUe4Function.mdl @@ -0,0 +1,1413 @@ +/*************************************************************************************************** + * Copyright 2020 NVIDIA Corporation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * 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. + * * Neither the name of NVIDIA CORPORATION 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 ``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 OWNER 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. + **************************************************************************************************/ + +//* 1.0.1 - using absolute import paths when importing standard modules + +mdl 1.6; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::tex::*; +import ::anno::*; + + +export float3 convert_to_left_hand(float3 vec3, uniform bool up_z = true, uniform bool is_position = true) +[[ + anno::description("convert from RH to LH"), + anno::noinline() +]] +{ + float4x4 ZupConversion = float4x4( + 1.0f, 0.0f, 0.0f, 0.0f, + 0.0f, -1.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 1.0f, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f + ); + + float4x4 YupConversion = float4x4( + 1.0f, 0.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 1.0f, 0.0f, + 0.0f, 1.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f + ); + + float4 vec4 = float4(vec3.x, vec3.y, vec3.z, is_position ? 1.0f : 0.0f); + + vec4 = vec4 * (up_z ? ZupConversion : YupConversion); + + return float3(vec4.x, vec4.y, vec4.z); +} + +export float3 transform_vector_from_tangent_to_world(float3 vector, + uniform bool up_z = true, + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0)) +[[ + anno::description("Transform vector from tangent space to world space"), + anno::noinline() +]] +{ + /* flip_tangent_v */ + return convert_to_left_hand( + tangent_u * vector.x - tangent_v * vector.y + state::normal() * vector.z, + up_z, false); +} + +export float3 transform_vector_from_world_to_tangent(float3 vector, + uniform bool up_z = true, + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0)) +[[ + anno::description("Transform vector from world space to tangent space"), + anno::noinline() +]] +{ + float3 vecRH = convert_to_left_hand(vector, up_z, false); + /* flip_tangent_v */ + return vecRH.x * float3(tangent_u.x, -tangent_v.x, state::normal().x) + + vecRH.y * float3(tangent_u.y, -tangent_v.y, state::normal().y) + + vecRH.z * float3(tangent_u.z, -tangent_v.z, state::normal().z); +} + +export float4 unpack_normal_map( + float4 texture_sample = float4(0.0, 0.0, 1.0, 1.0) + ) +[[ + anno::description("Unpack a normal stored in a normal map"), + anno::noinline() +]] +{ + float2 normal_xy = float2(texture_sample.x, texture_sample.y); + + normal_xy = normal_xy * float2(2.0,2.0) - float2(1.0,1.0); + float normal_z = math::sqrt( math::saturate( 1.0 - math::dot( normal_xy, normal_xy ) ) ); + return float4( normal_xy.x, normal_xy.y, normal_z, 1.0 ); +} + +// for get color value from normal. +export float4 pack_normal_map( + float4 texture_sample = float4(0.0, 0.0, 1.0, 1.0) + ) +[[ + anno::description("Pack to color from a normal") +]] +{ + float2 return_xy = float2(texture_sample.x, texture_sample.y); + + return_xy = (return_xy + float2(1.0,1.0)) / float2(2.0,2.0); + + return float4( return_xy.x, return_xy.y, 0.0, 1.0 ); +} + +export float4 greyscale_texture_lookup( + float4 texture_sample = float4(0.0, 0.0, 0.0, 1.0) + ) +[[ + anno::description("Sampling a greyscale texture"), + anno::noinline() +]] +{ + return float4(texture_sample.x, texture_sample.x, texture_sample.x, texture_sample.x); +} + +export float3 pixel_normal_world_space(uniform bool up_z = true) +[[ + anno::description("Pixel normal in world space"), + anno::noinline() +]] +{ + return convert_to_left_hand(state::transform_normal(state::coordinate_internal,state::coordinate_world,state::normal()), up_z, false); +} + +export float3 vertex_normal_world_space(uniform bool up_z = true) +[[ + anno::description("Vertex normal in world space"), + anno::noinline() +]] +{ + return convert_to_left_hand(state::transform_normal(state::coordinate_internal,state::coordinate_world,state::normal()), up_z, false); +} + +export float3 landscape_normal_world_space(uniform bool up_z = true) +[[ + anno::description("Landscape normal in world space") +]] +{ + float3 normalFromNormalmap = math::floor((::vertex_normal_world_space(up_z) * 0.5 + 0.5) * 255.0) / 255.0 * 2.0 - 1.0; + + float2 normalXY = float2(normalFromNormalmap.x, normalFromNormalmap.y); + return float3(normalXY.x, normalXY.y, math::sqrt(math::saturate(1.0 - math::dot(normalXY, normalXY)))); +} + +// Different implementation specific between mdl and hlsl for smoothstep +export float smoothstep(float a, float b, float l) +{ + if (a < b) + { + return math::smoothstep(a, b, l); + } + else if (a > b) + { + return 1.0 - math::smoothstep(b, a, l); + } + else + { + return l <= a ? 0.0 : 1.0; + } +} + +export float2 smoothstep(float2 a, float2 b, float2 l) +{ + return float2(smoothstep(a.x, b.x, l.x), smoothstep(a.y, b.y, l.y)); +} + +export float3 smoothstep(float3 a, float3 b, float3 l) +{ + return float3(smoothstep(a.x, b.x, l.x), smoothstep(a.y, b.y, l.y), smoothstep(a.z, b.z, l.z)); +} + +export float4 smoothstep(float4 a, float4 b, float4 l) +{ + return float4(smoothstep(a.x, b.x, l.x), smoothstep(a.y, b.y, l.y), smoothstep(a.z, b.z, l.z), smoothstep(a.w, b.w, l.w)); +} + +export float2 smoothstep(float2 a, float2 b, float l) +{ + return float2(smoothstep(a.x, b.x, l), smoothstep(a.y, b.y, l)); +} + +export float3 smoothstep(float3 a, float3 b, float l) +{ + return float3(smoothstep(a.x, b.x, l), smoothstep(a.y, b.y, l), smoothstep(a.z, b.z, l)); +} + +export float4 smoothstep(float4 a, float4 b, float l) +{ + return float4(smoothstep(a.x, b.x, l), smoothstep(a.y, b.y, l), smoothstep(a.z, b.z, l), smoothstep(a.w, b.w, l)); +} + +export float2 smoothstep(float a, float b, float2 l) +{ + return float2(smoothstep(a, b, l.x), smoothstep(a, b, l.y)); +} + +export float3 smoothstep(float a, float b, float3 l) +{ + return float3(smoothstep(a, b, l.x), smoothstep(a, b, l.y), smoothstep(a, b, l.z)); +} + +export float4 smoothstep(float a, float b, float4 l) +{ + return float4(smoothstep(a, b, l.x), smoothstep(a, b, l.y), smoothstep(a, b, l.z), smoothstep(a, b, l.w)); +} + +//------------------ Random from UE4 ----------------------- +float length2(float3 v) +{ + return math::dot(v, v); +} + +float3 GetPerlinNoiseGradientTextureAt(uniform texture_2d PerlinNoiseGradientTexture, float3 v) +{ + const float2 ZShear = float2(17.0f, 89.0f); + + float2 OffsetA = v.z * ZShear; + float2 TexA = (float2(v.x, v.y) + OffsetA + 0.5f) / 128.0f; + float4 PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA.x,1.0-TexA.y),tex::wrap_repeat,tex::wrap_repeat); + return float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z) * 2.0 - 1.0; +} + +float3 SkewSimplex(float3 In) +{ + return In + math::dot(In, float3(1.0 / 3.0f) ); +} +float3 UnSkewSimplex(float3 In) +{ + return In - math::dot(In, float3(1.0 / 6.0f) ); +} + +// 3D random number generator inspired by PCGs (permuted congruential generator) +// Using a **simple** Feistel cipher in place of the usual xor shift permutation step +// @param v = 3D integer coordinate +// @return three elements w/ 16 random bits each (0-0xffff). +// ~8 ALU operations for result.x (7 mad, 1 >>) +// ~10 ALU operations for result.xy (8 mad, 2 >>) +// ~12 ALU operations for result.xyz (9 mad, 3 >>) + +//TODO: uint3 +int3 Rand3DPCG16(int3 p) +{ + // taking a signed int then reinterpreting as unsigned gives good behavior for negatives + //TODO: uint3 + int3 v = int3(p); + + // Linear congruential step. These LCG constants are from Numerical Recipies + // For additional #'s, PCG would do multiple LCG steps and scramble each on output + // So v here is the RNG state + v = v * 1664525 + 1013904223; + + // PCG uses xorshift for the final shuffle, but it is expensive (and cheap + // versions of xorshift have visible artifacts). Instead, use simple MAD Feistel steps + // + // Feistel ciphers divide the state into separate parts (usually by bits) + // then apply a series of permutation steps one part at a time. The permutations + // use a reversible operation (usually ^) to part being updated with the result of + // a permutation function on the other parts and the key. + // + // In this case, I'm using v.x, v.y and v.z as the parts, using + instead of ^ for + // the combination function, and just multiplying the other two parts (no key) for + // the permutation function. + // + // That gives a simple mad per round. + v.x += v.y*v.z; + v.y += v.z*v.x; + v.z += v.x*v.y; + v.x += v.y*v.z; + v.y += v.z*v.x; + v.z += v.x*v.y; + + // only top 16 bits are well shuffled + return v >> 16; +} + +// Wraps noise for tiling texture creation +// @param v = unwrapped texture parameter +// @param bTiling = true to tile, false to not tile +// @param RepeatSize = number of units before repeating +// @return either original or wrapped coord +float3 NoiseTileWrap(float3 v, bool bTiling, float RepeatSize) +{ + return bTiling ? (math::frac(v / RepeatSize) * RepeatSize) : v; +} + +// Evaluate polynomial to get smooth transitions for Perlin noise +// only needed by Perlin functions in this file +// scalar(per component): 2 add, 5 mul +float4 PerlinRamp(float4 t) +{ + return t * t * t * (t * (t * 6 - 15) + 10); +} + +// Blum-Blum-Shub-inspired pseudo random number generator +// http://www.umbc.edu/~olano/papers/mNoise.pdf +// real BBS uses ((s*s) mod M) with bignums and M as the product of two huge Blum primes +// instead, we use a single prime M just small enough not to overflow +// note that the above paper used 61, which fits in a half, but is unusably bad +// @param Integer valued floating point seed +// @return random number in range [0,1) +// ~8 ALU operations (5 *, 3 frac) +float RandBBSfloat(float seed) +{ + float BBS_PRIME24 = 4093.0; + float s = math::frac(seed / BBS_PRIME24); + s = math::frac(s * s * BBS_PRIME24); + s = math::frac(s * s * BBS_PRIME24); + return s; +} + +// Modified noise gradient term +// @param seed - random seed for integer lattice position +// @param offset - [-1,1] offset of evaluation point from lattice point +// @return gradient direction (xyz) and contribution (w) from this lattice point +float4 MGradient(int seed, float3 offset) +{ + //TODO uint + int rand = Rand3DPCG16(int3(seed,0,0)).x; + int3 MGradientMask = int3(0x8000, 0x4000, 0x2000); + float3 MGradientScale = float3(1.0 / 0x4000, 1.0 / 0x2000, 1.0 / 0x1000); + float3 direction = float3(int3(rand, rand, rand) & MGradientMask) * MGradientScale - 1; + return float4(direction.x, direction.y, direction.z, math::dot(direction, offset)); +} + +// compute Perlin and related noise corner seed values +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = true to return seed values for a repeating noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @param seed000-seed111 = hash function seeds for the eight corners +// @return fractional part of v +struct SeedValue +{ + float3 fv = float3(0); + float seed000 = 0; + float seed001 = 0; + float seed010 = 0; + float seed011 = 0; + float seed100 = 0; + float seed101 = 0; + float seed110 = 0; + float seed111 = 0; +}; + +SeedValue NoiseSeeds(float3 v, bool bTiling, float RepeatSize) +{ + SeedValue seeds; + seeds.fv = math::frac(v); + float3 iv = math::floor(v); + + const float3 primes = float3(19, 47, 101); + + if (bTiling) + { // can't algebraically combine with primes + seeds.seed000 = math::dot(primes, NoiseTileWrap(iv, true, RepeatSize)); + seeds.seed100 = math::dot(primes, NoiseTileWrap(iv + float3(1, 0, 0), true, RepeatSize)); + seeds.seed010 = math::dot(primes, NoiseTileWrap(iv + float3(0, 1, 0), true, RepeatSize)); + seeds.seed110 = math::dot(primes, NoiseTileWrap(iv + float3(1, 1, 0), true, RepeatSize)); + seeds.seed001 = math::dot(primes, NoiseTileWrap(iv + float3(0, 0, 1), true, RepeatSize)); + seeds.seed101 = math::dot(primes, NoiseTileWrap(iv + float3(1, 0, 1), true, RepeatSize)); + seeds.seed011 = math::dot(primes, NoiseTileWrap(iv + float3(0, 1, 1), true, RepeatSize)); + seeds.seed111 = math::dot(primes, NoiseTileWrap(iv + float3(1, 1, 1), true, RepeatSize)); + } + else + { // get to combine offsets with multiplication by primes in this case + seeds.seed000 = math::dot(iv, primes); + seeds.seed100 = seeds.seed000 + primes.x; + seeds.seed010 = seeds.seed000 + primes.y; + seeds.seed110 = seeds.seed100 + primes.y; + seeds.seed001 = seeds.seed000 + primes.z; + seeds.seed101 = seeds.seed100 + primes.z; + seeds.seed011 = seeds.seed010 + primes.z; + seeds.seed111 = seeds.seed110 + primes.z; + } + + return seeds; +} + +struct SimplexWeights +{ + float4 Result = float4(0); + float3 PosA = float3(0); + float3 PosB = float3(0); + float3 PosC = float3(0); + float3 PosD = float3(0); +}; + +// Computed weights and sample positions for simplex interpolation +// @return float4(a,b,c, d) Barycentric coordinate defined as Filtered = Tex(PosA) * a + Tex(PosB) * b + Tex(PosC) * c + Tex(PosD) * d +SimplexWeights ComputeSimplexWeights3D(float3 OrthogonalPos) +{ + SimplexWeights weights; + float3 OrthogonalPosFloor = math::floor(OrthogonalPos); + + weights.PosA = OrthogonalPosFloor; + weights.PosB = weights.PosA + float3(1, 1, 1); + + OrthogonalPos -= OrthogonalPosFloor; + + float Largest = math::max(OrthogonalPos.x, math::max(OrthogonalPos.y, OrthogonalPos.z)); + float Smallest = math::min(OrthogonalPos.x, math::min(OrthogonalPos.y, OrthogonalPos.z)); + + weights.PosC = weights.PosA + float3(Largest == OrthogonalPos.x, Largest == OrthogonalPos.y, Largest == OrthogonalPos.z); + weights.PosD = weights.PosA + float3(Smallest != OrthogonalPos.x, Smallest != OrthogonalPos.y, Smallest != OrthogonalPos.z); + + float RG = OrthogonalPos.x - OrthogonalPos.y; + float RB = OrthogonalPos.x - OrthogonalPos.z; + float GB = OrthogonalPos.y - OrthogonalPos.z; + + weights.Result.z = + math::min(math::max(0, RG), math::max(0, RB)) // X + + math::min(math::max(0, -RG), math::max(0, GB)) // Y + + math::min(math::max(0, -RB), math::max(0, -GB)); // Z + + weights.Result.w = + math::min(math::max(0, -RG), math::max(0, -RB)) // X + + math::min(math::max(0, RG), math::max(0, -GB)) // Y + + math::min(math::max(0, RB), math::max(0, GB)); // Z + + weights.Result.y = Smallest; + weights.Result.x = 1.0f - weights.Result.y - weights.Result.z - weights.Result.w; + + return weights; +} + +// filtered 3D gradient simple noise (few texture lookups, high quality) +// @param v >0 +// @return random number in the range -1 .. 1 +float SimplexNoise3D_TEX(uniform texture_2d PerlinNoiseGradientTexture, float3 EvalPos) +{ + float3 OrthogonalPos = SkewSimplex(EvalPos); + + SimplexWeights Weights = ComputeSimplexWeights3D(OrthogonalPos); + + // can be optimized to 1 or 2 texture lookups (4 or 8 channel encoded in 32 bit) + float3 A = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosA); + float3 B = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosB); + float3 C = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosC); + float3 D = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosD); + + Weights.PosA = UnSkewSimplex(Weights.PosA); + Weights.PosB = UnSkewSimplex(Weights.PosB); + Weights.PosC = UnSkewSimplex(Weights.PosC); + Weights.PosD = UnSkewSimplex(Weights.PosD); + + float DistanceWeight; + + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosA)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float a = math::dot(A, EvalPos - Weights.PosA) * DistanceWeight; + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosB)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float b = math::dot(B, EvalPos - Weights.PosB) * DistanceWeight; + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosC)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float c = math::dot(C, EvalPos - Weights.PosC) * DistanceWeight; + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosD)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float d = math::dot(D, EvalPos - Weights.PosD) * DistanceWeight; + + return 32 * (a + b + c + d); +} + +// filtered 3D noise, can be optimized +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @return random number in the range -1 .. 1 +float GradientNoise3D_TEX(uniform texture_2d PerlinNoiseGradientTexture, float3 v, bool bTiling, float RepeatSize) +{ + bTiling = true; + float3 fv = math::frac(v); + float3 iv0 = NoiseTileWrap(math::floor(v), bTiling, RepeatSize); + float3 iv1 = NoiseTileWrap(iv0 + 1, bTiling, RepeatSize); + + const int2 ZShear = int2(17, 89); + + float2 OffsetA = iv0.z * ZShear; + float2 OffsetB = OffsetA + ZShear; // non-tiling, use relative offset + if (bTiling) // tiling, have to compute from wrapped coordinates + { + OffsetB = iv1.z * ZShear; + } + + // Texture size scale factor + float ts = 1 / 128.0f; + + // texture coordinates for iv0.xy, as offset for both z slices + float2 TexA0 = (float2(iv0.x, iv0.y) + OffsetA + 0.5f) * ts; + float2 TexB0 = (float2(iv0.x, iv0.y) + OffsetB + 0.5f) * ts; + + // texture coordinates for iv1.xy, as offset for both z slices + float2 TexA1 = TexA0 + ts; // for non-tiling, can compute relative to existing coordinates + float2 TexB1 = TexB0 + ts; + if (bTiling) // for tiling, need to compute from wrapped coordinates + { + TexA1 = (float2(iv1.x, iv1.y) + OffsetA + 0.5f) * ts; + TexB1 = (float2(iv1.x, iv1.y) + OffsetB + 0.5f) * ts; + } + + + // can be optimized to 1 or 2 texture lookups (4 or 8 channel encoded in 8, 16 or 32 bit) + float4 PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA0.x,1.0-TexA0.y),tex::wrap_repeat,tex::wrap_repeat); + float3 PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 A = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA1.x,1.0-TexA0.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 B = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA0.x,1.0-TexA1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 C = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA1.x,1.0-TexA1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 D = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB0.x,1.0-TexB0.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 E = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB1.x,1.0-TexB0.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 F = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB0.x,1.0-TexB1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 G = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB1.x,1.0-TexB1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 H = PerlinNoiseColor * 2 - 1; + + float a = math::dot(A, fv - float3(0, 0, 0)); + float b = math::dot(B, fv - float3(1, 0, 0)); + float c = math::dot(C, fv - float3(0, 1, 0)); + float d = math::dot(D, fv - float3(1, 1, 0)); + float e = math::dot(E, fv - float3(0, 0, 1)); + float f = math::dot(F, fv - float3(1, 0, 1)); + float g = math::dot(G, fv - float3(0, 1, 1)); + float h = math::dot(H, fv - float3(1, 1, 1)); + + float4 Weights = PerlinRamp(math::frac(float4(fv.x, fv.y, fv.z, 0))); + + float i = math::lerp(math::lerp(a, b, Weights.x), math::lerp(c, d, Weights.x), Weights.y); + float j = math::lerp(math::lerp(e, f, Weights.x), math::lerp(g, h, Weights.x), Weights.y); + + return math::lerp(i, j, Weights.z); +} + +// @return random number in the range -1 .. 1 +// scalar: 6 frac, 31 mul/mad, 15 add, +float FastGradientPerlinNoise3D_TEX(uniform texture_3d PerlinNoise3DTexture, float3 xyz) +{ + // needs to be the same value when creating the PerlinNoise3D texture + float Extent = 16; + + // last texel replicated and needed for filtering + // scalar: 3 frac, 6 mul + xyz = math::frac(xyz / (Extent - 1)) * (Extent - 1); + + // scalar: 3 frac + float3 uvw = math::frac(xyz); + // = floor(xyz); + // scalar: 3 add + float3 p0 = xyz - uvw; +// float3 f = math::pow(uvw, 2) * 3.0f - math::pow(uvw, 3) * 2.0f; // original perlin hermite (ok when used without bump mapping) + // scalar: 2*3 add 5*3 mul + float4 pr = PerlinRamp(float4(uvw.x, uvw.y, uvw.z, 0)); + float3 f = float3(pr.x, pr.y, pr.z); // new, better with continues second derivative for bump mapping + // scalar: 3 add + float3 p = p0 + f; + // scalar: 3 mad + // TODO: need reverse??? + float4 NoiseSample = tex::lookup_float4(PerlinNoise3DTexture, p / Extent + 0.5f / Extent); // +0.5f to get rid of bilinear offset + + // reconstruct from 8bit (using mad with 2 constants and dot4 was same instruction count) + // scalar: 4 mad, 3 mul, 3 add + float3 n = float3(NoiseSample.x, NoiseSample.y, NoiseSample.z) * 255.0f / 127.0f - 1.0f; + float d = NoiseSample.w * 255.f - 127; + return math::dot(xyz, n) - d; +} + +// Perlin-style "Modified Noise" +// http://www.umbc.edu/~olano/papers/index.html#mNoise +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @return random number in the range -1 .. 1 +float GradientNoise3D_ALU(float3 v, bool bTiling, float RepeatSize) +{ + SeedValue seeds = NoiseSeeds(v, bTiling, RepeatSize); + + float rand000 = MGradient(int(seeds.seed000), seeds.fv - float3(0, 0, 0)).w; + float rand100 = MGradient(int(seeds.seed100), seeds.fv - float3(1, 0, 0)).w; + float rand010 = MGradient(int(seeds.seed010), seeds.fv - float3(0, 1, 0)).w; + float rand110 = MGradient(int(seeds.seed110), seeds.fv - float3(1, 1, 0)).w; + float rand001 = MGradient(int(seeds.seed001), seeds.fv - float3(0, 0, 1)).w; + float rand101 = MGradient(int(seeds.seed101), seeds.fv - float3(1, 0, 1)).w; + float rand011 = MGradient(int(seeds.seed011), seeds.fv - float3(0, 1, 1)).w; + float rand111 = MGradient(int(seeds.seed111), seeds.fv - float3(1, 1, 1)).w; + + float4 Weights = PerlinRamp(float4(seeds.fv.x, seeds.fv.y, seeds.fv.z, 0)); + + float i = math::lerp(math::lerp(rand000, rand100, Weights.x), math::lerp(rand010, rand110, Weights.x), Weights.y); + float j = math::lerp(math::lerp(rand001, rand101, Weights.x), math::lerp(rand011, rand111, Weights.x), Weights.y); + return math::lerp(i, j, Weights.z); +} + +// 3D value noise - used to be incorrectly called Perlin noise +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @return random number in the range -1 .. 1 +float ValueNoise3D_ALU(float3 v, bool bTiling, float RepeatSize) +{ + SeedValue seeds = NoiseSeeds(v, bTiling, RepeatSize); + + float rand000 = RandBBSfloat(seeds.seed000) * 2 - 1; + float rand100 = RandBBSfloat(seeds.seed100) * 2 - 1; + float rand010 = RandBBSfloat(seeds.seed010) * 2 - 1; + float rand110 = RandBBSfloat(seeds.seed110) * 2 - 1; + float rand001 = RandBBSfloat(seeds.seed001) * 2 - 1; + float rand101 = RandBBSfloat(seeds.seed101) * 2 - 1; + float rand011 = RandBBSfloat(seeds.seed011) * 2 - 1; + float rand111 = RandBBSfloat(seeds.seed111) * 2 - 1; + + float4 Weights = PerlinRamp(float4(seeds.fv.x, seeds.fv.y, seeds.fv.z, 0)); + + float i = math::lerp(math::lerp(rand000, rand100, Weights.x), math::lerp(rand010, rand110, Weights.x), Weights.y); + float j = math::lerp(math::lerp(rand001, rand101, Weights.x), math::lerp(rand011, rand111, Weights.x), Weights.y); + return math::lerp(i, j, Weights.z); +} + +// 3D jitter offset within a voronoi noise cell +// @param pos - integer lattice corner +// @return random offsets vector +float3 VoronoiCornerSample(float3 pos, int Quality) +{ + // random values in [-0.5, 0.5] + float3 noise = float3(Rand3DPCG16(int3(pos))) / 0xffff - 0.5; + + // quality level 1 or 2: searches a 2x2x2 neighborhood with points distributed on a sphere + // scale factor to guarantee jittered points will be found within a 2x2x2 search + if (Quality <= 2) + { + return math::normalize(noise) * 0.2588; + } + + // quality level 3: searches a 3x3x3 neighborhood with points distributed on a sphere + // scale factor to guarantee jittered points will be found within a 3x3x3 search + if (Quality == 3) + { + return math::normalize(noise) * 0.3090; + } + + // quality level 4: jitter to anywhere in the cell, needs 4x4x4 search + return noise; +} + +// compare previous best with a new candidate +// not producing point locations makes it easier for compiler to eliminate calculations when they're not needed +// @param minval = location and distance of best candidate seed point before the new one +// @param candidate = candidate seed point +// @param offset = 3D offset to new candidate seed point +// @param bDistanceOnly = if true, only set maxval.w with distance, otherwise maxval.w is distance and maxval.xyz is position +// @return position (if bDistanceOnly is false) and distance to closest seed point so far +float4 VoronoiCompare(float4 minval, float3 candidate, float3 offset, bool bDistanceOnly) +{ + if (bDistanceOnly) + { + return float4(0, 0, 0, math::min(minval.w, math::dot(offset, offset))); + } + else + { + float newdist = math::dot(offset, offset); + return newdist > minval.w ? minval : float4(candidate.x, candidate.y, candidate.z, newdist); + } +} + +// 220 instruction Worley noise +float4 VoronoiNoise3D_ALU(float3 v, int Quality, bool bTiling, float RepeatSize, bool bDistanceOnly) +{ + float3 fv = math::frac(v), fv2 = math::frac(v + 0.5); + float3 iv = math::floor(v), iv2 = math::floor(v + 0.5); + + // with initial minimum distance = infinity (or at least bigger than 4), first min is optimized away + float4 mindist = float4(0,0,0,100); + float3 p, offset; + + // quality level 3: do a 3x3x3 search + if (Quality == 3) + { + int offset_x; + int offset_y; + int offset_z; + for (offset_x = -1; offset_x <= 1; ++offset_x) + { + for (offset_y = -1; offset_y <= 1; ++offset_y) + { + for (offset_z = -1; offset_z <= 1; ++offset_z) + { + offset = float3(offset_x, offset_y, offset_z); + p = offset + VoronoiCornerSample(NoiseTileWrap(iv2 + offset, bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv2 + p, fv2 - p, bDistanceOnly); + } + } + } + } + + // everybody else searches a base 2x2x2 neighborhood + else + { + int offset_x; + int offset_y; + int offset_z; + for (offset_x = 0; offset_x <= 1; ++offset_x) + { + for (offset_y = 0; offset_y <= 1; ++offset_y) + { + for (offset_z = 0; offset_z <= 1; ++offset_z) + { + offset = float3(offset_x, offset_y, offset_z); + p = offset + VoronoiCornerSample(NoiseTileWrap(iv + offset, bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + + // quality level 2, do extra set of points, offset by half a cell + if (Quality == 2) + { + // 467 is just an offset to a different area in the random number field to avoid similar neighbor artifacts + p = offset + VoronoiCornerSample(NoiseTileWrap(iv2 + offset, bTiling, RepeatSize) + 467, Quality); + mindist = VoronoiCompare(mindist, iv2 + p, fv2 - p, bDistanceOnly); + } + } + } + } + } + + // quality level 4: add extra sets of four cells in each direction + if (Quality >= 4) + { + int offset_x; + int offset_y; + int offset_z; + for (offset_x = -1; offset_x <= 2; offset_x += 3) + { + for (offset_y = 0; offset_y <= 1; ++offset_y) + { + for (offset_z = 0; offset_z <= 1; ++offset_z) + { + offset = float3(offset_x, offset_y, offset_z); + // along x axis + p = offset + VoronoiCornerSample(NoiseTileWrap(iv + offset, bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + + // along y axis + p = float3(offset.y, offset.z, offset.x) + VoronoiCornerSample(NoiseTileWrap(iv + float3(offset.y, offset.z, offset.x), bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + + // along z axis + p = float3(offset.z, offset.x, offset.y) + VoronoiCornerSample(NoiseTileWrap(iv + float3(offset.z, offset.x, offset.y), bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + } + } + } + } + + // transform squared distance to real distance + return float4(mindist.x, mindist.y, mindist.z, math::sqrt(mindist.w)); +} + +// Coordinates for corners of a Simplex tetrahedron +// Based on McEwan et al., Efficient computation of noise in GLSL, JGT 2011 +// @param v = 3D noise argument +// @return 4 corner locations +float4x3 SimplexCorners(float3 v) +{ + // find base corner by skewing to tetrahedral space and back + float3 tet = math::floor(v + v.x/3 + v.y/3 + v.z/3); + float3 base = tet - tet.x/6 - tet.y/6 - tet.z/6; + float3 f = v - base; + + // Find offsets to other corners (McEwan did this in tetrahedral space, + // but since skew is along x=y=z axis, this works in Euclidean space too.) + float3 g = math::step(float3(f.y,f.z,f.x), float3(f.x,f.y,f.z)), h = 1 - float3(g.z, g.x, g.y); + float3 a1 = math::min(g, h) - 1.0 / 6.0, a2 = math::max(g, h) - 1.0 / 3.0; + + // four corners + return float4x3(base, base + a1, base + a2, base + 0.5); +} + +// Improved smoothing function for simplex noise +// @param f = fractional distance to four tetrahedral corners +// @return weight for each corner +float4 SimplexSmooth(float4x3 f) +{ + const float scale = 1024. / 375.; // scale factor to make noise -1..1 + float4 d = float4(math::dot(f[0], f[0]), math::dot(f[1], f[1]), math::dot(f[2], f[2]), math::dot(f[3], f[3])); + float4 s = math::saturate(2 * d); + return (1 * scale + s*(-3 * scale + s*(3 * scale - s*scale))); +} + +// Derivative of simplex noise smoothing function +// @param f = fractional distanc eto four tetrahedral corners +// @return derivative of smoothing function for each corner by x, y and z +float3x4 SimplexDSmooth(float4x3 f) +{ + const float scale = 1024. / 375.; // scale factor to make noise -1..1 + float4 d = float4(math::dot(f[0], f[0]), math::dot(f[1], f[1]), math::dot(f[2], f[2]), math::dot(f[3], f[3])); + float4 s = math::saturate(2 * d); + s = -12 * scale + s*(24 * scale - s * 12 * scale); + + return float3x4( + s * float4(f[0][0], f[1][0], f[2][0], f[3][0]), + s * float4(f[0][1], f[1][1], f[2][1], f[3][1]), + s * float4(f[0][2], f[1][2], f[2][2], f[3][2])); +} + +// Simplex noise and its Jacobian derivative +// @param v = 3D noise argument +// @param bTiling = whether to repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension, must be a multiple of 3 +// @return float3x3 Jacobian in J[*].xyz, vector noise in J[*].w +// J[0].w, J[1].w, J[2].w is a Perlin-style simplex noise with vector output, e.g. (Nx, Ny, Nz) +// J[i].x is X derivative of the i'th component of the noise so J[2].x is dNz/dx +// You can use this to compute the noise, gradient, curl, or divergence: +// float3x4 J = JacobianSimplex_ALU(...); +// float3 VNoise = float3(J[0].w, J[1].w, J[2].w); // 3D noise +// float3 Grad = J[0].xyz; // gradient of J[0].w +// float3 Curl = float3(J[1][2]-J[2][1], J[2][0]-J[0][2], J[0][1]-J[1][2]); +// float Div = J[0][0]+J[1][1]+J[2][2]; +// All of these are confirmed to compile out all unneeded terms. +// So Grad of X doesn't compute Y or Z components, and VNoise doesn't do any of the derivative computation. +float3x4 JacobianSimplex_ALU(float3 v, bool bTiling, float RepeatSize) +{ + int3 MGradientMask = int3(0x8000, 0x4000, 0x2000); + float3 MGradientScale = float3(1. / 0x4000, 1. / 0x2000, 1. / 0x1000); + + // corners of tetrahedron + float4x3 T = SimplexCorners(v); + // TODO: uint3 + int3 rand = int3(0); + float4x3 gvec0 = float4x3(1.0); + float4x3 gvec1 = float4x3(1.0); + float4x3 gvec2 = float4x3(1.0); + float4x3 fv = float4x3(1.0); + float3x4 grad = float3x4(1.0); + + // processing of tetrahedral vertices, unrolled + // to compute gradient at each corner + fv[0] = v - T[0]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[0] + 0.5, bTiling, RepeatSize)))); + gvec0[0] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[0] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec2[0] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][0] = math::dot(gvec0[0], fv[0]); + grad[1][0] = math::dot(gvec1[0], fv[0]); + grad[2][0] = math::dot(gvec2[0], fv[0]); + + fv[1] = v - T[1]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[1] + 0.5, bTiling, RepeatSize)))); + gvec0[1] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[1] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec1[1] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][1] = math::dot(gvec0[1], fv[1]); + grad[1][1] = math::dot(gvec1[1], fv[1]); + grad[2][1] = math::dot(gvec2[1], fv[1]); + + fv[2] = v - T[2]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[2] + 0.5, bTiling, RepeatSize)))); + gvec0[2] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[2] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec2[2] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][2] = math::dot(gvec0[2], fv[2]); + grad[1][2] = math::dot(gvec1[2], fv[2]); + grad[2][2] = math::dot(gvec2[2], fv[2]); + + fv[3] = v - T[3]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[3] + 0.5, bTiling, RepeatSize)))); + gvec0[3] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[3] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec2[3] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][3] = math::dot(gvec0[3], fv[3]); + grad[1][3] = math::dot(gvec1[3], fv[3]); + grad[2][3] = math::dot(gvec2[3], fv[3]); + + // blend gradients + float4 sv = SimplexSmooth(fv); + float3x4 ds = SimplexDSmooth(fv); + + float3x4 jacobian = float3x4(1.0); + float3 vec0 = gvec0*sv + grad[0]*ds; // NOTE: mdl is column major, convert from UE4 (row major) + jacobian[0] = float4(vec0.x, vec0.y, vec0.z, math::dot(sv, grad[0])); + float3 vec1 = gvec1*sv + grad[1]*ds; + jacobian[1] = float4(vec1.x, vec1.y, vec1.z, math::dot(sv, grad[1])); + float3 vec2 = gvec2*sv + grad[2]*ds; + jacobian[2] = float4(vec2.x, vec2.y, vec2.z, math::dot(sv, grad[2])); + + return jacobian; +} + +// While RepeatSize is a float here, the expectation is that it would be largely integer values coming in from the UI. The downstream logic assumes +// floats for all called functions (NoiseTileWrap) and this prevents any float-to-int conversion errors from automatic type conversion. +float Noise3D_Multiplexer(uniform texture_2d PerlinNoiseGradientTexture, uniform texture_3d PerlinNoise3DTexture, int Function, float3 Position, int Quality, bool bTiling, float RepeatSize) +{ + // verified, HLSL compiled out the switch if Function is a constant + switch(Function) + { + case 0: + return SimplexNoise3D_TEX(PerlinNoiseGradientTexture, Position); + case 1: + return GradientNoise3D_TEX(PerlinNoiseGradientTexture, Position, bTiling, RepeatSize); + case 2: + return FastGradientPerlinNoise3D_TEX(PerlinNoise3DTexture, Position); + case 3: + return GradientNoise3D_ALU(Position, bTiling, RepeatSize); + case 4: + return ValueNoise3D_ALU(Position, bTiling, RepeatSize); + case 5: + return VoronoiNoise3D_ALU(Position, Quality, bTiling, RepeatSize, true).w * 2.0 - 1.0; + } + return 0; +} +//---------------------------------------------------------- + +export float noise(uniform texture_2d PerlinNoiseGradientTexture, uniform texture_3d PerlinNoise3DTexture, float3 Position, float Scale, float Quality, float Function, float Turbulence, float Levels, float OutputMin, float OutputMax, float LevelScale, float FilterWidth, float Tiling, float RepeatSize) +[[ + anno::description("Noise"), + anno::noinline() +]] +{ + Position *= Scale; + FilterWidth *= Scale; + + float Out = 0.0f; + float OutScale = 1.0f; + float InvLevelScale = 1.0f / LevelScale; + + int iFunction(Function); + int iQuality(Quality); + int iLevels(Levels); + bool bTurbulence(Turbulence); + bool bTiling(Tiling); + + for(int i = 0; i < iLevels; ++i) + { + // fade out noise level that are too high frequent (not done through dynamic branching as it usually requires gradient instructions) + OutScale *= math::saturate(1.0 - FilterWidth); + + if(bTurbulence) + { + Out += math::abs(Noise3D_Multiplexer(PerlinNoiseGradientTexture, PerlinNoise3DTexture, iFunction, Position, iQuality, bTiling, RepeatSize)) * OutScale; + } + else + { + Out += Noise3D_Multiplexer(PerlinNoiseGradientTexture, PerlinNoise3DTexture, iFunction, Position, iQuality, bTiling, RepeatSize) * OutScale; + } + + Position *= LevelScale; + RepeatSize *= LevelScale; + OutScale *= InvLevelScale; + FilterWidth *= LevelScale; + } + + if(!bTurbulence) + { + // bring -1..1 to 0..1 range + Out = Out * 0.5f + 0.5f; + } + + // Out is in 0..1 range + return math::lerp(OutputMin, OutputMax, Out); +} + +// Material node for noise functions returning a vector value +// @param LevelScale usually 2 but higher values allow efficient use of few levels +// @return in user defined range (OutputMin..OutputMax) +export float4 vector4_noise(float3 Position, float Quality, float Function, float Tiling, float TileSize) +[[ + anno::description("Vector Noise"), + anno::noinline() +]] +{ + float4 result = float4(0,0,0,1); + float3 ret = float3(0); + int iQuality = int(Quality); + int iFunction = int(Function); + bool bTiling = Tiling > 0.0; + + float3x4 Jacobian = JacobianSimplex_ALU(Position, bTiling, TileSize); // compiled out if not used + + // verified, HLSL compiled out the switch if Function is a constant + switch (iFunction) + { + case 0: // Cellnoise + ret = float3(Rand3DPCG16(int3(math::floor(NoiseTileWrap(Position, bTiling, TileSize))))) / 0xffff; + result = float4(ret.x, ret.y, ret.z, 1); + break; + case 1: // Color noise + ret = float3(Jacobian[0].w, Jacobian[1].w, Jacobian[2].w); + result = float4(ret.x, ret.y, ret.z, 1); + break; + case 2: // Gradient + result = Jacobian[0]; + break; + case 3: // Curl + ret = float3(Jacobian[2][1] - Jacobian[1][2], Jacobian[0][2] - Jacobian[2][0], Jacobian[1][0] - Jacobian[0][1]); + result = float4(ret.x, ret.y, ret.z, 1); + break; + case 4: // Voronoi + result = VoronoiNoise3D_ALU(Position, iQuality, bTiling, TileSize, false); + break; + } + return result; +} + +export float3 vector3_noise(float3 Position, float Quality, float Function, float Tiling, float TileSize) +[[ + anno::description("Vector Noise float3 version"), + anno::noinline() +]] +{ + float4 noise = vector4_noise(Position, Quality, Function, Tiling, TileSize); + return float3(noise.x, noise.y, noise.z); +} + + +// workaround for ue4 fresnel (without supporting for camera vector) : replacing it with 0.0, means facing to the view +export float fresnel(float exponent [[anno::unused()]], float base_reflect_fraction [[anno::unused()]], float3 normal [[anno::unused()]]) +[[ + anno::description("Fresnel"), + anno::noinline() +]] +{ + return 0.0; +} + +export float fresnel_function(float3 normal_vector [[anno::unused()]], float3 camera_vector [[anno::unused()]], + bool invert_fresnel [[anno::unused()]], float power [[anno::unused()]], + bool use_cheap_contrast [[anno::unused()]], float cheap_contrast_dark [[anno::unused()]], float cheap_contrast_bright [[anno::unused()]], + bool clamp_fresnel_dot_product [[anno::unused()]]) +[[ + anno::description("Fresnel Function"), + anno::noinline() +]] +{ + return 0.0; +} + +export float3 camera_vector(uniform bool up_z = true) +[[ + anno::description("Camera Vector"), + anno::noinline() +]] +{ + // assume camera postion is 0,0,0 + return math::normalize(float3(0) - convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), up_z)); +} + +export float pixel_depth() +[[ + anno::description("Pixel Depth"), + anno::noinline() +]] +{ + return 256.0f; +} + +export float scene_depth() +[[ + anno::description("Scene Depth") +]] +{ + return 65500.0f; +} + +export float3 scene_color() +[[ + anno::description("Scene Color") +]] +{ + return float3(1.0f); +} + +export float4 vertex_color() +[[ + anno::description("Vertex Color"), + anno::noinline() +]] +{ + return float4(1.0f); +} + +export float4 vertex_color_from_coordinate(int VertexColorCoordinateIndex) +[[ + anno::description("Vertex Color for float2 PrimVar"), + anno::noinline() +]] +{ + // Kit only supports 4 uv sets, 2 uvs are available to vertex color. if vertex color index is invalid, output the constant WHITE color intead + return (VertexColorCoordinateIndex > 2) ? float4(1.0f) : float4(state::texture_coordinate(VertexColorCoordinateIndex).x, state::texture_coordinate(VertexColorCoordinateIndex).y, state::texture_coordinate(VertexColorCoordinateIndex+1).x, state::texture_coordinate(VertexColorCoordinateIndex+1).y); +} + +export float3 camera_position() +[[ + anno::description("Camera Position"), + anno::noinline() +]] +{ + return float3(1000.0f, 0, 0); +} + +export float3 rotate_about_axis(float4 NormalizedRotationAxisAndAngle, float3 PositionOnAxis, float3 Position) +[[ + anno::description("Rotates Position about the given axis by the given angle") +]] +{ + // Project Position onto the rotation axis and find the closest point on the axis to Position + float3 NormalizedRotationAxis = float3(NormalizedRotationAxisAndAngle.x,NormalizedRotationAxisAndAngle.y,NormalizedRotationAxisAndAngle.z); + float3 ClosestPointOnAxis = PositionOnAxis + NormalizedRotationAxis * math::dot(NormalizedRotationAxis, Position - PositionOnAxis); + // Construct orthogonal axes in the plane of the rotation + float3 UAxis = Position - ClosestPointOnAxis; + float3 VAxis = math::cross(NormalizedRotationAxis, UAxis); + float[2] SinCosAngle = math::sincos(NormalizedRotationAxisAndAngle.w); + // Rotate using the orthogonal axes + float3 R = UAxis * SinCosAngle[1] + VAxis * SinCosAngle[0]; + // Reconstruct the rotated world space position + float3 RotatedPosition = ClosestPointOnAxis + R; + // Convert from position to a position offset + return RotatedPosition - Position; +} + +export float2 rotate_scale_offset_texcoords(float2 InTexCoords, float4 InRotationScale, float2 InOffset) +[[ + anno::description("Returns a float2 texture coordinate after 2x2 transform and offset applied") +]] +{ + return float2(math::dot(InTexCoords, float2(InRotationScale.x, InRotationScale.y)), math::dot(InTexCoords, float2(InRotationScale.z, InRotationScale.w))) + InOffset; +} + +export float3 reflection_custom_world_normal(float3 WorldNormal, bool bNormalizeInputNormal, uniform bool up_z = true) +[[ + anno::description("Reflection vector about the specified world space normal") +]] +{ + if (bNormalizeInputNormal) + { + WorldNormal = math::normalize(WorldNormal); + } + + return -camera_vector(up_z) + WorldNormal * math::dot(WorldNormal, camera_vector(up_z)) * 2.0; +} + +export float3 reflection_vector(uniform bool up_z = true) +[[ + anno::description("Reflection Vector"), + anno::noinline() +]] +{ + float3 normal = convert_to_left_hand(state::transform_normal(state::coordinate_internal,state::coordinate_world,state::normal()), up_z, false); + return reflection_custom_world_normal(normal, false, up_z); +} + +export float dither_temporalAA(float AlphaThreshold = 0.5f, float Random = 1.0f [[anno::unused()]]) +[[ + anno::description("Dither TemporalAA"), + anno::noinline() +]] +{ + return AlphaThreshold; +} + +export float3 black_body( float Temp ) +[[ + anno::description("Black Body"), + anno::noinline() +]] +{ + float u = ( 0.860117757f + 1.54118254e-4f * Temp + 1.28641212e-7f * Temp*Temp ) / ( 1.0f + 8.42420235e-4f * Temp + 7.08145163e-7f * Temp*Temp ); + float v = ( 0.317398726f + 4.22806245e-5f * Temp + 4.20481691e-8f * Temp*Temp ) / ( 1.0f - 2.89741816e-5f * Temp + 1.61456053e-7f * Temp*Temp ); + + float x = 3*u / ( 2*u - 8*v + 4 ); + float y = 2*v / ( 2*u - 8*v + 4 ); + float z = 1 - x - y; + + float Y = 1; + float X = Y/y * x; + float Z = Y/y * z; + + float3x3 XYZtoRGB = float3x3( + float3(3.2404542, -1.5371385, -0.4985314), + float3(-0.9692660, 1.8760108, 0.0415560), + float3(0.0556434, -0.2040259, 1.0572252) + ); + + return XYZtoRGB * float3( X, Y, Z ) * math::pow( 0.0004 * Temp, 4 ); +} + +export float per_instance_random(uniform texture_2d PerlinNoiseGradientTexture, int NumberInstances) +[[ + anno::description("Per Instance Random"), + anno::noinline() +]] +{ + float weight = state::object_id() / float(NumberInstances); + return NumberInstances == 0 ? 0.0 : tex::lookup_float4(PerlinNoiseGradientTexture, float2(weight, 1.0 - weight), tex::wrap_repeat, tex::wrap_repeat).x; +} + +//------------------ Hair from UE4 ----------------------- +float3 hair_absorption_to_color(float3 A) +{ + const float B = 0.3f; + float b2 = B * B; + float b3 = B * b2; + float b4 = b2 * b2; + float b5 = B * b4; + float D = (5.969f - 0.215f * B + 2.532f * b2 - 10.73f * b3 + 5.574f * b4 + 0.245f * b5); + return math::exp(-math::sqrt(A) * D); +} + +float3 hair_color_to_absorption(float3 C) +{ + const float B = 0.3f; + float b2 = B * B; + float b3 = B * b2; + float b4 = b2 * b2; + float b5 = B * b4; + float D = (5.969f - 0.215f * B + 2.532f * b2 - 10.73f * b3 + 5.574f * b4 + 0.245f * b5); + return math::pow(math::log(C) / D, 2.0f); +} + +export float3 get_hair_color_from_melanin(float InMelanin, float InRedness, float3 InDyeColor) +[[ + anno::description("Hair Color") +]] +{ + InMelanin = math::saturate(InMelanin); + InRedness = math::saturate(InRedness); + float Melanin = -math::log(math::max(1 - InMelanin, 0.0001f)); + float Eumelanin = Melanin * (1 - InRedness); + float Pheomelanin = Melanin * InRedness; + + float3 DyeAbsorption = hair_color_to_absorption(math::saturate(InDyeColor)); + float3 Absorption = Eumelanin * float3(0.506f, 0.841f, 1.653f) + Pheomelanin * float3(0.343f, 0.733f, 1.924f); + + return hair_absorption_to_color(Absorption + DyeAbsorption); +} + +export float3 local_object_bounds_min() +[[ + anno::description("Local Object Bounds Min"), + anno::noinline() +]] +{ + return float3(0.0); +} + +export float3 local_object_bounds_max() +[[ + anno::description("Local Object Bounds Max"), + anno::noinline() +]] +{ + return float3(100.0); +} + +export float3 object_bounds() +[[ + anno::description("Object Bounds"), + anno::noinline() +]] +{ + return float3(100.0); +} + +export float object_radius() +[[ + anno::description("Object Radius"), + anno::noinline() +]] +{ + return 100.0f; +} + +export float3 object_world_position(uniform bool up_z = true) +[[ + anno::description("Object World Position"), + anno::noinline() +]] +{ + return convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), up_z)*state::meters_per_scene_unit()*100.0; +} + +export float3 object_orientation() +[[ + anno::description("Object Orientation"), + anno::noinline() +]] +{ + return float3(0); +} + +export float rcp(float x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export float2 rcp(float2 x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export float3 rcp(float3 x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export float4 rcp(float4 x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export int BitFieldExtractI32(int Data, int Size, int Offset) +[[ + anno::description("BitFieldExtractI32 int"), + anno::noinline() +]] +{ + Size &= 3; + Offset &= 3; + + if (Size == 0) + return 0; + else if (Offset + Size < 32) + return (Data << (32 - Size - Offset)) >> (32 - Size); + else + return Data >> Offset; +} + +export int BitFieldExtractI32(float Data, float Size, float Offset) +[[ + anno::description("BitFieldExtractI32 float"), + anno::noinline() +]] +{ + return BitFieldExtractI32(int(Data), int(Size), int(Offset)); +} + +export int BitFieldExtractU32(float Data, float Size, float Offset) +[[ + anno::description("BitFieldExtractU32 float"), + anno::noinline() +]] +{ + return BitFieldExtractI32(Data, Size, Offset); +} + +export int BitFieldExtractU32(int Data, int Size, int Offset) +[[ + anno::description("BitFieldExtractU32 int"), + anno::noinline() +]] +{ + return BitFieldExtractI32(Data, Size, Offset); +} + +export float3 EyeAdaptationInverseLookup(float3 LightValue, float Alpha) +[[ + anno::description("EyeAdaptationInverseLookup"), + anno::noinline() +]] +{ + float Adaptation = 1.0f; + + // When Alpha=0.0, we want to multiply by 1.0. when Alpha = 1.0, we want to multiply by 1/Adaptation. + // So the lerped value is: + // LerpLogScale = Lerp(log(1),log(1/Adaptaiton),T) + // Which is simplified as: + // LerpLogScale = Lerp(0,-log(Adaptation),T) + // LerpLogScale = -T * logAdaptation; + + float LerpLogScale = -Alpha * math::log(Adaptation); + float Scale = math::exp(LerpLogScale); + return LightValue * Scale; +} diff --git a/Projects/Street/Materials/OmniUe4Translucent.mdl b/Projects/Street/Materials/OmniUe4Translucent.mdl new file mode 100644 index 0000000000000000000000000000000000000000..483a83004b8f7d5bf820a7905d06ea2d7d5894af --- /dev/null +++ b/Projects/Street/Materials/OmniUe4Translucent.mdl @@ -0,0 +1,233 @@ +/*************************************************************************************************** + * Copyright 2020 NVIDIA Corporation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * 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. + * * Neither the name of NVIDIA CORPORATION 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 ``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 OWNER 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. + **************************************************************************************************/ + +//* 1.0.0 - first version +//* 1.0.1 - Emissive color affected by opacity +// - Support opacity mask +//* 1.0.2 - Unlit translucent +//* 1.0.3 - specular bsdf instead of microfacet ggx smith bsdf +//* 1.0.4 - using absolute import paths when importing standard modules + +mdl 1.3; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::tex::*; +import ::anno::*; + +float emissive_multiplier() +[[ + anno::description("the multiplier to convert UE4 emissive to raw data"), + anno::noinline() +]] +{ + return 20.0f * 128.0f; +} + +color get_translucent_tint(color base_color, float opacity) +[[ + anno::description("base color of UE4 translucent"), + anno::noinline() +]] +{ + return math::lerp(color(1.0), base_color, opacity); +} + +// Just for UE4 distilling +float get_translucent_opacity(float opacity) +[[ + anno::noinline() +]] +{ + return opacity; +} + +color get_emissive_intensity(color emissive, float opacity) +[[ + anno::description("emissive color of UE4 translucent"), + anno::noinline() +]] +{ + return emissive * opacity; +} + +float3 tangent_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in tangent space"), + anno::noinline() +]] +{ + return math::normalize( + tangent_u * normal.x - + tangent_v * normal.y + /* flip_tangent_v */ + state::normal() * (normal.z)); +} + +float3 world_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in world space"), + anno::noinline() +]] +{ + return tangent_space_normal( + math::normalize( + normal.x * float3(tangent_u.x, tangent_v.x, state::normal().x) - + normal.y * float3(tangent_u.y, tangent_v.y, state::normal().y) + + normal.z * float3(tangent_u.z, tangent_v.z, state::normal().z)), + tangent_u, + tangent_v + ); +} + +export material OmniUe4Translucent( + float3 base_color = float3(0.0, 0.0, 0.0), + float metallic = 0.0, + float roughness = 0.5, + float specular = 0.5, + float3 normal = float3(0.0,0.0,1.0), + uniform bool enable_opacity = true, + float opacity = 1.0, + float opacity_mask = 1.0, + float3 emissive_color = float3(0.0, 0.0, 0.0), + float3 displacement = float3(0.0), + uniform float refraction = 1.0, + uniform bool two_sided = false, + uniform bool is_tangent_space_normal = true, + uniform bool is_unlit = false +) +[[ + anno::display_name("Omni UE4 Translucent"), + anno::description("Omni UE4 Translucent, supports UE4 Translucent shading model"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("omni", "UE4", "omniverse", "translucent")) +]] + = let { + color final_base_color = math::saturate(base_color); + float final_metallic = math::min(math::max(metallic, 0.0f), 0.99f); + float final_roughness = math::saturate(roughness); + float final_specular = math::saturate(specular); + color final_emissive_color = math::max(emissive_color, 0.0f) * emissive_multiplier(); /*factor for converting ue4 emissive to raw value*/ + float final_opacity = math::saturate(opacity); + float3 final_normal = math::normalize(normal); + + + // - compute final roughness by squaring the "roughness" parameter + float alpha = final_roughness * final_roughness; + // reduce the reflectivity at grazing angles to avoid "dark edges" for high roughness due to the layering + float grazing_refl = math::max((1.0 - final_roughness), 0.0); + + float3 the_normal = is_unlit ? state::normal() : + (is_tangent_space_normal ? + tangent_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ) : world_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + )); + + // for the dielectric component we layer the glossy component on top of the diffuse one, + // the glossy layer has no color tint + + bsdf dielectric_component = df::custom_curve_layer( + weight: final_specular, + normal_reflectivity: 0.08, + grazing_reflectivity: grazing_refl, + layer: df::microfacet_ggx_smith_bsdf(roughness_u: alpha), + base: df::diffuse_reflection_bsdf(tint: final_base_color)); + + // the metallic component doesn't have a diffuse component, it's only glossy + // base_color is applied to tint it + bsdf metallic_component = df::microfacet_ggx_smith_bsdf(tint: final_base_color, roughness_u: alpha); + + // final BSDF is a linear blend between dielectric and metallic component + bsdf dielectric_metal_mix = + df::normalized_mix( + components: + df::bsdf_component[]( + df::bsdf_component( + component: metallic_component, + weight: final_metallic), + df::bsdf_component( + component: dielectric_component, + weight: 1.0-final_metallic) + ) + ); + + bsdf frosted_bsdf = df::specular_bsdf( + tint: color(1), + mode: df::scatter_reflect_transmit + ); + + bsdf final_mix_bsdf = + is_unlit ? df::specular_bsdf( + tint: get_translucent_tint(base_color: final_base_color, opacity: final_opacity), + mode: df::scatter_reflect_transmit + ) + : df::normalized_mix( + components: + df::bsdf_component[]( + df::bsdf_component( + component: dielectric_metal_mix, + weight: get_translucent_opacity(final_opacity)), + df::bsdf_component( + component: frosted_bsdf, + weight: 1.0-get_translucent_opacity(final_opacity)) + ) + ); +} +in material( + thin_walled: two_sided, // Graphene? + ior: color(refraction), //refraction + surface: material_surface( + scattering: final_mix_bsdf, + emission: + material_emission ( + emission: df::diffuse_edf (), + intensity: get_emissive_intensity(emissive: final_emissive_color, opacity: final_opacity) + ) + ), + + geometry: material_geometry( + displacement: displacement, + normal: the_normal, + cutout_opacity: enable_opacity ? opacity_mask : 1.0 + ) +); diff --git a/Projects/Street/Materials/Textures/T_NYB_1.png b/Projects/Street/Materials/Textures/T_NYB_1.png new file mode 100644 index 0000000000000000000000000000000000000000..b1cb2fb34ce1c9694c3207d135908ad6348c8208 --- /dev/null +++ b/Projects/Street/Materials/Textures/T_NYB_1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5b15f0f6aa8ae7165187acd0c9a7ad818588fac7f7ccecc525a90033ebf5a676 +size 1030561 diff --git a/Projects/Street/Materials/Textures/T_NYB_102.png b/Projects/Street/Materials/Textures/T_NYB_102.png new file mode 100644 index 0000000000000000000000000000000000000000..5603c3b5a6d2f57b565c673481d7134bda6a2523 --- /dev/null +++ b/Projects/Street/Materials/Textures/T_NYB_102.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8127db2a27918c1f30882de4f11d9a883d54d667557cb374dafd57794e7b9704 +size 1377060 diff --git a/Projects/Street/Materials/Textures/T_NYB_103.png b/Projects/Street/Materials/Textures/T_NYB_103.png new file mode 100644 index 0000000000000000000000000000000000000000..98e669ad8ae28ab4ecd3109e09d3caddb8b932f0 --- /dev/null +++ b/Projects/Street/Materials/Textures/T_NYB_103.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4277e391ca52003d09bfa59e2854e2cf1e8653c5251b66a6832d0296e384c393 +size 1543491 diff --git a/Projects/Street/Materials/Textures/T_NYB_12.png b/Projects/Street/Materials/Textures/T_NYB_12.png new file mode 100644 index 0000000000000000000000000000000000000000..ba06c078e4f7d765891b1af35439755f3f659df5 --- /dev/null +++ b/Projects/Street/Materials/Textures/T_NYB_12.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2fe751fb5faa541d031b8ce21aaf31e6ba9b1d40c71510341893a749dbd46f4d +size 144937 diff --git a/Projects/Street/Materials/Textures/T_NYB_125.png b/Projects/Street/Materials/Textures/T_NYB_125.png new file mode 100644 index 0000000000000000000000000000000000000000..9adf1bef7701147c33d59f0f80c2ae3f37201b73 --- /dev/null +++ b/Projects/Street/Materials/Textures/T_NYB_125.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:29ab4a86ecad661ece7145d96f41263b7dff6c0eaeec9ac96e5641d329d605ae +size 1153537 diff --git a/Projects/Street/Materials/Textures/T_NYB_133.png b/Projects/Street/Materials/Textures/T_NYB_133.png new file mode 100644 index 0000000000000000000000000000000000000000..462a0f4cef4fe61a07804c068da94d1c584c43ce --- /dev/null +++ b/Projects/Street/Materials/Textures/T_NYB_133.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:82e760bde78f5ff68e15f5f1bfc86d9c5617f050e745bfcb8b771eee2f716f1c +size 705908 diff --git a/Projects/Street/Materials/Textures/T_NYB_134.png b/Projects/Street/Materials/Textures/T_NYB_134.png new file mode 100644 index 0000000000000000000000000000000000000000..e06a6c74639acdc056a53b1b64b54e809cbe263f --- /dev/null +++ b/Projects/Street/Materials/Textures/T_NYB_134.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3288e236f972de05579640d3d290e2517bc0f94684819fc78dfc69dde622dd75 +size 652887 diff --git a/Projects/Street/Materials/Textures/T_NYB_135.png b/Projects/Street/Materials/Textures/T_NYB_135.png new file mode 100644 index 0000000000000000000000000000000000000000..ed901c33c80ef1ebe67c6b168ecff6b8f39a9d01 --- /dev/null +++ b/Projects/Street/Materials/Textures/T_NYB_135.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:529ee181480e103bbb5a565d553c52a9b37a8f111609a60c900e3f3621ff0a7b +size 1629701 diff --git a/Projects/Street/Materials/Textures/T_NYB_14.png b/Projects/Street/Materials/Textures/T_NYB_14.png new file mode 100644 index 0000000000000000000000000000000000000000..74223a8aa78e09ad14931b77ae27cb2d3db39b71 --- /dev/null +++ b/Projects/Street/Materials/Textures/T_NYB_14.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7359c89f649e5861d7e6e5ec95a5e459f4e6ac60cbcc30f3cae33205547728b2 +size 413248 diff --git a/Projects/Street/Materials/Textures/T_NYB_141.png b/Projects/Street/Materials/Textures/T_NYB_141.png new file mode 100644 index 0000000000000000000000000000000000000000..22ad0ae02157f481d8c6495720ef3c482ee1dd4b --- /dev/null +++ b/Projects/Street/Materials/Textures/T_NYB_141.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:02772969018cf2abf6b347a34b6f863194291b37e6d391e01cc8547f9180b181 +size 1559122 diff --git a/Projects/Street/Materials/Textures/T_NYB_142.png b/Projects/Street/Materials/Textures/T_NYB_142.png new file mode 100644 index 0000000000000000000000000000000000000000..7356060c57edb8f5040be120fa7cf675d5eac3f7 --- /dev/null +++ b/Projects/Street/Materials/Textures/T_NYB_142.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:24e7e91767c1d15f0268f2d8cb86584c9b84716dd970fa55ea85b43ea08220d3 +size 951752 diff --git a/Projects/Street/Materials/Textures/T_NYB_144.png b/Projects/Street/Materials/Textures/T_NYB_144.png new file mode 100644 index 0000000000000000000000000000000000000000..e07dc0a1de62bebfc5988dcef804f5948cf42637 --- /dev/null +++ b/Projects/Street/Materials/Textures/T_NYB_144.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0b94e767fa6ba9c3b748e2fff37c7c842a2015aa7d3bfd4c9a638018f91e2e01 +size 54363 diff --git a/Projects/Street/Materials/Textures/T_NYB_147.png b/Projects/Street/Materials/Textures/T_NYB_147.png new file mode 100644 index 0000000000000000000000000000000000000000..7020b6ca1e19a43c70baa8745241a7b12e8f2c2d --- /dev/null +++ b/Projects/Street/Materials/Textures/T_NYB_147.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:73582c8c0067fdae9f5c1d8c7b67bdfe0d9aaa5f0469a0ed84c8f01f79f71608 +size 907311 diff --git a/Projects/Street/Materials/Textures/T_NYB_21.png b/Projects/Street/Materials/Textures/T_NYB_21.png new file mode 100644 index 0000000000000000000000000000000000000000..2d7ab4a15677e3612e1d71536dcfc60c21483e72 --- /dev/null +++ b/Projects/Street/Materials/Textures/T_NYB_21.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ddcd62af81c43315384bde8db935510f617b8ef839afcd1d23bdd4db38ce9b48 +size 1883867 diff --git a/Projects/Street/Materials/Textures/T_NYB_23.png b/Projects/Street/Materials/Textures/T_NYB_23.png new file mode 100644 index 0000000000000000000000000000000000000000..af14d5c841ce380d8e7609c60a5edd9dd0881c68 --- /dev/null +++ b/Projects/Street/Materials/Textures/T_NYB_23.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:069a267b5125301a839238db06dee776809e17ae7e62e047e700532d4cf4b75f +size 1730415 diff --git a/Projects/Street/Materials/Textures/T_NYB_45.png b/Projects/Street/Materials/Textures/T_NYB_45.png new file mode 100644 index 0000000000000000000000000000000000000000..4c9381e8ef6dcc5209c165b9bd7f12894e954fde --- /dev/null +++ b/Projects/Street/Materials/Textures/T_NYB_45.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f67291fba56e49bfa8da6d4bed1364bc75ebcf18f9c1e60459e4f06d952fe5fe +size 79959 diff --git a/Projects/Street/Materials/Textures/T_NYB_51.png b/Projects/Street/Materials/Textures/T_NYB_51.png new file mode 100644 index 0000000000000000000000000000000000000000..00983fd73a35f7839e8383a90bb4c2469eebe94e --- /dev/null +++ b/Projects/Street/Materials/Textures/T_NYB_51.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:85fffdf5e7df3afba00e317052b32d1cab0c3166de108804f32dfa6e122c2fec +size 304317 diff --git a/Projects/Street/Materials/Textures/T_NYB_58.png b/Projects/Street/Materials/Textures/T_NYB_58.png new file mode 100644 index 0000000000000000000000000000000000000000..8ce3f3f5f7366c785178f3332374a4dac38d7bee --- /dev/null +++ b/Projects/Street/Materials/Textures/T_NYB_58.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ceaa72d0ac7a07da860ea44a445e6f112dbedb5fe2944e403291462f50a99fa4 +size 1028785 diff --git a/Projects/Street/Materials/Textures/T_NYB_7.png b/Projects/Street/Materials/Textures/T_NYB_7.png new file mode 100644 index 0000000000000000000000000000000000000000..1f3cb885e0542c16d30b6c6df12bea818eeb2841 --- /dev/null +++ b/Projects/Street/Materials/Textures/T_NYB_7.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:23a16ee3622251293317e925ab969019a67c55fbb2390b46b574f3ba2ac29a63 +size 887272 diff --git a/Projects/Street/Materials/Textures/T_NYB_70.png b/Projects/Street/Materials/Textures/T_NYB_70.png new file mode 100644 index 0000000000000000000000000000000000000000..f2b18260fcf41554c4e6f22975fa1861ca867bc6 --- /dev/null +++ b/Projects/Street/Materials/Textures/T_NYB_70.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:79cf4f2649223c940c2c913bd7ca6fefddc8dac29c85218318e9b7768aff257b +size 789646 diff --git a/Projects/Street/Materials/Textures/T_NYB_74.png b/Projects/Street/Materials/Textures/T_NYB_74.png new file mode 100644 index 0000000000000000000000000000000000000000..aa6d4f6903ca7d9bcabb094c58f7765da7162718 --- /dev/null +++ b/Projects/Street/Materials/Textures/T_NYB_74.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe6fbe91cce90b4b3bed5d30310b07ab82686c477725f740cce3eab4a8c2706c +size 6482679 diff --git a/Projects/Street/Materials/Textures/T_NYB_75.png b/Projects/Street/Materials/Textures/T_NYB_75.png new file mode 100644 index 0000000000000000000000000000000000000000..4e2a0a20de3d708f87be4e6e5134fdc62fc6297a --- /dev/null +++ b/Projects/Street/Materials/Textures/T_NYB_75.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c0c5116b22b3716c84d0ad208064f26a190263d4aa4f8595a41180d5a820758a +size 2072291 diff --git a/Projects/Street/Materials/Textures/T_NYB_82.png b/Projects/Street/Materials/Textures/T_NYB_82.png new file mode 100644 index 0000000000000000000000000000000000000000..e6684e6d11d137c0fe7c3d6502e9363b571b02e1 --- /dev/null +++ b/Projects/Street/Materials/Textures/T_NYB_82.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a0dc6730af35e3729bbb5ba2256f9d2ffc80be7dc9578f39edfa22ee13b157d9 +size 393225 diff --git a/Projects/Street/Materials/Textures/T_NYB_95.png b/Projects/Street/Materials/Textures/T_NYB_95.png new file mode 100644 index 0000000000000000000000000000000000000000..a3b8c604fc535916437aa8e572c481c76f308239 --- /dev/null +++ b/Projects/Street/Materials/Textures/T_NYB_95.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7e286027d5970133d07204183cb1fd4427c9f0831319865a534c43206317b6ee +size 561784 diff --git a/Projects/Street/Materials/Textures/T_NYB_96.png b/Projects/Street/Materials/Textures/T_NYB_96.png new file mode 100644 index 0000000000000000000000000000000000000000..c430f997286cfa82936c715af6271e6441074064 --- /dev/null +++ b/Projects/Street/Materials/Textures/T_NYB_96.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d37c8706d7cc90689505071201f2500693d9f91516bc0c13f2186c24385e3cfe +size 341856 diff --git a/Projects/Street/Materials/Textures/T_NYB_98.png b/Projects/Street/Materials/Textures/T_NYB_98.png new file mode 100644 index 0000000000000000000000000000000000000000..69b58441f113c98e9fb913b7ef00e3dc8442cefe --- /dev/null +++ b/Projects/Street/Materials/Textures/T_NYB_98.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:485a96e90f4727044893d6a97df0a53e41444af8db8dfc5380c48162ad48397a +size 1318216 diff --git a/Projects/Street/Props/SM_Block_002.usd b/Projects/Street/Props/SM_Block_002.usd new file mode 100644 index 0000000000000000000000000000000000000000..0d25173c882a6a9f206a545a884614eb9e920a5a --- /dev/null +++ b/Projects/Street/Props/SM_Block_002.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be7e3f4c41d61efe61ec94c5d7104f067881e92caaf83d3dbb5cab298c92c936 +size 2040525 diff --git a/Projects/Street/Props/SM_Block_004.usd b/Projects/Street/Props/SM_Block_004.usd new file mode 100644 index 0000000000000000000000000000000000000000..0f5b3c3a651bcac880fd17c684845a0a32ebdd34 --- /dev/null +++ b/Projects/Street/Props/SM_Block_004.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bf4cf114d335defdad4a87d034039847a25654e1d2af912bdd79d70160ffc9a4 +size 2256634 diff --git a/Projects/Street/Props/SM_Buidlng_000.usd b/Projects/Street/Props/SM_Buidlng_000.usd new file mode 100644 index 0000000000000000000000000000000000000000..ec790232e0c0208f94bd3198315570e04d4c5576 --- /dev/null +++ b/Projects/Street/Props/SM_Buidlng_000.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7af4cb17ce508c38bde6a70eee2f63ec6ab49593beb855ff9e5fd73a1e918f30 +size 6254103 diff --git a/Projects/Street/Props/SM_Buidlng_002.usd b/Projects/Street/Props/SM_Buidlng_002.usd new file mode 100644 index 0000000000000000000000000000000000000000..86dee9917c18c9695260752bf56f2aa8be4e34f7 --- /dev/null +++ b/Projects/Street/Props/SM_Buidlng_002.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a289f469d5300334cb495bf44418953da7d1fdcaeb8b8d1ed9c39a1b36611b8d +size 2585446 diff --git a/Projects/Street/Props/SM_Buidlng_003.usd b/Projects/Street/Props/SM_Buidlng_003.usd new file mode 100644 index 0000000000000000000000000000000000000000..189569a40e66d4625023dcd32e86af07e29acea1 --- /dev/null +++ b/Projects/Street/Props/SM_Buidlng_003.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2878f4c1fe6bdadfc961c2a549ead653824f449e9d9252a0a0534ed0ebfb3984 +size 1687360 diff --git a/Projects/Street/Props/SM_Buidlng_004.usd b/Projects/Street/Props/SM_Buidlng_004.usd new file mode 100644 index 0000000000000000000000000000000000000000..2a6c50ccf34251089147f2fc18dcf716849996c5 --- /dev/null +++ b/Projects/Street/Props/SM_Buidlng_004.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:32a6b898ae508fbeff9e7aa10f5609a6707b5b89b8565938b559df96b582ab00 +size 2720605 diff --git a/Projects/Street/Props/SM_Buidlng_005.usd b/Projects/Street/Props/SM_Buidlng_005.usd new file mode 100644 index 0000000000000000000000000000000000000000..29478aeed56c3499c6ac542442f01b3366f4c6f6 --- /dev/null +++ b/Projects/Street/Props/SM_Buidlng_005.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:962d009badfda91eed23ebad915310e1e5c171aa6ed3e0f086387c3671ce0ff4 +size 1810703 diff --git a/Projects/Street/Props/SM_Buidlng_006.usd b/Projects/Street/Props/SM_Buidlng_006.usd new file mode 100644 index 0000000000000000000000000000000000000000..a1ff14c0809869fad4fea9433801ff8a848e91c1 --- /dev/null +++ b/Projects/Street/Props/SM_Buidlng_006.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b31870db21d611dd47a700ccc7b77ae4f63855eb6091d0aa7e34b73936e1f32d +size 7072078 diff --git a/Projects/Street/Props/SM_Buidlng_008.usd b/Projects/Street/Props/SM_Buidlng_008.usd new file mode 100644 index 0000000000000000000000000000000000000000..7a87e824e01a6521cbf31370177d5ae9624fe978 --- /dev/null +++ b/Projects/Street/Props/SM_Buidlng_008.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:70a8b02cbee3c3f511d387b65b2726ded0f7df8dc5722cb3d108d0b0799983ad +size 2246004 diff --git a/Projects/Street/Props/SM_Buidlng_009.usd b/Projects/Street/Props/SM_Buidlng_009.usd new file mode 100644 index 0000000000000000000000000000000000000000..e3c8c207b98184756eb24061b28c822bac7fb554 --- /dev/null +++ b/Projects/Street/Props/SM_Buidlng_009.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:99f7cda522be02bca8531aba8bff2a40c2d501e69447f85fb1d127cd8ca348b9 +size 4044358 diff --git a/Projects/Street/Props/SM_Buidlng_010.usd b/Projects/Street/Props/SM_Buidlng_010.usd new file mode 100644 index 0000000000000000000000000000000000000000..da9843ef321fd5951a4d3cf4bde2b41fea41277d --- /dev/null +++ b/Projects/Street/Props/SM_Buidlng_010.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2b60c7eb185501c9ce23178181f31b9e062327fc93835d76fa1f3e80d4d72635 +size 3876835 diff --git a/Projects/Street/Props/SM_Buidlng_011.usd b/Projects/Street/Props/SM_Buidlng_011.usd new file mode 100644 index 0000000000000000000000000000000000000000..1426cf4a67806b22359adaac0652cf172199f4bf --- /dev/null +++ b/Projects/Street/Props/SM_Buidlng_011.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:186a9159332b60016f03d778721811b0404c5b7431513a9c74a12a460abeea69 +size 7430977 diff --git a/Projects/Street/Props/SM_Buidlng_012.usd b/Projects/Street/Props/SM_Buidlng_012.usd new file mode 100644 index 0000000000000000000000000000000000000000..ab01db4b26513ab609ae709ad5571670c1602b67 --- /dev/null +++ b/Projects/Street/Props/SM_Buidlng_012.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7457525f7a89b4a1d1db2eceda27a69d585461e143b699125f6fd5c563f90bad +size 2072119 diff --git a/Projects/Street/Props/SM_Buidlng_014.usd b/Projects/Street/Props/SM_Buidlng_014.usd new file mode 100644 index 0000000000000000000000000000000000000000..f4af021f882e40ff11a70e02967f0c64d88966fb --- /dev/null +++ b/Projects/Street/Props/SM_Buidlng_014.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4cf58e6ea6de0da5063970b25e773b695b87b2c4ebefa31c9f91d469a4062aa4 +size 5561902 diff --git a/Projects/Street/Props/SM_Buidlng_016.usd b/Projects/Street/Props/SM_Buidlng_016.usd new file mode 100644 index 0000000000000000000000000000000000000000..c10310bbc0376dd24c9f7f04a04db18cfefacd2c --- /dev/null +++ b/Projects/Street/Props/SM_Buidlng_016.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8e4a3b9e052b9f73955c0c87491134f2cea38005bf242954c26ff1205a32c6c1 +size 4311268 diff --git a/Projects/Street/Props/SM_Buidlng_017.usd b/Projects/Street/Props/SM_Buidlng_017.usd new file mode 100644 index 0000000000000000000000000000000000000000..a3864ccc279acc6daa377cca09e79babb11bc034 --- /dev/null +++ b/Projects/Street/Props/SM_Buidlng_017.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:944a991c4c07dbca68d7aa5cb867ccf8a91f9f86f3d36662ae2cc6f7533f7520 +size 5176129 diff --git a/Projects/Street/Props/SM_Buidlng_018.usd b/Projects/Street/Props/SM_Buidlng_018.usd new file mode 100644 index 0000000000000000000000000000000000000000..e619b3f761b06bb2bbeb995acabfe912cae3d204 --- /dev/null +++ b/Projects/Street/Props/SM_Buidlng_018.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8386e0e022a4263ab0082db89473035ebaadee70a0834da868fe79ebd5e79e5f +size 2528681 diff --git a/Projects/Street/Props/SM_Buidlng_020.usd b/Projects/Street/Props/SM_Buidlng_020.usd new file mode 100644 index 0000000000000000000000000000000000000000..1a9daafd54f026708efbed9aea8fd5762e3a67dc --- /dev/null +++ b/Projects/Street/Props/SM_Buidlng_020.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2e45ca763ebed2384bcecb0684175a6840b866dfab2c8486d05ec78453eab328 +size 2441783 diff --git a/Projects/Street/Props/SM_Buidlng_021.usd b/Projects/Street/Props/SM_Buidlng_021.usd new file mode 100644 index 0000000000000000000000000000000000000000..7013a031249ac46afb53e1cb86f1cf1f9631c231 --- /dev/null +++ b/Projects/Street/Props/SM_Buidlng_021.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6468dcc0f357c2920a8c5a70ff6884eb78d050e0ccc8d33961ff91241b4bc69d +size 2698525 diff --git a/Projects/Street/Props/SM_Buidlng_022.usd b/Projects/Street/Props/SM_Buidlng_022.usd new file mode 100644 index 0000000000000000000000000000000000000000..c9599de64006beb7a7e4116021cfa508a15d36b1 --- /dev/null +++ b/Projects/Street/Props/SM_Buidlng_022.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:43afae7f0c8016edcff1bf28e9e37e7984526d5ee095bb4d3cedc86d60d28ad6 +size 12747990 diff --git a/Projects/Street/Props/SM_Buidlng_023.usd b/Projects/Street/Props/SM_Buidlng_023.usd new file mode 100644 index 0000000000000000000000000000000000000000..a1f0b46b6caed6e170034952cc5bb0936b89dd54 --- /dev/null +++ b/Projects/Street/Props/SM_Buidlng_023.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a5717749c9400f8ac30e2712a7b72c0efa4e1d3efac72b76e6854cef3574ace0 +size 1504567 diff --git a/Projects/Street/Props/SM_Buidlng_024.usd b/Projects/Street/Props/SM_Buidlng_024.usd new file mode 100644 index 0000000000000000000000000000000000000000..7743c17306faba1605b4a1a136641c5bcd334437 --- /dev/null +++ b/Projects/Street/Props/SM_Buidlng_024.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3301a63e1895a7b17405a6654be5d52088ea125dff72ec752a84d598a7bd9ae0 +size 5175569 diff --git a/Projects/Street/Props/SM_Buidlng_025.usd b/Projects/Street/Props/SM_Buidlng_025.usd new file mode 100644 index 0000000000000000000000000000000000000000..073f9b8730cdebbfe15e3e1bae2466e22e427530 --- /dev/null +++ b/Projects/Street/Props/SM_Buidlng_025.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e74cf3a269f9405fab0195ab6bcb54e1b9682cd6aa8685680f1cfed851dc39b0 +size 1807812 diff --git a/Projects/Street/Props/SM_Buidlng_026.usd b/Projects/Street/Props/SM_Buidlng_026.usd new file mode 100644 index 0000000000000000000000000000000000000000..0414fed7255657a7aecf1c8eb1be870b6fb60718 --- /dev/null +++ b/Projects/Street/Props/SM_Buidlng_026.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:26614636322fa78e6241b79e6086eea476da8b9f67ed21343088be994e033438 +size 1258130 diff --git a/Projects/Street/Props/SM_Buidlng_028.usd b/Projects/Street/Props/SM_Buidlng_028.usd new file mode 100644 index 0000000000000000000000000000000000000000..a607be324e7f2bc02f9bf6d6bd04e441609eb573 --- /dev/null +++ b/Projects/Street/Props/SM_Buidlng_028.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c79dcab31a3d8eaf0a507fdf3109df833e5a272f178812d40fd39e6dde317ec7 +size 1754252 diff --git a/Projects/Street/Props/SM_Buidlng_029.usd b/Projects/Street/Props/SM_Buidlng_029.usd new file mode 100644 index 0000000000000000000000000000000000000000..9b8473bc2f451d591638f4a7f961ab13b42aa643 --- /dev/null +++ b/Projects/Street/Props/SM_Buidlng_029.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ed9663de794620a931e22eb40f1a940a386b91fa8812fa671a0c890de8ee39d3 +size 5601432 diff --git a/Projects/Street/Props/SM_Buidlng_030.usd b/Projects/Street/Props/SM_Buidlng_030.usd new file mode 100644 index 0000000000000000000000000000000000000000..3a62f4a814c3c3d56971d635af4ecc74290b77e7 --- /dev/null +++ b/Projects/Street/Props/SM_Buidlng_030.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:32349b41f69949147f03865d7fe3ea22fba131d5cc5828bf122284fad7878771 +size 717629 diff --git a/Projects/Street/Props/SM_Buidlng_032.usd b/Projects/Street/Props/SM_Buidlng_032.usd new file mode 100644 index 0000000000000000000000000000000000000000..7de399ead50ec89c5f9b24135f6d9753200d998f --- /dev/null +++ b/Projects/Street/Props/SM_Buidlng_032.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c2e35bf7d9de4c01f328d3c195c434f01aba58842dce74acb348398c0e92f126 +size 7646072 diff --git a/Projects/Street/Props/SM_Scaffolding_001.usd b/Projects/Street/Props/SM_Scaffolding_001.usd new file mode 100644 index 0000000000000000000000000000000000000000..461d4769f7e67fcf41b493063b50517fe14d64d8 --- /dev/null +++ b/Projects/Street/Props/SM_Scaffolding_001.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e7b13e43c0493198c6d5ee751fdfcb73853273413a8211178fc7f1b4c260a188 +size 457705 diff --git a/Projects/Street/Props/SM_StreetDetails_002.usd b/Projects/Street/Props/SM_StreetDetails_002.usd new file mode 100644 index 0000000000000000000000000000000000000000..0526f2e1e345387784a1a1b2482c20c0814427d4 Binary files /dev/null and b/Projects/Street/Props/SM_StreetDetails_002.usd differ diff --git a/Projects/Street/Props/SM_StreetDetails_003.usd b/Projects/Street/Props/SM_StreetDetails_003.usd new file mode 100644 index 0000000000000000000000000000000000000000..84aa444f72110c259f838486d216a40f0edc3259 --- /dev/null +++ b/Projects/Street/Props/SM_StreetDetails_003.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:34e97e5486044994f834ac503080d9782245db1a525a32cb6c9e7a4a0dfde8bc +size 10924105 diff --git a/Projects/Street/Props/SM_StreetDetails_004.usd b/Projects/Street/Props/SM_StreetDetails_004.usd new file mode 100644 index 0000000000000000000000000000000000000000..b58cbad5106bd997190f894e0cac21b9a77062b3 --- /dev/null +++ b/Projects/Street/Props/SM_StreetDetails_004.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c44bd9cebbd84addd33f6dbb84f2672be1258c87225154435350d1abad8979f8 +size 6470218 diff --git a/Projects/Street/Street.usd b/Projects/Street/Street.usd new file mode 100644 index 0000000000000000000000000000000000000000..e3098b2da4dbbe41c70bca26f9d81e238653524f Binary files /dev/null and b/Projects/Street/Street.usd differ diff --git a/Projects/Street/Test/Materials/MI_NYB_175.mdl b/Projects/Street/Test/Materials/MI_NYB_175.mdl new file mode 100644 index 0000000000000000000000000000000000000000..0e2c0d03a7fa36ae2144ba90a86041f20a678973 --- /dev/null +++ b/Projects/Street/Test/Materials/MI_NYB_175.mdl @@ -0,0 +1,86 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +import ::scene::*; +using .::OmniUe4Function import *; +using .::OmniUe4Base import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material MI_NYB_175( + float4 Diffuse_Color_1_ = float4(0.588,0.588,0.588,1.0) + [[ + anno::display_name("Diffuse_Color (1)"), + anno::ui_order(32) + ]], + float4 Specular_4_ = float4(0.9,0.9,0.9,1.0) + [[ + anno::display_name("Specular (4)"), + anno::ui_order(32) + ]], + float Specular_Level_5_ = 0.0 + [[ + anno::display_name("Specular_Level (5)"), + anno::ui_order(32) + ]], + float Glossiness_2_ = 0.1 + [[ + anno::display_name("Glossiness (2)"), + anno::ui_order(32) + ]]) + = + let { + float3 WorldPositionOffset_mdl = float3(0.0,0.0,0.0); + + + float3 Normal_mdl = float3(0.0,0.0,1.0); + + float Local0 = (Specular_Level_5_ * Glossiness_2_); + float3 Local1 = (float3(Specular_4_.x,Specular_4_.y,Specular_4_.z) * Local0); + float3 Local2 = (float3(Diffuse_Color_1_.x,Diffuse_Color_1_.y,Diffuse_Color_1_.z) + Local1); + float Local3 = math::dot(float3(Diffuse_Color_1_.x,Diffuse_Color_1_.y,Diffuse_Color_1_.z), float3(0.3,0.59,0.11)); + float Local4 = (Local3 + -0.4); + float Local5 = (Local4 * -5.0); + float Local6 = math::min(math::max(Local5,0.0),1.0); + float Local7 = math::dot(Local1, float3(0.3,0.59,0.11)); + float Local8 = (Local3 + Local7); + float Local9 = (Local7 / Local8); + float Local10 = (Local9 - 0.5); + float Local11 = (Local10 * 4.0); + float Local12 = (Local11 + 0.5); + float Local13 = math::min(math::max(Local12,0.0),1.0); + float Local14 = (Local6 * Local13); + float3 Local15 = math::lerp(float3(Diffuse_Color_1_.x,Diffuse_Color_1_.y,Diffuse_Color_1_.z),Local2,Local14); + float Local16 = (Local7 * 12.5); + float Local17 = (1.0 - Glossiness_2_); + + float3 EmissiveColor_mdl = float3(0.0,0.0,0.0); + float OpacityMask_mdl = 1.0; + float3 BaseColor_mdl = Local15; + float Metallic_mdl = Local14; + float Specular_mdl = Local16; + float Roughness_mdl = Local17; + float SurfaceThickness_mdl = 0.01; + float Displacement_mdl = 0.0; + + } in + ::OmniUe4Base( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + two_sided: false); diff --git a/Projects/Street/Test/Materials/MI_NYB_80.mdl b/Projects/Street/Test/Materials/MI_NYB_80.mdl new file mode 100644 index 0000000000000000000000000000000000000000..7929f0d19e9159cab884e0ec6a998e516bc88a64 --- /dev/null +++ b/Projects/Street/Test/Materials/MI_NYB_80.mdl @@ -0,0 +1,93 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +import ::scene::*; +using .::OmniUe4Function import *; +using .::OmniUe4Base import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material MI_NYB_80( + uniform texture_2d Texture_1_ = texture_2d("./Textures/T_NYB_87.png",::tex::gamma_srgb) + [[ + anno::display_name("Texture (1)"), + anno::ui_order(32), + sampler_color() + ]], + float4 Specular_4_ = float4(0.9,0.9,0.9,1.0) + [[ + anno::display_name("Specular (4)"), + anno::ui_order(32) + ]], + float Specular_Level_5_ = 0.0 + [[ + anno::display_name("Specular_Level (5)"), + anno::ui_order(32) + ]], + float Glossiness_2_ = 0.1 + [[ + anno::display_name("Glossiness (2)"), + anno::ui_order(32) + ]], + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 WorldPositionOffset_mdl = float3(0.0,0.0,0.0); + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + + float3 Normal_mdl = float3(0.0,0.0,1.0); + + float4 Local0 = tex::lookup_float4(Texture_1_,float2(CustomizedUV0_mdl.x,1.0-CustomizedUV0_mdl.y),tex::wrap_repeat,tex::wrap_repeat); + float Local1 = (Specular_Level_5_ * Glossiness_2_); + float3 Local2 = (float3(Specular_4_.x,Specular_4_.y,Specular_4_.z) * Local1); + float3 Local3 = (float3(Local0.x,Local0.y,Local0.z) + Local2); + float Local4 = math::dot(float3(Local0.x,Local0.y,Local0.z), float3(0.3,0.59,0.11)); + float Local5 = (Local4 + -0.4); + float Local6 = (Local5 * -5.0); + float Local7 = math::min(math::max(Local6,0.0),1.0); + float Local8 = math::dot(Local2, float3(0.3,0.59,0.11)); + float Local9 = (Local4 + Local8); + float Local10 = (Local8 / Local9); + float Local11 = (Local10 - 0.5); + float Local12 = (Local11 * 4.0); + float Local13 = (Local12 + 0.5); + float Local14 = math::min(math::max(Local13,0.0),1.0); + float Local15 = (Local7 * Local14); + float3 Local16 = math::lerp(float3(Local0.x,Local0.y,Local0.z),Local3,Local15); + float Local17 = (Local8 * 12.5); + float Local18 = (1.0 - Glossiness_2_); + + float3 EmissiveColor_mdl = float3(0.0,0.0,0.0); + float OpacityMask_mdl = 1.0; + float3 BaseColor_mdl = Local16; + float Metallic_mdl = Local15; + float Specular_mdl = Local17; + float Roughness_mdl = Local18; + float SurfaceThickness_mdl = 0.01; + float Displacement_mdl = 0.0; + + } in + ::OmniUe4Base( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + two_sided: false); diff --git a/Projects/Street/Test/Materials/OmniUe4Base.mdl b/Projects/Street/Test/Materials/OmniUe4Base.mdl new file mode 100644 index 0000000000000000000000000000000000000000..a441fbaf28040302c7aaabfbcf14b24a85bdf643 --- /dev/null +++ b/Projects/Street/Test/Materials/OmniUe4Base.mdl @@ -0,0 +1,224 @@ +/*************************************************************************************************** + * Copyright 2020 NVIDIA Corporation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * 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. + * * Neither the name of NVIDIA CORPORATION 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 ``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 OWNER 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. + **************************************************************************************************/ + +//* 1.0.0 - first version +//* 1.0.1 - merge unlit template +//* 1.0.2 - Fix EDF in the back side: the EDF contained in surface is only used for the front side and not for the back side +//* 1.0.3 - UE4 normal mapping: Geometry normal shouldn't be changed +//* 1.0.4 - using absolute import paths when importing standard modules + +mdl 1.3; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::tex::*; +import ::anno::*; + +float emissive_multiplier() +[[ + anno::description("the multiplier to convert UE4 emissive to raw data"), + anno::noinline() +]] +{ + return 20.0f * 128.0f; +} + +float3 tangent_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in tangent space"), + anno::noinline() +]] +{ + return math::normalize( + tangent_u * normal.x - /* flip_tangent_v */ + tangent_v * normal.y + + state::normal() * (normal.z)); +} + +float3 world_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in world space"), + anno::noinline() +]] +{ + return tangent_space_normal( + math::normalize( + normal.x * float3(tangent_u.x, tangent_v.x, state::normal().x) - + normal.y * float3(tangent_u.y, tangent_v.y, state::normal().y) + + normal.z * float3(tangent_u.z, tangent_v.z, state::normal().z)), + tangent_u, + tangent_v + ); +} + +export material OmniUe4Base( + float3 base_color = float3(0.0, 0.0, 0.0), + float metallic = 0.0, + float roughness = 0.5, + float specular = 0.5, + float3 normal = float3(0.0,0.0,1.0), + float clearcoat_weight = 0.0, + float clearcoat_roughness = 0.0, + float3 clearcoat_normal = float3(0.0,0.0,1.0), + uniform bool enable_opacity = true, + float opacity = 1.0, + float3 emissive_color = float3(0.0, 0.0, 0.0), + float3 displacement = float3(0.0), + uniform bool is_tangent_space_normal = true, + uniform bool two_sided = false, + uniform bool is_unlit = false +) +[[ + anno::display_name("Omni UE4 Base"), + anno::description("Omni UE4 Base, supports UE4 default lit and clearcoat shading model"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("omni", "UE4", "omniverse", "lit", "clearcoat", "generic")) +]] + = let { + color final_base_color = math::saturate(base_color); + float final_metallic = math::saturate(metallic); + float final_roughness = math::saturate(roughness); + float final_specular = math::saturate(specular); + color final_emissive_color = math::max(emissive_color, 0.0f) * emissive_multiplier(); /*factor for converting ue4 emissive to raw value*/ + float final_clearcoat_weight = math::saturate(clearcoat_weight); + float final_clearcoat_roughness = math::saturate(clearcoat_roughness); + float3 final_normal = math::normalize(normal); + float3 final_clearcoat_normal = math::normalize(clearcoat_normal); + + // - compute final roughness by squaring the "roughness" parameter + float alpha = final_roughness * final_roughness; + // reduce the reflectivity at grazing angles to avoid "dark edges" for high roughness due to the layering + float grazing_refl = math::max((1.0 - final_roughness), 0.0); + + float3 the_normal = is_unlit ? state::normal() : + (is_tangent_space_normal ? + tangent_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ) : world_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + )); + + // for the dielectric component we layer the glossy component on top of the diffuse one, + // the glossy layer has no color tint + + bsdf dielectric_component = df::custom_curve_layer( + weight: final_specular, + normal_reflectivity: 0.08, + grazing_reflectivity: grazing_refl, + layer: df::microfacet_ggx_smith_bsdf(roughness_u: alpha), + base: df::diffuse_reflection_bsdf(tint: final_base_color), + normal: the_normal); + + // the metallic component doesn't have a diffuse component, it's only glossy + // base_color is applied to tint it + bsdf metallic_component = df::microfacet_ggx_smith_bsdf(tint: final_base_color, roughness_u: alpha); + + // final BSDF is a linear blend between dielectric and metallic component + bsdf dielectric_metal_mix = + df::normalized_mix( + components: + df::bsdf_component[]( + df::bsdf_component( + component: metallic_component, + weight: final_metallic), + df::bsdf_component( + component: dielectric_component, + weight: 1.0-final_metallic) + ) + ); + + // clearcoat layer + float clearcoat_grazing_refl = math::max((1.0 - final_clearcoat_roughness), 0.0); + float clearcoat_alpha = final_clearcoat_roughness * final_clearcoat_roughness; + + float3 the_clearcoat_normal = is_tangent_space_normal ? tangent_space_normal( + normal: final_clearcoat_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ) : world_space_normal( + normal: final_clearcoat_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ); + + + bsdf clearcoat = + df::custom_curve_layer( + base: df::weighted_layer( + layer: dielectric_metal_mix, + weight: 1.0, + normal: final_clearcoat_weight == 0.0 ? state::normal() : the_normal + ), + layer: df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_alpha, + tint: color(1.0) + ), + normal_reflectivity: 0.04, + grazing_reflectivity: clearcoat_grazing_refl, + normal: the_clearcoat_normal, + weight: final_clearcoat_weight + ); + bsdf surface = is_unlit ? bsdf() : clearcoat; +} +in material( + thin_walled: two_sided, // Graphene? + surface: material_surface( + scattering: surface, + emission: + material_emission ( + emission: df::diffuse_edf (), + intensity: final_emissive_color + ) + ), + backface: material_surface( + emission: + material_emission ( + emission: df::diffuse_edf (), + intensity: final_emissive_color + ) + ), + geometry: material_geometry( + displacement: displacement, + normal: final_clearcoat_weight == 0.0 ? the_normal : state::normal(), + cutout_opacity: enable_opacity ? opacity : 1.0 + ) +); diff --git a/Projects/Street/Test/Materials/OmniUe4Function.mdl b/Projects/Street/Test/Materials/OmniUe4Function.mdl new file mode 100644 index 0000000000000000000000000000000000000000..84f4f0da48ff31d03ee611373fe3a4d2e04c9079 --- /dev/null +++ b/Projects/Street/Test/Materials/OmniUe4Function.mdl @@ -0,0 +1,1413 @@ +/*************************************************************************************************** + * Copyright 2020 NVIDIA Corporation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * 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. + * * Neither the name of NVIDIA CORPORATION 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 ``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 OWNER 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. + **************************************************************************************************/ + +//* 1.0.1 - using absolute import paths when importing standard modules + +mdl 1.6; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::tex::*; +import ::anno::*; + + +export float3 convert_to_left_hand(float3 vec3, uniform bool up_z = true, uniform bool is_position = true) +[[ + anno::description("convert from RH to LH"), + anno::noinline() +]] +{ + float4x4 ZupConversion = float4x4( + 1.0f, 0.0f, 0.0f, 0.0f, + 0.0f, -1.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 1.0f, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f + ); + + float4x4 YupConversion = float4x4( + 1.0f, 0.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 1.0f, 0.0f, + 0.0f, 1.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f + ); + + float4 vec4 = float4(vec3.x, vec3.y, vec3.z, is_position ? 1.0f : 0.0f); + + vec4 = vec4 * (up_z ? ZupConversion : YupConversion); + + return float3(vec4.x, vec4.y, vec4.z); +} + +export float3 transform_vector_from_tangent_to_world(float3 vector, + uniform bool up_z = true, + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0)) +[[ + anno::description("Transform vector from tangent space to world space"), + anno::noinline() +]] +{ + /* flip_tangent_v */ + return convert_to_left_hand( + tangent_u * vector.x - tangent_v * vector.y + state::normal() * vector.z, + up_z, false); +} + +export float3 transform_vector_from_world_to_tangent(float3 vector, + uniform bool up_z = true, + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0)) +[[ + anno::description("Transform vector from world space to tangent space"), + anno::noinline() +]] +{ + float3 vecRH = convert_to_left_hand(vector, up_z, false); + /* flip_tangent_v */ + return vecRH.x * float3(tangent_u.x, -tangent_v.x, state::normal().x) + + vecRH.y * float3(tangent_u.y, -tangent_v.y, state::normal().y) + + vecRH.z * float3(tangent_u.z, -tangent_v.z, state::normal().z); +} + +export float4 unpack_normal_map( + float4 texture_sample = float4(0.0, 0.0, 1.0, 1.0) + ) +[[ + anno::description("Unpack a normal stored in a normal map"), + anno::noinline() +]] +{ + float2 normal_xy = float2(texture_sample.x, texture_sample.y); + + normal_xy = normal_xy * float2(2.0,2.0) - float2(1.0,1.0); + float normal_z = math::sqrt( math::saturate( 1.0 - math::dot( normal_xy, normal_xy ) ) ); + return float4( normal_xy.x, normal_xy.y, normal_z, 1.0 ); +} + +// for get color value from normal. +export float4 pack_normal_map( + float4 texture_sample = float4(0.0, 0.0, 1.0, 1.0) + ) +[[ + anno::description("Pack to color from a normal") +]] +{ + float2 return_xy = float2(texture_sample.x, texture_sample.y); + + return_xy = (return_xy + float2(1.0,1.0)) / float2(2.0,2.0); + + return float4( return_xy.x, return_xy.y, 0.0, 1.0 ); +} + +export float4 greyscale_texture_lookup( + float4 texture_sample = float4(0.0, 0.0, 0.0, 1.0) + ) +[[ + anno::description("Sampling a greyscale texture"), + anno::noinline() +]] +{ + return float4(texture_sample.x, texture_sample.x, texture_sample.x, texture_sample.x); +} + +export float3 pixel_normal_world_space(uniform bool up_z = true) +[[ + anno::description("Pixel normal in world space"), + anno::noinline() +]] +{ + return convert_to_left_hand(state::transform_normal(state::coordinate_internal,state::coordinate_world,state::normal()), up_z, false); +} + +export float3 vertex_normal_world_space(uniform bool up_z = true) +[[ + anno::description("Vertex normal in world space"), + anno::noinline() +]] +{ + return convert_to_left_hand(state::transform_normal(state::coordinate_internal,state::coordinate_world,state::normal()), up_z, false); +} + +export float3 landscape_normal_world_space(uniform bool up_z = true) +[[ + anno::description("Landscape normal in world space") +]] +{ + float3 normalFromNormalmap = math::floor((::vertex_normal_world_space(up_z) * 0.5 + 0.5) * 255.0) / 255.0 * 2.0 - 1.0; + + float2 normalXY = float2(normalFromNormalmap.x, normalFromNormalmap.y); + return float3(normalXY.x, normalXY.y, math::sqrt(math::saturate(1.0 - math::dot(normalXY, normalXY)))); +} + +// Different implementation specific between mdl and hlsl for smoothstep +export float smoothstep(float a, float b, float l) +{ + if (a < b) + { + return math::smoothstep(a, b, l); + } + else if (a > b) + { + return 1.0 - math::smoothstep(b, a, l); + } + else + { + return l <= a ? 0.0 : 1.0; + } +} + +export float2 smoothstep(float2 a, float2 b, float2 l) +{ + return float2(smoothstep(a.x, b.x, l.x), smoothstep(a.y, b.y, l.y)); +} + +export float3 smoothstep(float3 a, float3 b, float3 l) +{ + return float3(smoothstep(a.x, b.x, l.x), smoothstep(a.y, b.y, l.y), smoothstep(a.z, b.z, l.z)); +} + +export float4 smoothstep(float4 a, float4 b, float4 l) +{ + return float4(smoothstep(a.x, b.x, l.x), smoothstep(a.y, b.y, l.y), smoothstep(a.z, b.z, l.z), smoothstep(a.w, b.w, l.w)); +} + +export float2 smoothstep(float2 a, float2 b, float l) +{ + return float2(smoothstep(a.x, b.x, l), smoothstep(a.y, b.y, l)); +} + +export float3 smoothstep(float3 a, float3 b, float l) +{ + return float3(smoothstep(a.x, b.x, l), smoothstep(a.y, b.y, l), smoothstep(a.z, b.z, l)); +} + +export float4 smoothstep(float4 a, float4 b, float l) +{ + return float4(smoothstep(a.x, b.x, l), smoothstep(a.y, b.y, l), smoothstep(a.z, b.z, l), smoothstep(a.w, b.w, l)); +} + +export float2 smoothstep(float a, float b, float2 l) +{ + return float2(smoothstep(a, b, l.x), smoothstep(a, b, l.y)); +} + +export float3 smoothstep(float a, float b, float3 l) +{ + return float3(smoothstep(a, b, l.x), smoothstep(a, b, l.y), smoothstep(a, b, l.z)); +} + +export float4 smoothstep(float a, float b, float4 l) +{ + return float4(smoothstep(a, b, l.x), smoothstep(a, b, l.y), smoothstep(a, b, l.z), smoothstep(a, b, l.w)); +} + +//------------------ Random from UE4 ----------------------- +float length2(float3 v) +{ + return math::dot(v, v); +} + +float3 GetPerlinNoiseGradientTextureAt(uniform texture_2d PerlinNoiseGradientTexture, float3 v) +{ + const float2 ZShear = float2(17.0f, 89.0f); + + float2 OffsetA = v.z * ZShear; + float2 TexA = (float2(v.x, v.y) + OffsetA + 0.5f) / 128.0f; + float4 PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA.x,1.0-TexA.y),tex::wrap_repeat,tex::wrap_repeat); + return float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z) * 2.0 - 1.0; +} + +float3 SkewSimplex(float3 In) +{ + return In + math::dot(In, float3(1.0 / 3.0f) ); +} +float3 UnSkewSimplex(float3 In) +{ + return In - math::dot(In, float3(1.0 / 6.0f) ); +} + +// 3D random number generator inspired by PCGs (permuted congruential generator) +// Using a **simple** Feistel cipher in place of the usual xor shift permutation step +// @param v = 3D integer coordinate +// @return three elements w/ 16 random bits each (0-0xffff). +// ~8 ALU operations for result.x (7 mad, 1 >>) +// ~10 ALU operations for result.xy (8 mad, 2 >>) +// ~12 ALU operations for result.xyz (9 mad, 3 >>) + +//TODO: uint3 +int3 Rand3DPCG16(int3 p) +{ + // taking a signed int then reinterpreting as unsigned gives good behavior for negatives + //TODO: uint3 + int3 v = int3(p); + + // Linear congruential step. These LCG constants are from Numerical Recipies + // For additional #'s, PCG would do multiple LCG steps and scramble each on output + // So v here is the RNG state + v = v * 1664525 + 1013904223; + + // PCG uses xorshift for the final shuffle, but it is expensive (and cheap + // versions of xorshift have visible artifacts). Instead, use simple MAD Feistel steps + // + // Feistel ciphers divide the state into separate parts (usually by bits) + // then apply a series of permutation steps one part at a time. The permutations + // use a reversible operation (usually ^) to part being updated with the result of + // a permutation function on the other parts and the key. + // + // In this case, I'm using v.x, v.y and v.z as the parts, using + instead of ^ for + // the combination function, and just multiplying the other two parts (no key) for + // the permutation function. + // + // That gives a simple mad per round. + v.x += v.y*v.z; + v.y += v.z*v.x; + v.z += v.x*v.y; + v.x += v.y*v.z; + v.y += v.z*v.x; + v.z += v.x*v.y; + + // only top 16 bits are well shuffled + return v >> 16; +} + +// Wraps noise for tiling texture creation +// @param v = unwrapped texture parameter +// @param bTiling = true to tile, false to not tile +// @param RepeatSize = number of units before repeating +// @return either original or wrapped coord +float3 NoiseTileWrap(float3 v, bool bTiling, float RepeatSize) +{ + return bTiling ? (math::frac(v / RepeatSize) * RepeatSize) : v; +} + +// Evaluate polynomial to get smooth transitions for Perlin noise +// only needed by Perlin functions in this file +// scalar(per component): 2 add, 5 mul +float4 PerlinRamp(float4 t) +{ + return t * t * t * (t * (t * 6 - 15) + 10); +} + +// Blum-Blum-Shub-inspired pseudo random number generator +// http://www.umbc.edu/~olano/papers/mNoise.pdf +// real BBS uses ((s*s) mod M) with bignums and M as the product of two huge Blum primes +// instead, we use a single prime M just small enough not to overflow +// note that the above paper used 61, which fits in a half, but is unusably bad +// @param Integer valued floating point seed +// @return random number in range [0,1) +// ~8 ALU operations (5 *, 3 frac) +float RandBBSfloat(float seed) +{ + float BBS_PRIME24 = 4093.0; + float s = math::frac(seed / BBS_PRIME24); + s = math::frac(s * s * BBS_PRIME24); + s = math::frac(s * s * BBS_PRIME24); + return s; +} + +// Modified noise gradient term +// @param seed - random seed for integer lattice position +// @param offset - [-1,1] offset of evaluation point from lattice point +// @return gradient direction (xyz) and contribution (w) from this lattice point +float4 MGradient(int seed, float3 offset) +{ + //TODO uint + int rand = Rand3DPCG16(int3(seed,0,0)).x; + int3 MGradientMask = int3(0x8000, 0x4000, 0x2000); + float3 MGradientScale = float3(1.0 / 0x4000, 1.0 / 0x2000, 1.0 / 0x1000); + float3 direction = float3(int3(rand, rand, rand) & MGradientMask) * MGradientScale - 1; + return float4(direction.x, direction.y, direction.z, math::dot(direction, offset)); +} + +// compute Perlin and related noise corner seed values +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = true to return seed values for a repeating noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @param seed000-seed111 = hash function seeds for the eight corners +// @return fractional part of v +struct SeedValue +{ + float3 fv = float3(0); + float seed000 = 0; + float seed001 = 0; + float seed010 = 0; + float seed011 = 0; + float seed100 = 0; + float seed101 = 0; + float seed110 = 0; + float seed111 = 0; +}; + +SeedValue NoiseSeeds(float3 v, bool bTiling, float RepeatSize) +{ + SeedValue seeds; + seeds.fv = math::frac(v); + float3 iv = math::floor(v); + + const float3 primes = float3(19, 47, 101); + + if (bTiling) + { // can't algebraically combine with primes + seeds.seed000 = math::dot(primes, NoiseTileWrap(iv, true, RepeatSize)); + seeds.seed100 = math::dot(primes, NoiseTileWrap(iv + float3(1, 0, 0), true, RepeatSize)); + seeds.seed010 = math::dot(primes, NoiseTileWrap(iv + float3(0, 1, 0), true, RepeatSize)); + seeds.seed110 = math::dot(primes, NoiseTileWrap(iv + float3(1, 1, 0), true, RepeatSize)); + seeds.seed001 = math::dot(primes, NoiseTileWrap(iv + float3(0, 0, 1), true, RepeatSize)); + seeds.seed101 = math::dot(primes, NoiseTileWrap(iv + float3(1, 0, 1), true, RepeatSize)); + seeds.seed011 = math::dot(primes, NoiseTileWrap(iv + float3(0, 1, 1), true, RepeatSize)); + seeds.seed111 = math::dot(primes, NoiseTileWrap(iv + float3(1, 1, 1), true, RepeatSize)); + } + else + { // get to combine offsets with multiplication by primes in this case + seeds.seed000 = math::dot(iv, primes); + seeds.seed100 = seeds.seed000 + primes.x; + seeds.seed010 = seeds.seed000 + primes.y; + seeds.seed110 = seeds.seed100 + primes.y; + seeds.seed001 = seeds.seed000 + primes.z; + seeds.seed101 = seeds.seed100 + primes.z; + seeds.seed011 = seeds.seed010 + primes.z; + seeds.seed111 = seeds.seed110 + primes.z; + } + + return seeds; +} + +struct SimplexWeights +{ + float4 Result = float4(0); + float3 PosA = float3(0); + float3 PosB = float3(0); + float3 PosC = float3(0); + float3 PosD = float3(0); +}; + +// Computed weights and sample positions for simplex interpolation +// @return float4(a,b,c, d) Barycentric coordinate defined as Filtered = Tex(PosA) * a + Tex(PosB) * b + Tex(PosC) * c + Tex(PosD) * d +SimplexWeights ComputeSimplexWeights3D(float3 OrthogonalPos) +{ + SimplexWeights weights; + float3 OrthogonalPosFloor = math::floor(OrthogonalPos); + + weights.PosA = OrthogonalPosFloor; + weights.PosB = weights.PosA + float3(1, 1, 1); + + OrthogonalPos -= OrthogonalPosFloor; + + float Largest = math::max(OrthogonalPos.x, math::max(OrthogonalPos.y, OrthogonalPos.z)); + float Smallest = math::min(OrthogonalPos.x, math::min(OrthogonalPos.y, OrthogonalPos.z)); + + weights.PosC = weights.PosA + float3(Largest == OrthogonalPos.x, Largest == OrthogonalPos.y, Largest == OrthogonalPos.z); + weights.PosD = weights.PosA + float3(Smallest != OrthogonalPos.x, Smallest != OrthogonalPos.y, Smallest != OrthogonalPos.z); + + float RG = OrthogonalPos.x - OrthogonalPos.y; + float RB = OrthogonalPos.x - OrthogonalPos.z; + float GB = OrthogonalPos.y - OrthogonalPos.z; + + weights.Result.z = + math::min(math::max(0, RG), math::max(0, RB)) // X + + math::min(math::max(0, -RG), math::max(0, GB)) // Y + + math::min(math::max(0, -RB), math::max(0, -GB)); // Z + + weights.Result.w = + math::min(math::max(0, -RG), math::max(0, -RB)) // X + + math::min(math::max(0, RG), math::max(0, -GB)) // Y + + math::min(math::max(0, RB), math::max(0, GB)); // Z + + weights.Result.y = Smallest; + weights.Result.x = 1.0f - weights.Result.y - weights.Result.z - weights.Result.w; + + return weights; +} + +// filtered 3D gradient simple noise (few texture lookups, high quality) +// @param v >0 +// @return random number in the range -1 .. 1 +float SimplexNoise3D_TEX(uniform texture_2d PerlinNoiseGradientTexture, float3 EvalPos) +{ + float3 OrthogonalPos = SkewSimplex(EvalPos); + + SimplexWeights Weights = ComputeSimplexWeights3D(OrthogonalPos); + + // can be optimized to 1 or 2 texture lookups (4 or 8 channel encoded in 32 bit) + float3 A = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosA); + float3 B = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosB); + float3 C = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosC); + float3 D = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosD); + + Weights.PosA = UnSkewSimplex(Weights.PosA); + Weights.PosB = UnSkewSimplex(Weights.PosB); + Weights.PosC = UnSkewSimplex(Weights.PosC); + Weights.PosD = UnSkewSimplex(Weights.PosD); + + float DistanceWeight; + + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosA)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float a = math::dot(A, EvalPos - Weights.PosA) * DistanceWeight; + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosB)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float b = math::dot(B, EvalPos - Weights.PosB) * DistanceWeight; + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosC)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float c = math::dot(C, EvalPos - Weights.PosC) * DistanceWeight; + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosD)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float d = math::dot(D, EvalPos - Weights.PosD) * DistanceWeight; + + return 32 * (a + b + c + d); +} + +// filtered 3D noise, can be optimized +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @return random number in the range -1 .. 1 +float GradientNoise3D_TEX(uniform texture_2d PerlinNoiseGradientTexture, float3 v, bool bTiling, float RepeatSize) +{ + bTiling = true; + float3 fv = math::frac(v); + float3 iv0 = NoiseTileWrap(math::floor(v), bTiling, RepeatSize); + float3 iv1 = NoiseTileWrap(iv0 + 1, bTiling, RepeatSize); + + const int2 ZShear = int2(17, 89); + + float2 OffsetA = iv0.z * ZShear; + float2 OffsetB = OffsetA + ZShear; // non-tiling, use relative offset + if (bTiling) // tiling, have to compute from wrapped coordinates + { + OffsetB = iv1.z * ZShear; + } + + // Texture size scale factor + float ts = 1 / 128.0f; + + // texture coordinates for iv0.xy, as offset for both z slices + float2 TexA0 = (float2(iv0.x, iv0.y) + OffsetA + 0.5f) * ts; + float2 TexB0 = (float2(iv0.x, iv0.y) + OffsetB + 0.5f) * ts; + + // texture coordinates for iv1.xy, as offset for both z slices + float2 TexA1 = TexA0 + ts; // for non-tiling, can compute relative to existing coordinates + float2 TexB1 = TexB0 + ts; + if (bTiling) // for tiling, need to compute from wrapped coordinates + { + TexA1 = (float2(iv1.x, iv1.y) + OffsetA + 0.5f) * ts; + TexB1 = (float2(iv1.x, iv1.y) + OffsetB + 0.5f) * ts; + } + + + // can be optimized to 1 or 2 texture lookups (4 or 8 channel encoded in 8, 16 or 32 bit) + float4 PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA0.x,1.0-TexA0.y),tex::wrap_repeat,tex::wrap_repeat); + float3 PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 A = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA1.x,1.0-TexA0.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 B = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA0.x,1.0-TexA1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 C = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA1.x,1.0-TexA1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 D = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB0.x,1.0-TexB0.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 E = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB1.x,1.0-TexB0.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 F = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB0.x,1.0-TexB1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 G = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB1.x,1.0-TexB1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 H = PerlinNoiseColor * 2 - 1; + + float a = math::dot(A, fv - float3(0, 0, 0)); + float b = math::dot(B, fv - float3(1, 0, 0)); + float c = math::dot(C, fv - float3(0, 1, 0)); + float d = math::dot(D, fv - float3(1, 1, 0)); + float e = math::dot(E, fv - float3(0, 0, 1)); + float f = math::dot(F, fv - float3(1, 0, 1)); + float g = math::dot(G, fv - float3(0, 1, 1)); + float h = math::dot(H, fv - float3(1, 1, 1)); + + float4 Weights = PerlinRamp(math::frac(float4(fv.x, fv.y, fv.z, 0))); + + float i = math::lerp(math::lerp(a, b, Weights.x), math::lerp(c, d, Weights.x), Weights.y); + float j = math::lerp(math::lerp(e, f, Weights.x), math::lerp(g, h, Weights.x), Weights.y); + + return math::lerp(i, j, Weights.z); +} + +// @return random number in the range -1 .. 1 +// scalar: 6 frac, 31 mul/mad, 15 add, +float FastGradientPerlinNoise3D_TEX(uniform texture_3d PerlinNoise3DTexture, float3 xyz) +{ + // needs to be the same value when creating the PerlinNoise3D texture + float Extent = 16; + + // last texel replicated and needed for filtering + // scalar: 3 frac, 6 mul + xyz = math::frac(xyz / (Extent - 1)) * (Extent - 1); + + // scalar: 3 frac + float3 uvw = math::frac(xyz); + // = floor(xyz); + // scalar: 3 add + float3 p0 = xyz - uvw; +// float3 f = math::pow(uvw, 2) * 3.0f - math::pow(uvw, 3) * 2.0f; // original perlin hermite (ok when used without bump mapping) + // scalar: 2*3 add 5*3 mul + float4 pr = PerlinRamp(float4(uvw.x, uvw.y, uvw.z, 0)); + float3 f = float3(pr.x, pr.y, pr.z); // new, better with continues second derivative for bump mapping + // scalar: 3 add + float3 p = p0 + f; + // scalar: 3 mad + // TODO: need reverse??? + float4 NoiseSample = tex::lookup_float4(PerlinNoise3DTexture, p / Extent + 0.5f / Extent); // +0.5f to get rid of bilinear offset + + // reconstruct from 8bit (using mad with 2 constants and dot4 was same instruction count) + // scalar: 4 mad, 3 mul, 3 add + float3 n = float3(NoiseSample.x, NoiseSample.y, NoiseSample.z) * 255.0f / 127.0f - 1.0f; + float d = NoiseSample.w * 255.f - 127; + return math::dot(xyz, n) - d; +} + +// Perlin-style "Modified Noise" +// http://www.umbc.edu/~olano/papers/index.html#mNoise +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @return random number in the range -1 .. 1 +float GradientNoise3D_ALU(float3 v, bool bTiling, float RepeatSize) +{ + SeedValue seeds = NoiseSeeds(v, bTiling, RepeatSize); + + float rand000 = MGradient(int(seeds.seed000), seeds.fv - float3(0, 0, 0)).w; + float rand100 = MGradient(int(seeds.seed100), seeds.fv - float3(1, 0, 0)).w; + float rand010 = MGradient(int(seeds.seed010), seeds.fv - float3(0, 1, 0)).w; + float rand110 = MGradient(int(seeds.seed110), seeds.fv - float3(1, 1, 0)).w; + float rand001 = MGradient(int(seeds.seed001), seeds.fv - float3(0, 0, 1)).w; + float rand101 = MGradient(int(seeds.seed101), seeds.fv - float3(1, 0, 1)).w; + float rand011 = MGradient(int(seeds.seed011), seeds.fv - float3(0, 1, 1)).w; + float rand111 = MGradient(int(seeds.seed111), seeds.fv - float3(1, 1, 1)).w; + + float4 Weights = PerlinRamp(float4(seeds.fv.x, seeds.fv.y, seeds.fv.z, 0)); + + float i = math::lerp(math::lerp(rand000, rand100, Weights.x), math::lerp(rand010, rand110, Weights.x), Weights.y); + float j = math::lerp(math::lerp(rand001, rand101, Weights.x), math::lerp(rand011, rand111, Weights.x), Weights.y); + return math::lerp(i, j, Weights.z); +} + +// 3D value noise - used to be incorrectly called Perlin noise +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @return random number in the range -1 .. 1 +float ValueNoise3D_ALU(float3 v, bool bTiling, float RepeatSize) +{ + SeedValue seeds = NoiseSeeds(v, bTiling, RepeatSize); + + float rand000 = RandBBSfloat(seeds.seed000) * 2 - 1; + float rand100 = RandBBSfloat(seeds.seed100) * 2 - 1; + float rand010 = RandBBSfloat(seeds.seed010) * 2 - 1; + float rand110 = RandBBSfloat(seeds.seed110) * 2 - 1; + float rand001 = RandBBSfloat(seeds.seed001) * 2 - 1; + float rand101 = RandBBSfloat(seeds.seed101) * 2 - 1; + float rand011 = RandBBSfloat(seeds.seed011) * 2 - 1; + float rand111 = RandBBSfloat(seeds.seed111) * 2 - 1; + + float4 Weights = PerlinRamp(float4(seeds.fv.x, seeds.fv.y, seeds.fv.z, 0)); + + float i = math::lerp(math::lerp(rand000, rand100, Weights.x), math::lerp(rand010, rand110, Weights.x), Weights.y); + float j = math::lerp(math::lerp(rand001, rand101, Weights.x), math::lerp(rand011, rand111, Weights.x), Weights.y); + return math::lerp(i, j, Weights.z); +} + +// 3D jitter offset within a voronoi noise cell +// @param pos - integer lattice corner +// @return random offsets vector +float3 VoronoiCornerSample(float3 pos, int Quality) +{ + // random values in [-0.5, 0.5] + float3 noise = float3(Rand3DPCG16(int3(pos))) / 0xffff - 0.5; + + // quality level 1 or 2: searches a 2x2x2 neighborhood with points distributed on a sphere + // scale factor to guarantee jittered points will be found within a 2x2x2 search + if (Quality <= 2) + { + return math::normalize(noise) * 0.2588; + } + + // quality level 3: searches a 3x3x3 neighborhood with points distributed on a sphere + // scale factor to guarantee jittered points will be found within a 3x3x3 search + if (Quality == 3) + { + return math::normalize(noise) * 0.3090; + } + + // quality level 4: jitter to anywhere in the cell, needs 4x4x4 search + return noise; +} + +// compare previous best with a new candidate +// not producing point locations makes it easier for compiler to eliminate calculations when they're not needed +// @param minval = location and distance of best candidate seed point before the new one +// @param candidate = candidate seed point +// @param offset = 3D offset to new candidate seed point +// @param bDistanceOnly = if true, only set maxval.w with distance, otherwise maxval.w is distance and maxval.xyz is position +// @return position (if bDistanceOnly is false) and distance to closest seed point so far +float4 VoronoiCompare(float4 minval, float3 candidate, float3 offset, bool bDistanceOnly) +{ + if (bDistanceOnly) + { + return float4(0, 0, 0, math::min(minval.w, math::dot(offset, offset))); + } + else + { + float newdist = math::dot(offset, offset); + return newdist > minval.w ? minval : float4(candidate.x, candidate.y, candidate.z, newdist); + } +} + +// 220 instruction Worley noise +float4 VoronoiNoise3D_ALU(float3 v, int Quality, bool bTiling, float RepeatSize, bool bDistanceOnly) +{ + float3 fv = math::frac(v), fv2 = math::frac(v + 0.5); + float3 iv = math::floor(v), iv2 = math::floor(v + 0.5); + + // with initial minimum distance = infinity (or at least bigger than 4), first min is optimized away + float4 mindist = float4(0,0,0,100); + float3 p, offset; + + // quality level 3: do a 3x3x3 search + if (Quality == 3) + { + int offset_x; + int offset_y; + int offset_z; + for (offset_x = -1; offset_x <= 1; ++offset_x) + { + for (offset_y = -1; offset_y <= 1; ++offset_y) + { + for (offset_z = -1; offset_z <= 1; ++offset_z) + { + offset = float3(offset_x, offset_y, offset_z); + p = offset + VoronoiCornerSample(NoiseTileWrap(iv2 + offset, bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv2 + p, fv2 - p, bDistanceOnly); + } + } + } + } + + // everybody else searches a base 2x2x2 neighborhood + else + { + int offset_x; + int offset_y; + int offset_z; + for (offset_x = 0; offset_x <= 1; ++offset_x) + { + for (offset_y = 0; offset_y <= 1; ++offset_y) + { + for (offset_z = 0; offset_z <= 1; ++offset_z) + { + offset = float3(offset_x, offset_y, offset_z); + p = offset + VoronoiCornerSample(NoiseTileWrap(iv + offset, bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + + // quality level 2, do extra set of points, offset by half a cell + if (Quality == 2) + { + // 467 is just an offset to a different area in the random number field to avoid similar neighbor artifacts + p = offset + VoronoiCornerSample(NoiseTileWrap(iv2 + offset, bTiling, RepeatSize) + 467, Quality); + mindist = VoronoiCompare(mindist, iv2 + p, fv2 - p, bDistanceOnly); + } + } + } + } + } + + // quality level 4: add extra sets of four cells in each direction + if (Quality >= 4) + { + int offset_x; + int offset_y; + int offset_z; + for (offset_x = -1; offset_x <= 2; offset_x += 3) + { + for (offset_y = 0; offset_y <= 1; ++offset_y) + { + for (offset_z = 0; offset_z <= 1; ++offset_z) + { + offset = float3(offset_x, offset_y, offset_z); + // along x axis + p = offset + VoronoiCornerSample(NoiseTileWrap(iv + offset, bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + + // along y axis + p = float3(offset.y, offset.z, offset.x) + VoronoiCornerSample(NoiseTileWrap(iv + float3(offset.y, offset.z, offset.x), bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + + // along z axis + p = float3(offset.z, offset.x, offset.y) + VoronoiCornerSample(NoiseTileWrap(iv + float3(offset.z, offset.x, offset.y), bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + } + } + } + } + + // transform squared distance to real distance + return float4(mindist.x, mindist.y, mindist.z, math::sqrt(mindist.w)); +} + +// Coordinates for corners of a Simplex tetrahedron +// Based on McEwan et al., Efficient computation of noise in GLSL, JGT 2011 +// @param v = 3D noise argument +// @return 4 corner locations +float4x3 SimplexCorners(float3 v) +{ + // find base corner by skewing to tetrahedral space and back + float3 tet = math::floor(v + v.x/3 + v.y/3 + v.z/3); + float3 base = tet - tet.x/6 - tet.y/6 - tet.z/6; + float3 f = v - base; + + // Find offsets to other corners (McEwan did this in tetrahedral space, + // but since skew is along x=y=z axis, this works in Euclidean space too.) + float3 g = math::step(float3(f.y,f.z,f.x), float3(f.x,f.y,f.z)), h = 1 - float3(g.z, g.x, g.y); + float3 a1 = math::min(g, h) - 1.0 / 6.0, a2 = math::max(g, h) - 1.0 / 3.0; + + // four corners + return float4x3(base, base + a1, base + a2, base + 0.5); +} + +// Improved smoothing function for simplex noise +// @param f = fractional distance to four tetrahedral corners +// @return weight for each corner +float4 SimplexSmooth(float4x3 f) +{ + const float scale = 1024. / 375.; // scale factor to make noise -1..1 + float4 d = float4(math::dot(f[0], f[0]), math::dot(f[1], f[1]), math::dot(f[2], f[2]), math::dot(f[3], f[3])); + float4 s = math::saturate(2 * d); + return (1 * scale + s*(-3 * scale + s*(3 * scale - s*scale))); +} + +// Derivative of simplex noise smoothing function +// @param f = fractional distanc eto four tetrahedral corners +// @return derivative of smoothing function for each corner by x, y and z +float3x4 SimplexDSmooth(float4x3 f) +{ + const float scale = 1024. / 375.; // scale factor to make noise -1..1 + float4 d = float4(math::dot(f[0], f[0]), math::dot(f[1], f[1]), math::dot(f[2], f[2]), math::dot(f[3], f[3])); + float4 s = math::saturate(2 * d); + s = -12 * scale + s*(24 * scale - s * 12 * scale); + + return float3x4( + s * float4(f[0][0], f[1][0], f[2][0], f[3][0]), + s * float4(f[0][1], f[1][1], f[2][1], f[3][1]), + s * float4(f[0][2], f[1][2], f[2][2], f[3][2])); +} + +// Simplex noise and its Jacobian derivative +// @param v = 3D noise argument +// @param bTiling = whether to repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension, must be a multiple of 3 +// @return float3x3 Jacobian in J[*].xyz, vector noise in J[*].w +// J[0].w, J[1].w, J[2].w is a Perlin-style simplex noise with vector output, e.g. (Nx, Ny, Nz) +// J[i].x is X derivative of the i'th component of the noise so J[2].x is dNz/dx +// You can use this to compute the noise, gradient, curl, or divergence: +// float3x4 J = JacobianSimplex_ALU(...); +// float3 VNoise = float3(J[0].w, J[1].w, J[2].w); // 3D noise +// float3 Grad = J[0].xyz; // gradient of J[0].w +// float3 Curl = float3(J[1][2]-J[2][1], J[2][0]-J[0][2], J[0][1]-J[1][2]); +// float Div = J[0][0]+J[1][1]+J[2][2]; +// All of these are confirmed to compile out all unneeded terms. +// So Grad of X doesn't compute Y or Z components, and VNoise doesn't do any of the derivative computation. +float3x4 JacobianSimplex_ALU(float3 v, bool bTiling, float RepeatSize) +{ + int3 MGradientMask = int3(0x8000, 0x4000, 0x2000); + float3 MGradientScale = float3(1. / 0x4000, 1. / 0x2000, 1. / 0x1000); + + // corners of tetrahedron + float4x3 T = SimplexCorners(v); + // TODO: uint3 + int3 rand = int3(0); + float4x3 gvec0 = float4x3(1.0); + float4x3 gvec1 = float4x3(1.0); + float4x3 gvec2 = float4x3(1.0); + float4x3 fv = float4x3(1.0); + float3x4 grad = float3x4(1.0); + + // processing of tetrahedral vertices, unrolled + // to compute gradient at each corner + fv[0] = v - T[0]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[0] + 0.5, bTiling, RepeatSize)))); + gvec0[0] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[0] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec2[0] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][0] = math::dot(gvec0[0], fv[0]); + grad[1][0] = math::dot(gvec1[0], fv[0]); + grad[2][0] = math::dot(gvec2[0], fv[0]); + + fv[1] = v - T[1]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[1] + 0.5, bTiling, RepeatSize)))); + gvec0[1] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[1] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec1[1] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][1] = math::dot(gvec0[1], fv[1]); + grad[1][1] = math::dot(gvec1[1], fv[1]); + grad[2][1] = math::dot(gvec2[1], fv[1]); + + fv[2] = v - T[2]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[2] + 0.5, bTiling, RepeatSize)))); + gvec0[2] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[2] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec2[2] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][2] = math::dot(gvec0[2], fv[2]); + grad[1][2] = math::dot(gvec1[2], fv[2]); + grad[2][2] = math::dot(gvec2[2], fv[2]); + + fv[3] = v - T[3]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[3] + 0.5, bTiling, RepeatSize)))); + gvec0[3] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[3] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec2[3] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][3] = math::dot(gvec0[3], fv[3]); + grad[1][3] = math::dot(gvec1[3], fv[3]); + grad[2][3] = math::dot(gvec2[3], fv[3]); + + // blend gradients + float4 sv = SimplexSmooth(fv); + float3x4 ds = SimplexDSmooth(fv); + + float3x4 jacobian = float3x4(1.0); + float3 vec0 = gvec0*sv + grad[0]*ds; // NOTE: mdl is column major, convert from UE4 (row major) + jacobian[0] = float4(vec0.x, vec0.y, vec0.z, math::dot(sv, grad[0])); + float3 vec1 = gvec1*sv + grad[1]*ds; + jacobian[1] = float4(vec1.x, vec1.y, vec1.z, math::dot(sv, grad[1])); + float3 vec2 = gvec2*sv + grad[2]*ds; + jacobian[2] = float4(vec2.x, vec2.y, vec2.z, math::dot(sv, grad[2])); + + return jacobian; +} + +// While RepeatSize is a float here, the expectation is that it would be largely integer values coming in from the UI. The downstream logic assumes +// floats for all called functions (NoiseTileWrap) and this prevents any float-to-int conversion errors from automatic type conversion. +float Noise3D_Multiplexer(uniform texture_2d PerlinNoiseGradientTexture, uniform texture_3d PerlinNoise3DTexture, int Function, float3 Position, int Quality, bool bTiling, float RepeatSize) +{ + // verified, HLSL compiled out the switch if Function is a constant + switch(Function) + { + case 0: + return SimplexNoise3D_TEX(PerlinNoiseGradientTexture, Position); + case 1: + return GradientNoise3D_TEX(PerlinNoiseGradientTexture, Position, bTiling, RepeatSize); + case 2: + return FastGradientPerlinNoise3D_TEX(PerlinNoise3DTexture, Position); + case 3: + return GradientNoise3D_ALU(Position, bTiling, RepeatSize); + case 4: + return ValueNoise3D_ALU(Position, bTiling, RepeatSize); + case 5: + return VoronoiNoise3D_ALU(Position, Quality, bTiling, RepeatSize, true).w * 2.0 - 1.0; + } + return 0; +} +//---------------------------------------------------------- + +export float noise(uniform texture_2d PerlinNoiseGradientTexture, uniform texture_3d PerlinNoise3DTexture, float3 Position, float Scale, float Quality, float Function, float Turbulence, float Levels, float OutputMin, float OutputMax, float LevelScale, float FilterWidth, float Tiling, float RepeatSize) +[[ + anno::description("Noise"), + anno::noinline() +]] +{ + Position *= Scale; + FilterWidth *= Scale; + + float Out = 0.0f; + float OutScale = 1.0f; + float InvLevelScale = 1.0f / LevelScale; + + int iFunction(Function); + int iQuality(Quality); + int iLevels(Levels); + bool bTurbulence(Turbulence); + bool bTiling(Tiling); + + for(int i = 0; i < iLevels; ++i) + { + // fade out noise level that are too high frequent (not done through dynamic branching as it usually requires gradient instructions) + OutScale *= math::saturate(1.0 - FilterWidth); + + if(bTurbulence) + { + Out += math::abs(Noise3D_Multiplexer(PerlinNoiseGradientTexture, PerlinNoise3DTexture, iFunction, Position, iQuality, bTiling, RepeatSize)) * OutScale; + } + else + { + Out += Noise3D_Multiplexer(PerlinNoiseGradientTexture, PerlinNoise3DTexture, iFunction, Position, iQuality, bTiling, RepeatSize) * OutScale; + } + + Position *= LevelScale; + RepeatSize *= LevelScale; + OutScale *= InvLevelScale; + FilterWidth *= LevelScale; + } + + if(!bTurbulence) + { + // bring -1..1 to 0..1 range + Out = Out * 0.5f + 0.5f; + } + + // Out is in 0..1 range + return math::lerp(OutputMin, OutputMax, Out); +} + +// Material node for noise functions returning a vector value +// @param LevelScale usually 2 but higher values allow efficient use of few levels +// @return in user defined range (OutputMin..OutputMax) +export float4 vector4_noise(float3 Position, float Quality, float Function, float Tiling, float TileSize) +[[ + anno::description("Vector Noise"), + anno::noinline() +]] +{ + float4 result = float4(0,0,0,1); + float3 ret = float3(0); + int iQuality = int(Quality); + int iFunction = int(Function); + bool bTiling = Tiling > 0.0; + + float3x4 Jacobian = JacobianSimplex_ALU(Position, bTiling, TileSize); // compiled out if not used + + // verified, HLSL compiled out the switch if Function is a constant + switch (iFunction) + { + case 0: // Cellnoise + ret = float3(Rand3DPCG16(int3(math::floor(NoiseTileWrap(Position, bTiling, TileSize))))) / 0xffff; + result = float4(ret.x, ret.y, ret.z, 1); + break; + case 1: // Color noise + ret = float3(Jacobian[0].w, Jacobian[1].w, Jacobian[2].w); + result = float4(ret.x, ret.y, ret.z, 1); + break; + case 2: // Gradient + result = Jacobian[0]; + break; + case 3: // Curl + ret = float3(Jacobian[2][1] - Jacobian[1][2], Jacobian[0][2] - Jacobian[2][0], Jacobian[1][0] - Jacobian[0][1]); + result = float4(ret.x, ret.y, ret.z, 1); + break; + case 4: // Voronoi + result = VoronoiNoise3D_ALU(Position, iQuality, bTiling, TileSize, false); + break; + } + return result; +} + +export float3 vector3_noise(float3 Position, float Quality, float Function, float Tiling, float TileSize) +[[ + anno::description("Vector Noise float3 version"), + anno::noinline() +]] +{ + float4 noise = vector4_noise(Position, Quality, Function, Tiling, TileSize); + return float3(noise.x, noise.y, noise.z); +} + + +// workaround for ue4 fresnel (without supporting for camera vector) : replacing it with 0.0, means facing to the view +export float fresnel(float exponent [[anno::unused()]], float base_reflect_fraction [[anno::unused()]], float3 normal [[anno::unused()]]) +[[ + anno::description("Fresnel"), + anno::noinline() +]] +{ + return 0.0; +} + +export float fresnel_function(float3 normal_vector [[anno::unused()]], float3 camera_vector [[anno::unused()]], + bool invert_fresnel [[anno::unused()]], float power [[anno::unused()]], + bool use_cheap_contrast [[anno::unused()]], float cheap_contrast_dark [[anno::unused()]], float cheap_contrast_bright [[anno::unused()]], + bool clamp_fresnel_dot_product [[anno::unused()]]) +[[ + anno::description("Fresnel Function"), + anno::noinline() +]] +{ + return 0.0; +} + +export float3 camera_vector(uniform bool up_z = true) +[[ + anno::description("Camera Vector"), + anno::noinline() +]] +{ + // assume camera postion is 0,0,0 + return math::normalize(float3(0) - convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), up_z)); +} + +export float pixel_depth() +[[ + anno::description("Pixel Depth"), + anno::noinline() +]] +{ + return 256.0f; +} + +export float scene_depth() +[[ + anno::description("Scene Depth") +]] +{ + return 65500.0f; +} + +export float3 scene_color() +[[ + anno::description("Scene Color") +]] +{ + return float3(1.0f); +} + +export float4 vertex_color() +[[ + anno::description("Vertex Color"), + anno::noinline() +]] +{ + return float4(1.0f); +} + +export float4 vertex_color_from_coordinate(int VertexColorCoordinateIndex) +[[ + anno::description("Vertex Color for float2 PrimVar"), + anno::noinline() +]] +{ + // Kit only supports 4 uv sets, 2 uvs are available to vertex color. if vertex color index is invalid, output the constant WHITE color intead + return (VertexColorCoordinateIndex > 2) ? float4(1.0f) : float4(state::texture_coordinate(VertexColorCoordinateIndex).x, state::texture_coordinate(VertexColorCoordinateIndex).y, state::texture_coordinate(VertexColorCoordinateIndex+1).x, state::texture_coordinate(VertexColorCoordinateIndex+1).y); +} + +export float3 camera_position() +[[ + anno::description("Camera Position"), + anno::noinline() +]] +{ + return float3(1000.0f, 0, 0); +} + +export float3 rotate_about_axis(float4 NormalizedRotationAxisAndAngle, float3 PositionOnAxis, float3 Position) +[[ + anno::description("Rotates Position about the given axis by the given angle") +]] +{ + // Project Position onto the rotation axis and find the closest point on the axis to Position + float3 NormalizedRotationAxis = float3(NormalizedRotationAxisAndAngle.x,NormalizedRotationAxisAndAngle.y,NormalizedRotationAxisAndAngle.z); + float3 ClosestPointOnAxis = PositionOnAxis + NormalizedRotationAxis * math::dot(NormalizedRotationAxis, Position - PositionOnAxis); + // Construct orthogonal axes in the plane of the rotation + float3 UAxis = Position - ClosestPointOnAxis; + float3 VAxis = math::cross(NormalizedRotationAxis, UAxis); + float[2] SinCosAngle = math::sincos(NormalizedRotationAxisAndAngle.w); + // Rotate using the orthogonal axes + float3 R = UAxis * SinCosAngle[1] + VAxis * SinCosAngle[0]; + // Reconstruct the rotated world space position + float3 RotatedPosition = ClosestPointOnAxis + R; + // Convert from position to a position offset + return RotatedPosition - Position; +} + +export float2 rotate_scale_offset_texcoords(float2 InTexCoords, float4 InRotationScale, float2 InOffset) +[[ + anno::description("Returns a float2 texture coordinate after 2x2 transform and offset applied") +]] +{ + return float2(math::dot(InTexCoords, float2(InRotationScale.x, InRotationScale.y)), math::dot(InTexCoords, float2(InRotationScale.z, InRotationScale.w))) + InOffset; +} + +export float3 reflection_custom_world_normal(float3 WorldNormal, bool bNormalizeInputNormal, uniform bool up_z = true) +[[ + anno::description("Reflection vector about the specified world space normal") +]] +{ + if (bNormalizeInputNormal) + { + WorldNormal = math::normalize(WorldNormal); + } + + return -camera_vector(up_z) + WorldNormal * math::dot(WorldNormal, camera_vector(up_z)) * 2.0; +} + +export float3 reflection_vector(uniform bool up_z = true) +[[ + anno::description("Reflection Vector"), + anno::noinline() +]] +{ + float3 normal = convert_to_left_hand(state::transform_normal(state::coordinate_internal,state::coordinate_world,state::normal()), up_z, false); + return reflection_custom_world_normal(normal, false, up_z); +} + +export float dither_temporalAA(float AlphaThreshold = 0.5f, float Random = 1.0f [[anno::unused()]]) +[[ + anno::description("Dither TemporalAA"), + anno::noinline() +]] +{ + return AlphaThreshold; +} + +export float3 black_body( float Temp ) +[[ + anno::description("Black Body"), + anno::noinline() +]] +{ + float u = ( 0.860117757f + 1.54118254e-4f * Temp + 1.28641212e-7f * Temp*Temp ) / ( 1.0f + 8.42420235e-4f * Temp + 7.08145163e-7f * Temp*Temp ); + float v = ( 0.317398726f + 4.22806245e-5f * Temp + 4.20481691e-8f * Temp*Temp ) / ( 1.0f - 2.89741816e-5f * Temp + 1.61456053e-7f * Temp*Temp ); + + float x = 3*u / ( 2*u - 8*v + 4 ); + float y = 2*v / ( 2*u - 8*v + 4 ); + float z = 1 - x - y; + + float Y = 1; + float X = Y/y * x; + float Z = Y/y * z; + + float3x3 XYZtoRGB = float3x3( + float3(3.2404542, -1.5371385, -0.4985314), + float3(-0.9692660, 1.8760108, 0.0415560), + float3(0.0556434, -0.2040259, 1.0572252) + ); + + return XYZtoRGB * float3( X, Y, Z ) * math::pow( 0.0004 * Temp, 4 ); +} + +export float per_instance_random(uniform texture_2d PerlinNoiseGradientTexture, int NumberInstances) +[[ + anno::description("Per Instance Random"), + anno::noinline() +]] +{ + float weight = state::object_id() / float(NumberInstances); + return NumberInstances == 0 ? 0.0 : tex::lookup_float4(PerlinNoiseGradientTexture, float2(weight, 1.0 - weight), tex::wrap_repeat, tex::wrap_repeat).x; +} + +//------------------ Hair from UE4 ----------------------- +float3 hair_absorption_to_color(float3 A) +{ + const float B = 0.3f; + float b2 = B * B; + float b3 = B * b2; + float b4 = b2 * b2; + float b5 = B * b4; + float D = (5.969f - 0.215f * B + 2.532f * b2 - 10.73f * b3 + 5.574f * b4 + 0.245f * b5); + return math::exp(-math::sqrt(A) * D); +} + +float3 hair_color_to_absorption(float3 C) +{ + const float B = 0.3f; + float b2 = B * B; + float b3 = B * b2; + float b4 = b2 * b2; + float b5 = B * b4; + float D = (5.969f - 0.215f * B + 2.532f * b2 - 10.73f * b3 + 5.574f * b4 + 0.245f * b5); + return math::pow(math::log(C) / D, 2.0f); +} + +export float3 get_hair_color_from_melanin(float InMelanin, float InRedness, float3 InDyeColor) +[[ + anno::description("Hair Color") +]] +{ + InMelanin = math::saturate(InMelanin); + InRedness = math::saturate(InRedness); + float Melanin = -math::log(math::max(1 - InMelanin, 0.0001f)); + float Eumelanin = Melanin * (1 - InRedness); + float Pheomelanin = Melanin * InRedness; + + float3 DyeAbsorption = hair_color_to_absorption(math::saturate(InDyeColor)); + float3 Absorption = Eumelanin * float3(0.506f, 0.841f, 1.653f) + Pheomelanin * float3(0.343f, 0.733f, 1.924f); + + return hair_absorption_to_color(Absorption + DyeAbsorption); +} + +export float3 local_object_bounds_min() +[[ + anno::description("Local Object Bounds Min"), + anno::noinline() +]] +{ + return float3(0.0); +} + +export float3 local_object_bounds_max() +[[ + anno::description("Local Object Bounds Max"), + anno::noinline() +]] +{ + return float3(100.0); +} + +export float3 object_bounds() +[[ + anno::description("Object Bounds"), + anno::noinline() +]] +{ + return float3(100.0); +} + +export float object_radius() +[[ + anno::description("Object Radius"), + anno::noinline() +]] +{ + return 100.0f; +} + +export float3 object_world_position(uniform bool up_z = true) +[[ + anno::description("Object World Position"), + anno::noinline() +]] +{ + return convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), up_z)*state::meters_per_scene_unit()*100.0; +} + +export float3 object_orientation() +[[ + anno::description("Object Orientation"), + anno::noinline() +]] +{ + return float3(0); +} + +export float rcp(float x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export float2 rcp(float2 x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export float3 rcp(float3 x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export float4 rcp(float4 x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export int BitFieldExtractI32(int Data, int Size, int Offset) +[[ + anno::description("BitFieldExtractI32 int"), + anno::noinline() +]] +{ + Size &= 3; + Offset &= 3; + + if (Size == 0) + return 0; + else if (Offset + Size < 32) + return (Data << (32 - Size - Offset)) >> (32 - Size); + else + return Data >> Offset; +} + +export int BitFieldExtractI32(float Data, float Size, float Offset) +[[ + anno::description("BitFieldExtractI32 float"), + anno::noinline() +]] +{ + return BitFieldExtractI32(int(Data), int(Size), int(Offset)); +} + +export int BitFieldExtractU32(float Data, float Size, float Offset) +[[ + anno::description("BitFieldExtractU32 float"), + anno::noinline() +]] +{ + return BitFieldExtractI32(Data, Size, Offset); +} + +export int BitFieldExtractU32(int Data, int Size, int Offset) +[[ + anno::description("BitFieldExtractU32 int"), + anno::noinline() +]] +{ + return BitFieldExtractI32(Data, Size, Offset); +} + +export float3 EyeAdaptationInverseLookup(float3 LightValue, float Alpha) +[[ + anno::description("EyeAdaptationInverseLookup"), + anno::noinline() +]] +{ + float Adaptation = 1.0f; + + // When Alpha=0.0, we want to multiply by 1.0. when Alpha = 1.0, we want to multiply by 1/Adaptation. + // So the lerped value is: + // LerpLogScale = Lerp(log(1),log(1/Adaptaiton),T) + // Which is simplified as: + // LerpLogScale = Lerp(0,-log(Adaptation),T) + // LerpLogScale = -T * logAdaptation; + + float LerpLogScale = -Alpha * math::log(Adaptation); + float Scale = math::exp(LerpLogScale); + return LightValue * Scale; +} diff --git a/Projects/Street/Test/Materials/Textures/T_NYB_10.png b/Projects/Street/Test/Materials/Textures/T_NYB_10.png new file mode 100644 index 0000000000000000000000000000000000000000..d246aca2e32db23cd2058a424df6813462ef0dc7 --- /dev/null +++ b/Projects/Street/Test/Materials/Textures/T_NYB_10.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e7d4cbbbdc04651553c472d60c17b51bfc2bbf579e65762f8fb13cba632d7ab2 +size 41345 diff --git a/Projects/Street/Test/Materials/Textures/T_NYB_117.png b/Projects/Street/Test/Materials/Textures/T_NYB_117.png new file mode 100644 index 0000000000000000000000000000000000000000..f3988ff3e937450276805d0b1c2e8863d93817a1 --- /dev/null +++ b/Projects/Street/Test/Materials/Textures/T_NYB_117.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:80d11811f36165104ff8a766eda9c653044f7d9a24c886e54d8620dae46a4f15 +size 4148901 diff --git a/Projects/Street/Test/Materials/Textures/T_NYB_71.png b/Projects/Street/Test/Materials/Textures/T_NYB_71.png new file mode 100644 index 0000000000000000000000000000000000000000..49c8065a575535243b748f2bb408626c3a9fbd77 --- /dev/null +++ b/Projects/Street/Test/Materials/Textures/T_NYB_71.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eba7e222028773e3d5a6bddd2f2f6e1cb0eccea0812339edd908733922420cbf +size 194685 diff --git a/Projects/Street/Test/Materials/Textures/T_NYB_72.png b/Projects/Street/Test/Materials/Textures/T_NYB_72.png new file mode 100644 index 0000000000000000000000000000000000000000..87904ff6ede15371cf85119b309c7bddc952afa9 --- /dev/null +++ b/Projects/Street/Test/Materials/Textures/T_NYB_72.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0f778a3dfd0bae459315c08ad13255875856ee4825235efb76898a22cba64a7e +size 798840 diff --git a/Projects/Street/Test/Materials/Textures/T_NYB_94.png b/Projects/Street/Test/Materials/Textures/T_NYB_94.png new file mode 100644 index 0000000000000000000000000000000000000000..8ba0cd51aa67b8fd7dda10bf6bebe04998f1bc60 --- /dev/null +++ b/Projects/Street/Test/Materials/Textures/T_NYB_94.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bd39cd50bfae16d8622ce38bb90facc60df996e15ab7d38c424643046aa12db1 +size 1639047 diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..0967d355da0348534ced8d218eff4f4972cdfdbc --- /dev/null +++ b/README.md @@ -0,0 +1,67 @@ +# CostNav Assets + +This directory contains Omniverse USD assets used by CostNav. + +## For Open Source Users (Recommended) + +### 1. Download Assets from Hugging Face + +```bash +make download-assets-hf +``` + +This downloads all required assets to `assets/Users/`. + +### 2. Initialize and Start Local Nucleus Server + +**Prerequisites:** +- Docker and Docker Compose installed +- `.env` file with NGC credentials + +**Step 1:** Set up NGC credentials in `.env`: +```bash +cp .env.example .env +# Edit .env and set NGC_PASS to your NGC API key +# Get your API key at: https://org.ngc.nvidia.com/setup/api-keys +``` + +**Step 2:** Run the nucleus server: +```bash +make start-nucleus +``` + +The script will configure Nucleus and copy assets. After starting, assets will be served at `omniverse://localhost`. + +Modify OMNI_USER and OMNI path into our default credentials + +Default credentials: + Username: omniverse + Password: costnav123 + +### 3. Update Codebase Paths + +```bash +# Update all code references to use localhost +python scripts/assets/update_asset_paths.py --target localhost + +# Dry run to preview changes +python scripts/assets/update_asset_paths.py --target localhost --dry-run +``` + +## For Internal Developers + +### Download from Internal Omniverse Server + +```bash +make download-assets-omniverse +``` + +### Upload to Hugging Face + +```bash +# Login to Hugging Face first +huggingface-cli login + +# Upload assets +python scripts/assets/upload_assets_hf.py +``` diff --git a/Users/worv/costnav/NovaCarter/Materials/Gold.mdl b/Users/worv/costnav/NovaCarter/Materials/Gold.mdl new file mode 100644 index 0000000000000000000000000000000000000000..03103c3d8d98aa46412d0090eadef79bbd7d2489 --- /dev/null +++ b/Users/worv/costnav/NovaCarter/Materials/Gold.mdl @@ -0,0 +1,54 @@ +mdl 1.4; + +import ::OmniPBR::OmniPBR; +import ::anno::author; +import ::anno::description; +import ::anno::display_name; +import ::anno::key_words; +import ::anno::version; +import ::tex::gamma_mode; +import ::state::normal; + +export material Gold(*) +[[ + ::anno::display_name("Omni PBR "), + ::anno::description("Omni PBR, supports ORM textures"), + ::anno::version(1, 0, 0, ""), + ::anno::author("NVIDIA CORPORATION"), + ::anno::key_words(string[]("omni", "PBR", "omniverse", "generic")) +]] + = ::OmniPBR::OmniPBR( + diffuse_color_constant: color(0.200000003f, 0.200000003f, 0.200000003f), + diffuse_texture: texture_2d("./Textures/Gold/Gold_BaseColor.png" /* tag 2798, version 4095654520 */, ::tex::gamma_srgb), + albedo_desaturation: 0.f, + albedo_add: 0.f, + albedo_brightness: 1.f, + diffuse_tint: color(1.f, 1.f, 1.f), + reflection_roughness_constant: 0.5f, + reflection_roughness_texture_influence: 1.f, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.5f, + metallic_texture_influence: 1.f, + metallic_texture: texture_2d(), + specular_level: 0.5f, + enable_ORM_texture: true, + ORM_texture: texture_2d("./Textures/Gold/Gold_ORM.png" /* tag 2800, version 1033957151 */, ::tex::gamma_linear), + ao_to_diffuse: 0.f, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1.f, 0.100000001f, 0.100000001f), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.f, + bump_factor: 1.f, + normalmap_texture: texture_2d("./Textures/Gold/Gold_N.png" /* tag 2802, version 1181343238 */, ::tex::gamma_linear), + detail_bump_factor: 0.300000012f, + detail_normalmap_texture: texture_2d(), + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.f), + detail_texture_translate: float2(0.f), + detail_texture_rotate: 0.f, + detail_texture_scale: float2(1.f)); diff --git a/Users/worv/costnav/NovaCarter/Materials/Iron.mdl b/Users/worv/costnav/NovaCarter/Materials/Iron.mdl new file mode 100644 index 0000000000000000000000000000000000000000..03890cdfeb32d1555bcb8fde6a4746533f1bf0ae --- /dev/null +++ b/Users/worv/costnav/NovaCarter/Materials/Iron.mdl @@ -0,0 +1,54 @@ +mdl 1.4; + +import ::OmniPBR::OmniPBR; +import ::anno::author; +import ::anno::description; +import ::anno::display_name; +import ::anno::key_words; +import ::anno::version; +import ::tex::gamma_mode; +import ::state::normal; + +export material Iron(*) +[[ + ::anno::display_name("Omni PBR "), + ::anno::description("Omni PBR, supports ORM textures"), + ::anno::version(1, 0, 0, ""), + ::anno::author("NVIDIA CORPORATION"), + ::anno::key_words(string[]("omni", "PBR", "omniverse", "generic")) +]] + = ::OmniPBR::OmniPBR( + diffuse_color_constant: color(0.200000003f, 0.200000003f, 0.200000003f), + diffuse_texture: texture_2d("./Textures/Iron/Iron_BaseColor.png" /* tag 2805, version 3036597545 */, ::tex::gamma_srgb), + albedo_desaturation: 0.f, + albedo_add: 0.f, + albedo_brightness: 1.f, + diffuse_tint: color(1.f, 1.f, 1.f), + reflection_roughness_constant: 0.5f, + reflection_roughness_texture_influence: 1.f, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.5f, + metallic_texture_influence: 1.f, + metallic_texture: texture_2d(), + specular_level: 0.5f, + enable_ORM_texture: true, + ORM_texture: texture_2d("./Textures/Iron/Iron_ORM.png" /* tag 2807, version 586536104 */, ::tex::gamma_linear), + ao_to_diffuse: 0.f, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1.f, 0.100000001f, 0.100000001f), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.f, + bump_factor: 1.f, + normalmap_texture: texture_2d("./Textures/Iron/Iron_N.png" /* tag 2809, version 1552594180 */, ::tex::gamma_linear), + detail_bump_factor: 0.300000012f, + detail_normalmap_texture: texture_2d(), + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(2.f), + detail_texture_translate: float2(0.f), + detail_texture_rotate: 0.f, + detail_texture_scale: float2(1.f)); diff --git a/Users/worv/costnav/NovaCarter/Materials/Materials.usd b/Users/worv/costnav/NovaCarter/Materials/Materials.usd new file mode 100644 index 0000000000000000000000000000000000000000..d020c5d283198eda9418301243ef329a694f2ae4 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Materials/Materials.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/AC_USB3_AA_JFD.usd b/Users/worv/costnav/NovaCarter/Parts/AC_USB3_AA_JFD.usd new file mode 100644 index 0000000000000000000000000000000000000000..3858ca0be38f14a34027342a9b0ce64d71fbdcc0 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/AC_USB3_AA_JFD.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/BOTTOM_COVER3_KFnQ.usd b/Users/worv/costnav/NovaCarter/Parts/BOTTOM_COVER3_KFnQ.usd new file mode 100644 index 0000000000000000000000000000000000000000..ef6e009e7d166a2eec9c88109e5ac7935a74b3d4 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/BOTTOM_COVER3_KFnQ.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/C0603_060_1685419_KFvV.usd b/Users/worv/costnav/NovaCarter/Parts/C0603_060_1685419_KFvV.usd new file mode 100644 index 0000000000000000000000000000000000000000..332d651af3bd9209e4d3dd366828ae73d805a232 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/C0603_060_1685419_KFvV.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/Concord_Foot_GPIO_Side_JJL.usd b/Users/worv/costnav/NovaCarter/Parts/Concord_Foot_GPIO_Side_JJL.usd new file mode 100644 index 0000000000000000000000000000000000000000..c6288c7b3690c03e84d30e0fa3e7b36f2f291419 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/Concord_Foot_GPIO_Side_JJL.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/DP_CONNECTOR_JFP.usd b/Users/worv/costnav/NovaCarter/Parts/DP_CONNECTOR_JFP.usd new file mode 100644 index 0000000000000000000000000000000000000000..4c53a500e16c5d1a41102f00165d4284b36a76b3 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/DP_CONNECTOR_JFP.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/EE_CASE_KFLF.usd b/Users/worv/costnav/NovaCarter/Parts/EE_CASE_KFLF.usd new file mode 100644 index 0000000000000000000000000000000000000000..f2d0d4c8cadd2fb5ee4a1651fcb0d09b9f849d94 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/EE_CASE_KFLF.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/EM_STOP_MOUNT_KFvM.usd b/Users/worv/costnav/NovaCarter/Parts/EM_STOP_MOUNT_KFvM.usd new file mode 100644 index 0000000000000000000000000000000000000000..531f9ce9933dd587b546d6a0dc9f14adb71380d1 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/EM_STOP_MOUNT_KFvM.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/ENCAPSULATION_KFjU.usd b/Users/worv/costnav/NovaCarter/Parts/ENCAPSULATION_KFjU.usd new file mode 100644 index 0000000000000000000000000000000000000000..38d9b3ca6dcb1bc0746f1e1df3f92503eea0c85e Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/ENCAPSULATION_KFjU.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/ETH_TI_G50_KFDn.usd b/Users/worv/costnav/NovaCarter/Parts/ETH_TI_G50_KFDn.usd new file mode 100644 index 0000000000000000000000000000000000000000..2c8154e86fdb655b993e331a0951c1fd700c23c3 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/ETH_TI_G50_KFDn.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/HOOK_RIB_KF2Ff.usd b/Users/worv/costnav/NovaCarter/Parts/HOOK_RIB_KF2Ff.usd new file mode 100644 index 0000000000000000000000000000000000000000..2dd42f5cd1a426cede85f966ae6679716d086e42 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/HOOK_RIB_KF2Ff.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__JF3.usd b/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__JF3.usd new file mode 100644 index 0000000000000000000000000000000000000000..88f9af7fba1e9afc70488c8fe7cb47228d0dc91f Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__JF3.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__JFv.usd b/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__JFv.usd new file mode 100644 index 0000000000000000000000000000000000000000..9784f8e2f154749bb05de4f68c4d552c38cc3e4a Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__JFv.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KF2FB.usd b/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KF2FB.usd new file mode 100644 index 0000000000000000000000000000000000000000..44dc2cc25cdc0fbae97f7c4170636efeeaa2641a Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KF2FB.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KF3C.usd b/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KF3C.usd new file mode 100644 index 0000000000000000000000000000000000000000..581ec0ff3bfc46cae1daa0051b2394bd92f0c119 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KF3C.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KF7B.usd b/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KF7B.usd new file mode 100644 index 0000000000000000000000000000000000000000..28d04908384f844b314147be8a49e4ee621cfca9 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KF7B.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KFDC.usd b/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KFDC.usd new file mode 100644 index 0000000000000000000000000000000000000000..7da6f6c2eaa16c3ee709dd0c59b55e7e36bcccbd Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KFDC.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KFDE.usd b/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KFDE.usd new file mode 100644 index 0000000000000000000000000000000000000000..c942d6040ce275baeb7ae15959e6b5b51d823b2e Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KFDE.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KFLC.usd b/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KFLC.usd new file mode 100644 index 0000000000000000000000000000000000000000..baa356f9964f106ae62fbdd6e9df04d66f5411dc Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KFLC.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KFPD.usd b/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KFPD.usd new file mode 100644 index 0000000000000000000000000000000000000000..4da7d66f4fad0297fdbdcc2a7c3f451aed7c224c Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KFPD.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KFbB.usd b/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KFbB.usd new file mode 100644 index 0000000000000000000000000000000000000000..07cf4bc756e15d92f5547fad8d64da621bd73abe --- /dev/null +++ b/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KFbB.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f30e718a1fba57bbce2af8b3780e6ac4acb68fb68e389798e08f322860b1fa96 +size 1880646 diff --git a/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KFfC.usd b/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KFfC.usd new file mode 100644 index 0000000000000000000000000000000000000000..9e814541c5f8f08d532e11f09d6a9b03629776c2 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KFfC.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KFfD.usd b/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KFfD.usd new file mode 100644 index 0000000000000000000000000000000000000000..603f9d1dfb7733374c05bdf498935b5f396d6274 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KFfD.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KFnB.usd b/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KFnB.usd new file mode 100644 index 0000000000000000000000000000000000000000..121ffa5fa7973fe3e7972744606bbe610921a417 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KFnB.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KFrC.usd b/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KFrC.usd new file mode 100644 index 0000000000000000000000000000000000000000..7b92476ff351db677c80340d31347f09d6de77f8 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KFrC.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KFvD.usd b/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KFvD.usd new file mode 100644 index 0000000000000000000000000000000000000000..f722f5711fee02fbc20549905f45d7440139ee03 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/HUB_MOTOR_11INCH__KFvD.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/IN_ELECTRODE_PIECE_JFD.usd b/Users/worv/costnav/NovaCarter/Parts/IN_ELECTRODE_PIECE_JFD.usd new file mode 100644 index 0000000000000000000000000000000000000000..41371cb8bd1769b7dd8db93766084cb16b4c0a91 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/IN_ELECTRODE_PIECE_JFD.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/IRON_RIB_3_KF3J.usd b/Users/worv/costnav/NovaCarter/Parts/IRON_RIB_3_KF3J.usd new file mode 100644 index 0000000000000000000000000000000000000000..d69a16bc23379b628ae4d34cb018acc4f4934430 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/IRON_RIB_3_KF3J.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/K028A0557_AC_1_1_KFPG.usd b/Users/worv/costnav/NovaCarter/Parts/K028A0557_AC_1_1_KFPG.usd new file mode 100644 index 0000000000000000000000000000000000000000..62881a69f8be415d8e8831babe97d6dfe78136c5 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/K028A0557_AC_1_1_KFPG.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/K028A0557_AE_1_10_1_KFPH.usd b/Users/worv/costnav/NovaCarter/Parts/K028A0557_AE_1_10_1_KFPH.usd new file mode 100644 index 0000000000000000000000000000000000000000..8bb13c8f5d7fb13039f930ed393672a7065bd49e Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/K028A0557_AE_1_10_1_KFPH.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/K028A0557_AE_1_16_1_KFnH.usd b/Users/worv/costnav/NovaCarter/Parts/K028A0557_AE_1_16_1_KFnH.usd new file mode 100644 index 0000000000000000000000000000000000000000..9c2b7facd7fd2ff8cf9ddfdf321e50fad5bf252e Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/K028A0557_AE_1_16_1_KFnH.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/K028A0557_AE_1_4_1_KFfH.usd b/Users/worv/costnav/NovaCarter/Parts/K028A0557_AE_1_4_1_KFfH.usd new file mode 100644 index 0000000000000000000000000000000000000000..49e110000cad45acb8c0f7c050a0196ddf6bfadc Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/K028A0557_AE_1_4_1_KFfH.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/K028A0557_AE_1_8_1_KFzH.usd b/Users/worv/costnav/NovaCarter/Parts/K028A0557_AE_1_8_1_KFzH.usd new file mode 100644 index 0000000000000000000000000000000000000000..260f3f342c3f87ed92ef2cdff4b94c5a99c9e907 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/K028A0557_AE_1_8_1_KFzH.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/K033A0004_1_7_KF3U.usd b/Users/worv/costnav/NovaCarter/Parts/K033A0004_1_7_KF3U.usd new file mode 100644 index 0000000000000000000000000000000000000000..27a861c85e18639ad5e2e386eedbfa2a495d9c43 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/K033A0004_1_7_KF3U.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/K033P0007FIX_RIB1_KFLQ.usd b/Users/worv/costnav/NovaCarter/Parts/K033P0007FIX_RIB1_KFLQ.usd new file mode 100644 index 0000000000000000000000000000000000000000..3e34f7bf3d402060deaa2d8571050bbf8be48318 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/K033P0007FIX_RIB1_KFLQ.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/LOGO_SILK_180_I560_SMALL_KF7D.usd b/Users/worv/costnav/NovaCarter/Parts/LOGO_SILK_180_I560_SMALL_KF7D.usd new file mode 100644 index 0000000000000000000000000000000000000000..02172d06de70d3110b0d89eb4692226676a138fa Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/LOGO_SILK_180_I560_SMALL_KF7D.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/LOGO_SILK_HF_I0185X0120_KF3D.usd b/Users/worv/costnav/NovaCarter/Parts/LOGO_SILK_HF_I0185X0120_KF3D.usd new file mode 100644 index 0000000000000000000000000000000000000000..d6ddd2ec22ee45038f2fda10e1331d05dcdc734d Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/LOGO_SILK_HF_I0185X0120_KF3D.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/NEWADAPTER_JFD.usd b/Users/worv/costnav/NovaCarter/Parts/NEWADAPTER_JFD.usd new file mode 100644 index 0000000000000000000000000000000000000000..b751684904646cb78455526fada731a04abc0733 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/NEWADAPTER_JFD.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/OPEN_CASCADE_STEP_TRANSLATOR_6__KFTa.usd b/Users/worv/costnav/NovaCarter/Parts/OPEN_CASCADE_STEP_TRANSLATOR_6__KFTa.usd new file mode 100644 index 0000000000000000000000000000000000000000..9eb75a22d9916af160a7b3c212450b01209b0155 --- /dev/null +++ b/Users/worv/costnav/NovaCarter/Parts/OPEN_CASCADE_STEP_TRANSLATOR_6__KFTa.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:71a9121b640a8ef49610b92c89dae62c36e4408b1e1f0fa78520b8bda1831347 +size 391984 diff --git a/Users/worv/costnav/NovaCarter/Parts/PRESS_IN_NUT_M5__KFrM.usd b/Users/worv/costnav/NovaCarter/Parts/PRESS_IN_NUT_M5__KFrM.usd new file mode 100644 index 0000000000000000000000000000000000000000..bd2255228df3ff41bc766d199a21e0d1d4cb0d7c Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/PRESS_IN_NUT_M5__KFrM.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685435_KFnX.usd b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685435_KFnX.usd new file mode 100644 index 0000000000000000000000000000000000000000..8d939198f8d4755bf0ff00e5e091cdc0a3f49e78 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685435_KFnX.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685437_KFjX.usd b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685437_KFjX.usd new file mode 100644 index 0000000000000000000000000000000000000000..1d810f8c22e36324d69f5f3c9775987e3223103d Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685437_KFjX.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685441_KFnW.usd b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685441_KFnW.usd new file mode 100644 index 0000000000000000000000000000000000000000..e62906eb2f43b0290d44cca786a6fe10a37db4e2 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685441_KFnW.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685446_KF2FX.usd b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685446_KF2FX.usd new file mode 100644 index 0000000000000000000000000000000000000000..39360d07186281849d38cb2f8b54133ebe08a67a Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685446_KF2FX.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685454_KFjY.usd b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685454_KFjY.usd new file mode 100644 index 0000000000000000000000000000000000000000..b2be81c7e0413212f5771b6f2114be14a1c41a02 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685454_KFjY.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685468_KFbU.usd b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685468_KFbU.usd new file mode 100644 index 0000000000000000000000000000000000000000..e80d375558880a6372258d134ccc37a619066470 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685468_KFbU.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685478_KFrW.usd b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685478_KFrW.usd new file mode 100644 index 0000000000000000000000000000000000000000..4fdd48b93d5bafbe01a1aa9ef23c8b945c7c1aa2 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685478_KFrW.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685506_KFHX.usd b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685506_KFHX.usd new file mode 100644 index 0000000000000000000000000000000000000000..c4000dcc83466ecb52a0e6f3b3145213195ffbbf Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685506_KFHX.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685532_KFPc.usd b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685532_KFPc.usd new file mode 100644 index 0000000000000000000000000000000000000000..37cfbdf451b682687f7447cafa1e6e8ec93f757b Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685532_KFPc.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685537_KFPY.usd b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685537_KFPY.usd new file mode 100644 index 0000000000000000000000000000000000000000..e7c46bd0fca4f6195df5cac6eb24e9efa11ec49b Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685537_KFPY.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685545_KFPT.usd b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685545_KFPT.usd new file mode 100644 index 0000000000000000000000000000000000000000..38630ba5ebdd124b0f32fd93b70464bd963f8865 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685545_KFPT.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685556_KFnb.usd b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685556_KFnb.usd new file mode 100644 index 0000000000000000000000000000000000000000..b4c1e7900355a71670ebd4b01b22815e499fc0a4 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685556_KFnb.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685560_KFnU.usd b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685560_KFnU.usd new file mode 100644 index 0000000000000000000000000000000000000000..9864ff90f54e1f1bb567a1c86bbb03bf40801c9c Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685560_KFnU.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685570_KFbW.usd b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685570_KFbW.usd new file mode 100644 index 0000000000000000000000000000000000000000..01261bdcd2164d83ab0163d2112ebab6c5df1285 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685570_KFbW.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685573_KFfU.usd b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685573_KFfU.usd new file mode 100644 index 0000000000000000000000000000000000000000..0c3c51957fe4f96db30258550da80cf51a7c2df2 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685573_KFfU.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685579_KFbb.usd b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685579_KFbb.usd new file mode 100644 index 0000000000000000000000000000000000000000..b8ac88607a691aaa16bcc8dba72d5003e25a97ad Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685579_KFbb.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685594_KF2FZ.usd b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685594_KF2FZ.usd new file mode 100644 index 0000000000000000000000000000000000000000..129908e04ff5414e3d28ef840355b896b0e1887e Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B3_X_A4__1685594_KF2FZ.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685452_KFLS.usd b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685452_KFLS.usd new file mode 100644 index 0000000000000000000000000000000000000000..1a14ab82e17b48f1cf120ee5a17b0010a971ba80 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685452_KFLS.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685461_KFzW.usd b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685461_KFzW.usd new file mode 100644 index 0000000000000000000000000000000000000000..5a64d9481b1c614d7c2ab1d50d092f4c29294e63 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685461_KFzW.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685497_KFzY.usd b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685497_KFzY.usd new file mode 100644 index 0000000000000000000000000000000000000000..c8b6626a3268cec559b549b3e3979f0005faaf27 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685497_KFzY.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685514_KFLY.usd b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685514_KFLY.usd new file mode 100644 index 0000000000000000000000000000000000000000..494761c998481f457960f1b0dba7253717dfbf92 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685514_KFLY.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685533_KFHW.usd b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685533_KFHW.usd new file mode 100644 index 0000000000000000000000000000000000000000..c5240c4178346ebd535749777149b0095d59f776 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685533_KFHW.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685535_KFDa.usd b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685535_KFDa.usd new file mode 100644 index 0000000000000000000000000000000000000000..59183e9d26c38c88b9bf48ac9dbdbd118b0381da Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685535_KFDa.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685536_KFrX.usd b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685536_KFrX.usd new file mode 100644 index 0000000000000000000000000000000000000000..12b5e57da5be6dd93224db05ee76ce298295952b Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685536_KFrX.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685539_KFna.usd b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685539_KFna.usd new file mode 100644 index 0000000000000000000000000000000000000000..6fe89ffe8fd20cac17d56d687b4cfcb0961df0aa Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685539_KFna.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685543_KFHT.usd b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685543_KFHT.usd new file mode 100644 index 0000000000000000000000000000000000000000..f6c71eb6245e8859e67d9a092574dd10988ef166 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685543_KFHT.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685544_KF3c.usd b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685544_KF3c.usd new file mode 100644 index 0000000000000000000000000000000000000000..0496caa8dfe86f6d5f02aa7c0b6274e4336c5cef Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685544_KF3c.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685546_KFDV.usd b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685546_KFDV.usd new file mode 100644 index 0000000000000000000000000000000000000000..f830564961a43e5d6792ba0cf2bc43af7fe31ac3 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685546_KFDV.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685562_KFLW.usd b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685562_KFLW.usd new file mode 100644 index 0000000000000000000000000000000000000000..53438d89dd862ebfc82fdaaa01bc63770328f393 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685562_KFLW.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685580_KFzV.usd b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685580_KFzV.usd new file mode 100644 index 0000000000000000000000000000000000000000..63226ba9b88d0640f810468bbd7f65ed9e111aa3 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/R44SF_4_0____X_B6_X_CC__1685580_KFzV.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/SCREW_2_2_1_KFzI.usd b/Users/worv/costnav/NovaCarter/Parts/SCREW_2_2_1_KFzI.usd new file mode 100644 index 0000000000000000000000000000000000000000..c234d8d86d410504cef79bc523b28d97eab2bb97 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/SCREW_2_2_1_KFzI.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/SHAFT_MOUNT_KFHP.usd b/Users/worv/costnav/NovaCarter/Parts/SHAFT_MOUNT_KFHP.usd new file mode 100644 index 0000000000000000000000000000000000000000..74f1b3c548c0d3ca500e10c4d2640edb9467029c Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/SHAFT_MOUNT_KFHP.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/SMB_JACK_TO_FAKRA_PLUG_ADAPTER__JFn.usd b/Users/worv/costnav/NovaCarter/Parts/SMB_JACK_TO_FAKRA_PLUG_ADAPTER__JFn.usd new file mode 100644 index 0000000000000000000000000000000000000000..e241a23e04204d6b9fcd46b2de4a9c101a40c30c Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/SMB_JACK_TO_FAKRA_PLUG_ADAPTER__JFn.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/SOLID_JFT.usd b/Users/worv/costnav/NovaCarter/Parts/SOLID_JFT.usd new file mode 100644 index 0000000000000000000000000000000000000000..1f7d0a2fe9895c5056572c8da984c7540d3db0d4 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/SOLID_JFT.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/SOLID_JFj.usd b/Users/worv/costnav/NovaCarter/Parts/SOLID_JFj.usd new file mode 100644 index 0000000000000000000000000000000000000000..6843cbf74a7f315a4440de87fed779be11d7f4ee Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/SOLID_JFj.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/TBC53_M3_1_4_2__KFfL.usd b/Users/worv/costnav/NovaCarter/Parts/TBC53_M3_1_4_2__KFfL.usd new file mode 100644 index 0000000000000000000000000000000000000000..6368b655ee67b84d5134849c063742e81071756d Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/TBC53_M3_1_4_2__KFfL.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/TBF02_M8_003_KF3R.usd b/Users/worv/costnav/NovaCarter/Parts/TBF02_M8_003_KF3R.usd new file mode 100644 index 0000000000000000000000000000000000000000..ec132c30e3c4c417a4532a2b1dc543a57c979a62 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/TBF02_M8_003_KF3R.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/TBJ50_M4_L10_KFnf.usd b/Users/worv/costnav/NovaCarter/Parts/TBJ50_M4_L10_KFnf.usd new file mode 100644 index 0000000000000000000000000000000000000000..3e568612c8a31be77b580782097c10006dfb9357 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/TBJ50_M4_L10_KFnf.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/WELD_CHASSIS_BODY_ASM_KF2FL.usd b/Users/worv/costnav/NovaCarter/Parts/WELD_CHASSIS_BODY_ASM_KF2FL.usd new file mode 100644 index 0000000000000000000000000000000000000000..3576dfb14a719cb38bd25b8c94a11308d237b4ce Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/WELD_CHASSIS_BODY_ASM_KF2FL.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_001_10_1_MIR_KFvO.usd b/Users/worv/costnav/NovaCarter/Parts/_001_10_1_MIR_KFvO.usd new file mode 100644 index 0000000000000000000000000000000000000000..9a301347667aff786af5c427a2a60b65fb3e0749 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_001_10_1_MIR_KFvO.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_001_10_4_KFrO.usd b/Users/worv/costnav/NovaCarter/Parts/_001_10_4_KFrO.usd new file mode 100644 index 0000000000000000000000000000000000000000..617619bfb466632a1e093bd6d93687f4ee00a6df Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_001_10_4_KFrO.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_00_1070_000_3_KFPB.usd b/Users/worv/costnav/NovaCarter/Parts/_00_1070_000_3_KFPB.usd new file mode 100644 index 0000000000000000000000000000000000000000..66bc05efc00853a71e4decdf23d5584600373cdf Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_00_1070_000_3_KFPB.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_00_1070_000_3_KFfC.usd b/Users/worv/costnav/NovaCarter/Parts/_00_1070_000_3_KFfC.usd new file mode 100644 index 0000000000000000000000000000000000000000..66bc05efc00853a71e4decdf23d5584600373cdf Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_00_1070_000_3_KFfC.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_00_1074_000_1_KF2FB.usd b/Users/worv/costnav/NovaCarter/Parts/_00_1074_000_1_KF2FB.usd new file mode 100644 index 0000000000000000000000000000000000000000..b81f164f1217654b4d05dcabc4599cb8377108b6 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_00_1074_000_1_KF2FB.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_00_1132_000_1__KFnG.usd b/Users/worv/costnav/NovaCarter/Parts/_00_1132_000_1__KFnG.usd new file mode 100644 index 0000000000000000000000000000000000000000..acd30604596c88f272333e91fb5c6213b9b898be Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_00_1132_000_1__KFnG.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_00_1132_000_1__KFrD.usd b/Users/worv/costnav/NovaCarter/Parts/_00_1132_000_1__KFrD.usd new file mode 100644 index 0000000000000000000000000000000000000000..acd30604596c88f272333e91fb5c6213b9b898be Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_00_1132_000_1__KFrD.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_00_KFvQ.usd b/Users/worv/costnav/NovaCarter/Parts/_00_KFvQ.usd new file mode 100644 index 0000000000000000000000000000000000000000..4d907f6b2c6595e3bb7da157f4eee802e3083e0f Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_00_KFvQ.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_014_IMPELLER_CONCORD_KFzT.usd b/Users/worv/costnav/NovaCarter/Parts/_014_IMPELLER_CONCORD_KFzT.usd new file mode 100644 index 0000000000000000000000000000000000000000..67cf0be58b17520bc497f1732fb8eed39190985d --- /dev/null +++ b/Users/worv/costnav/NovaCarter/Parts/_014_IMPELLER_CONCORD_KFzT.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:26c9d71bfda2eac5931f481e648fef09a001601e3414152f755bbb3a01ae5ffb +size 151091 diff --git a/Users/worv/costnav/NovaCarter/Parts/_15_0379_000_1_KFrC.usd b/Users/worv/costnav/NovaCarter/Parts/_15_0379_000_1_KFrC.usd new file mode 100644 index 0000000000000000000000000000000000000000..6d5f53138252993a1a3f09f7f36c305999ec96e0 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_15_0379_000_1_KFrC.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_15_0578_000_1_KFDG.usd b/Users/worv/costnav/NovaCarter/Parts/_15_0578_000_1_KFDG.usd new file mode 100644 index 0000000000000000000000000000000000000000..6399dbe5160f752ab4d38a3292bb3a3e0659c00a Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_15_0578_000_1_KFDG.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_15_0578_000_1_KFHG.usd b/Users/worv/costnav/NovaCarter/Parts/_15_0578_000_1_KFHG.usd new file mode 100644 index 0000000000000000000000000000000000000000..ec5118bc5cccdca5b59f7f793b3e8811c2feac6d Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_15_0578_000_1_KFHG.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_15_1045_000_1_KFbB.usd b/Users/worv/costnav/NovaCarter/Parts/_15_1045_000_1_KFbB.usd new file mode 100644 index 0000000000000000000000000000000000000000..743d24e0d605ae80be1dfa2d9e8cfad2fa34b057 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_15_1045_000_1_KFbB.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_15_2811_000_1_JFT.usd b/Users/worv/costnav/NovaCarter/Parts/_15_2811_000_1_JFT.usd new file mode 100644 index 0000000000000000000000000000000000000000..3644b3e262fd622df9bc8765c47d48f269f3caaa Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_15_2811_000_1_JFT.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_15_3471_000_1_KFPE.usd b/Users/worv/costnav/NovaCarter/Parts/_15_3471_000_1_KFPE.usd new file mode 100644 index 0000000000000000000000000000000000000000..ee5436336ddafecba1a660e4d66f5dd68ccb2820 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_15_3471_000_1_KFPE.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_16_0924_000_1_JFP.usd b/Users/worv/costnav/NovaCarter/Parts/_16_0924_000_1_JFP.usd new file mode 100644 index 0000000000000000000000000000000000000000..9dcb5932b4a59b199cb595f6a23fe059b0627566 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_16_0924_000_1_JFP.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_190_KFbN.usd b/Users/worv/costnav/NovaCarter/Parts/_190_KFbN.usd new file mode 100644 index 0000000000000000000000000000000000000000..679f1b00b5c1e212bf4cc115ca00df7f9ea10f9d Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_190_KFbN.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_190_KFfO.usd b/Users/worv/costnav/NovaCarter/Parts/_190_KFfO.usd new file mode 100644 index 0000000000000000000000000000000000000000..83e8f780d4cf1d13c6a678140540a3964a8b4d43 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_190_KFfO.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_20_1005_000_1_LFvlB.usd b/Users/worv/costnav/NovaCarter/Parts/_20_1005_000_1_LFvlB.usd new file mode 100644 index 0000000000000000000000000000000000000000..41c53f1429ead91e205247270a6cd0c239064c1f Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_20_1005_000_1_LFvlB.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_2130110_ASM_JFP.usd b/Users/worv/costnav/NovaCarter/Parts/_2130110_ASM_JFP.usd new file mode 100644 index 0000000000000000000000000000000000000000..d358339420d0cadbd8d8535de4bd9806cae0616e Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_2130110_ASM_JFP.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_30_1135_000_2_KFrC.usd b/Users/worv/costnav/NovaCarter/Parts/_30_1135_000_2_KFrC.usd new file mode 100644 index 0000000000000000000000000000000000000000..8c32fa6e76b8787c3139bf158fe49167946448e6 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_30_1135_000_2_KFrC.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_30_1135_000_2__KFTF.usd b/Users/worv/costnav/NovaCarter/Parts/_30_1135_000_2__KFTF.usd new file mode 100644 index 0000000000000000000000000000000000000000..8c32fa6e76b8787c3139bf158fe49167946448e6 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_30_1135_000_2__KFTF.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_30_1158_000_2__KFLF.usd b/Users/worv/costnav/NovaCarter/Parts/_30_1158_000_2__KFLF.usd new file mode 100644 index 0000000000000000000000000000000000000000..f5e67c4d05ddc402039d3aa20dd87d75c6bbf7b3 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_30_1158_000_2__KFLF.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_30_1337_000_1__KFvE.usd b/Users/worv/costnav/NovaCarter/Parts/_30_1337_000_1__KFvE.usd new file mode 100644 index 0000000000000000000000000000000000000000..9bda157f553e4f438d60c3b4070fe0abf43641ff --- /dev/null +++ b/Users/worv/costnav/NovaCarter/Parts/_30_1337_000_1__KFvE.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:49a32bf4e74ecbc01b3c8ef27c855d182cc987bb6d8a335b9d5c52dc56dacdd7 +size 626273 diff --git a/Users/worv/costnav/NovaCarter/Parts/_30_1373_000_1_KFfE.usd b/Users/worv/costnav/NovaCarter/Parts/_30_1373_000_1_KFfE.usd new file mode 100644 index 0000000000000000000000000000000000000000..39105184cbe13e970b0b3448fe9e5d97b252c1e6 --- /dev/null +++ b/Users/worv/costnav/NovaCarter/Parts/_30_1373_000_1_KFfE.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d9523bdbb6fc228d9e1c7d353bd19d2a26b25b6ce96bc512517a9825d43c2063 +size 1034551 diff --git a/Users/worv/costnav/NovaCarter/Parts/_32_0796_000_1_KFvD.usd b/Users/worv/costnav/NovaCarter/Parts/_32_0796_000_1_KFvD.usd new file mode 100644 index 0000000000000000000000000000000000000000..f5f7d48aaf7511ea860c0df3e61d2f7c5b49e1da Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_32_0796_000_1_KFvD.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_402_H060__KFfB.usd b/Users/worv/costnav/NovaCarter/Parts/_402_H060__KFfB.usd new file mode 100644 index 0000000000000000000000000000000000000000..d000c2f894daa391060acdfa850273e1e7a97bc3 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_402_H060__KFfB.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_5164_KFPM.usd b/Users/worv/costnav/NovaCarter/Parts/_5164_KFPM.usd new file mode 100644 index 0000000000000000000000000000000000000000..fa68d10f888e9fd39ed3939487b3f0360330322b Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_5164_KFPM.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_5817_KFvK.usd b/Users/worv/costnav/NovaCarter/Parts/_5817_KFvK.usd new file mode 100644 index 0000000000000000000000000000000000000000..38f90bad8000edcd542890c8a5a54d223d5ef427 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_5817_KFvK.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_6021_KFPK.usd b/Users/worv/costnav/NovaCarter/Parts/_6021_KFPK.usd new file mode 100644 index 0000000000000000000000000000000000000000..314ad739b655b253531374035778faeee19ed99f Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_6021_KFPK.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_603_H100_KFnB.usd b/Users/worv/costnav/NovaCarter/Parts/_603_H100_KFnB.usd new file mode 100644 index 0000000000000000000000000000000000000000..87b89d6553054b930c108d3b222c2224c3aedfc0 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_603_H100_KFnB.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_622_KFjN.usd b/Users/worv/costnav/NovaCarter/Parts/_622_KFjN.usd new file mode 100644 index 0000000000000000000000000000000000000000..fccdec03e0f356e5bcb27b3912cea24d38125c65 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_622_KFjN.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_622_KFzN.usd b/Users/worv/costnav/NovaCarter/Parts/_622_KFzN.usd new file mode 100644 index 0000000000000000000000000000000000000000..e23e00363363d4f8b31a1a01d8f3b3c0bbd11553 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_622_KFzN.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_64_0535_000_1_JF7.usd b/Users/worv/costnav/NovaCarter/Parts/_64_0535_000_1_JF7.usd new file mode 100644 index 0000000000000000000000000000000000000000..0c45a2372b739d841cf9f0dab7215eb9bfc209e5 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_64_0535_000_1_JF7.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_64_0535_000_1_KFnB.usd b/Users/worv/costnav/NovaCarter/Parts/_64_0535_000_1_KFnB.usd new file mode 100644 index 0000000000000000000000000000000000000000..065a0e628caf7a8fcd696c7dd589c59b01ff7a66 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_64_0535_000_1_KFnB.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_65_0728_000_2__KF3F.usd b/Users/worv/costnav/NovaCarter/Parts/_65_0728_000_2__KF3F.usd new file mode 100644 index 0000000000000000000000000000000000000000..2662e9a6398279df78b02ceab588ed62f968ac86 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_65_0728_000_2__KF3F.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_65_0728_000_2__KFbF.usd b/Users/worv/costnav/NovaCarter/Parts/_65_0728_000_2__KFbF.usd new file mode 100644 index 0000000000000000000000000000000000000000..b24abad97613fa1708a386ba335e8b98b1e166aa Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_65_0728_000_2__KFbF.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_65_0728_000_2__KFnF.usd b/Users/worv/costnav/NovaCarter/Parts/_65_0728_000_2__KFnF.usd new file mode 100644 index 0000000000000000000000000000000000000000..2a2cc49244fa195fba13a72dc63628a0046a6aeb Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_65_0728_000_2__KFnF.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_660_KFPO.usd b/Users/worv/costnav/NovaCarter/Parts/_660_KFPO.usd new file mode 100644 index 0000000000000000000000000000000000000000..1d6a4167454c35c8a0811c4e2ded66cf53f18645 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_660_KFPO.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_74_0117_000_2_KFTE.usd b/Users/worv/costnav/NovaCarter/Parts/_74_0117_000_2_KFTE.usd new file mode 100644 index 0000000000000000000000000000000000000000..154b779a44d16c0aa9983bf3f2e24ace4a3c1340 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_74_0117_000_2_KFTE.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_7764_KFDK.usd b/Users/worv/costnav/NovaCarter/Parts/_7764_KFDK.usd new file mode 100644 index 0000000000000000000000000000000000000000..02a6a26ab7b9e1861cc2fa653ed42dd9eea50213 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_7764_KFDK.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_7764_KFXJ.usd b/Users/worv/costnav/NovaCarter/Parts/_7764_KFXJ.usd new file mode 100644 index 0000000000000000000000000000000000000000..4e4bc1d2616e9cc5da2315604b14c390fdf1fa40 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_7764_KFXJ.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_7764__KFDM.usd b/Users/worv/costnav/NovaCarter/Parts/_7764__KFDM.usd new file mode 100644 index 0000000000000000000000000000000000000000..62732368926b3860c47a39a9307fac67eabfaa58 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_7764__KFDM.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_7764__KFLL.usd b/Users/worv/costnav/NovaCarter/Parts/_7764__KFLL.usd new file mode 100644 index 0000000000000000000000000000000000000000..a9e50ae59a83f50ed19278dbfb3243fc2c3e0c6c Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_7764__KFLL.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_7764__KFPL.usd b/Users/worv/costnav/NovaCarter/Parts/_7764__KFPL.usd new file mode 100644 index 0000000000000000000000000000000000000000..33b6b93f781ec3d1537206c754fb472ae6a1782a Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_7764__KFPL.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_7764__KFbK.usd b/Users/worv/costnav/NovaCarter/Parts/_7764__KFbK.usd new file mode 100644 index 0000000000000000000000000000000000000000..9acd0d41ba4e9e55c1e340a6c817d5d41b521202 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_7764__KFbK.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_7764__KFjK.usd b/Users/worv/costnav/NovaCarter/Parts/_7764__KFjK.usd new file mode 100644 index 0000000000000000000000000000000000000000..e5c7b992b2ed5680a094d9f68266ea782f3b776b Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_7764__KFjK.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_7764__KFnL.usd b/Users/worv/costnav/NovaCarter/Parts/_7764__KFnL.usd new file mode 100644 index 0000000000000000000000000000000000000000..e4ef44cb69abb5bfa580b308290fb432684405ed Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_7764__KFnL.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_7764__KFzL.usd b/Users/worv/costnav/NovaCarter/Parts/_7764__KFzL.usd new file mode 100644 index 0000000000000000000000000000000000000000..443f2e866420a1eee7b649298c6253b46c7387fe Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_7764__KFzL.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_805_H070_KFzB.usd b/Users/worv/costnav/NovaCarter/Parts/_805_H070_KFzB.usd new file mode 100644 index 0000000000000000000000000000000000000000..c12ed3180bb2f294c9e147519e3e4c58b58748a8 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_805_H070_KFzB.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_805_H150__KFbD.usd b/Users/worv/costnav/NovaCarter/Parts/_805_H150__KFbD.usd new file mode 100644 index 0000000000000000000000000000000000000000..66b06ba784394e0062ab96e0edb2093b1f3aca49 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_805_H150__KFbD.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_805_H150__KFvB.usd b/Users/worv/costnav/NovaCarter/Parts/_805_H150__KFvB.usd new file mode 100644 index 0000000000000000000000000000000000000000..1fdc646936aad87cfff049cd2ec07342ba62b40f Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_805_H150__KFvB.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_80_0033_000_3_JFD_1.usd b/Users/worv/costnav/NovaCarter/Parts/_80_0033_000_3_JFD_1.usd new file mode 100644 index 0000000000000000000000000000000000000000..bd73a7467fbdcac988b4c0709063c39191ffa3ea Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_80_0033_000_3_JFD_1.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_80_0817_000_2_KFvD.usd b/Users/worv/costnav/NovaCarter/Parts/_80_0817_000_2_KFvD.usd new file mode 100644 index 0000000000000000000000000000000000000000..2fd26f572a837ce8748c93376d69c2faccf0898f Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_80_0817_000_2_KFvD.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_90_0305_000_2_KFDE.usd b/Users/worv/costnav/NovaCarter/Parts/_90_0305_000_2_KFDE.usd new file mode 100644 index 0000000000000000000000000000000000000000..e33be296a4fee1c322738af2d51263d73f4e2e40 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_90_0305_000_2_KFDE.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_90_0305_000_2_KFHE.usd b/Users/worv/costnav/NovaCarter/Parts/_90_0305_000_2_KFHE.usd new file mode 100644 index 0000000000000000000000000000000000000000..557e1a1bbfe0bebefb3250453811dc0b705a8078 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_90_0305_000_2_KFHE.usd differ diff --git a/Users/worv/costnav/NovaCarter/Parts/_90_0415_000_1__KFzD.usd b/Users/worv/costnav/NovaCarter/Parts/_90_0415_000_1__KFzD.usd new file mode 100644 index 0000000000000000000000000000000000000000..192b79cf5f511e26e9393221e61f7ad00119204a Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Parts/_90_0415_000_1__KFzD.usd differ diff --git a/Users/worv/costnav/NovaCarter/Variants/Configuration/nova_carter_merged_no_internals.usd b/Users/worv/costnav/NovaCarter/Variants/Configuration/nova_carter_merged_no_internals.usd new file mode 100644 index 0000000000000000000000000000000000000000..57bda3e3dcbf7125bc5a239750eaf6fe1f8576c5 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Variants/Configuration/nova_carter_merged_no_internals.usd differ diff --git a/Users/worv/costnav/NovaCarter/Variants/Configuration/nova_carter_merged_skirt_only.usd b/Users/worv/costnav/NovaCarter/Variants/Configuration/nova_carter_merged_skirt_only.usd new file mode 100644 index 0000000000000000000000000000000000000000..bda50e682296a492dab0be1f5f54d34a0dc04a34 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Variants/Configuration/nova_carter_merged_skirt_only.usd differ diff --git a/Users/worv/costnav/NovaCarter/Variants/Physics/nova_carter_physics.usd b/Users/worv/costnav/NovaCarter/Variants/Physics/nova_carter_physics.usd new file mode 100644 index 0000000000000000000000000000000000000000..05350060a832cd2a30b6c3bfc210ae1454aee469 Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Variants/Physics/nova_carter_physics.usd differ diff --git a/Users/worv/costnav/NovaCarter/Variants/Sensors/nova_carter_sensors.usd b/Users/worv/costnav/NovaCarter/Variants/Sensors/nova_carter_sensors.usd new file mode 100644 index 0000000000000000000000000000000000000000..cdd36410626d3c3360f79b5fcd12069b3cde999f Binary files /dev/null and b/Users/worv/costnav/NovaCarter/Variants/Sensors/nova_carter_sensors.usd differ