SoftNoise-GDScript- icon indicating copy to clipboard operation
SoftNoise-GDScript- copied to clipboard

Seeds not working

Open clabe45 opened this issue 5 years ago • 0 comments

When I run the following code

func _ready():
	randomize()
	seed_hash = randi()

	noise = preNoiseScript.SoftNoise.new(seed_hash)
	print(seed_hash, " ", noise.simple_noise1d(0))

Here is sample output:

2855434610 -0.281791
3844575315 -0.281791
2527165008 -0.281791

It outputs the same number (-0.281791) for simple_noise2d(0, 0) too. However, results do vary with different seeds for perlin_noise2d.

clabe45 avatar Mar 27 '19 14:03 clabe45