Patching System

This is a discussion on Patching System within the Game Programming forums, part of the General Programming Boards category; Hello, I am currently interested in terrain systems for a project. What I am curerntly needing is a patching system ...

  1. #1
    Registered User Puppet Master's Avatar
    Join Date
    Dec 2005
    Posts
    7

    Patching System

    Hello,

    I am currently interested in terrain systems for a project. What I am curerntly needing is a patching system that would patch together 512x512 blocks of heightmaps.

    I have tried searching on google for tutorials and other information on this but none of the results I came across were particulary good.

    Does anybody know of any decent (or any at all really) tutorials on this subject? Or does anyone have any ideas for this?? Any information (particulary tutorials) would by much appreciated.

    Thanks for your time.

  2. #2
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    Take a huge height map and divide it into 512x512 segments. The conections along the divisions are your "patches"

  3. #3
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    The edges of your terrain blocks will be where you need to do some custom 'stitching' to get differing LOD's to weld together correctly.

  4. #4
    GA ichijoji's Avatar
    Join Date
    Nov 2002
    Posts
    179
    Assuming you're using geomipmapping, since it's easy and you're talking about square blocks, you can just put in triangle fan skirts to do edge fixing.
    Illusion and reality become impartiality and confidence.

  5. #5
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    hmm, you guys raise a good point.

    Are you trying to implement a LOD system (geo-mipmapping) or a paging system?

  6. #6
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    Triangle fan skirts would work but may cause texture artifacts. I would like to try this method however.

  7. #7
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    Texture artifacts as well as crazy terrain features if your height map blocks don't line up remotely close. You could end up with a huge difference in height values at borders. This is why i suggest segmenting a larger height map into blocks instead of patching together arbitrary heightmaps.

  8. #8
    Registered User Puppet Master's Avatar
    Join Date
    Dec 2005
    Posts
    7
    Thanks for all your replies.

    Perspective, I found the site in your signature to be particulary helpful.

    To be honest I have no idea whether I'm doing a LOD system (geo-mipmapping) or a paging system. I'm thinking that seeing I already have a book on OpenGL that has a large section devoted to heighmapping and terrain rendering I may use that.

    Anyway, once again many thanks for your help and advice.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Operating System
    By Houssen in forum C Programming
    Replies: 18
    Last Post: 04-22-2008, 12:51 PM
  2. File System Implementation
    By dodgeviper in forum C Programming
    Replies: 9
    Last Post: 11-16-2007, 12:04 PM
  3. Using system icons
    By @nthony in forum Windows Programming
    Replies: 1
    Last Post: 01-13-2007, 06:56 PM
  4. Linux database system needed
    By BobS0327 in forum Tech Board
    Replies: 7
    Last Post: 06-11-2006, 03:56 PM
  5. BIOS system and memory allocation problem
    By beely in forum Tech Board
    Replies: 9
    Last Post: 11-25-2003, 06:12 AM

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