Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: QFGlenn on November 11, 2015, 09:34:56 PM

Title: Can Playmaker modify Scene Lighting???[SOLVED]
Post by: QFGlenn on November 11, 2015, 09:34:56 PM
I want to be able to use Playmaker to store Lighting Profiles(fog and fog color, ambient light and light color, skybox, etc etc). I want to store lighting profiles as a variable in Playmaker, so that I can switch environments in the same scene easily.

Is there something in Playmaker that can do that? Is that a planned feature?
Title: Re: Can Playmaker modify Scene Lighting???
Post by: QFGlenn on November 16, 2015, 09:27:35 PM
I received this reply from Jean
Quote
Hi,

 I don't think anything is planned around that, however it's totally possible to build this already.

you have several options.

-- using ArrayMaker, you can create some hashtables each with the various settings, and simply store the data this way during editing and then read these hashtables at runtime.

-- using an Fsm with dedicated States setting data, so you have one state per setting and you simply transit to the right state with a global event for example.

 Let me know if that helps. You shoudl ask this question on the PlayMaker forum, you will likely have people sharing their take on this.

Bye,

 Jean

So what I was wondering is how do I access the lighting settings at runtime?

you can access ambient light color, but what about Ambient intensity? Fog mode?

I'm trying to reduce the loadtime between scenes in a small project, and I was thinking of combining them all together into one master, but they all have completely different lighting situations.
Title: Re: Can Playmaker modify Scene Lighting???
Post by: jeanfabre on November 17, 2015, 07:59:25 AM
Hi,

 There is a "GetAmbientLight" action on the Ecosystem (http://j.mp/1Esn1mF)

(http://i.imgur.com/vxn61Dh.png)

Bye,

 Jean
Title: Re: Can Playmaker modify Scene Lighting???
Post by: QFGlenn on December 07, 2015, 09:26:54 PM
Hey, thanks Jean! I should have searched that. That ecosystem is awesome!