Results 1 to 6 of 6

Thread: Scale of world?

  1. #1
    Senior Member Regular Contributor
    Join Date
    Jun 2006
    Location
    Edinburgh - Scotland
    Posts
    146

    Scale of world?

    Something I've not seen discussed when planning a 3D world is the scale i.e. what size to make objects etc.

    Say I draw all my objects as though 1 coord = 1 meter and then make the z clip = 1. Does that an object will look the same scale as though I was standing 1 meter away from it (when right next to it)? Also, field of view, is 90 degrees generally used for "normal vision"?

    Anyone got any advice on things to consider when planning the coord size, FOV etc?

    One thing I've noticed in FPSs is you can often go right up against (say) a wall and it just doesn't look the same as though you were doing the same thing in real life. Not sure what the problem is, maybe "focus" or scale or FOV, but something doesn't look right.

    --Stuart.

  2. #2
    Junior Member Newbie
    Join Date
    Jul 2006
    Posts
    26

    Re: Scale of world?

    As far as I know "natural" FOV goes hand in hand with monitor size and distance to the viewer, so a perfect solution can hardly be achieved. Many FPSs allow tweaking the FOV settings.

  3. #3
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: Scale of world?

    If everything is set up as in real life, it will look as in real life. However, FOV is usually something people get really wrong and overestimate alot.

    Consider this. You're viewing your scene from your chair, looking through your monitor. The field of view is therefore a function of your windows physical size (not measured in pixels, but in real life length units) and the distance you sit from the monitor.

    I'll give you an example. My monitor is about 30 cm tall, and the distance from the surface to my eyes are about 50 cm.

    VFOV = 2*atan(0.5*height/distance)

    That makes a vertical fov of about 34 degrees. To get a perspective correct real life representation, I should therefore use 34 degree vertical FOV.

    For a 90 degree FOV, you need to have your face a distance from your monitor equal to half the height of your monitor. Calculates to 15 cm in my case, and I can say that I can't focus my eyes properly in the monitor if I sit that close. Not to mention that I really have to move my eyes to even see the edges of it.

    But that's for a fullscreen window. For a windowed application, the FOV needs to be recalculated, but keep in mind that it's the real world size of the window that matters, not the number of pixels which is what you get from yout windowing API. In other words, you need the real dimensions of the users monitor.

    That said, I use 60 degrees usually. In my oppinion, a somewhat good compromise between little perspective distortion and a FOV that you can actually fit something inside. For FPS, 90 works. But keep in mind, the true FOV is calculated as above.

  4. #4
    Senior Member Frequent Contributor
    Join Date
    Feb 2006
    Location
    Sweden
    Posts
    744

    Re: Scale of world?

    Originally posted by Stuart McDonald:
    One thing I've noticed in FPSs is you can often go right up against (say) a wall and it just doesn't look the same as though you were doing the same thing in real life. Not sure what the problem is, maybe "focus" or scale or FOV, but something doesn't look right.
    Well you have to remember that humans have a fov around 180 degrees and that would look strange indeed on a monitor (try it), plus human vision uses something more like a fisheye projection, and computer graphics can't do that(yet).
    90 degrees is a good value because it is a good compromise between the human eye and the actual fov of the screen(as described by bob), and it goes hand in hand with the natural characteristics of computer graphics, where a 1 unit square becomes a 0.5 unit square at double the distance.

  5. #5
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: Scale of world?

    Originally posted by zeoverlord:
    ..., and it goes hand in hand with the natural characteristics of computer graphics, where a 1 unit square becomes a 0.5 unit square at double the distance. [/QB]
    An object's size if halved if the distance is doubled, for any FOV and for any size. It's not unique to 90 degrees in any way.

  6. #6
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,574

    Re: Scale of world?

    Nowadays it is quite easy to do fish eye projection.
    Render a cube view, tesselate it, distord, and voilą !

    An old example :
    http://strlen.com/gfxengine/fisheyequake/compare.html
    Horizontal FOV 150 seem nice...

Similar Threads

  1. Continuous World / World Wrapping
    By MicahBrening in forum OpenGL: Basic Coding
    Replies: 13
    Last Post: 02-24-2007, 06:46 PM
  2. scale of the scene
    By texel in forum COLLADA
    Replies: 5
    Last Post: 02-24-2006, 05:08 PM
  3. Size/Scale of my world
    By benwestgarth in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 04-23-2005, 07:17 PM
  4. scale problem
    By wizzo in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-10-2003, 08:56 AM
  5. Polygon size & world scale
    By Jasonb in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 03-22-2000, 09:09 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