三角函数与摇摆 您所在的位置:网站首页 车厘子是几月的应季水果 三角函数与摇摆

三角函数与摇摆

2023-09-27 19:08| 来源: 网络整理| 查看: 265

插件名称:Sapphire

效果名称:s_shake

效果所属: Sapphire Distort

效果应用:画面摇摆、抖动;动态模糊;视频分屏(极端应用)

官方Manual内的解释:

Applies a shaking motion to the source clip over time with translation, zooming, and/or rotation. The shaking is random but repeatable, so with the same parameters the same shaking motion is generated each time. Turn on Motion Blur and adjust the Mo Blur Length for different amounts of blur. Adjust the Amplitude and Frequency for different shaking speeds and amounts. The Rand parameters give detailed control of the random non-periodic shaking, and the Wave parameters adjust the regular periodic shaking. The X, Y, Z, and Tilt parameters control the horizontal, vertical, zoom, and rotation amounts of shaking respectively.

翻译过来就是:(机翻改了下 人比较懒)

s_shake效果是随着时间的推移,通过平移、缩放和/或旋转将抖动运动应用于源剪辑。抖动是随机但可重复的,因此使用相同的参数,每次都会生成相同的抖动运动。启用“运动模糊”(Motion Blur),并调整“模糊长度”(Mo Blur Length)以获得不同的模糊量。针对不同的振动速度和振动量调整振幅和频率。Rand参数对随机非周期性抖动进行了详细控制,Wave参数调整了规则周期性抖动。X、Y、Z和倾斜参数分别控制抖动的水平、垂直、缩放和旋转量。

某度翻译什么时候这么智能了

简单点说这就是这是一个用来做视频抖动的效果,而这个抖动是有规律的,可以拟合成一个周期性函数,我们可以通过改各种不同的数值来去有规律地控制抖动的各种参数来实现我们想要的效果

同时插件自带动态模糊和平面追踪 好耶

下面我将从参数列表来具体说明。

参数列表以及翻译

我们从上往下看

加载和储存预设暂且不提

Style 三种模式

    -Normal 标准

    -Twitchy 抽动

    -Jumpy 跃动

顾名思义,在标准模式下晃动最为缓和,抽动模式则可以模拟一些痉挛向的效果,速度曲线最为陡峭,跃动我个人没看出与标准模式太大的差别,但总体来说会抽地更干脆一点(literally!)

用图来大概表示其中的关系吧:

红线是Normal,蓝线是Jumpy,而紫线则为Twitchy

Edit Mocha 调整追踪蒙版

不解释,点击这个会跳转到Boris FX的Mocha软件,脱离Pr/Ae之外了,UI不好看不想研究(就是懒)

Mocha 追踪(蒙版)

Blur Mocha 追踪蒙版模糊

Mocha Opacity 追踪透明度

Invert Mocha 翻转追踪

Resize Mocha 重设追踪蒙版大小

Resize Rel X 追踪蒙版X轴相对位置

Resize Rel Y 追踪蒙版Y轴相对位置

Shift Mocha X X轴追踪蒙版偏移

Shift Mocha Y Y轴追踪蒙版偏移

Bypass Mocha [Y/N] 追踪旁路

Show Mocha Only [Y/N] 仅显示追踪蒙版

同样不解释,只想入门跳过这里

Combine Masks 蒙版结合

    -Union 均取

    -Intersect 取交集

    -Mocha Only 仅追踪

Amplitude 基准振幅

范围:[0,inf)

控制全局震动幅度,与X/Y/Z轴的振幅相乘

Frequency 基准频率

范围:[0,inf)

控制全局的震动频率,与X/Y/Z/Tilt轴的频率相乘

Phase 基准相位延迟

范围:(-inf,inf)

这个摇摆的效果,本质上是一个形如y=A sin (Bx+C) 的三角函数;

相位控制的是C,振幅控制的是A,频率控制的是B;

如果你没有学到高中数学,可以简单把C理解为一开始第一次震动的延迟时间。

也许你看到上面三个可能一时半会不能理解,其实很简单,无论你有没有学过三角函数,请看下图:

右边的红线就是我们的函数图像,在这里红线越高,我们晃动的速度也就越高,红线为负数的时候,我们视频内容晃动的方向就是相反的,就像一个钟摆一样做着简谐运动

