Incorrect displacement for stereo convergence distance
Bug #1352909 reported by
Robert Rasmussen
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Panda3D |
Fix Released
|
Undecided
|
rdb |
Bug Description
The code for creating stereo lenses implements a frustum skew with a displacement of 1/(4*Convergenc
Changed in panda3d: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hmm, I'll have to ask David Rose about how they've been using stereo cameras at Disney.
I ran some tests and found that the convergence is indeed correct with your corrected calculations, assuming that the distance is given in world coordinates.
However, perhaps this assumption is wrong. Could it be that the intent was for this value to be specified in film coordinates? The reason why I'm thinking that is because of the way we calculate the film size given a particular focal length:
film_width = 2 * focal_length * tan(hfov / 2)
This looks an awful lot like your calculation above, which makes me suspect it's perhaps supposed to be specified differently. Does this make sense at all to you?