Log In  

Cart #cloudgenerator-0 | 2023-04-22 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5

Cloud generator 1

Procedural cloud generator using a lot of circles and fill patterns.
I tried to comment the code as well as possible and make it as readable as I could.
It's not a very complicated piece of code, but I know by now that trying to decipher someone else's code isn't always easy.

room for improvement

  • Not all generated clouds look great
  • If you start playing around with the arguments in the function, it can be tricky to get it to look the way you want.
  • There is also no easy way to change the colors of the clouds.
  • The circles get smaller the higher up on the screen, but this is based on the absolute y-coordinate of each circle. This means that if you put your clouds lower on screen with the "topy" argument, the radius off all circles gets bigger. The fact that one argument affects multiple things makes the look of the clouds harder to control.
  • The darker and lighter colors are randomly picked, it would be nicer if the base of the cloud was always a little darker then the top of the cloud
  • It could use some more vertical randomness, now it is like a single roll of evenly thick cloud and it gets worse when you increase the density.

Implementing these improvements would probably cost more tokens though.

P#128885 2023-04-22 14:19


[Please log in to post a comment]