UFO:Alien Invasion
Development => Coding => Topic started 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.
-
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.
-
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?
-
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.
-
Yep, a higher value than 1.0 have definitively an impact.