• Advertisement
Sign in to follow this  

Camera Zooming Effect

This topic is 4837 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello to all of you, I have to develop a project which is called the radar simulator. I am not a guy of computer graphics but i have learned alot of D3d during my project period. I have developed the camera which works fine with my requirements that are as follows, (this all done with keypresses) 1. camera rotates with its axis of rotation. 2. camera translates and can be at any place in my scene and then rotates lying at the exact position which translation gave, this means no revolution. 3. camera can move in the direction where it looks. Now related to my problem, the camera zooming effect. I have to only zoom the camera (just like the real camera zooms) with not changing the position of camera. Press 'I' When the camera zooms In, it has to be as the near objects should look more bigger in size and the objects at distance should look more bigger than before. After zooming I have to rotate the camera and/or translate having the camera zoom effect still there. Press 'K' then camera zooms Out. Any help is appreciated. Thanx in advance. Note: Development is being done on VC++ and DirectX 8.

Share this post


Link to post
Share on other sites
Advertisement
to implement zoom, the simpliest way is to narrow the field of view in you projection matrix give a good zoom :)

Share this post


Link to post
Share on other sites
What real cameras do when you zoom, is change the field of view angle, so, yeah, that's how you do it in graphics too.

Note that when you narrow the field of view, your sky box and similar far-away art start needing really high resolution textures to look good. If looking good isn't a priority, or you don't have a skybox, this of course won't be as much of a problem.

Share this post


Link to post
Share on other sites
thanx for the posts u guys done...
infact I used this a long ago but i was'nt using it in my render function :)
well thanx all of u guys anyway

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement