What are the "storm" functions in sky.cc ?
by Steven Peterson · in Torque Game Engine · 04/18/2006 (9:12 am) · 2 replies
I'm looking over the Sky and Cloud class in sky.cc. There's a number of functions like "startStorm" "calcStorm" etc. I think their trying to take control of the various sky effects in these classes to create a composite effect of a storm-front moving in or out. I'm not really sure though...
Can anyone explain whats actually happening here?
thanks,
Steven
Can anyone explain whats actually happening here?
thanks,
Steven
#2
I was going to nix those storm-cloud functions entirely - but seeing it laid out so simply I think I can keep that interface and just rewrite the insides.
Thanks Billy, I'd long since lost sight of the forrest for the trees, but this helps! :-)
rgds,
Steven
04/19/2006 (7:35 am)
Eh, good idea - but they implemented it not-so-good. I'm in the process of taking cloud-control entirely out of the sky class. It doesn't seem to even belong there. I was going to nix those storm-cloud functions entirely - but seeing it laid out so simply I think I can keep that interface and just rewrite the insides.
Thanks Billy, I'd long since lost sight of the forrest for the trees, but this helps! :-)
rgds,
Steven
Torque 3D Owner Billy L
type in console to test it out.
sky.stormclouds(true/false,time)
sky.stormfog(percent,time)
sky.stormfogshow(true/false);
sky.stormcloudson(true/false)
Search the forum there are alot of lovely examples for dynamic weather effects .