Jump to content


Photo

Volumetric Lighting - Display 'cone' Of Light In 6.3?


  • Please log in to reply
17 replies to this topic

#1 fusionWannabe

fusionWannabe

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 525 posts

Posted 05 December 2011 - 05:17 PM

Is it possible to have a spotlight display a 'cone' of light like it would at a rock concert, using the new features in 6.3?

Thanks!

#2 Tilt

Tilt

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 2,137 posts

Posted 05 December 2011 - 05:20 PM

yeah :-)

#3 SecondMan

SecondMan

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 1,797 posts

Posted 05 December 2011 - 08:29 PM

Try this:


{
Tools = ordered() {
  Fusion = Text3D {
   NameSet = true,
   Inputs = {
    ["Transform3DOp.Translate.Y"] = Input { Value = 0.4692737, },
    Size = Input { Value = 0.8115183, },
    Font = Input { Value = "Arial", },
    StyledText = Input { Value = "FUSION", },
    Style = Input { Value = "Regular", },
    Extrusion = Input { Value = 1, },
    ExtrusionDepth = Input { Value = 0.16, },
    ExtrusionSubdivisions = Input { Value = 2, },
    BevelDepth = Input { Value = 0.02, },
    BevelWidth = Input { Value = 0.01, },
    ManualFontKerningPlacement = Input {
	 Value = StyledText {
	  Array = {
	  },
	  Value = "",
	 },
    },
    ShadingGradient1 = Input {
	 Value = Gradient {
	  Colors = {
	   [0] = { 0, 0, 0, 1, },
	   [1] = { 1, 1, 1, 1, },
	  },
	 },
    },
   },
   ViewInfo = OperatorInfo { Pos = { 440, 346.5, }, },
  },
  F6_3 = Text3D {
   NameSet = true,
   Inputs = {
    ["Transform3DOp.Translate.Y"] = Input { Value = -0.14066882776797, },
    ["Transform3DOp.Translate.Z"] = Input { Value = 1.0055866, },
    ["Transform3DOp.Scale.X"] = Input { Value = 1.3819392, },
    Size = Input { Value = 0.9947644, },
    Font = Input { Value = "Arial", },
    StyledText = Input {
	 SourceOp = "CharacterLevelStyling2_1_1_3_1",
	 Source = "StyledText",
    },
    Style = Input { Value = "Regular", },
    Extrusion = Input { Value = 1, },
    ExtrusionDepth = Input { Value = 0.08, },
    BevelDepth = Input { Value = 0.02, },
    BevelWidth = Input { Value = 0.01, },
    ManualFontKerningPlacement = Input {
	 Value = StyledText {
	  Array = {
	  },
	  Value = "",
	 },
    },
    VerticalJustification = Input { Value = 3, },
    Red1 = Input { Value = 1.5, },
    Green1 = Input { Value = 1.27499999999978, },
    Blue1 = Input { Value = 0.375, },
    ShadingGradient1 = Input {
	 Value = Gradient {
	  Colors = {
	   [0] = { 0, 0, 0, 1, },
	   [1] = { 1, 1, 1, 1, },
	  },
	 },
    },
    ShadingMappingLevel1 = Input { Value = 4, },
   },
   ViewInfo = OperatorInfo { Pos = { 440, 379.5, }, },
  },
  CharacterLevelStyling2_1_1_3_1 = StyledTextCLS {
   CtrlWZoom = false,
   Inputs = {
    Size = Input { Value = 0.5235602, },
    Font = Input { Value = "Fujiyama2", },
    Style = Input { Value = "Regular", },
    Text = Input {
	 Value = StyledText {
	  Array = {
	  },
	  Value = "6.3\r\n",
	 },
    },
    RightClickHereToAnimateCharacterLevelStyling = Input {
	 Value = StyledText {
	  Array = {
	   {
	    Parameter = 102,
	    Index = 0,
	    First = 2,
	    Last = 2,
	    Value = 0.539267,
	    String = "",
	   },
	   {
	    Parameter = 102,
	    Index = 0,
	    First = 1,
	    Last = 1,
	    Value = 0.5235602,
	    String = "",
	   },
	  },
	  Value = "",
	 },
    },
    PriorityBack = Input { Value = 8, },
    Thickness = Input { Value = 0.02, },
    JoinStyle = Input { Value = 1, },
    Level = Input { Value = 3, },
    BevelDepth = Input { Value = 0, },
    BevelWidth = Input { Value = 0, },
   },
  },
  DirectionalLight2 = LightDirectional {
   Inputs = {
    ["Transform3DOp.Rotate.Y"] = Input { Value = 136.7597765, },
    Intensity = Input { Value = 0.5, },
   },
   ViewInfo = OperatorInfo { Pos = { 495, 280.5, }, },
  },
  Transform3D1 = Transform3D {
   Inputs = {
    SceneInput = Input {
	 SourceOp = "F6_3",
	 Source = "Output",
    },
    ["Transform3DOp.Translate.Y"] = Input { Value = -0.2905027, },
    ["Transform3DOp.Translate.Z"] = Input { Value = -0.8938547, },
    ["Transform3DOp.Scale.X"] = Input { Value = 1.2162265, },
   },
   ViewInfo = OperatorInfo { Pos = { 550, 379.5, }, },
  },
  Merge3D2 = Merge3D {
   Inputs = {
    SceneInput1 = Input {
	 SourceOp = "Transform3D1",
	 Source = "Output",
    },
    SceneInput2 = Input {
	 SourceOp = "Fusion",
	 Source = "Output",
    },
   },
   ViewInfo = OperatorInfo { Pos = { 550, 346.5, }, },
  },
  DirectionalLight1 = LightDirectional {
   Inputs = {
    ["Transform3DOp.Rotate.X"] = Input { Value = 44.2458101, },
    ["Transform3DOp.Rotate.Y"] = Input { Value = -36.2011173, },
   },
   ViewInfo = OperatorInfo { Pos = { 495, 247.5, }, },
  },
  Merge3D1 = Merge3D {
   Inputs = {
    ["Transform3DOp.UseTarget"] = Input { Value = 1, },
    SceneInput1 = Input {
	 SourceOp = "Merge3D2",
	 Source = "Output",
    },
    SceneInput2 = Input {
	 SourceOp = "DirectionalLight1",
	 Source = "Output",
    },
    SceneInput3 = Input {
	 SourceOp = "Camera3D1",
	 Source = "Output",
    },
    SceneInput8 = Input {
	 SourceOp = "SpotLight1",
	 Source = "Output",
    },
    SceneInput7 = Input {
	 SourceOp = "DirectionalLight2",
	 Source = "Output",
    },
    SceneInput4 = Input {
	 SourceOp = "WWP_Sphere",
	 Source = "Output",
    },
   },
   ViewInfo = OperatorInfo { Pos = { 605, 247.5, }, },
  },
  Camera3D1 = Camera3D {
   Inputs = {
    ["Transform3DOp.Translate.X"] = Input { Value = -0.0223464, },
    ["Transform3DOp.Translate.Y"] = Input { Value = 0.6480447, },
    ["Transform3DOp.Translate.Z"] = Input { Value = 3.2402234, },
    ["Transform3DOp.UseTarget"] = Input { Value = 1, },
    ["Transform3DOp.Target.Y"] = Input { Value = 0.0670391, },
    AoV = Input { Value = 34.3265863, },
    FLength = Input { Value = 24.4254647348365, },
    ["Stereo.Method"] = Input { Value = FuID { "Parallel", }, },
    ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 1, },
    ["MtlStdInputs.MaterialID"] = Input { Value = 1, },
   },
   ViewInfo = OperatorInfo { Pos = { 495, 181.5, }, },
  },
  WWP_Sphere = Shape3D {
   NameSet = true,
   Inputs = {
    ["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 2, },
    Shape = Input { Value = FuID { "SurfaceSphereInputs", }, },
    ["MtlStdInputs.Diffuse.Color.Red"] = Input { Value = 0, },
    ["MtlStdInputs.Diffuse.Color.Green"] = Input { Value = 0, },
    ["MtlStdInputs.Diffuse.Color.Blue"] = Input { Value = 0, },
    ["MtlStdInputs.Specular.Nest"] = Input { Value = 1, },
    ["MtlStdInputs.Specular.Color.Red"] = Input { Value = 0, },
    ["MtlStdInputs.Specular.Color.Green"] = Input { Value = 0, },
    ["MtlStdInputs.Specular.Color.Blue"] = Input { Value = 0, },
    ["MtlStdInputs.MaterialID"] = Input { Value = 2, },
    ["SurfaceSphereInputs.Radius"] = Input { Value = 3.6125654, },
    ["SurfaceSphereInputs.SubdivisionLevelBase"] = Input { Value = 70, },
    ["SurfaceSphereInputs.SubdivisionLevelHeight"] = Input { Value = 30, },
    ["SurfaceSphereInputs.ObjectID.ObjectID"] = Input { Value = 3, },
   },
   ViewInfo = OperatorInfo { Pos = { 715, 313.5, }, },
  },
  Renderer3D1 = Renderer3D {
   Inputs = {
    ["RendererSoftware.ShadowsEnabled"] = Input { Value = 1, },
    ["RendererSoftware.LightingEnabled"] = Input { Value = 1, },
    ["RendererSoftware.Channels.WorldCoord"] = Input { Value = 1, },
    GlobalOut = Input { Value = 100, },
    Width = Input { Value = 1280, },
    Height = Input { Value = 720, },
    Depth = Input { Value = 3, },
    RendererType = Input { Value = FuID { "RendererOpenGL", }, },
    SceneInput = Input {
	 SourceOp = "Merge3D1",
	 Source = "Output",
    },
    ["RendererOpenGL.Channels.Nest"] = Input { Value = 1, },
    ["RendererOpenGL.Channels.RGBA"] = Input { Disabled = true, },
    ["RendererOpenGL.Channels.WorldCoord"] = Input { Value = 1, },
    ["RendererOpenGL.Supersampling"] = Input { Value = 1, },
    ["RendererOpenGL.EnableSupersampling"] = Input { Value = 1, },
    ["RendererOpenGL.SSRateX"] = Input { Value = 4, },
    ["RendererOpenGL.Lighting"] = Input { Value = 1, },
    ["RendererOpenGL.LightingEnabled"] = Input { Value = 1, },
    ["RendererOpenGL.ShadowsEnabled"] = Input { Value = 1, },
   },
   ViewInfo = OperatorInfo { Pos = { 770, 247.5, }, },
  },
  Merge3D3 = Merge3D {
   Inputs = {
    ["Transform3DOp.UseTarget"] = Input { Value = 1, },
    SceneInput2 = Input {
	 SourceOp = "SpotLight1",
	 Source = "Output",
    },
    SceneInput3 = Input {
	 SourceOp = "Camera3D1",
	 Source = "Output",
    },
   },
   ViewInfo = OperatorInfo { Pos = { 605, 49.5, }, },
  },
  SpotLight1 = LightSpot {
   CtrlWZoom = false,
   Inputs = {
    ["Transform3DOp.Translate.X"] = Input { Value = -1.17972548205193, },
    ["Transform3DOp.Translate.Y"] = Input { Value = -0.030677083085549, },
    ["Transform3DOp.Translate.Z"] = Input { Value = 2.20972450426219, },
    ["Transform3DOp.Rotate.Y"] = Input { Value = -24.1340782, },
    Intensity = Input { Value = 2, },
    DecayType = Input { Value = 1, },
    ConeAngle = Input { Value = 38.6387435, },
    PenumbraAngle = Input { Value = 9.947644, },
    Dropoff = Input { Value = 40, },
   },
   ViewInfo = OperatorInfo { Pos = { 825, 82.5, }, },
  },
  pRender1 = pRender {
   Inputs = {
    ["_MotionBlurWarning"] = Input { Disabled = true, },
    GlobalOut = Input { Value = 100, },
    Width = Input { Value = 256, },
    Height = Input { Value = 256, },
    OutputMode = Input {
	 Value = FuID { "TwoD", },
	 Disabled = true,
    },
    IntegrationMethod = Input { Value = FuID { "RK4", }, },
    ["MaterialID.MaterialID"] = Input { Value = 3, },
    ["ObjectID.ObjectID"] = Input { Value = 2, },
    Input = Input {
	 SourceOp = "pEmitter1",
	 Source = "Output",
    },
   },
   ViewInfo = OperatorInfo { Pos = { 550, 16.5, }, },
  },
  pEmitter1 = pEmitter {
   ID = 411,
   Inputs = {
    Number = Input { Value = 200, },
    Lifespan = Input { Value = 1, },
    Region = Input { Value = FuID { "RectRgn", }, },
    ["ParticleStyle.ColorOverLife"] = Input {
	 Value = Gradient {
	  Colors = {
	   [0] = { 1, 1, 1, 1, },
	  },
	 },
    },
    ["ParticleStyle.SizeOverLife"] = Input {
	 SourceOp = "pEmitter1SizeoverLife",
	 Source = "Value",
    },
    ["ParticleStyle.BlurOverLife"] = Input {
	 SourceOp = "pEmitter1BluroverLife2D",
	 Source = "Value",
    },
    ["RectRgn.Width"] = Input { Value = 1, },
    ["RectRgn.Height"] = Input { Value = 1, },
   },
   ViewInfo = OperatorInfo { Pos = { 440, 16.5, }, },
  },
  pEmitter1SizeoverLife = LUTBezier {
   KeyColorSplines = {
    [0] = {
	 [0] = { 0.5, RH = { 0.333333333333333, 0.5, }, Flags = { Linear = true, }, },
	 [1] = { 0.5, LH = { 0.666666666666667, 0.5, }, Flags = { Linear = true, }, },
    },
   },
   SplineColor = { Red = 0, Green = 0, Blue = 0, },
  },
  pEmitter1BluroverLife2D = LUTBezier {
   KeyColorSplines = {
    [0] = {
	 [0] = { 0.5, RH = { 0.333333333333333, 0.5, }, Flags = { Linear = true, }, },
	 [1] = { 0.5, LH = { 0.666666666666667, 0.5, }, Flags = { Linear = true, }, },
    },
   },
   SplineColor = { Red = 0, Green = 0, Blue = 0, },
  },
  VolumeFog2 = VolumeFog {
   CtrlWZoom = false,
   Inputs = {
    Rotation = Input { Value = 1, },
    ["Rotate.Y"] = Input { Value = 2.0111732, },
    Size = Input { Value = 2, },
    Samples = Input { Value = 256, },
    ZSlices = Input { Value = 64, },
    DoLighting = Input { Value = 1, },
    Density = Input { Value = 0.9368421, },
    Scattering = Input { Value = 3.9790576, },
    Transmission = Input { Value = 0.6961326, },
    TransmissionRed = Input { Value = 0.554545454545455, },
    TransmissionGreen = Input { Value = 0.818181818181818, },
    Reflection = Input { Value = 9.5027624, },
    ReflectionBlue = Input { Value = 0.872727272727273, },
    EmissionRed = Input { Value = 0.0727272727272727, },
    EmissionGreen = Input { Value = 0.263636363636364, },
    Image = Input {
	 SourceOp = "Renderer3D1",
	 Source = "Output",
    },
    FogImage = Input {
	 SourceOp = "Merge1",
	 Source = "Output",
    },
    SceneInput = Input {
	 SourceOp = "Merge3D3",
	 Source = "Output",
    },
   },
   ViewInfo = OperatorInfo { Pos = { 880, 16.5, }, },
  },
  Background1 = Background {
   Inputs = {
    GlobalOut = Input { Value = 100, },
    Width = Input { Value = 256, },
    Height = Input { Value = 256, },
    TopLeftRed = Input { Value = 0.25, },
    TopLeftGreen = Input { Value = 0.25, },
    TopLeftBlue = Input { Value = 0.25, },
    TopLeftAlpha = Input { Value = 0.25, },
    Gradient = Input {
	 Value = Gradient {
	  Colors = {
	   [0] = { 0, 0, 0, 1, },
	   [1] = { 1, 1, 1, 1, },
	  },
	 },
    },
   },
   ViewInfo = OperatorInfo { Pos = { 440, -16.5, }, },
  },
  Merge1 = Merge {
   Inputs = {
    PerformDepthMerge = Input { Value = 0, },
    Background = Input {
	 SourceOp = "Background1",
	 Source = "Output",
    },
    Foreground = Input {
	 SourceOp = "pRender1",
	 Source = "Output",
    },
   },
   ViewInfo = OperatorInfo { Pos = { 550, -16.5, }, },
  },
  Note1 = Note {
   Inputs = {
    Comments = Input { Value = "View the Volume Fog - Left\r\n\r\nView SpotLight -  Right\r\n", },
   },
   ViewInfo = StickyNoteInfo {
    Pos = { 935, 49.5, },
    Flags = {
	 Expanded = true,
    },
    Size = { 191.772, 76.7693, },
   },
  },
},
}

