
- Posts: 35
- Joined: Thu Apr 04, 2024 3:32 pm
- Real Name: Raphael KUHN
Hi,
To improve rendering speed, I want to be able to disable/enable replacematerail + shader .
I can't find any advice to deactivate replacematerial + shader without making the attached cube disappear.
If I deactivate only replacematerial rendering continues to take the shader into account in its calculations.
Although KAZ materials use a lot of tools, other shaders included by Blackmagic also increase rendering time.
In addition, for my fusion composition, I'd like to add a switch node using “edit control” for the replacement material and shader. Wherever I place the switch node, it doesn't create a display condition .
To improve rendering speed, I want to be able to disable/enable replacematerail + shader .
I can't find any advice to deactivate replacematerial + shader without making the attached cube disappear.
If I deactivate only replacematerial rendering continues to take the shader into account in its calculations.
Although KAZ materials use a lot of tools, other shaders included by Blackmagic also increase rendering time.
In addition, for my fusion composition, I'd like to add a switch node using “edit control” for the replacement material and shader. Wherever I place the switch node, it doesn't create a display condition .
- Code: Select all
{
Tools = ordered() {
Merge3D1 = Merge3D {
CtrlWZoom = false,
Inputs = {
PassThroughLights = Input { Value = 1, },
SceneInput1 = Input {
SourceOp = "Switch1",
Source = "Output",
},
SceneInput2 = Input {
SourceOp = "Text3D1",
Source = "Output",
}
},
ViewInfo = OperatorInfo { Pos = { 1028.79, -36.8634 } },
},
Switch1 = Switch {
Inputs = {
Input0 = Input {
SourceOp = "ReplaceMaterial3D1_1",
Source = "Output",
},
Input1 = Input {
SourceOp = "Cube_1_Vert",
Source = "Output",
}
},
ViewInfo = OperatorInfo { Pos = { 912.171, -36.3373 } },
Colors = { TileColor = { R = 0.0823529411764706, G = 0.384313725490196, B = 0.517647058823529 }, }
},
ReplaceMaterial3D1_1 = ReplaceMaterial3D {
Inputs = {
MaterialIDLimitMode = Input { Value = 1, },
MaterialInput = Input {
SourceOp = "ShaderPipeRouter_1",
Source = "Output",
},
["MtlStdInputs.MaterialID"] = Input { Value = 7, }
},
ViewInfo = OperatorInfo { Pos = { 912.549, -82.4943 } },
},
kas_MetalGalvanized_1 = GroupOperator {
NameSet = true,
CustomData = { Path = { Map = { ["Setting:"] = "Macros:/KickAss ShaderZ/Native ShaderZ/Industrial/" } }, Settings = {
}, HelpPage = "https://www.steakunderwater.com/wesuckless/viewtopic.php?p=25255#p25255" },
Inputs = ordered() {
Comments = Input { Value = "\"kas_MetalGalvanized\" creates an industrial sheet metal material. \n\nCopyright Credits \nkas_Parkland.exr\n\nCreative Commons:\nEgg mountain at afternoon \n\nBy:\nhttps://hdrmaps.com \n\nIs licensed under:\nCC BY 2.0", },
TextureMap = InstanceInput {
SourceOp = "TextureInputSwitchElseFuse_1",
Source = "Input1",
Name = "TextureMap",
},
BackgroundTextureMap = InstanceInput {
SourceOp = "BackgroundTextureInputSwitchElseFuse_1",
Source = "Input1",
Name = "BackgroundTextureMap",
},
EnvironmentMap = InstanceInput {
SourceOp = "EnvironmentMapInputSwitchElseFuse_1_1",
Source = "Input1",
Name = "EnvironmentMap",
}
},
Outputs = {
Material = InstanceOutput {
SourceOp = "ShaderPipeRouter_1",
Source = "Output",
Name = "Material Output",
}
},
ViewInfo = GroupInfo {
Pos = { 912.881, -116.36 },
Flags = {
AllowPan = false,
AutoSnap = true
},
Size = { 674.94, 251.013, 459.064, 21.3808 },
Direction = "Horizontal",
PipeStyle = "Direct",
Scale = 1,
Offset = { -1381.99, -284.889 }
},
Tools = ordered() {
ParklandLoader_1 = Loader {
Clips = {
Clip {
ID = "Clip1",
Filename = "Macros:/KickAss ShaderZ/Assets/kas_Parkland.exr",
FormatID = "OpenEXRFormat",
StartFrame = -1,
LengthSetManually = true,
TrimIn = 0,
TrimOut = 0,
ExtendFirst = 0,
ExtendLast = 0,
Loop = 0,
AspectMode = 0,
Depth = 0,
TimeCode = 0,
GlobalStart = 0,
GlobalEnd = 0
}
},
CtrlWShown = false,
NameSet = true,
Inputs = {
["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
["Clip1.OpenEXRFormat.RedName"] = Input { Value = FuID { "R" }, },
["Clip1.OpenEXRFormat.GreenName"] = Input { Value = FuID { "G" }, },
["Clip1.OpenEXRFormat.BlueName"] = Input { Value = FuID { "B" }, },
["Clip1.OpenEXRFormat.AlphaName"] = Input { Value = FuID { "A" }, },
Comments = Input { Value = "Copyright Credits \nkas_Parkland.exr\n\nCreative Commons:\nEgg mountain at afternoon \n\nBy:\nhttps://hdrmaps.com \n\nIs licensed under:\nCC BY 2.0", }
},
ViewInfo = OperatorInfo { Pos = { 1430, 313.5 } },
},
AgedSteelPlateLoader_1 = Loader {
Clips = {
Clip {
ID = "Clip1",
Filename = "Macros:/KickAss ShaderZ/Assets/kas_AgedSteelPlate.jpg",
FormatID = "JpegFormat",
StartFrame = -1,
LengthSetManually = true,
TrimIn = 0,
TrimOut = 0,
ExtendFirst = 0,
ExtendLast = 0,
Loop = 0,
AspectMode = 0,
Depth = 0,
TimeCode = 0,
GlobalStart = 0,
GlobalEnd = 0
}
},
CtrlWShown = false,
NameSet = true,
Inputs = {
["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, }
},
ViewInfo = OperatorInfo { Pos = { 990, 313.5 } },
},
GalvanizedSheetMetal_1 = Loader {
Clips = {
Clip {
ID = "Clip1",
Filename = "Macros:/KickAss ShaderZ/Assets/kas_GalvanizedSheetMetal.jpg",
FormatID = "JpegFormat",
StartFrame = -1,
LengthSetManually = true,
TrimIn = 0,
TrimOut = 0,
ExtendFirst = 0,
ExtendLast = 0,
Loop = 0,
AspectMode = 0,
Depth = 0,
TimeCode = 0,
GlobalStart = 0,
GlobalEnd = 0
}
},
CtrlWShown = false,
NameSet = true,
ViewInfo = OperatorInfo { Pos = { 1210, 313.5 } },
},
EnvironmentMapInputSwitchElseFuse_1_1 = Fuse.SwitchElse {
CtrlWShown = false,
NameSet = true,
Inputs = {
Switch = Input { Value = 1, },
Else = Input { Value = 2, },
Input2 = Input {
SourceOp = "ParklandLoader_1",
Source = "Output",
},
Comments = Input { Value = "The \"SwitchElse.fuse\" is used to automatically switch the surface material between user supplied imagery, and the fallback option of the internal \"default\" imagery. This input switching happens when nothing is connected to the surface material's \"GroupOperator\" based \"TextureMap\" and \"EnvironmentMap\" input connections.", }
},
ViewInfo = OperatorInfo { Pos = { 1430, 346.5 } },
Version = 100
},
TextureInputSwitchElseFuse_1 = Fuse.SwitchElse {
CtrlWShown = false,
NameSet = true,
Inputs = {
Switch = Input { Value = 1, },
Else = Input { Value = 2, },
Input2 = Input {
SourceOp = "AgedSteelPlateLoader_1",
Source = "Output",
},
Comments = Input { Value = "The \"SwitchElse.fuse\" is used to automatically switch the surface material between user supplied imagery, and the fallback option of the internal \"default\" imagery. This input switching happens when nothing is connected to the surface material's \"GroupOperator\" based \"TextureMap\" and \"EnvironmentMap\" input connections.", }
},
ViewInfo = OperatorInfo { Pos = { 990, 346.5 } },
Version = 100
},
ShaderPipeRouter_1 = PipeRouter {
CtrlWShown = false,
NameSet = true,
Inputs = {
Input = Input {
SourceOp = "MetalGalvanizedReflect_1",
Source = "MaterialOutput",
}
},
ViewInfo = PipeRouterInfo { Pos = { 1540, 478.5 } },
Colors = { TileColor = { R = 0.0823529411764706, G = 0.384313725490196, B = 0.517647058823529 }, }
},
MetalGalvanizedReflect_1 = MtlReflect {
CtrlWShown = false,
NameSet = true,
Inputs = {
BackgroundMaterial = Input {
SourceOp = "GalvanizedPhong_1",
Source = "MaterialOutput",
},
["Reflection.GlancingStrength"] = Input { Value = 0, },
["Reflection.FaceOnStrength"] = Input { Value = 0.52, },
["Reflection.Falloff"] = Input { Value = 1.9946667, },
["Reflection.Color.Material"] = Input {
SourceOp = "ParkandSphereMap_1",
Source = "MaterialOutput",
},
["Reflection.Intensity.Material"] = Input {
SourceOp = "RedToAlphaChannelBooleans_1",
Source = "Output",
},
["Refraction.RefractiveIndex.RGB"] = Input { Value = 1.0065, },
MaterialID = Input { Value = 82, }
},
ViewInfo = OperatorInfo { Pos = { 1375, 478.5 } },
},
ParkandSphereMap_1 = SphereMap {
CtrlWShown = false,
NameSet = true,
Inputs = {
Rotation = Input { Value = 1, },
["Rotate.Y"] = Input { Value = -65, },
Image = Input {
SourceOp = "ParklandBlur_1",
Source = "Output",
},
MaterialID = Input { Value = 15, }
},
ViewInfo = OperatorInfo { Pos = { 1430, 412.5 } },
},
GalvanizedPhong_1 = MtlPhong {
CtrlWShown = false,
NameSet = true,
Inputs = {
["Diffuse.Color.Material"] = Input {
SourceOp = "GalvanizedColorCorrector_1",
Source = "Output",
},
["Specular.Nest"] = Input { Value = 1, },
["Specular.Color.Blue"] = Input { Value = 0.866666666666667, },
["Specular.Intensity"] = Input { Value = 0.5, },
["Specular.Intensity.Material"] = Input {
SourceOp = "RedToAlphaChannelBooleans_1",
Source = "Output",
},
["Specular.Exponent"] = Input { Value = 1, },
["Transmittance.Nest"] = Input { Value = 1, },
["Transmittance.Color.Red"] = Input { Value = 1, },
["Transmittance.Color.Green"] = Input { Value = 1, },
["Transmittance.Color.Blue"] = Input { Value = 1, },
MaterialID = Input { Value = 78, }
},
ViewInfo = OperatorInfo { Pos = { 1210, 412.5 } },
},
GalvanizedColorCorrector_1 = ColorCorrector {
NameSet = true,
Inputs = {
WheelSaturation1 = Input { Value = 3, },
WheelTintAngle1 = Input { Value = -0.01, },
WheelTintLength1 = Input { Value = 1, },
MasterRGBContrast = Input { Value = 0.83, },
MasterRGBGamma = Input { Value = 0.56, },
MasterRGBBrightness = Input { Value = -0.2, },
ColorRanges = Input {
Value = ColorCurves {
Curves = {
{
Points = {
{ 0, 1 },
{ 0.4, 0.2 },
{ 0.6, 0 },
{ 1, 0 }
}
},
{
Points = {
{ 0, 0 },
{ 0.4, 0 },
{ 0.6, 0.2 },
{ 1, 1 }
}
}
}
},
},
Input = Input {
SourceOp = "BackgroundTextureInputSwitchElseFuse_1",
Source = "Output",
}
},
ViewInfo = OperatorInfo { Pos = { 1210, 379.5 } },
},
RedToAlphaChannelBooleans_1 = ChannelBoolean {
CtrlWShown = false,
NameSet = true,
Inputs = {
ToAlpha = Input { Value = 5, },
Background = Input {
SourceOp = "AgedBrightnessContrast_1",
Source = "Output",
}
},
ViewInfo = OperatorInfo { Pos = { 1045, 478.5 } },
},
AgedBrightnessContrast_1 = BrightnessContrast {
CtrlWShown = false,
NameSet = true,
Inputs = {
Saturation = Input { Value = 0, },
Low = Input { Value = 0.4289855, },
High = Input { Value = 0.626087, },
Input = Input {
SourceOp = "TextureInputSwitchElseFuse_1",
Source = "Output",
}
},
ViewInfo = OperatorInfo { Pos = { 990, 379.5 } },
},
ParklandBlur_1 = Blur {
CtrlWShown = false,
NameSet = true,
Inputs = {
Filter = Input { Value = FuID { "Gaussian" }, },
XBlurSize = Input { Value = 15, },
Input = Input {
SourceOp = "EnvironmentMapInputSwitchElseFuse_1_1",
Source = "Output",
}
},
ViewInfo = OperatorInfo { Pos = { 1430, 379.5 } },
},
BackgroundTextureInputSwitchElseFuse_1 = Fuse.SwitchElse {
CtrlWShown = false,
NameSet = true,
Inputs = {
Switch = Input { Value = 1, },
Else = Input { Value = 2, },
Input2 = Input {
SourceOp = "GalvanizedSheetMetal_1",
Source = "Output",
},
Comments = Input { Value = "The \"SwitchElse.fuse\" is used to automatically switch the surface material between user supplied imagery, and the fallback option of the internal \"default\" imagery. This input switching happens when nothing is connected to the surface material's \"GroupOperator\" based \"TextureMap\" and \"EnvironmentMap\" input connections.", }
},
ViewInfo = OperatorInfo { Pos = { 1210, 346.5 } },
Version = 100
}
},
},
Cube_1_Vert = Cube3D {
NameSet = true,
Inputs = {
["Transform3DOp.Translate.X"] = Input { Value = 0.058, },
["Transform3DOp.PivotNest"] = Input { Value = 1, },
["Transform3DOp.ScaleLock"] = Input { Value = 0, },
["Transform3DOp.Scale.X"] = Input { Value = 0.081, },
["Transform3DOp.Scale.Y"] = Input { Value = 0.05, },
["Transform3DOp.Scale.Z"] = Input { Value = 0.05, },
["SurfaceCubeInputs.Visibility.Nest"] = Input { Value = 1, },
["SurfaceCubeInputs.Controls.Nest"] = Input { Value = 1, },
["SurfaceCubeInputs.Controls.Normals.Scale"] = Input { Value = 0, },
["SurfaceCubeInputs.ObjectID.ObjectID"] = Input { Value = 2, },
MtlFace = Input { Value = 2, },
["Front.MtlStdInputs.Diffuse.Color.Red"] = Input { Value = 0, },
["Front.MtlStdInputs.Diffuse.Color.Green"] = Input { Value = 0.713725490196078, },
["Front.MtlStdInputs.Diffuse.Color.Blue"] = Input { Value = 0, },
["Front.MtlStdInputs.MaterialID"] = Input { Value = 2, },
["Right.MtlStdInputs.MaterialID"] = Input { Value = 3, },
["Left.MtlStdInputs.Diffuse.Color.Red"] = Input { Value = 0.12, },
["Left.MtlStdInputs.Diffuse.Color.Green"] = Input { Value = 0.28, },
["Left.MtlStdInputs.Diffuse.Color.Blue"] = Input { Value = 0.1, },
["Left.MtlStdInputs.MaterialID"] = Input { Value = 4, },
["Bottom.MtlStdInputs.Diffuse.Color.Red"] = Input { Value = 0.575, },
["Bottom.MtlStdInputs.Diffuse.Color.Blue"] = Input { Value = 0.559, },
["Bottom.MtlStdInputs.MaterialID"] = Input { Value = 5, },
["Top.MtlStdInputs.Diffuse.Color.Red"] = Input { Value = 0.572549019607843, },
["Top.MtlStdInputs.Diffuse.Color.Blue"] = Input { Value = 0.556862745098039, },
["Top.MtlStdInputs.MaterialID"] = Input { Value = 6, },
["Back.MtlStdInputs.Diffuse.Color.Red"] = Input { Value = 0, },
["Back.MtlStdInputs.Diffuse.Color.Green"] = Input { Value = 0.713725507259369, },
["Back.MtlStdInputs.Diffuse.Color.Blue"] = Input { Value = 0, },
["Back.MtlStdInputs.MaterialID"] = Input { Value = 8, }
},
ViewInfo = OperatorInfo { Pos = { 790.914, -35.3222 } },
},
Text3D1 = Text3D {
Inputs = {
SceneInput = Input {
SourceOp = "Barre_Oblique_1",
Source = "Output",
},
["Transform3DOp.Translate.X"] = Input { Value = 0.092, },
["Transform3DOp.Translate.Y"] = Input { Value = 0.06, },
["Transform3DOp.Translate.Z"] = Input { Value = 0.029, },
["Transform3DOp.PivotNest"] = Input { Value = 1, },
["Transform3DOp.Pivot.X"] = Input { Value = -0.03, },
["Transform3DOp.Pivot.Y"] = Input { Value = -0.06, },
["Transform3DOp.ScaleLock"] = Input { Value = 0, },
["Transform3DOp.Scale.X"] = Input { Value = 0.9, },
["Transform3DOp.Scale.Y"] = Input { Value = 0.8, },
Center = Input { Value = { 0.464, 0.424 }, },
LayoutRotation = Input { Value = 1, },
TransformRotation = Input { Value = 1, },
StyledText = Input { Value = "10", },
Font = Input { Value = "Open Sans", },
Style = Input { Value = "Bold", },
Size = Input { Value = 0.08, },
VerticalTopCenterBottom = Input { Value = 1, },
VerticalJustification = Input { Value = 3, },
VerticalJustificationNew = Input { Value = 3, },
HorizontalJustificationNew = Input { Value = 3, },
Extrusion = Input { Value = 1, },
ExtrusionProfile = Input {
SourceOp = "Text3D1ProfileExtrusion",
Source = "Value",
},
ExtrusionDepth = Input { Value = 0.0535, }
},
ViewInfo = OperatorInfo { Pos = { 1028.9, 18.7443 } },
},
Text3D1ProfileExtrusion = LUTBezier {
KeyColorSplines = {
[0] = {
[0] = { 0, RH = { 0.0666666666666667, 0.333333333333333 }, Flags = { Linear = true } },
[0.2] = { 1, LH = { 0.133333333333333, 0.666666666666667 }, RH = { 0.4, 1 }, Flags = { Linear = true } },
[0.8] = { 1, LH = { 0.6, 1 }, RH = { 0.866666666666667, 0.666666666666667 }, Flags = { Linear = true } },
[1] = { 0, LH = { 0.933333333333333, 0.333333333333333 }, Flags = { Linear = true } }
}
},
SplineColor = { Red = 0, Green = 0, Blue = 0 },
CtrlWZoom = false,
},
PremierEssai = Transform3D {
NameSet = true,
EnabledRegion = TimeRegion { { Start = -5, End = 143.9999 } },
Inputs = {
SceneInput = Input {
SourceOp = "Merge3D1",
Source = "Output",
},
["Transform3DOp.Rotate.X"] = Input {
SourceOp = "PremierEssaiXRotation",
Source = "Value",
},
["Transform3DOp.Rotate.Y"] = Input { Value = 5, },
["Transform3DOp.PivotNest"] = Input { Value = -1, },
["Transform3DOp.Pivot.X"] = Input { Value = 0.05, },
["Transform3DOp.Scale.X"] = Input { Value = 2.205, }
},
ViewInfo = OperatorInfo { Pos = { 1189.8, -2.49442 } },
},
PremierEssaiXRotation = BezierSpline {
SplineColor = { Red = 255, Green = 128, Blue = 128 },
CtrlWZoom = false,
KeyFrames = {
[13] = { -480, RH = { 15.6666666666667, -315 } },
[21] = { 15, LH = { 18.3333333333333, -150 }, Flags = { Linear = true } }
}
},
Barre_Oblique_1 = Text3D {
NameSet = true,
Inputs = {
["Transform3DOp.Translate.Y"] = Input { Value = 0.69, },
["Transform3DOp.Translate.Z"] = Input { Value = 0.009, },
["Transform3DOp.Rotate.Z"] = Input { Value = -39, },
["Transform3DOp.PivotNest"] = Input { Value = 1, },
["Transform3DOp.Pivot.X"] = Input { Value = -0.04, },
["Transform3DOp.Pivot.Y"] = Input { Value = -0.75, },
["Transform3DOp.Scale.X"] = Input { Value = 0.355, },
["Transform3DOp.Scale.Y"] = Input { Value = 0.277, },
["Transform3DOp.Scale.Z"] = Input { Value = 2.205, },
["Transform3DOp.TargetNest"] = Input { Value = 0, },
Center = Input { Value = { 0.464, -0.424 }, },
LayoutRotation = Input { Value = 1, },
TransformRotation = Input { Value = 1, },
Opacity1 = Input { Value = 0.795, },
Red1 = Input { Value = 0.433, },
Green1 = Input { Value = 0, },
Blue1 = Input { Value = 0, },
SpecularRed = Input { Value = 0.551, },
SpecularGreen = Input { Value = 0, },
SpecularBlue = Input { Value = 0, },
SpecularExponent = Input { Value = 100, },
StyledText = Input { Value = "/\n", },
Font = Input { Value = "Open Sans", },
Style = Input { Value = "Bold", },
Size = Input { Value = 0.47, },
VerticalJustification = Input { Value = 3, },
VerticalJustificationNew = Input { Value = 3, },
HorizontalJustificationNew = Input { Value = 3, },
Extrusion = Input { Value = 1, },
ExtrusionProfile = Input {
SourceOp = "BarreobliqueProfileExtrusion",
Source = "Value",
},
ExtrusionDepth = Input { Value = 0.0126, }
},
ViewInfo = OperatorInfo { Pos = { 1028.61, 73.8031 } },
},
BarreobliqueProfileExtrusion = LUTBezier {
KeyColorSplines = {
[0] = {
[0] = { 0, RH = { 0.0666666666666667, 0.333333333333333 }, Flags = { Linear = true } },
[0.2] = { 1, LH = { 0.133333333333333, 0.666666666666667 }, RH = { 0.4, 1 }, Flags = { Linear = true } },
[0.8] = { 1, LH = { 0.6, 1 }, RH = { 0.866666666666667, 0.666666666666667 }, Flags = { Linear = true } },
[1] = { 0, LH = { 0.933333333333333, 0.333333333333333 }, Flags = { Linear = true } }
}
},
SplineColor = { Red = 0, Green = 0, Blue = 0 },
CtrlWZoom = false,
}
}
}