PDA

View Full Version : Webpage question


Psichosix
20-12-2003, 07:06 PM
How would I got about setting up a fan on a web page that only runs when a button is clicked. I want to have it look photo realistic. For example if the fan is running the shadows should reflect that.

Any help would be greatly appreciated.

Shaun-3DT
20-12-2003, 07:10 PM
Well you could do it with flash but you'd need some flash skills.
Another way would be to have a single image of your fan and set that as an image, then create an animaged gif (prehaps take a few renders of your fan at different stages and use the frames for you animated gif. Then in your page, you could use a little bit of javascript and in the mouseover event in the img tag you could set the img src attribute to that of the animated gif, similarly on the mouseout event you would set the img src attribute back to your standard image.

Does this make sense?

Cheers
Shaun

Psichosix
20-12-2003, 10:51 PM
Yeah I thought about doing it as two different images and that is the way that I will probably have to do it. I will just have to do more work getting things to line up properly. The problem is that it wont just be a static fan on the screen. It will be encapsulated in ductwork and have piped and coils close that I wanted the shadows to fall on. The problem is that the coils will also have multiple states (on/off) and if I have multiple images the shadows might not look right.