• Advertisement
Sign in to follow this  

what should i pass to the perlin noise function?

This topic is 4373 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Whenever my noise function receives an integer, it returns 0.0. As a hack, I normalise the integer values to between 0 & 1 then pass these fractions, which seems to work. Should a 'proper' noise function behave like this? Hope that's clear... For example,
   x           f(x) , x=0...1
0.000000        0.000000
0.062500        0.039380
0.125000        0.067071
0.187500        0.083820
0.250000        0.090620
0.312500        0.088686
0.375000        0.079434
0.437500        0.064462
0.500000        0.045532
0.562500        0.024545
0.625000        0.003522
0.687500        -0.015413
0.750000        -0.030058
0.812500        -0.038149
0.875000        -0.037384
0.937500        -0.025441
1.000000        0.000000
   x            f(x), x=0...8
0.000000        0.000000
0.250000        0.086903
0.500000        0.159596
0.750000        0.122567
1.000000        0.000000
1.250000        -0.053520
1.500000        -0.012297
1.750000        0.037380
2.000000        0.000000
2.250000        -0.159418
2.500000        -0.248051
2.750000        -0.166148
3.000000        0.000000
3.250000        0.065204
3.500000        0.032702
3.750000        -0.022282
4.000000        0.000000
4.250000        0.068747
4.500000        0.066424
4.750000        0.018433
5.000000        0.000000
5.250000        0.041893
5.500000        0.062273
5.750000        0.039840
6.000000        0.000000
6.250000        0.042292
6.500000        0.112942
6.750000        0.105945
7.000000        0.000000
7.250000        -0.038905
7.500000        0.030075
7.750000        0.078379
8.000000        0.000000

Share this post


Link to post
Share on other sites
Advertisement
I don't think that's the way a proper noise function should behave. I'd imagine it would force things be at extremes at regular intervals, which probably wouldn't look right. Doesn't necessarly mean it's wrong and won't work, but it's probably not right.

Share this post


Link to post
Share on other sites
I had this problem too... Didn't bother fixing it though, because I didn't really care much. I realise this doesn't help at you all. [ignore]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement