Page MenuHomeFeedback Tracker

perlin noise not working with `seed random [x, y]`
Closed, ResolvedPublic

Description

According to BI wiki, random operator can be used to create a random perlin noise with seed random [x, y] syntax, but it doesn't in game.

https://community.bistudio.com/wiki/random

https://imgur.com/Bp0s4CE
https://imgur.com/jSEGhqa

1st image source code:

for "_i" from 0 to 1 step 0.001 do {
	diag_log str [_i, 1 random [_i, 0.5]];
};

2nd image source code:

for "_i" from 0 to 600 step 0.1 do {
	diag_log str [_i, 1 random [_i, 0.5]];
};

Both show that the return from random is not a perlin noise but just a totally random value.
Beside that, below 0.01 in x coordinate unit results in a uniform value, and in large scale
the random function has some kind of repetitiveness.

Details

Severity
Block
Resolution
Fixed
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce

try perlin-noise random syntax

Event Timeline

Orbis2358 created this task.Jun 5 2021, 4:40 AM
dedmen changed the task status from New to Assigned.Jun 7 2021, 4:06 PM
dedmen assigned this task to LouMontana.
dedmen added a subscriber: dedmen.

Wiki is wrong.
Warka (who wrote wiki entry) originally wanted perlin noise, but programmer told him that it wasn't done

LouMontana closed this task as Resolved.Jun 7 2021, 5:32 PM
LouMontana raised the priority of this task from Normal to Immediate.
LouMontana changed Severity from Major to Block.
LouMontana changed Resolution from Open to Fixed.
This comment was removed by LouMontana.
This comment was removed by LouMontana.