generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Anyone have a realistic pointlight flicker algorithm?

Previous Thread :: Next Thread 
iIikeyou is not online. 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 is not online. iIikeyou
Joined: 07 Mar 2012
Total Posts: 1659
02 May 2014 01:47 PM
ok
Report Abuse
TheNextEvolution is not online. TheNextEvolution
Joined: 08 Apr 2010
Total Posts: 1624
02 May 2014 01:51 PM
What? you mean like a light that goes on and off by its self?
Report Abuse
iIikeyou is not online. 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 is not online. 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
TheNextEvolution is not online. TheNextEvolution
Joined: 08 Apr 2010
Total Posts: 1624
02 May 2014 02:22 PM
Why do you want to change it range why not just disable the light?
Report Abuse
gijsbel11 is not online. gijsbel11
Joined: 07 Feb 2009
Total Posts: 4223
02 May 2014 02:28 PM
Indeed, my script disables and enables it.
Report Abuse
iIikeyou is not online. 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 is not online. iIikeyou
Joined: 07 Mar 2012
Total Posts: 1659
02 May 2014 05:17 PM
bump:(
Report Abuse
L0cky2013 is not online. 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 is not online. poopisman
Joined: 06 Apr 2014
Total Posts: 23
02 May 2014 05:24 PM
PETER GRIFFIN FARTS HAHAHAHAHA
Report Abuse
iIikeyou is not online. 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 is not online. 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 is online. 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
TheNextEvolution is not online. TheNextEvolution
Joined: 08 Apr 2010
Total Posts: 1624
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image