How to create clouds as background in matlab?

  • Context: MATLAB 
  • Thread starter Thread starter khurram usman
  • Start date Start date
  • Tags Tags
    Matlab
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
khurram usman
Messages
86
Reaction score
0
hi everyone, i started using MATLAB about 3 months ago and am just aware of the basic computing i.e. for loops , while loops, if conditions. i have been given a game as a project. i was thinking of drawing its graphics first. i wanted to draw moving clouds in the background. i do not know any function to draw this nor could i think of any way to somehow create my own function. kindly help me in doing that. regards, khurram
 
Physics news on Phys.org
Clouds are usually procedurally generated by filling the screen with perlin noise, doing a guassian blur and then clipping the low-end colors to be transparent. To make them move you can just scroll the image.

Google 'procedurally generated clouds', you'll find lots of techniques.