Camera Lens
Hi everybody...
i want my Direct X (and later (several decades from now ;-)
Open GL) Camera to imitate a real Camera Lens.
How can i put the Lens-value into a matrix form
(like Lens = 24 mm)
I think this would be also cool for zooming (for
example in a Paparazzi Game ;-))
I think the Lens-stuff has (or should) be done
with the Projection Matrix, but i think i would
run into problems with OpenGL....
The ratio of the focal length to the film size is what determines the view angle, which in turn is used in the projection matrix in D3D. Don''t know how to translate this to OGL though...
tnx for the reply..
do you have any conversion formula for the
focal-lens => fov ?
so long
torsten
do you have any conversion formula for the
focal-lens => fov ?
so long
torsten
It should be simple trig. Assuming 35mm film and perpendicular line to the focal point of 35mm equates to two 35x17.5 right triangles. atan(17.5/35)=atan(0.5)=26.5 degrees left and right, or 53 degrees fov.
I''m probably missing something that an expert would pick up on, but conceptually this should be correct. As the lens gets longer, the fov gets narrower, eg; a telephoto. I think a "normal" lens on a 35mm is ~52mm fl - 35mm is considered wide angle.
I''m probably missing something that an expert would pick up on, but conceptually this should be correct. As the lens gets longer, the fov gets narrower, eg; a telephoto. I think a "normal" lens on a 35mm is ~52mm fl - 35mm is considered wide angle.
ARRR.... (note for me... first THINK then ASK)
thanks man.... this sounds good to me....
hmmm.. i was quite stupid... :-)
tnx....
hmmm.. i think this will help me :-)
(the only thing i have to play with is the scaling of
the objects, but this should be quite straight-forward...
SHOULD... ;-))
''til then
Torsten
thanks man.... this sounds good to me....
hmmm.. i was quite stupid... :-)
tnx....
hmmm.. i think this will help me :-)
(the only thing i have to play with is the scaling of
the objects, but this should be quite straight-forward...
SHOULD... ;-))
''til then
Torsten
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement