Hello Guest

Camera zoom?

  • 10 Replies
  • 16039 Views
*

Offline dangerdoc

  • **
  • 75
  • Thats right... Nikola Tesla
Camera zoom?
« on: April 05, 2012, 01:14:26 »
How do you zoom the camera in?

Re: Camera zoom?
« Reply #1 on: April 05, 2012, 17:35:02 »
Are you talking about 3D or 2D? Could you provide us with a little more information? ???

*

Offline dangerdoc

  • **
  • 75
  • Thats right... Nikola Tesla
Re: Camera zoom?
« Reply #2 on: April 05, 2012, 18:02:30 »
I am sorry, I forgot that there is even a 2-D when I posted.... I meant 3-d. I just want to zoom a 3-d camera in. Thanks, and sorry for not giving more info.

Re: Camera zoom?
« Reply #3 on: April 05, 2012, 18:35:29 »
Highly dependent on your rendering system.

How do you manage the camera?

Re: Camera zoom?
« Reply #4 on: April 11, 2012, 12:35:45 »
There are multiple ways you could do this. You could actually move the camera forward to "look" like it's zooming in. However, I assume you want a more realistic way. I think you could accomplish this by changing your frustrum to be smaller on the far-z axis (i.e. shaped more like a 2D frustrum). That would counter-act the usual further-objects-get-smaller effect to make it zoom in.
Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option ;D

*

Offline dangerdoc

  • **
  • 75
  • Thats right... Nikola Tesla
Re: Camera zoom?
« Reply #5 on: April 13, 2012, 13:29:07 »
Hello,
Thank you for replying, I have learned a lot on this forum thanks to the friendly replies! Now, I don't know about frustrum, but I found this on google. So, your saying to change the farplane so that it is basically thicker? I do not know much about frustrum. If I was right about changing the farplane in my understanding, then how do you change the z-axis? In reply to codebunny, I don't quite know yet, but I think that I will be using this. Thanks for your replies!

Re: Camera zoom?
« Reply #6 on: April 16, 2012, 12:51:23 »
Now, I don't know about frustrum, but I found this on google. So, your saying to change the farplane so that it is basically thicker? I do not know much about frustrum. If I was right about changing the farplane in my understanding, then how do you change the z-axis?
Sorry, I meant change the further away frustrum plane (i.e. the far plane in the image) so that it is smaller. If you are using GLU.gluPerspective(), I think you can just change the fovy (field of view) parameter to make it smaller.
Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option ;D

*

Offline dangerdoc

  • **
  • 75
  • Thats right... Nikola Tesla
Re: Camera zoom?
« Reply #7 on: April 17, 2012, 21:54:58 »
Thank you for your help. I have learned what I wanted, and will be experimenting on it!!! I went to google, found which parameters for glu.gluperspective were which and that fixed it for me!!! Thank you also codebunny!

*

Offline dangerdoc

  • **
  • 75
  • Thats right... Nikola Tesla
Re: Camera zoom?
« Reply #8 on: June 19, 2012, 22:31:28 »
Does GLU.gluPerspective work with GL11 rendering? In my game I am using GL11 for the camera and the rendering. If it is not compatible, what is the GL11 way to zoom in 3-d?

Re: Camera zoom?
« Reply #9 on: June 20, 2012, 17:32:18 »
Does GLU.gluPerspective work with GL11 rendering? In my game I am using GL11 for the camera and the rendering. If it is not compatible, what is the GL11 way to zoom in 3-d?
It is :)
My github account and currently active project: https://github.com/matheus23/UniverseEngine

*

Offline dangerdoc

  • **
  • 75
  • Thats right... Nikola Tesla
Re: Camera zoom?
« Reply #10 on: June 22, 2012, 15:09:49 »
Does GLU.gluPerspective work with GL11 rendering? In my game I am using GL11 for the camera and the rendering. If it is not compatible, what is the GL11 way to zoom in 3-d?
It is :)
Thanks!!!  :)