Original Post
Hello, I am trying to implement movement of clouds with the help of information written on this link: http://freespace.virgin.net/hugo.elias/models/m_clouds.htm But I don't really understand how he moves the clouds. I am using 4 octaves. So I have 4 images ( maps ). The smallest map has a size of 32x32. I have a function to create perlin noise for one image. So here is my code: I hope somone can help me.
void moveClouds(float time)
{
if(time % 2 == 0)
{
map1=map2;
createPerlinNoise(map2,32*2);
changeSize(map2,32,32);
}
if(time % 4 == 0)
{
map2=map3;
createPerlinNoise(map3,32*2);
changeSize(map3,32,32);
}
if(time % 16 == 0)
{
map3=map4;
createPerlinNoise(map4,32*2);
changeSize(map4,32,32);
}
createCloud();
}