还是不理解?没关系,我们把几个数值调一调看一下:

这是把A从1调到10的结果,可以很明显的看出来红线最高的地方从前一张图的1变成了10,而最低从-1变成了-10

这里的A,控制图像最高和最低地点的,也就是控制视频晃动的最大速度的A,就是前文讲的Amplitude,振幅

换句话说,在这里比起一开始的图像,图像每个地方的纵轴数值都乘上了一个10

然后是Frequency,频率:

和Amplitude很像,只是一个是纵向一个是横向

我们把B从1改成0.1,函数也就被拉宽了不少,本来图像里红线第二次在纵轴上碰到0的时间是3.14(π),但因为我们把速度从1改成了0.1(也就是频率!),所以现在的时间是31.4(10π)了

有初中基础的应该就能听懂了...吧?

最后一个例子,相位Phase:

和上面那个图片比较,你很容易就能看出哪里变了,如果没有的话...

这张图片给你:绿色的是原来的那张,红色的是现在这个新的图像

这下好懂了不?相位控制的是延时,也就是图像的左右平移

如果我们想要让视频等半拍再开始摇晃,那么我们就可以选择加入一个Phase的参数

通过以上三个最基础的参数,我们可以快速地大致得到我们想要的效果

Z Dist Z轴距离偏移

默认是1.00,越大则视频离屏幕越近,反之亦然

极端条件下可以用这个来做视频分屏效果(?)

咳咳,实测效果还不错就是了

Motion Blur 动态模糊

不需要解释,动态模糊就是动态模糊,模拟人眼的

什么效果的话...你把你的手放到眼前,然后疯狂扑哧,你看看你能不能看清你的手就知道了

打开这个就是那个感觉

Mo Blur Length 动态模糊长度

控制模糊量,输多了小心变成油画

Seed 随机种子

随机种子,在你的摇摆引入随机相关参数的时候,如果对自己现在默认的摇摆不满意,可以更改种子撞撞运气

同时,同一个种子在不同设备上看起来的效果也是一样

总是有可能能找到一个完美的预设的,对吧?

Wrap X X轴边缘扭曲

    -No 无

    -Tile 平铺

    -Reflect 反射

Wrap Y Y轴边缘扭曲

    -No 无

    -Tile 平铺

    -Reflect 反射

有的时候摇摆摇得狠了,可能我们的视频会出界,右边超界了左边就会出现黑框,贼难受

这两个功能可以帮我们掩盖一下黑边

选择No就是保留一切黑边啊啥的不管,运算量最少

平铺和反射比较类似,在多的黑边处放上视频本身的边角,只是一个是与视频方向相同,另一个是相反,顾名思义

X Shake X轴震动

X Rand Amp 随机X轴振幅范围

X Rand Freq 随机X轴频率范围

X Wave Amp X轴振幅波范围

X Wave Freq X轴频率波范围

X Phase X轴相位偏移

OK,进阶的来了:

振幅波的频率单位为毫秒,即设定值为多少毫秒,多少毫秒就会震动一次

若一个曲子bpm为120,即每60秒有120拍,一拍就是500毫秒

此时若想拍拍相对,则Freq需设定为0.500

*注意:这边设定的精度最高只能小数点后三位,即1毫秒整;碰到一些不整的情况最好分段来加效果,防止延迟堆积过大

例如bpm115,一拍是521.739ms,若想要2拍一对则需要设定为0.260(869565),延迟会堆的很快

这块不准备深入讲,自己有需求的话,上手试一下就知道了

Y Shake Y轴震动

Y Rand Amp 随机Y轴振幅范围

Y Rand Freq 随机Y轴频率范围

Y Wave Amp Y轴振幅波范围

Y Wave Freq Y轴频率波范围

Y Phase Y轴相位偏移

与X相同,略过

X是左右摇,Y是上下摇

Z Shake Z轴震动

Z Rand Amp 随机Z轴振幅范围

Z Rand Freq 随机Z轴频率范围

Z Wave Amp Z轴振幅波范围

Z Wave Freq Z轴频率波范围

Z Phase Z轴相位偏移

略过,Z就是前后摇(插件伪3D哦)

Tilt Shake 旋转/倾斜震动

Tilt Rand Amp 随机旋转振幅

