vault backup: 2023-07-20 12:16:05
This commit is contained in:
parent
9cb84acf4c
commit
0326cedea0
@ -11,7 +11,7 @@ rating: ⭐
|
|||||||
![[MultiDraw_OutlineMaterial.png]]
|
![[MultiDraw_OutlineMaterial.png]]
|
||||||
|
|
||||||
|
|
||||||
## ControlCurve
|
# ControlCurve
|
||||||
<iframe src="https://www.desmos.com/calculator/z9o3k0luyb?embed" width="500" height="500" style="border: 1px solid #ccc" frameborder=0></iframe>
|
<iframe src="https://www.desmos.com/calculator/z9o3k0luyb?embed" width="500" height="500" style="border: 1px solid #ccc" frameborder=0></iframe>
|
||||||
UE单位为cm,理论上描边宽度控制范围为10cm~10000cm(1000m)。假设标准的角色身高为180cm(110~200cm变化比较轻微)并以此定义一个标准数StandardCharacterHeight,经过观察`10~ ControlWidthRangeMax`范围适合使用CurveTexture。而超过ControlWidthRangeMax = StandardCharacterHeight * 2的区域基本是一个线性区间,所以可以使用一个线性函数来控制。
|
UE单位为cm,理论上描边宽度控制范围为10cm~10000cm(1000m)。假设标准的角色身高为180cm(110~200cm变化比较轻微)并以此定义一个标准数StandardCharacterHeight,经过观察`10~ ControlWidthRangeMax`范围适合使用CurveTexture。而超过ControlWidthRangeMax = StandardCharacterHeight * 2的区域基本是一个线性区间,所以可以使用一个线性函数来控制。
|
||||||
|
|
||||||
@ -53,3 +53,19 @@ half remap(half origFrom, half origTo, half targetFrom, half targetTo, half valu
|
|||||||
return lerp(targetFrom, targetTo, rel);
|
return lerp(targetFrom, targetTo, rel);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## FOV
|
||||||
|
首先确定一下摄像机的FOV范围,CineCamera 默认Current Focal Length 为35,Current Horizontal FOV为37.497356,材质Fov显示为0.6544528(弧度制);编辑器Camera 默认 FOV:90 材质FOV显示1.5707976(弧度制)
|
||||||
|
- CineCamera
|
||||||
|
- Current Horizontal FOV范围 1.375033 ~ 143.130096
|
||||||
|
- 材质 FOV 范围 0.024~2.4
|
||||||
|
- Camera
|
||||||
|
- FOV范围 5~170
|
||||||
|
- 材质 FOV 范围 0.08~2.967
|
||||||
|
|
||||||
|
经过观察FOV<90需要使用曲线进行控制,大致和Depth曲线差不多,再调整一下就好。90 < FOV < 170 时OutlineWidth大致呈线性,所以大致计算出斜率k=3:
|
||||||
|
|
||||||
|
| | | | |
|
||||||
|
| ------------ | --- | --- | --- |
|
||||||
|
| FOV | 90 | 130 | 170 |
|
||||||
|
| OutlineWidth | 1 | 3 | 8 |
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 252 KiB After Width: | Height: | Size: 481 KiB |
Loading…
x
Reference in New Issue
Block a user