Draw distance through environment mapping

This is a discussion on Draw distance through environment mapping within the Game Programming forums, part of the General Programming Boards category; I was just playing GTA:San Andreas and noticed something odd in the background. The edges of some of the polies ...

  1. #1
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590

    Draw distance through environment mapping

    I was just playing GTA:San Andreas and noticed something odd in the background.

    The edges of some of the polies at certain distances became blurred which later proved to be some type of post-processing filter applied to them. However, it gave me and idea.

    We all know what cubic environment mapping is. Using that concept wouldn't it be possible to draw the most distant portions of a scene onto a cubic environment map texture and then texture the skybox/skydome using that. You would start with the sky texture and then blend in the environment texture like distant terrain, buildings ,etc. Then you would use that texture to texture the final skybox/skydome. What this means is that only the local environment is pure 3D which means you may be able to get away with a lot more polies close up than before.

    I'm not sure how it would look without attempting it but I would like to hear some comments.

  2. #2
    vae victus! skorman00's Avatar
    Join Date
    Nov 2003
    Posts
    594
    The edges of some of the polies at certain distances became blurred which later proved to be some type of post-processing filter applied to them
    I think they used fog with full alpha for that.

    I saw a project attempt what you suggest, but I don't remember if they ever succeeded. I know one of the problems they came into was noticable hitches when you walked across sector boundaries in their enviroment (I think they were using a quad tree).

    Now that I think about it, maybe that's how some games show terrain at extremely long distances? Oblivion for example.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Dynamic cubic environment mapping
    By VirtualAce in forum Game Programming
    Replies: 8
    Last Post: 01-27-2009, 02:46 PM
  2. OpenGL Shadow Mapping Issues
    By animeaholic in forum Game Programming
    Replies: 0
    Last Post: 06-05-2007, 09:49 AM
  3. Which is the better way to draw?
    By g4j31a5 in forum Game Programming
    Replies: 16
    Last Post: 01-22-2007, 10:56 PM
  4. Distance Formula in my program..... I need help fast!!!
    By Mackology101 in forum C Programming
    Replies: 3
    Last Post: 09-23-2004, 10:10 PM
  5. shortest path problems
    By talz13 in forum C++ Programming
    Replies: 7
    Last Post: 05-08-2004, 06:13 AM

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