It's an example Steve Roberts made a while ago, I had that exact same question - this should help you on your way!

#4 rubberduck

rubberduck

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 157 posts

Posted 06 December 2011 - 03:35 AM

If it's just a cone of light, with only a "normal" falloff in the beam of light, can this not be done much quicker by using sprites, instead of the volumefog, just like in the Nuke counterpart? (I'm typing this without being able to look at the example above :-)).

#5 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 06 December 2011 - 09:31 AM

Applying the DirectionalBlur (Zoom mode) with the Length=1 to a superbright spot helps in most cases:

http://vfxpedia.com/.../LightBeam.comp

#6 fusionWannabe

fusionWannabe

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 525 posts

Posted 06 December 2011 - 03:05 PM

Thanks SecondMan and Gringo!!!

rubberduck - always interested in seeing an alternative way of doing things. Do you have a sample comp?

Thanks!

#7 rubberduck

rubberduck

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 157 posts

Posted 07 December 2011 - 08:26 AM

Well, I just realise it's even easier and faster if you just use a duplicate3D and a sphere with a falloff shader. Again, that's only working if you want a straight forward cone (or other shape), and possible limited in more ways, of which I forget right now with my head full of snot (damm cold!)

Attached Files



#8 fusionWannabe

fusionWannabe

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 525 posts

Posted 29 December 2012 - 10:03 PM

With Fusion 6.4, have there been any changes that would make easier to create a volumetric spotlight - or to create one that is better?

The goal would be the sharply defined volumetric spots like on the X-Factor which seem to be used less for illumination than for creating an cool looking environment.

Posted Image

#9 bfloch

bfloch

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 960 posts

Posted 30 December 2012 - 11:22 AM

You can use a 3DChannelBol's X,Y,Z "MODEL Coordinate Space" to get gradients along the spot which can be used to modify the cone based on Y e.g. to only make it sharp at the top etc. This also gives you the inner to outer gradient in Z.

#10 jolly_rodger

jolly_rodger

    Advanced Pig

  • Adv Members
  • PipPipPip
  • 32 posts

Posted 30 December 2012 - 02:06 PM

is it possible to use for Fusion *. ies files?

#11 Dunn

Dunn

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 303 posts

Posted 10 January 2013 - 09:11 PM

Hey fusionWannabe,

just wanna to share with you something i discovered while playing around with fusion...
Some kinda Fake 3D volLight effect or whatuwannacall It! ^_^
You will need the Material brightness contrast 3D from: http://research.anat...ss-contrast-3d/
See
Posted Image
Attached File  Fake3D_volLight.comp   39KB   103 downloads

enjoy!

°Dunn

#12 xmare

xmare

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 723 posts

Posted 11 January 2013 - 04:37 AM

THAT looks SWEEET !
thx Dunn!

#13 ChadCapeland

ChadCapeland

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 1,975 posts

Posted 11 January 2013 - 10:41 AM

Well that was unexpected.

I'm going to need to poke around that some more.

#14 Dunn

Dunn

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 303 posts

Posted 11 January 2013 - 11:14 AM

Yup, it blew me too! :mf_Dr_Evil:

Thx, xmare!

#15 fusionWannabe

fusionWannabe

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 525 posts

Posted 11 January 2013 - 11:42 AM

Damn - I again feel humbled. Those pills in 'Limitless' were real, weren't they?

Great Job, very creative!!!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users