vault backup: 2023-07-20 12:16:05

This commit is contained in:
BlueRose 2023-07-20 12:16:05 +08:00
parent 9cb84acf4c
commit 0326cedea0
2 changed files with 18 additions and 2 deletions

View File

@ -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~10000cm1000m。假设标准的角色身高为180cm110~200cm变化比较轻微并以此定义一个标准数StandardCharacterHeight经过观察`10~ ControlWidthRangeMax`范围适合使用CurveTexture。而超过ControlWidthRangeMax = StandardCharacterHeight * 2的区域基本是一个线性区间所以可以使用一个线性函数来控制。 UE单位为cm理论上描边宽度控制范围为10cm~10000cm1000m。假设标准的角色身高为180cm110~200cm变化比较轻微并以此定义一个标准数StandardCharacterHeight经过观察`10~ ControlWidthRangeMax`范围适合使用CurveTexture。而超过ControlWidthRangeMax = StandardCharacterHeight * 2的区域基本是一个线性区间所以可以使用一个线性函数来控制。
@ -52,4 +52,20 @@ half remap(half origFrom, half origTo, half targetFrom, half targetTo, half valu
half rel = invLerp(origFrom, origTo, value); half rel = invLerp(origFrom, origTo, value);
return lerp(targetFrom, targetTo, rel); return lerp(targetFrom, targetTo, rel);
} }
``` ```
## FOV
首先确定一下摄像机的FOV范围CineCamera 默认Current Focal Length 为35Current Horizontal FOV为37.497356材质Fov显示为0.6544528弧度制编辑器Camera 默认 FOV90 材质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