cinder / Cinder

Cinder is a community-developed, free and open source library for professional-quality creative coding in C++.
http://libcinder.org
Other
5.27k stars 939 forks source link

Camera method `getInverseViewMatrix()` returns out-of-date value #2238

Closed totalgee closed 1 year ago

totalgee commented 3 years ago

If you have a Camera and modify its transform (by calling lookAt(), setEyePoint(), setViewDirection(), etc.) and then immediately call getInverseViewMatrix(), you don't get the correct matrix. This normally didn't show up as an issue because (presumably) many places call getViewMatrix() first, and many internal methods call calcMatrices().

totalgee commented 1 year ago

Fixed by #2239.