#### Archived

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

# Perlins noise

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

## 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 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 on other sites
http://freespace.virgin.net/hugo.elias/

1. 1
2. 2
3. 3
4. 4
Rutin
17
5. 5

• 11
• 30
• 12
• 12
• 11
• ### Forum Statistics

• Total Topics
631408
• Total Posts
2999922
×