I cut and pasted the sample code from the product page. I already had code in place that was defining my scene, loading objects, setting up cameras, etc. All I needed was to replace my skybox code with the DarkCLOUDS code instead.
I created a function and placed the sample code in it:
function SetUpClouds()
set text font "verdana" : s$="generating clouds...please wait"
center text screen width()/2,screen height()/2,s$ : sync
sync on : sync rate 60
rem half-fill the sky with clouds
dc set cloudy 0.5
rem set sky brightness to .6
dc set brightness .6
rem set wind to 30 mph at 270 degrees (heading west)
dc set wind 300,180
rem init with texture number 1, and number of keyframes per day
dc init 1,10
rem starting at 12:00 am
time#=8.0
rem the update command creates the cloud texture
dc update time#
rem show texture 1 as the backdrop
texture backdrop 1
set normalization on
endfunction
I then added this fragment to my main loop:
do
.
.
.
time#=time#+100.0/(60.0*60.0*60.0)
dc update time#
sync
loop
I then commented out my code that was creating a skybox, and instead made a call to the new DarkCLOUDs (SetupClouds()) function.
It worked like a champ.
Russell B. Davis/aerostudios