Tilt Rand Freq 随机旋转频率

Tilt Wave Amp 旋转振幅波范围

Tilt Wave Freq 旋转频率波范围 

Tilt Phase 旋转相位偏移

略过,这就是旋转

锚点貌似是跟随视频本身的锚点的,默认是视频中间作为圆心

Channels 色彩通道

Red Amplitude 红通振幅

Green Amplitude 绿通振幅

Blue Amplitude 蓝通振幅

Red Phase 红通相位

Green Phase 绿通相位

Blue Phase 蓝通相位

RGB Randomness 色彩转变随机性

RGB Frequency 色彩转变频率

意外好用的一个小功能,效果基本等同于RGB Separation,就是色散效果

不过建议还是用别的插件做,这边这个运算有点慢,好处就是这里一样可以写出规律的效果,毕竟都是三角函数啦

Opacity 透明度

-All opaque 通透

-Normal 直通

-As premult 预乘

直通alpha图片保留最原本的RGB数值;而预乘alpha,是原本的RGB信息乘以alpha的数值以后得到的结果(预乘意思就是预先乘以alpha)

比较专业,建议自己上手去试试,这玩意属于用了就理解,不用光讲一没人想听二理解很难

Mask Use 使用遮罩

    -Luma 亮度通道

    -Alpha 透明度通道

高级用法,知道亮度和透明度遮罩的都不需要我教了

Blur Mask 模糊遮罩

同理

Invert Mask [Y/N] 遮罩反转

略过,没好说的

Crop Input 输入图像裁剪

    Crop Left 裁剪左侧

    Crop Right 裁剪右侧

    Crop Top 裁剪顶部

    Crop Bottom 裁剪底部

顾名思义,保留一块安全区不进行摇摆

可以利用这个做出一些比较阴间的特效,但是总体感觉还是不如在一开始就给一个裁剪了

所有的参数以及用法差不多也就到这里了,因为是专栏,所以一切理解靠玄学了

毕竟也不是什么付费课程~要不是因为全网没几个我才不会写这个专栏

s_shake是蓝宝石插件中很具有代表性的一个,看起来就一种用法,但其实玩好了花活很多

把这个搞明白了,其他的也就不会有什么难度了

最后,附上蓝宝石自己的用户Manual内对s_shake的介绍:

如果你把蓝宝石装到了默认位置,这个介绍应该能在这个地址找到

file:///C:/Program%20Files/GenArts/SapphireAE/docs/Shake.html

粘贴到你们的浏览器,能跳转就是没问题

S_Shake

Applies a shaking motion to the source clip over time with translation, zooming, and/or rotation. The shaking is random but repeatable, so with the same parameters the same shaking motion is generated each time. Turn on Motion Blur and adjust the Mo Blur Length for different amounts of blur. Adjust the Amplitude and Frequency for different shaking speeds and amounts. The Rand parameters give detailed control of the random non-periodic shaking, and the Wave parameters adjust the regular periodic shaking. The X, Y, Z, and Tilt parameters control the horizontal, vertical, zoom, and rotation amounts of shaking respectively.

In the Sapphire Distort effects submenu.

Inputs:

Source:  The current layer.   The clip to shake.

Mask:  Defaults to None.   Interpolate between the result and the Source input. White areas use the result of the effect. Black areas use the Source clip.

        

Parameters:

Load Preset:   Push-button.Brings up the Preset Browser to browse all available presets for this effect.

Save Preset:   Push-button.Brings up the Preset Save dialog to save a preset for this effect.

Style:   Popup menu,  Default: Normal.Controls the type of shaking.

Normal:  A steady camera shake.

Twitchy:  Periods of stillness interrupted by bursts of rapid shaking.

Jumpy:  Sudden jumps from one place to another, with slower drifting in between.

Mocha Project:   Default: 0,  Range: 0 or greater.Brings up the Mocha window for tracking footage and generating masks.

Blur Mocha:   Default: 0,  Range: 0 or greater.Blurs the Mocha Mask by this amount before using. This can be used to soften the edges or quantization artifacts of the mask, and smooth out the time displacements.

Mocha Opacity:   Default: 1,  Range: 0 to 1.Controls the strength of the Mocha mask. Lower values reduce the intensity of the effect.

Invert Mocha:   Check-box,  Default: off.If enabled, the black and white of the Mocha Mask are inverted before applying the effect.

Resize Mocha:   Default: 1,  Range: 0 to 2.Scales the Mocha Mask. 1.0 is the original size.

Resize Rel X:   Default: 1,  Range: 0 to 2.The relative horizontal size of the Mocha Mask.

Resize Rel Y:   Default: 1,  Range: 0 to 2.The relative vertical size of the Mocha Mask.

Shift Mocha:   X & Y,   Default: [0 0],  Range: any.Offsets the position of the Mocha Mask.

Bypass Mocha:   Check-box,  Default: off.Ignore the Mocha Mask and apply the effect to the entire source clip.

Show Mocha Only:   Check-box,  Default: off.Bypass the effect and show the Mocha Mask itself.

Combine Masks:   Popup menu,  Default: Union.Determines how to combine the Mocha Mask and Input Mask when both are supplied to the effect.

Union:  Uses the area covered by both masks together.

Intersect:  Uses the area that overlaps between the two masks.

Mocha Only:  Ignore the Input Mask and only use the Mocha Mask.

Amplitude:   Default: 1,  Range: 0 or greater.Scales the amplitude of the shaking motion.

Frequency:   Default: 8,  Range: 0 or greater.Increase for faster shaking, decrease for slower shaking. (Be careful if you animate frequency values because the resulting shake frequency is also affected by the rate of change of the value.)

Phase:   Default: 0,  Range: any.Time shift of the shaking motions. (If you animate this value, its rate of change will also affect the apparent frequency.)

Stillness:   Default: 0.7,  Range: 0 to 1.In Twitchy mode, adjusts the fraction of the time that the image is still. Increase for more frequent shaking.

Twitch Frequency:   Default: 2,  Range: 0 or greater.In Twitchy mode, controls the length of the periods of movement and stillness. Increase for shorter, more frequent bursts of movement.

Drift:   Default: 0.3,  Range: 0 to 1.In Jumpy mode, controls the speed of movement in between jumps.

Center Bias:   Default: 0,  Range: 0 or greater.In Jumpy mode, adjusts the likelihood that each jump will reset the image to its original position. If set to zero, every jump is random. If set to one, every jump will go back to the center.

Z Dist:   Default: 1,  Range: 0.001 or greater.Scales the 'distance' of the image. Values greater than 1.0 move it farther away and make it smaller. Values less than 1.0 move the image closer and enlarge it. Zooming in slightly can sometimes be used to hide edge artifacts.

Motion Blur:   Check-box,  Default: off.Options for motion blur of the shaking motion.

Mo Blur Length:   Default: 1,  Range: 0 or greater.Scales the amount of motion blur. Use around .5 when processing on fields or 1.0 for frames to give realistic motion blur. This parameter has no effect if Motion Blur is No.

Seed:   Default: 0,  Range: 0 or greater.Used to initialize the random number generator. The actual seed value is not significant, but different seeds give different results and the same value should give a repeatable result.

Wrap:   X & Y,  Popup menu,  Default: [Reflect Reflect].Determines the method for accessing outside the borders of the source image.

No:  gives black beyond the borders.

Tile:  repeats a copy of the image.

Reflect:  repeats a mirrored copy. Edges are often less visible with this method.

X Shake Parameters:

X Rand Amp:   Default: 0.2,  Range: 0 or greater.Amplitude of horizontal random shaking.

X Rand Freq:   Default: 1,  Range: 0 or greater.Frequency of horizontal random shaking.

X Wave Amp:   Default: 0,  Range: 0 or greater.Amplitude of horizontal regular wave shaking.

X Wave Freq:   Default: 0.5,  Range: 0 or greater.Frequency of horizontal regular wave shaking, in cycles per second.

X Phase:   Default: 0,  Range: any.Time shift of the horizontal shaking.

Y Shake Parameters:

Y Rand Amp:   Default: 0.1,  Range: 0 or greater.Amplitude of the vertical random shaking.

Y Rand Freq:   Default: 1,  Range: 0 or greater.Frequency of the vertical random shaking.

Y Wave Amp:   Default: 0,  Range: 0 or greater.Amplitude of the vertical regular wave shaking.

Y Wave Freq:   Default: 0.5,  Range: 0 or greater.Frequency of the vertical regular wave shaking, in cycles per second.

