UFO:Alien Invasion

Development => Coding => Topic started by: Crystan on November 02, 2011, 02:51:57 pm

Title: [REQ] dynamic lightning color tool
Post by: Crystan on November 02, 2011, 02:51:57 pm
Now that the dynamic lightning for ptls finally works again (a epic thx for that), id like to add the dynamic color information to them. It would be cool if someone could write a little program that helps me with that. I just need a color picker, a regulator for the intensity and a output of both in a text box. I attached a concept picture.
Title: Re: [REQ] dynamic lightning color tool
Post by: H-Hour on November 02, 2011, 08:15:09 pm
Gimp and Photoshop's color selectors will tell you RGB values between 0 and 255. To find the *.* equivalent used in UFO:AI, just take the value and divide it by 255.
Title: Re: [REQ] dynamic lightning color tool
Post by: Crystan on November 02, 2011, 10:04:27 pm
Good to know thx, will do it this way then. But still for a lazy guy like me a bit inconvenient. :D

Edit:
Are you sure it works this way? Because iam sure something like "B 255" isnt 1.0 because i think a value like 2.0 still increase the color. Probably mattn knows more?
Title: Re: [REQ] dynamic lightning color tool
Post by: H-Hour on November 03, 2011, 10:39:09 am
Good to get clarification, but I believe the datatype is the same as the UFO scripts, and I have never seen anything more than 1.0 there.
Title: Re: [REQ] dynamic lightning color tool
Post by: Crystan on November 03, 2011, 03:37:52 pm
Yep, a higher value than 1.0 have definitively an impact.