playMaker

Author Topic: Get Set Vertex Colors  (Read 1805 times)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14593
  • Official Playmaker Support
    • View Profile
Get Set Vertex Colors
« on: April 23, 2013, 11:27:26 PM »
Hi,

 Following a thread ( http://hutonggames.com/playmakerforum/index.php?topic=3656.msg16864#msg16864), please find some new arrayMaker actions to get and set vertex colors. The set action can be performed every frame so you can actually adjust colors at will.

I will add these into the arrayMaker packages, but I need to do some more examples on other aspect of arrayMaker too, but I did not wanted to post pon this.

It could be made slightly more efficient, but I will also need to improve arrayMaker underlying framework to accept Color32, not just Colors, I guess it will be fine for now.
 
bye,

 Jean

escpodgames

  • Hero Member
  • *****
  • Posts: 686
    • View Profile
    • Assets
Re: Get Set Vertex Colors
« Reply #1 on: April 24, 2013, 01:52:49 AM »
Thank you so much!

escpodgames

  • Hero Member
  • *****
  • Posts: 686
    • View Profile
    • Assets
Re: Get Set Vertex Colors
« Reply #2 on: April 24, 2013, 02:41:54 PM »
Hi Jean,

This is great!
It would be AMAZING to be able to store all the current values of an array so there wont need to be a get action processed at runtime or a mesh with the vertex data held in the game. This would mean we could import a model with existing vertex color, store the colors in an array and then delete the model from our game (leaving one version for the game)

Thoughts?
« Last Edit: April 24, 2013, 05:32:46 PM by LampRabbit »