Y Phase:   Default: 0,  Range: any.Time shift of the vertical shaking.

Z Shake Parameters:

Z Rand Amp:   Default: 0,  Range: 0 or greater.Amplitude of the zoom random shaking.

Z Rand Freq:   Default: 1,  Range: 0 or greater.Frequency of the zoom random shaking.

Z Wave Amp:   Default: 0,  Range: 0 or greater.Amplitude of the zoom regular wave shaking.

Z Wave Freq:   Default: 0.5,  Range: 0 or greater.Frequency of the zoom regular wave shaking, in cycles per second.

Z Phase:   Default: 0,  Range: any.Time shift of the zoom shaking.

Tilt Shake Parameters:

Tilt Rand Amp:   Default: 0,  Range: 0 or greater.Amplitude of the rotational random shaking, in degrees.

Tilt Rand Freq:   Default: 1,  Range: 0 or greater.Frequency of the rotational random shaking.

Tilt Wave Amp:   Default: 0,  Range: 0 or greater.Amplitude of the rotational regular wave shaking, in degrees.

Tilt Wave Freq:   Default: 0.5,  Range: 0 or greater.Frequency of the rotational regular wave shaking, in cycles per second.

Tilt Phase:   Default: 0,  Range: any.Time shift of the rotational shaking.

Channels Parameters:

Red Amplitude:   Default: 1,  Range: 0 or greater.The relative amount of shaking in the red channel. Changing this value from the default will cause the red channel to move more or less than the other color channels, resulting in a color fringing or channel separation look.

Green Amplitude:   Default: 1,  Range: 0 or greater.The relative amount of shaking in the green channel.

Blue Amplitude:   Default: 1,  Range: 0 or greater.The relative amount of shaking in the blue channel.

Red Phase:   Default: 0,  Range: any.The relative phase of the red channel. Positive values will move the red channel ahead of the others in time, causing it to move first and the other channels to follow. Negative values have the opposite effect, causing the red channel to lag behind the others. Small values usually produce the best looks.

Green Phase:   Default: 0,  Range: any.The relative phase of the green channel.

Blue Phase:   Default: 0,  Range: any.The relative phase of the blue channel.

RGB Randomness:   Default: 0,  Range: 0 or greater.The amount of random motion in each color channel. Turn up this parameter to cause all three color channels to move randomly on different paths, independent of the overall shaking. This motion is scaled by X Rand Amp, Y Rand Amp, Z Rand Amp, and Tilt Rand Amp.

RGB Frequency:   Default: 2,  Range: 0 or greater.The frequency of the random color channel shaking.

Other Parameters:

Opacity:   Popup menu,  Default: Normal.Determines the method used for dealing with opacity/transparency.

All Opaque:  Use this option to render slightly faster when the input image is fully opaque with no transparency (alpha=1).

Normal:  Process opacity normally.

As Premult:  Process as if the image is already in premultiplied form (colors have been scaled by opacity). This option also renders slightly faster than Normal mode, but the results will also be in premultiplied form, which is sometimes less correct.

Mask Use:   Popup menu,  Default: Luma.Determines how the Mask input channels are used to make a monochrome mask.

Luma:  the luminance of the RGB channels is used.

Alpha:  only the Alpha channel is used.

Blur Mask:   Default: 0.05,  Range: 0 or greater.Blurs the Matte input by this amount before using. This can provide a smoother transition between the matted and unmatted areas. It has no effect unless the Matte input is provided.

Invert Mask:   Check-box,  Default: off.If on, inverts the Matte input so the effect is applied to areas where the Matte is black instead of white. This has no effect unless the Matte input is provided.

Crop Input Parameters:   Default: 0,  Range: 0 or greater.These 4 parameters, Crop Top, Crop Bottom, Crop Left, and Crop Right, allow selecting a rectangular subsection of the input image to be processed. If the Wrap parameters are set to "No" the exposed borders will be transparent. If the Wrap is "Tile" or "Reflect" the source image is wrapped on the new cropped borders to fill the frame. This can make it easier to avoid artifacts due to distorting an image with bad edges.

就是这样,总计12500+字,没了

三连随意了,不辛苦

有人感兴趣我做个视频版,就此变成教程账号



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有