Playmaker Forum
PlayMaker Feedback => Action Requests => Topic started 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!
-
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.
-
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
-
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!
-
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
-
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.
-
Thanks so much, can't wait to try them out!
-
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.
-
Hi,
d'oh... I'll correct that yes, thanks for spotting this.
Bye,
Jean
-
Hi,
this is fixed, sorry about that. WARNING, you will need to swap your actions now in your various fsm.
Bye,
Jean