Forum Groups
  All forums
    Help & Feedback
      Work in progress
      Finished Art
      Non-Max related

Maxunderground news unavailable

Light Flicker for fire
show user profile  s_purs
Hey guys,

im trying to do a flickering omni light for a fire i have in my scene. Have it set up, go to curves and add a noise modifier into the multiply and it flickers.

but its flickering too strongly- ie it goes from very bright to almost off, when the fire is quite stable. so i want to dampen the effect.

ive played about and the only way i can seem to control the size of the curves is to change the strength- at the moment its on 5- but when you do that then the light gets darker? i right click and go into some options and can see there are options to set lower and upper limits on the controller, but they are greyed out. this would do perfectly, as then i can set the lower limit to 3 or 4 and then it would only flicker between about a multiplyer level of 6 and 4.

i have looked online with little luck, and have the 'deconstructing the elements' book, but in the fire tutorials on there they dont have a noise for the fire flicker, its just a constant intensity

anybody know how to set this lower limit? or raise the curve at all so the lowest isnt dark atleast. or dampen the effect somehow? cheers
read 503 times
8/3/2009 6:40:51 AM (last edit: 8/3/2009 6:41:49 AM)
show user profile  BishBashRoss2
Nick Clark made a script for this but I'm not sure if it works with the latest versions of max.

read 492 times
8/3/2009 7:04:14 AM (last edit: 8/3/2009 7:04:14 AM)
show user profile  s_purs
nice! thanks alot, will have a play about now and see if it helps
read 488 times
8/3/2009 7:11:15 AM (last edit: 8/3/2009 7:11:15 AM)
show user profile  s_purs
anybody know how to remove a noise controller from the multiplier of a light? cant seem to get rid of it now its on.

in the curve editor, under the controller menu bar the 'delete controller' is greyed out

read 472 times
8/3/2009 8:31:33 AM (last edit: 8/3/2009 8:33:24 AM)
show user profile  Garp
You can replace it by a bezier float, which corresponds to the implicit default.

read 468 times
8/3/2009 8:41:19 AM (last edit: 8/3/2009 8:41:19 AM)
show user profile  s_purs

dammit looked at that script and it only works by turning the light on and off, it wont go between any intensities other than the on value and the off value (i believe)

so fine for a light, but not for a fire, when i need it to be at varying intersities between 2 values =(

anybody else got any ideas/scripts?

read 466 times
8/3/2009 8:43:35 AM (last edit: 8/3/2009 8:43:35 AM)
show user profile  uplate
if you add a float list to the light first, then have the first one in the lista bezier and add the noise below can the control light with the bezier
if that makes sense :-)
read 454 times
8/3/2009 9:16:19 AM (last edit: 8/3/2009 9:16:19 AM)
show user profile  s_purs
didnt get a chance to work out what you suggested uplate, as my friend on my course told me he had written a script for it, which bobo had edited.


rollout MyRoll "Fire!"
spinner min1 "Min Light:" fieldwidth:50 range:[0,1000,0]
spinner max1 "Max Light:" fieldwidth:50 range:[0,1000,1]
spinner sframe "Start Frame:" fieldwidth:50 range:[-100000,100000,animationrange.start]
spinner eframe "End Frame:" fieldwidth:50 range:[-100000,100000,animationrange.end]
button submit "Affect" across:2 align:#left width:62
button help "Help" align:#right width:62

on help pressed do (
messagebox "Hi folks. \n Min Light: Lowest value for the light multiplier to go to. \n Max Light: The Max it can go to. \n Start Frame: The first frame for flickering to begin. \n End Frame: The last frame for flickering to continue."
on submit pressed do (
animate on(
for t in sframe.value to eframe.value by 3 do
at time t
for o in selection where superclassof o == Light do
o.multiplier = random min1.value max1.value
)--end animate
DestroyDialog MyRoll
)--end pressed
)--end rollout
createdialog MyRoll height:120 width:150

Code by Dan Grover:

read 436 times
8/3/2009 9:41:38 AM (last edit: 8/3/2009 9:42:32 AM)
#Maxforums IRC
Open chat window