Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Maya Basics & Newbie Lounge (https://simplymaya.com/forum/forumdisplay.php?f=31)
-   -   flickering light (https://simplymaya.com/forum/showthread.php?t=29636)

JosiahBrooks 17-04-2008 05:44 AM

flickering light
 
ok basically i want to immitate a flickering light for a fire

i have the fire all done and crap, i wanna make the shadows flicker, so i set up a point light with linear decay rate...

basically i want to know how to animate a flickering motion that will endlessly repeat on the point light, and i want to be able to copy it other places in the maya file


help would rock my world, thanks guys

ragecgi 17-04-2008 08:09 AM

Add a "rand" expression to the intensity value of your light:

Example 1:

rand(5)

This returns a random floating point number between 0 and 5, for example, 3.539.


Example 2:

rand(-1,1)

Returns a random floating point number between -1 and 1, for example, 0.452.

Example 2 would be better for your situation, as you can define a MIN and MAX intensity value for your light:)

So if you don't want it to go below an intensity value of 1, but also go NO higher than say, 4, you would use this rand expression:

rand(1,4)


Also, a messier and slightly less controllable way to add a random value to something is to map a ramp to an attribute, kill all ramp colors except for one, then map a fractal texture to that color.

But personally I would use example 2 from above:)

Good luck!


All times are GMT. The time now is 06:51 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018