Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
846 views
in Technique[技术] by (71.8m points)

algorithm - make seamless height-map texture for sphere (planet)

I'm trying to generate height-map for spherical planet with perlin noise. How can I make it with seamless left/right borders? I smoothed heightmap in poles, but cannot understand how can I loop left and right sides.

This is how my textures look liked for now:

heightmap

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
  1. Mirroring (by y-axis)

    This is great for making seamless background textures. But as you mentioned the texture must not contain distinct patterns otherwise it would be obvious. This can be used as a start point for texture generator

    mirror by y

  2. Morphing

    There are vector and raster morphs out there depend on the content of image. You can try to use simple raster morph done by Linear interpolation (if resolution is the same which is your case) but this can make the texture blurry which can be disturbing on some images. For starters you can try to morph texture and its mirror together:

    This is cosine weight distribution (50%:50% on sides and 100%:0% in the middle):

    raster interpolation morphraster interpolation morph

    This is constant weight distribution (50%:50%):

    enter image description hereenter image description here

  3. adjusted texture generators

    You can adjust your current texture generator to render seamlessly

    1. create/use seamless texture background (created by #1,#2 or even #3)
    2. add random number of random features with looped x axis

      • so if x is going out from the left it will go in from the right ...
      • x' = x%xs where xs is texture x-resolution

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...