-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing vcam's FOV during a transition, there is a glitch #10
Comments
The interpolation of FOV is always wrong! Try to blend between two Vcams with different FOV; the values start to grow normally but do not reach the final weight and then abruptly change to the final result. |
I think the error is inside here
|
https://user-images.githubusercontent.com/52554257/149371027-cdb79d42-e3eb-42f5-83dd-1df50d645784.mp4 |
I really appreciate the fact that is an open package. I temporarily changed that function with this:
|
Thanks for your remarks. The reason that the FOV interpolation is not implemented as a simple lerp is that the visual effect of a linear lerp is nonlinear in appearance because the effect on image size is not linearly related to the FOV. Instead, we do a linear lerp on the target size, which gives a better result. I can't repro the pop that you describe. When I blend vcams with different FOVs it always blends smoothly. I suspect that the change to CM that you made is compensating for an issue elsewhere in your project. |
While transitioning from Vcam1 to Vcam2, and if changing Vcam1's FOV during that transition, there is a glitch in transition which happens at the time when FOVs of both cameras become equal.
The text was updated successfully, but these errors were encountered: