Results 1 to 10 of 36

Thread: Working on a ambitious world generating tool...

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #18

    Post

    Let me see if I get Nickadimos's algorithm right:
    1.- Find the highest, lowest and mid points
    2.- Let one highpoint be the actual pixel
    3.- Starting from an actual pixel, test the 8 non-used adjacent pixels looking for the lower color (or altitude) that is the closest to the starting center point. (Not the lowest one, but the color closest one, in other words look for the minimun nonnegative difference between the center and the 8 neighbors)
    4.- Mark this neighbor "used" and make it the actual one.
    5.- Repeat from 3 until we reach one nonmarked midpoint pixel, or we get out of the map. Mark this midpoint
    6.- Do the same, but in reverse order from a lowpoint until we reach a midpoint

    Is that correct?

    If so, I'm not getting the expected results... Look at the pic...
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	test.jpg 
Views:	39 
Size:	17.4 KB 
ID:	8050  

Posting Permissions

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