coordinate space node

Moderator: SecondMan

User avatar
rickvdvulkaan
Posts: 36
Joined: Thu Oct 09, 2014 10:55 am

coordinate space node

#1

Post by rickvdvulkaan » Sun Nov 09, 2014 1:59 pm

Hello, first post for me here.

Im learning fusion because of the node-based workflow and i really think it has alot of advantages for both VFX and motion graphics.(i currently use After Effects for my projects). also, so far fusion seems way easier for me to learn than NUKE.

to get familiar with all the tools and the workflow, i watched alot of video's on the eyeon website. Now i'm trying to recreate a tutorial i found on videocopilot.( http://www.videocopilot.net/tutorial/shockwaves/ ) i´ve got the following situation:

i have a simple animation with some fastnoise and a rectangular mask hovering from top to bottom:
Screenshot (12).jpg
to turn this into a circular effect, i tried the coordinate space tool, but the result was a little bit different than in the tutorial:
Screenshot (11).jpg
any ideas how i can achieve the exact same effect as this?:
Screenshot (13).jpg
i will run into these kind of little problems alot more for sure, but i think its worth it :)

any help would be greatly appriciated!!
You do not have the required permissions to view the files attached to this post.

User avatar
SecondMan
Site Admin
Posts: 3582
Joined: Thu Jul 31, 2014 5:31 pm
Answers: 5
Location: Vancouver, Canada
Been thanked: 104 times
Contact:

Re: coordinate space node

#2

Post by SecondMan » Sun Nov 09, 2014 3:56 pm

Hi rickvdvulkaan,


Welcome to the forum, and to Fusion! :)

For the effect you're looking for you have to set the CoordinateSpace to "Polar to Rectangular" and take into account image ratio if you want your result to be circular.

Here's a quick setup for you:

Code: Select all

{
	Tools = ordered() {
		Rectangle1 = RectangleMask {
			Inputs = {
				MaskWidth = Input { Value = 1280, },
				MaskHeight = Input { Value = 720, },
				PixelAspect = Input { Value = { 1, 1, }, },
				ClippingMode = Input { Value = FuID { "None", }, },
				Center = Input { Value = { 0.5, 0.361093350383632, }, },
				Width = Input { Value = 1.11206896551724, },
				Height = Input { Value = 0.157371384761252, },
			},
			ViewInfo = OperatorInfo { Pos = { 275, 82.5, }, },
		},
		Background1 = Background {
			Inputs = {
				Width = Input { Value = 1280, },
				Height = Input { Value = 1280, },
				["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2", }, },
				TopLeftRed = Input { Value = 1, },
				Gradient = Input {
					Value = Gradient {
						Colors = {
							[0] = { 0, 0, 0, 1, },
							[1] = { 1, 1, 1, 1, },
						},
					},
				},
				EffectMask = Input {
					SourceOp = "Rectangle1",
					Source = "Mask",
				},
			},
			ViewInfo = OperatorInfo { Pos = { 275, 115.5, }, },
		},
		CoordinateSpace1 = CoordSpace {
			CtrlWZoom = false,
			Inputs = {
				Shape = Input { Value = 1, },
				Input = Input {
					SourceOp = "Background1",
					Source = "Output",
				},
			},
			ViewInfo = OperatorInfo { Pos = { 385, 115.5, }, },
		},
		Merge1 = Merge {
			Inputs = {
				Background = Input {
					SourceOp = "Background2",
					Source = "Output",
				},
				Foreground = Input {
					SourceOp = "CoordinateSpace1",
					Source = "Output",
				},
				PerformDepthMerge = Input { Value = 0, },
			},
			ViewInfo = OperatorInfo { Pos = { 385, 148.5, }, },
		},
		Background2 = Background {
			Inputs = {
				Width = Input { Value = 1280, },
				Height = Input { Value = 720, },
				["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2", }, },
				Gradient = Input {
					Value = Gradient {
						Colors = {
							[0] = { 0, 0, 0, 1, },
							[1] = { 1, 1, 1, 1, },
						},
					},
				},
			},
			ViewInfo = OperatorInfo { Pos = { 275, 148.5, }, },
		},
	},
}

User avatar
tekgecko
Posts: 21
Joined: Sat May 11, 2019 11:56 am

Re: coordinate space node

#3

Post by tekgecko » Mon May 27, 2019 11:13 pm

SecondMan wrote:
Sun Nov 09, 2014 3:56 pm

Hi rickvdvulkaan,

Welcome to the forum, and to Fusion! :)

For the effect you're looking for you have to set the CoordinateSpace to "Polar to Rectangular" and take into account image ratio if you want your result to be circular.

Here's a quick setup for you:

Code: Select all

{
	Tools = ordered() {
		Rectangle1 = RectangleMask {
			Inputs = {
				MaskWidth = Input { Value = 1280, },
				MaskHeight = Input { Value = 720, },
				PixelAspect = Input { Value = { 1, 1, }, },
				ClippingMode = Input { Value = FuID { "None", }, },
				Center = Input { Value = { 0.5, 0.361093350383632, }, },
				Width = Input { Value = 1.11206896551724, },
				Height = Input { Value = 0.157371384761252, },
			},
			ViewInfo = OperatorInfo { Pos = { 275, 82.5, }, },
		},
		Background1 = Background {
			Inputs = {
				Width = Input { Value = 1280, },
				Height = Input { Value = 1280, },
				["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2", }, },
				TopLeftRed = Input { Value = 1, },
				Gradient = Input {
					Value = Gradient {
						Colors = {
							[0] = { 0, 0, 0, 1, },
							[1] = { 1, 1, 1, 1, },
						},
					},
				},
				EffectMask = Input {
					SourceOp = "Rectangle1",
					Source = "Mask",
				},
			},
			ViewInfo = OperatorInfo { Pos = { 275, 115.5, }, },
		},
		CoordinateSpace1 = CoordSpace {
			CtrlWZoom = false,
			Inputs = {
				Shape = Input { Value = 1, },
				Input = Input {
					SourceOp = "Background1",
					Source = "Output",
				},
			},
			ViewInfo = OperatorInfo { Pos = { 385, 115.5, }, },
		},
		Merge1 = Merge {
			Inputs = {
				Background = Input {
					SourceOp = "Background2",
					Source = "Output",
				},
				Foreground = Input {
					SourceOp = "CoordinateSpace1",
					Source = "Output",
				},
				PerformDepthMerge = Input { Value = 0, },
			},
			ViewInfo = OperatorInfo { Pos = { 385, 148.5, }, },
		},
		Background2 = Background {
			Inputs = {
				Width = Input { Value = 1280, },
				Height = Input { Value = 720, },
				["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2", }, },
				Gradient = Input {
					Value = Gradient {
						Colors = {
							[0] = { 0, 0, 0, 1, },
							[1] = { 1, 1, 1, 1, },
						},
					},
				},
			},
			ViewInfo = OperatorInfo { Pos = { 275, 148.5, }, },
		},
	},
}

Hey Secondman,

I am trying to get the same polar warp effect but not too sure to do with the code you have supplied, can you point me in the right direction?


User avatar
SirEdric
Fusionator
Posts: 1960
Joined: Tue Aug 05, 2014 10:04 am
Answers: 4
Real name: Eric Westphal
Been thanked: 136 times
Contact:

Re: coordinate space node

#4

Post by SirEdric » Tue May 28, 2019 5:09 am

Hi Tekgecko.

Just click on 'Select All',
hit Ctrl-C
and in Fusion hit Ctrl-V....:-)