make seamless height-map texture for sphere (planet)

蓝咒 提交于 2019-12-17 21:34:28

问题


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:


回答1:


  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

  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):

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

  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


来源:https://stackoverflow.com/questions/33097866/make-seamless-height-map-texture-for-sphere-planet

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!