playMaker

Author Topic: Color custom actions, HSV based  (Read 4658 times)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Color custom actions, HSV based
« on: October 28, 2013, 08:37:30 AM »
Hi,

 Following a very interesting session, I created several color actions to work with colors. They handle color as HSV values, which means a lot more intuitive controls.

Typically, it's very difficult to change a color brightness with rgb, but here, you simply get a color and save it as a HSV color edit the "Saturation" property and get the resulting color back into rgb. These actions work everyframe is wanted to that it can be animated as well ( for exampel cycling trhough all colors, by simply animating the "Hue" value.

https://hutonggames.fogbugz.com/default.asp?W1145

 Bye,

 Jean

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Color custom actions, HSV based
« Reply #1 on: October 28, 2013, 09:31:30 AM »
Way to go, Jean!

I was messing around with changing colors like this with gui sliders but having a really hard time manipulating the color variables, this made it easy.

Webplayer where you can now adjust the thruster colors with a gui slider in Oomph.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Color custom actions, HSV based
« Reply #2 on: October 29, 2013, 02:34:32 AM »
Hi,

 All credits go to Eric5h5, the Unity semi god guru, and Magnus from http://www.tumblehead.com/ who I created these actions for.

Bye,

 Jean