如重现步骤
重现步骤
使用的是Composure,主要涉及的是LiveLinkCameracontroller这个类,这个功能我在4.27的时候用过,4.27是正常的,可以从镜头文件中获取Zoom数据。附件中,我把两个版本的ApplyFIZ函数贴进去了,可以看到5.5.4版本的逻辑:如果使用镜头文件,那么从镜头文件中计算FocusDistance数据和Aperture数据,没有计算Focal(zoom)数据。4.27版本中的函数,有计算Focal
对比代码
Hi,
你好,请问有没有打开bIsFocalLengthSupported的设置?我看5.5.4的代码里,应该在这个函数的最下方有相关的处理逻辑。
// Handle Focal Length if (StaticData->bIsFocalLengthSupported && UpdateFlags.bApplyFocalLength) { if (bUseCameraRange) { const float NewZoom = FMath::Lerp(CineCameraComponent->LensSettings.MinFocalLength, CineCameraComponent->LensSettings.MaxFocalLength, FrameData->FocalLength); CineCameraComponent->SetCurrentFocalLength(NewZoom); } else if (FrameData->FocalLength > 1.0f) { CineCameraComponent->SetCurrentFocalLength(FrameData->FocalLength); } }
我们又找了下,发现需要新增一个LensComponent的组件。官方文档应该没有及时更新吧
好的,问题解决就好,有问题我们在继续沟通。