Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Reverse Quantizing, AKA - how to get a heightfield from contour lines

  1. #11
    Administrator Redrobes's Avatar
    Join Date
    Dec 2007
    Location
    England
    Posts
    7,193
    Blog Entries
    8

    Post

    In terms of stitching arbitrary height maps may I point you at some work done by Howard Zhou who has been working on this sort of thing for a while...

    http://terrain.cg-arts.org/forum/ind....msg821#msg821
    http://www.howardzzh.com/research/terrain/

    To keep it simple, I believe he is finding the closest path between two maps and cutting along them - a bit like photo stitching I think. I reckon there is a lot more to it tho. Its unbelievably awesome actually. Anyways there is a world machine plug in to do it.

  2. #12
    Professional Artist
    Join Date
    May 2007
    Location
    Wisconsin
    Posts
    186

    Post

    Quote Originally Posted by Redrobes View Post
    That looks amazing. Being a professional cartographer I have a very large supply of real-world DEMs to use as source files, and it looks like this is just the application to create the mountain ranges, valleys, canyons, etc. for my world. But I could not find the download.

    I WANT.

  3. #13
    Administrator Redrobes's Avatar
    Join Date
    Dec 2007
    Location
    England
    Posts
    7,193
    Blog Entries
    8

    Post

    The public interface to this utility is a plugin for WorldMachine.

    http://www.terrainsynthesis.org/worl...rger/index.htm

  4. #14
    Guild Artisan su_liam's Avatar
    Join Date
    Aug 2007
    Location
    Port Alberta, Regina(IRL: Eugene, OR)
    Posts
    798

    Post SDA: a first test.

    Okay, here's my experiment.

    First, I took the quantized image and applied a 2.5-pixel Gaussian Blur to start. Next, I applied the Spatter filter at a radius of 8 and a smoothing of 1.

    Next, I tried a smaller 1.3-pixel blur, and a spatter at the same settings as before. I repeated this a couple times.

    I finally did a blur at 2.8 pixels to reduce the spots a bit.

    This is what I was thinking of calling my Stochastic Deterrace Algorithm. I'm not sure how satisfactory this is. What do you think?
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	hf_q_SDA.png 
Views:	52 
Size:	29.8 KB 
ID:	2331  

  5. #15
    Guild Artisan su_liam's Avatar
    Join Date
    Aug 2007
    Location
    Port Alberta, Regina(IRL: Eugene, OR)
    Posts
    798

    Post

    Next, I tried a morphological close operation: an erode followed by a dilate. I was hoping to denoise it a bit. Basically, I copied the image, pasted it as a channel. Used the channel as a selection then expanded the selection by one pixel, followed by a 1-pixel contraction of the selection. Then I saved the selection as a channel, copied the new channel and pasted it into a new layer. Didn't really help.

    Finally, I tried Filter>Noise>Median... with a radius of 7 pixels. Here is the result.

    See what you think?
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	hf_q_SDA_Median.png 
Views:	54 
Size:	39.3 KB 
ID:	2332  

  6. #16
    Guild Artisan su_liam's Avatar
    Join Date
    Aug 2007
    Location
    Port Alberta, Regina(IRL: Eugene, OR)
    Posts
    798

    Post

    I rendered the last heightfield in Bryce. There's a lot of moiré, edges are significantly rounded and there's still a very noticeable terracing.

    I'm going to try applying just a touch of smoothing in bryce, but the SDA even with a last Median stage is feeling pretty busted. I had such high hopes, too...
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	hf_SDAM_Render.jpg 
Views:	53 
Size:	662.3 KB 
ID:	2333  

  7. #17

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •