Menu

#2 distance field doesn't take "0" for infinity

v0.9
open-later
Interface (2)
3
2009-09-30
2009-09-30
No

If you specify "0" (infinity) for the distance and do a calculation, the distance value is reset to 1.

Discussion

  • Karl H. Beckers

    Karl H. Beckers - 2009-09-30
    • status: open --> open-later
     
  • Karl H. Beckers

    Karl H. Beckers - 2009-09-30

    hm, OK, "infinity" in the case of subject distance apparently doesn't really mean infinity. At distance == infinity, none of the equations make any sense. Apparently the convention for "infinity" with a subject distance is 1000 times the focal length.
    It doesn't really make sense to translate a maximum integer value to "0" when the user can enter larger numbers, manually. We could guard against that and do the translation for the maximum allowed number. Since, however, that definition of infinity depends on the focal length, that could lead to funny effects if you want to calculate the focal length and suddenly the new focal length makes your specified distance invalid. Esp. because we don't do real-time calculations (as I originally wanted), this will cause problems. This needs more thought.
    For now, we'll leave things as they are and require the user to enter "very high" values for distance if infinity is desired.

     

Log in to post a comment.