Jump to content
  • Advertisement

Archived

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

Gandalf

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.

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

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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!