iIikeyou
|
  |
| Joined: 07 Mar 2012 |
| Total Posts: 1659 |
|
|
| 02 May 2014 01:26 PM |
I've been trying to make an algorithm changing the range of a pointlight for a realistic flicker effect but it never looks good. Does anyone have one that works well?
|
|
|
| Report Abuse |
|
|
iIikeyou
|
  |
| Joined: 07 Mar 2012 |
| Total Posts: 1659 |
|
| |
|
|
| 02 May 2014 01:51 PM |
| What? you mean like a light that goes on and off by its self? |
|
|
| Report Abuse |
|
|
iIikeyou
|
  |
| Joined: 07 Mar 2012 |
| Total Posts: 1659 |
|
|
| 02 May 2014 02:10 PM |
Yeah, just some kind of flickering for a pointlight by changing it's range
ive tried stuff like
while wait(math.random(2,5))do for _=1,math.random(4,8)do script.Parent.Range=math.random(5,12) wait(.1) end script.Parent.Range=14 end
but it just doesn't look realistic and i don't know how to make it look better :( |
|
|
| Report Abuse |
|
|
gijsbel11
|
  |
| Joined: 07 Feb 2009 |
| Total Posts: 4223 |
|
|
| 02 May 2014 02:11 PM |
while wait(math.random(1,20)/10) do script.Parent.Enabled = not script.Parent.Enabled end |
|
|
| Report Abuse |
|
|
|
| 02 May 2014 02:22 PM |
| Why do you want to change it range why not just disable the light? |
|
|
| Report Abuse |
|
|
gijsbel11
|
  |
| Joined: 07 Feb 2009 |
| Total Posts: 4223 |
|
|
| 02 May 2014 02:28 PM |
| Indeed, my script disables and enables it. |
|
|
| Report Abuse |
|
|
iIikeyou
|
  |
| Joined: 07 Mar 2012 |
| Total Posts: 1659 |
|
|
| 02 May 2014 03:19 PM |
I want it to look realistic, and real flickering lights don't completely turn off and on, they dim and go back to a higher brightness quickly. That's why I've tried changing brightness and range properties, range seems to look better.
But I still can't find an algorithm that looks good |
|
|
| Report Abuse |
|
|
iIikeyou
|
  |
| Joined: 07 Mar 2012 |
| Total Posts: 1659 |
|
| |
|
L0cky2013
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 1446 |
|
|
| 02 May 2014 05:24 PM |
while wait() do math.randomseed(tick()) for i = 1, math.random(1,15) do wait() Light.Enabled = false end Light.Enabled = true end
|
|
|
| Report Abuse |
|
|
poopisman
|
  |
| Joined: 06 Apr 2014 |
| Total Posts: 23 |
|
|
| 02 May 2014 05:24 PM |
| PETER GRIFFIN FARTS HAHAHAHAHA |
|
|
| Report Abuse |
|
|
iIikeyou
|
  |
| Joined: 07 Mar 2012 |
| Total Posts: 1659 |
|
|
| 02 May 2014 05:57 PM |
| I don't want it to just enable and disable, I need it to be realistic... :( |
|
|
| Report Abuse |
|
|
Skyman772
|
  |
| Joined: 20 Mar 2012 |
| Total Posts: 9305 |
|
|
| 02 May 2014 06:19 PM |
while wait(math.random(1,6))do for i=1,math.random(4,8)do script.Parent.Range=math.random(6,12) wait(.1) end script.Parent.Range=14 end
try that idk |
|
|
| Report Abuse |
|
|
moryo7
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 5028 |
|
|
| 02 May 2014 06:20 PM |
| Just to put it out there: I wouldn't suggest going for realism in roblox.. It's not developed enough for that yet. |
|
|
| Report Abuse |
|
|
|
| 02 May 2014 08:37 PM |
| you should just go with the flickering like I have I could show it to you it's epiccccc YOU CAN"T HAS IT DOH C: |
|
|
| Report Abuse |
|
|