Welcome, Guest

Author Topic: erosion sim ideas  (Read 1692 times)

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
erosion sim ideas
« on: November 18, 2012, 06:37:17 PM »
first open the grayscale png elevation map, then read all the pixels and put the greyscale values into an array
def erosion(c):
    lower the value of c
    look around at all the pixels around c to see if any are lower (in all 8 directions)
    set the pixel with the lowest elevation to c
    if none are lower set c to a pixel
run erosion(c) x times.
write this all into the png file.

any suggestions for improvement would be nice





    

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: erosion sim ideas
« Reply #1 on: November 18, 2012, 06:39:07 PM »
OH, oh, after i get past the basic step i can use one of the three rgb channels to generate the hardness of a material!.

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: erosion sim ideas
« Reply #2 on: November 18, 2012, 06:39:28 PM »
OH, and the steeper the slope the more the erosion should be.

atomic7732

  • Global Moderator
  • *****
  • Posts: 3849
  • caught in the river turning blue
    • Paladin of Storms
Re: erosion sim ideas
« Reply #3 on: November 18, 2012, 08:02:17 PM »
i want an erosion sim for reasons

(i can help if you want, starting on wednesday (maybe even tuesday night))

Darvince

  • *****
  • Posts: 1842
  • 差不多
Re: erosion sim ideas
« Reply #4 on: November 18, 2012, 08:03:45 PM »
stop with your time
school doesn't suck as much energy for you because you just sit there fuqing around

atomic7732

  • Global Moderator
  • *****
  • Posts: 3849
  • caught in the river turning blue
    • Paladin of Storms
Re: erosion sim ideas
« Reply #5 on: November 18, 2012, 08:04:47 PM »
um yeah i get homework and have to not fail tests

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: erosion sim ideas
« Reply #6 on: November 18, 2012, 08:07:58 PM »
@atomic
my idea was for the input to be a png file, grayscale values denoting height, and the output to be a modified png file, grayscale values denoting the height. i don't know what you need the erosion simulation thing for so not sure if what i had in mine is what you had in mind?

atomic7732

  • Global Moderator
  • *****
  • Posts: 3849
  • caught in the river turning blue
    • Paladin of Storms
Re: erosion sim ideas
« Reply #7 on: November 18, 2012, 08:08:58 PM »
yes it is except the input and output is so much better.

Okay maybe not but it's decent. I just want to simulate rivers (a small section of it not like 500 km long more like 500 m long). Cause rivers are cool. Also other erosions are nice too.

blotz

  • Formerly 'bong'
  • *****
  • Posts: 813
  • op pls
Re: erosion sim ideas
« Reply #8 on: November 18, 2012, 08:25:22 PM »
good idea