简体   繁体   English

柏林噪声和负坐标

[英]Perlin noise and negative coordinates

I am working with Perlin Noise and coordinates and want to know how to handle negative coordinates in order to make it not symmetric.我正在使用 Perlin Noise 和坐标,想知道如何处理负坐标以使其不对称。

Example image of my Perlin noise我的 Perlin 噪声示例图像

As you can see in the image, when perlin noise get negatives coordinates it doesn't differ from positive so you get this symmetrical noise.正如您在图像中看到的那样,当柏林噪声获得负坐标时,它与正坐标没有区别,因此您会得到这种对称噪声。

The code is obviously simple:代码显然很简单:

float extension = 0.005f;
float perlinNoise = Mathf.PerlinNoise((position.x + seed) * extension, (position.y + seed) * extension);

I want to know if there is an intelligent way to get normal noise.我想知道是否有一种智能的方法来获得正常的噪音。 BTW: Move away from 0,0 position or change it is not an option.顺便说一句:远离 0,0 position 或更改它不是一种选择。

Thank you in advance.先感谢您。

Answer by loominator199 · Oct 14, 2019 at 03:01 AM Perlin noise is mirrored around zero coordinates. loomator199 的回答 · 2019 年 10 月 14 日凌晨 03:01 Perlin 噪声在零坐标周围镜像。 Use extra octaves to blend it in and hopefully hide it.使用额外的八度音阶将其混合并希望隐藏它。

https://answers.unity.com/questions/991428/problem-with-perlin-noise-on-negative-coordinates.html https://answers.unity.com/questions/991428/problem-with-perlin-noise-on-negative-coordinates.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM