Latios96 / crayg

Personal raytracer to learn C++ and rendering

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add compensation for Lens Breathing

Latios96 opened this issue · comments

Moving the whole lens leads to a lot of lens breathing. Because of this, the image size changes. Make the lens breathing controllable:

  1. Calculate image size for lens focussed at infinity (binary search is probably a good idea)
  2. focus to desired focal distance and calculate image size
  3. apply a compensation to the sensor size to compensate for the lens breathing
  4. make it possible to control the compensation, e.g. lerp between "full compensation" and "no compensation"