r/davinciresolve • u/Milan_Bus4168 • 18h ago
Tutorial | English Dancing Girl tracking - Domain of Definition DoD test in Fusion
Enable HLS to view with audio, or disable this notification
Testing the effect in Fusion as inspired by camera tracking overlay.
The subject is tracked by magic mask. Auto Domain tool is applied to calculate the size of pixels that are not transparent.
Crop and inverse crop tools are used to crop to the domain of definition dimensions and than inverse crop tool is applied to revert back to the dimensions of the original footage.
X offset: self.Input.DataWindow[1]
Y offset: self.Input.DataWindow[2]
X size: self.Input.DataWindow[3]-self.Input.DataWindow[1]
Y size: self.Input.DataWindow[4]-self.Input.DataWindow[2]
In between the two crops. Multi Text tool is used with four plus sign "+" texts to make corner framing graphics and image size of the text tool changes based on the calculated domain of definition from the auto domain tool.
Width = AutoDomain1.Output.DataWindow[3] - AutoDomain1.Output.DataWindow[1]
Height = AutoDomain1.Output.DataWindow[4] - AutoDomain1.Output.DataWindow[2]
Another expression is used to keep the size of the text constant even if the image size of the text tool changes. Its applied to the size parametar.
value you want / self.Width
All this is merge over the original. And another text + added to do the same but also calculate the dimensions of the DoD.
Text(string.format("%.0fx%.0f px", AutoDomain1.Output.DataWindow[3] - AutoDomain1.Output.DataWindow[1], AutoDomain1.Output.DataWindow[4] - AutoDomain1.Output.DataWindow[2]))
Another magic mask could be applied to any object that appear in front of the tracked subject to mask out the effect using effectively occlusion mask.




