playMaker

Author Topic: Set Material HDR Color  (Read 5791 times)

terri

  • Sr. Member
  • ****
  • Posts: 386
    • terrivellmann.tumblr.com
Set Material HDR Color
« on: April 04, 2016, 09:56:01 AM »
I using this for setting the Emission color of a material where the HDR combined with a camera's bloom effect creates a glow.

Its not perfect because the color picker in the action behaves differently than the material's, but at least the brightness isn't clamped to 1.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Set Material HDR Color
« Reply #1 on: April 06, 2016, 01:44:20 AM »
Hi,

 Using the SetMaterialColor action doesn't work? if you use '_EmissionColor' as the namedcolor property?

Bye

 Jean

terri

  • Sr. Member
  • ****
  • Posts: 386
    • terrivellmann.tumblr.com
Re: Set Material HDR Color
« Reply #2 on: April 06, 2016, 10:47:44 AM »
no because it clamps the maximum brightness to 1
related to this: http://docs.unity3d.com/Manual/HDRColorPicker.html

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Set Material HDR Color
« Reply #3 on: April 07, 2016, 01:32:38 AM »
Hi,

That's very good. thanks for the information.

Is it just the emission color that is affected?

 Bye,

 Jean

terri

  • Sr. Member
  • ****
  • Posts: 386
    • terrivellmann.tumblr.com
Re: Set Material HDR Color
« Reply #4 on: April 07, 2016, 04:34:31 PM »
Hm, not sure. Any HDR color I guess, though emission is the only one I know of.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Set Material HDR Color
« Reply #5 on: April 15, 2016, 01:47:19 AM »
Hi,

 Ok. Care to put it on the Ecosystem? I can do it if you don't think you'll be making more actions.

Bye,

 Jean

terri

  • Sr. Member
  • ****
  • Posts: 386
    • terrivellmann.tumblr.com
Re: Set Material HDR Color
« Reply #6 on: April 15, 2016, 08:12:27 PM »
I never put time into learning how to do that, I'll look into it!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Set Material HDR Color
« Reply #7 on: May 02, 2016, 03:25:52 AM »
Hi,

 Ok, it's on the Ecosystem now.

 Bye,

 Jean

Gua

  • Beta Group
  • Sr. Member
  • *
  • Posts: 309
    • Andrii Vintsevych
Re: Set Material HDR Color
« Reply #8 on: December 24, 2018, 02:03:15 PM »
in Unity 2018.3 this action shows this error


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Set Material HDR Color
« Reply #9 on: January 14, 2019, 03:07:54 AM »
Hi,

 Can you provide a sample project? I can't reproduce, I must be missing something.

Bye,

 Jean