playMaker

Author Topic: Can Playmaker modify Scene Lighting???[SOLVED]  (Read 2627 times)

QFGlenn

  • Playmaker Newbie
  • *
  • Posts: 30
Can Playmaker modify Scene Lighting???[SOLVED]
« 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?
« Last Edit: December 08, 2015, 12:43:48 AM by jeanfabre »

QFGlenn

  • Playmaker Newbie
  • *
  • Posts: 30
Re: Can Playmaker modify Scene Lighting???
« Reply #1 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.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Can Playmaker modify Scene Lighting???
« Reply #2 on: November 17, 2015, 07:59:25 AM »
Hi,

 There is a "GetAmbientLight" action on the Ecosystem



Bye,

 Jean

QFGlenn

  • Playmaker Newbie
  • *
  • Posts: 30
Re: Can Playmaker modify Scene Lighting???
« Reply #3 on: December 07, 2015, 09:26:54 PM »
Hey, thanks Jean! I should have searched that. That ecosystem is awesome!