playMaker

Author Topic: Get Fog Start/End/Density/Color  (Read 5732 times)

brisck1

  • Playmaker Newbie
  • *
  • Posts: 40
Get Fog Start/End/Density/Color
« on: June 29, 2014, 04:14:53 PM »
So im trying to put together a FSM that smoothly changes fog values from one value to another. Although I can set the end fog values I first need to grab the current fog values in order to be able to interpolate between the current and new values. The problem is that there are no Get Fog Start/End/Density/Color actions in PM available and im not really sure how to construct one.

Any assistance is much appreciated!

jess84

  • Hero Member
  • *****
  • Posts: 515
Re: Get Fog Start/End/Density/Color
« Reply #1 on: June 29, 2014, 07:26:18 PM »
I can't check myself as Fog is Unity Pro only (I think), but the 'Get Property' and 'Set Property' playmaker actions are what you need. Drag the object holding the fog settings onto the action, and you should then be able to select whatever you need on the dropdown.

brisck1

  • Playmaker Newbie
  • *
  • Posts: 40
Re: Get Fog Start/End/Density/Color
« Reply #2 on: June 30, 2014, 06:28:20 PM »
Hi Jess, I'm actually talking about the fog properties in Render settings, not in the post process effect, so the set properties technique isn't possible

brisck1

  • Playmaker Newbie
  • *
  • Posts: 40
Re: Get Fog Start/End/Density/Color
« Reply #3 on: July 14, 2014, 02:33:24 PM »
Bumping as I could really use some help with this! If I could just figure out how to get a Render Setting property i'd be able to do this myself, but i'm stumped!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Get Fog Start/End/Density/Color
« Reply #4 on: July 15, 2014, 02:49:44 PM »
Hi,

 ok, Created all the missing actions to access all the RenderSettings properties:


I have put them actions on the Ecosystem for convenience, but the links below will get you straight to them as well.


GetAmbientLight (SetAmbientLight is an official action)
GetFlareStrength  (SetFlareStrength is an official action)
GetFogColor  (SetFogColor is an official action)
GetFogDensity  (SetFogDensity is an official action)
GetFogStartDistance   SetFogStartDistance
GetFogEndDistance  SetFogEndDistance 
GetHaloStrength  (setHaloStrength is an official action)

 Bye,

 Jean

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • Blog
Re: Get Fog Start/End/Density/Color
« Reply #5 on: July 15, 2014, 04:30:44 PM »
Hi,

 ok, Created all the missing actions to access all the RenderSettings properties:


I have put them actions on the Ecosystem for convenience, but the links below will get you straight to them as well.


GetAmbientLight (SetAmbientLight is an official action)
GetFlareStrength  (SetFlareStrength is an official action)
GetFogColor  (SetFogColor is an official action)
GetFogDensity  (SetFogDensity is an official action)
GetFogStartDistance   SetFogStartDistance
GetFogEndDistance  SetFogEndDistance 
GetHaloStrength  (setHaloStrength is an official action)

 Bye,

 Jean
Great addition Jean.
Thanks for that.

brisck1

  • Playmaker Newbie
  • *
  • Posts: 40
Re: Get Fog Start/End/Density/Color
« Reply #6 on: July 15, 2014, 04:44:50 PM »
Thanks so much, can't wait to try them out!

brisck1

  • Playmaker Newbie
  • *
  • Posts: 40
Re: Get Fog Start/End/Density/Color
« Reply #7 on: October 19, 2014, 06:52:48 PM »
Hi Jean,
I just wanted to reply to this thread as I noticed when trying out the actions for Set Fog End and Set Fog Start, that they are actually labelled incorrectly to the opposite of what they should be (Fog Start is labelled as Fog End and Fog End labelled as Start). I fixed the scripts myself but I thought it was worth making a note of here so you can fix the actions on your end too.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Get Fog Start/End/Density/Color
« Reply #8 on: October 20, 2014, 01:42:54 AM »
Hi,

 d'oh... I'll correct that yes, thanks for spotting this.

Bye,

 Jean

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Get Fog Start/End/Density/Color
« Reply #9 on: October 20, 2014, 06:54:12 AM »
Hi,

 this is fixed, sorry about that. WARNING, you will need to swap your actions now in your various fsm.

 Bye,

 Jean