PDA

View Full Version : How to make a Dynamic Fog?


Betoranaldi
11-12-2003, 02:32 PM
looking to script a daynamic fog, its basically going to move from the left to the right, a gray or white transpancey that will give a fog effect... anyone have any idea on how i could go about doing this? i dont really know scripting, i am using Flash 2004 Pro, if that matters.

Thanks in advace,
Brian

JLM
11-18-2003, 08:23 PM
I think clouds and fog are difficult.

1)
you need to create some fog shapes photos of sky and clouds then remove the sky in photoshop untill you have just the clouds with alpha background fiddle about. Then import into flash as a png? and then you can scale them get something working with motion tweening overlapping shapes maybe changing brightness. When it looks realish you then can think about scripting the movement of the clouds and dynamically changing the colour size etc. I suspect if you try to do something just with drawing api it will look rubish. Clouds and mist are difficult.
2)
Another approach some simple vector shapes cartoon wispy strips of mist then you can use the colour object and alpha and position to create the feeling.
3)
if you take a picture and adjust it so it is slightly whiter, then _alpha =50% then copy it and offset them slightly it will look out of focus if you control that out of focus with script carefully then you may start to feel sick!

A few ideas. hope it helps, but if your not good at script tween it first then maybe try scripting it for a more random feel. Another tip go and look at some fog. you get white bits in the hollows they could be shapes that you control the alphas of. look at fog carefully then try to reproduce what you see.

JLM

Betoranaldi
11-18-2003, 08:44 PM
Thanks for the ideas... it will help alot