Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: brisck1 on June 29, 2014, 04:14:53 PM

Title: Get Fog Start/End/Density/Color
Post by: brisck1 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!
Title: Re: Get Fog Start/End/Density/Color
Post by: jess84 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.
Title: Re: Get Fog Start/End/Density/Color
Post by: brisck1 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
Title: Re: Get Fog Start/End/Density/Color
Post by: brisck1 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!
Title: Re: Get Fog Start/End/Density/Color
Post by: jeanfabre 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 (https://hutonggames.fogbugz.com/default.asp?W1181) for convenience, but the links below will get you straight to them as well.


GetAmbientLight (http://www.fabrejean.net/projects/playmaker_ecosystem/preview?repository=jeanfabre%2FPlayMakerCustomActions_U3&file=Assets/PlayMaker Custom Actions/RenderSettings/GetAmbientLight.cs) (SetAmbientLight is an official action)
GetFlareStrength (http://www.fabrejean.net/projects/playmaker_ecosystem/preview?repository=jeanfabre%2FPlayMakerCustomActions_U3&file=Assets/PlayMaker Custom Actions/RenderSettings/GetFlareStrength.cs)  (SetFlareStrength is an official action)
GetFogColor (http://www.fabrejean.net/projects/playmaker_ecosystem/preview?repository=jeanfabre%2FPlayMakerCustomActions_U3&file=Assets/PlayMaker Custom Actions/RenderSettings/GetFogColor.cs)  (SetFogColor is an official action)
GetFogDensity (http://www.fabrejean.net/projects/playmaker_ecosystem/preview?repository=jeanfabre%2FPlayMakerCustomActions_U3&file=Assets/PlayMaker Custom Actions/RenderSettings/GetFogDensity.cs)  (SetFogDensity is an official action)
GetFogStartDistance (http://www.fabrejean.net/projects/playmaker_ecosystem/preview?repository=jeanfabre%2FPlayMakerCustomActions_U3&file=Assets/PlayMaker Custom Actions/RenderSettings/GetFogStartDistance.cs)   SetFogStartDistance (http://www.fabrejean.net/projects/playmaker_ecosystem/preview?repository=jeanfabre%2FPlayMakerCustomActions_U3&file=Assets/PlayMaker Custom Actions/RenderSettings/SetFogStartDistance.cs)
GetFogEndDistance (http://www.fabrejean.net/projects/playmaker_ecosystem/preview?repository=jeanfabre%2FPlayMakerCustomActions_U3&file=Assets/PlayMaker Custom Actions/RenderSettings/GetFogEndDistance.cs)  SetFogEndDistance (http://www.fabrejean.net/projects/playmaker_ecosystem/preview?repository=jeanfabre%2FPlayMakerCustomActions_U3&file=Assets/PlayMaker Custom Actions/RenderSettings/SetFogEndDistance.cs) 
GetHaloStrength (http://www.fabrejean.net/projects/playmaker_ecosystem/preview?repository=jeanfabre%2FPlayMakerCustomActions_U3&file=Assets/PlayMaker Custom Actions/RenderSettings/GetHaloStrength.cs)  (setHaloStrength is an official action)

 Bye,

 Jean
Title: Re: Get Fog Start/End/Density/Color
Post by: Dev_Sebas 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 (https://hutonggames.fogbugz.com/default.asp?W1181) for convenience, but the links below will get you straight to them as well.


GetAmbientLight (http://www.fabrejean.net/projects/playmaker_ecosystem/preview?repository=jeanfabre%2FPlayMakerCustomActions_U3&file=Assets/PlayMaker Custom Actions/RenderSettings/GetAmbientLight.cs) (SetAmbientLight is an official action)
GetFlareStrength (http://www.fabrejean.net/projects/playmaker_ecosystem/preview?repository=jeanfabre%2FPlayMakerCustomActions_U3&file=Assets/PlayMaker Custom Actions/RenderSettings/GetFlareStrength.cs)  (SetFlareStrength is an official action)
GetFogColor (http://www.fabrejean.net/projects/playmaker_ecosystem/preview?repository=jeanfabre%2FPlayMakerCustomActions_U3&file=Assets/PlayMaker Custom Actions/RenderSettings/GetFogColor.cs)  (SetFogColor is an official action)
GetFogDensity (http://www.fabrejean.net/projects/playmaker_ecosystem/preview?repository=jeanfabre%2FPlayMakerCustomActions_U3&file=Assets/PlayMaker Custom Actions/RenderSettings/GetFogDensity.cs)  (SetFogDensity is an official action)
GetFogStartDistance (http://www.fabrejean.net/projects/playmaker_ecosystem/preview?repository=jeanfabre%2FPlayMakerCustomActions_U3&file=Assets/PlayMaker Custom Actions/RenderSettings/GetFogStartDistance.cs)   SetFogStartDistance (http://www.fabrejean.net/projects/playmaker_ecosystem/preview?repository=jeanfabre%2FPlayMakerCustomActions_U3&file=Assets/PlayMaker Custom Actions/RenderSettings/SetFogStartDistance.cs)
GetFogEndDistance (http://www.fabrejean.net/projects/playmaker_ecosystem/preview?repository=jeanfabre%2FPlayMakerCustomActions_U3&file=Assets/PlayMaker Custom Actions/RenderSettings/GetFogEndDistance.cs)  SetFogEndDistance (http://www.fabrejean.net/projects/playmaker_ecosystem/preview?repository=jeanfabre%2FPlayMakerCustomActions_U3&file=Assets/PlayMaker Custom Actions/RenderSettings/SetFogEndDistance.cs) 
GetHaloStrength (http://www.fabrejean.net/projects/playmaker_ecosystem/preview?repository=jeanfabre%2FPlayMakerCustomActions_U3&file=Assets/PlayMaker Custom Actions/RenderSettings/GetHaloStrength.cs)  (setHaloStrength is an official action)

 Bye,

 Jean
Great addition Jean.
Thanks for that.
Title: Re: Get Fog Start/End/Density/Color
Post by: brisck1 on July 15, 2014, 04:44:50 PM
Thanks so much, can't wait to try them out!
Title: Re: Get Fog Start/End/Density/Color
Post by: brisck1 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.
Title: Re: Get Fog Start/End/Density/Color
Post by: jeanfabre on October 20, 2014, 01:42:54 AM
Hi,

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

Bye,

 Jean
Title: Re: Get Fog Start/End/Density/Color
Post by: jeanfabre 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