OpenGL Rendering problems

This is a discussion on OpenGL Rendering problems within the Game Programming forums, part of the General Programming Boards category; How do I set the render distance for objects? I've only gotten up to 20 units.. where my ship alone ...

  1. #1
    Registered User
    Join Date
    Dec 2006
    Posts
    3

    Smile OpenGL Rendering problems

    How do I set the render distance for objects? I've only gotten up to 20 units.. where my ship alone is 2 units. I doubt we'll have tiny maps like such, as we are making a space simulator, but it would be nice to see how far we can set the rendering. What should we look for?

    Also, if anyone knows anything about the algorithm that the CryENGINE uses to render distant objects, please post something about it. I know they reduce the amount of polygons based on distance and use a good height maps system, but if anyone has any methods that they would like to share, do tell


    Thank you!

  2. #2
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    I think you're looking for frustum culling and level of detail (LOD) rendering.

  3. #3
    Registered User
    Join Date
    Dec 2006
    Posts
    3
    Do you know where I might be able to learn more about these?

  4. #4
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    Try googling for Frustum Culling, there's probably hundreds of tutorials on the net. For general OpenGL stuff, try nehe (http://nehe.gamedev.net). There's also a list of useful links stickied at the top of the game programming forum.

  5. #5
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    Also, if anyone knows anything about the algorithm that the CryENGINE uses to render distant objects, please post something about it. I know they reduce the amount of polygons based on distance and use a good height maps system, but if anyone has any methods that they would like to share, do tell
    There are many algorithms out there but my guess would be it is some type of restrictive quad tree similar to the one in Flight Simulator X. There are only so many ways to actually do vast areas of terrain and still maintain interactive frame rates. They could possible be using ROAM but that really does not fit into today's hardware since it requires altering vertex data.

    Moved to game programming.

  6. #6
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,070
    My guess is LOD (for meshes besides the terrain), which AFAIK in it's simplest form would just require rendering lower-poly versions of the same object based on the viewers distance away from the object. The poly reduction could be loaded from several files, or done programmatically (more complicated).
    Memorial University of Newfoundland
    Computer Science

    Mac and OpenGL evangelist.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 02-12-2006, 07:42 PM
  2. Graphics Programming :: Approach and Books
    By kuphryn in forum Windows Programming
    Replies: 4
    Last Post: 05-11-2004, 08:33 PM
  3. texture problems with OpenGL
    By jverkoey in forum Game Programming
    Replies: 3
    Last Post: 04-29-2004, 05:50 PM
  4. Problems with rotations with OpenGL and GLUT
    By darcome in forum Game Programming
    Replies: 13
    Last Post: 07-05-2002, 12:12 AM
  5. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 09:01 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21