dennis Posted March 3, 2012 Share Posted March 3, 2012 Hello all, I'm just losing my mind,.. I'm freaking out here. Didn't know how hard it could be to let a light flicker. Can someone please help me to let a simple point light flicker ? My computer is losing control over gravity if you know what I mean (for the ones who don't know: it can fly by now) Cheers Quote Link to comment Share on other sites More sharing options...
Road Kill Kenny Posted March 4, 2012 Share Posted March 4, 2012 Change the color of the light rather that it's intensity. Have a look at the firepit script. It is the trick way to make it faster Quote STS - Scarlet Thread Studios AKA: Engineer Ken Fact: Game Development is hard... very bloody hard.. If you are not prepared to accept that.. Please give up now! Link to comment Share on other sites More sharing options...
dennis Posted March 4, 2012 Author Share Posted March 4, 2012 Change the color of the light rather that it's intensity. Have a look at the firepit script. It is the trick way to make it faster okay thanks, but what part of the script do I need to use for it ? Quote Link to comment Share on other sites More sharing options...
Marleys Ghost Posted March 4, 2012 Share Posted March 4, 2012 okay thanks, but what part of the script do I need to use for it ? The part that varies the color of the light. Quote AMD Bulldozer FX-4 Quad Core 4100 Black Edition 2 x 4GB DDR3 1333Mhz Memory Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5 Windows 7 Home 64 bit BlitzMax 1.50 • Lua 5.1 • MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro 3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET LE 2.5/3.4 • Skyline • UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0 Marleys Ghost's YouTube Channel • Marleys Ghost's Blog "I used to be alive like you .... then I took an arrow to the head" Link to comment Share on other sites More sharing options...
Naughty Alien Posted March 4, 2012 Share Posted March 4, 2012 glow:Double lum:Double flicker_delay:Double color:TVec3 light_intensity:Double light:TLight 'Somewhere in your main loop '------------------------------------- glow = Cos(MilliSecs()) * flicker_delay lum = (Abs(glow * Sin(glow)) * 255) * Rnd(.1, .8) EntityColor (light, Vec4((color.x + lum), (color.y + (lum / 2)), (color.z + lum), light_intensity)) I hope this helps.. Quote Link to comment Share on other sites More sharing options...
dennis Posted March 5, 2012 Author Share Posted March 5, 2012 @naughty alien, thanks... but how to do this in LUA?? is there another way ? but it helps, when I look very clear and concentrated to it. some LUA code pops up in my brains. cheers Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.