Archived

This topic is now archived and is closed to further replies.

Gandalf

Perlins noise

Recommended Posts

Anyone have some information to share on this issue or on something similar (about generating textures)? Thanks, Gandalf the Blue
Edited by - Gandalf on 7/24/00 3:09:08 AM

Share this post


Link to post
Share on other sites
Is this the way to create a subplasma pattern?
If it is how can I control the subplasma shape?

for( Number of Pixels )
{
1. Find 2 random numbers (a and b) between -1 and 1 (using a interpolate function)
2. Convert value for (a) and (b) to colors values between 0 and 255
3. Find color (x) : a random number between (a) and (b)
}

All I get with this technic is a ugly black/red noise pattern! No control at all.

And I use this randomize funtion:

function IntNoise(32-bit integer: x)

x = (x<<13) ^ x;
return ( 1.0 - ( (x * (x * x * 15731 + 789221) + 1376312589) & 7fffffff) / 1073741824.0);

end IntNoise function

Gandalf the Blue



Edited by - Gandalf on July 24, 2000 6:22:18 AM

Share this post


Link to post
Share on other sites