Results 1 to 2 of 2

Thread: Infinite zoom

  1. #1

    Infinite zoom

    I'd like to create a scene like when you zoom out or in when looking at our universe. As you zoom out, which seems very large, a solar system is replaced with a single icon. As you zoom in, that icon changes to the larger solar system.

    How can you change the scale to some degree to allow for this? Is it a camera setting? Do you just change the scale() of the pictures (which doesn't work well for points, I'm using sprites)? Or is there some other method that allows you to transition while maintaining a zoom scale. I don't want to make my images 10000 height by 10000 wide and set the height and width of small things to 10. This just doesn't seem like the right way to do it.

  2. #2
    Senior Member OpenGL Lord
    Join Date
    Mar 2015
    Posts
    6,674

    Re: Infinite zoom

    How can you change the scale to some degree to allow for this?
    I'm not sure I understand what your problem is here.

    First, get scaling to work right, so that you can zoom in and out freely. That's simply a matter of the X and Y scale factors in your projection matrix.

    The next step is to detect when the zoom factor is close enough to the point where you stop rendering icons and start rendering objects. This is something that should happen in your "render solar system" function. You test the zoom factor. If it is close enough, you render the actual solar system. If it's too far away, you render an icon.

Similar Threads

  1. Replies: 0
    Last Post: 01-06-2015, 09:42 AM
  2. Change zoom from dolly to "real" zoom
    By Rainer Wahnsinn in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 02-01-2013, 05:48 PM
  3. Infinite Zoom
    By RayF in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 05-22-2008, 04:25 PM
  4. zoom in and zoom out with gl4java and Java
    By vamsee kanth in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-03-2004, 02:32 AM
  5. Replies: 0
    Last Post: 03-15-2001, 02:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean