Use the correct camera property.
Looks like FieldOfViewX/FieldOfViewY are only well-defined when aperture mode is eHorizAndVert. Use FieldOfView instead. Fixes #209.
This commit is contained in:
parent
31e3665862
commit
24092a80bb
|
@ -536,12 +536,12 @@ static void ReadCamera(RawModel& raw, FbxScene* pScene, FbxNode* pNode) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case FbxCamera::EApertureMode::eHorizontal: {
|
case FbxCamera::EApertureMode::eHorizontal: {
|
||||||
fovx = pCamera->FieldOfViewX;
|
fovx = pCamera->FieldOfView;
|
||||||
fovy = HFOV2VFOV(fovx, apertureRatio);
|
fovy = HFOV2VFOV(fovx, apertureRatio);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case FbxCamera::EApertureMode::eVertical: {
|
case FbxCamera::EApertureMode::eVertical: {
|
||||||
fovy = pCamera->FieldOfViewY;
|
fovy = pCamera->FieldOfView;
|
||||||
fovx = VFOV2HFOV(fovy, 1.0 / apertureRatio);
|
fovx = VFOV2HFOV(fovy, 1.0 / apertureRatio);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue