Playmaker Forum

PlayMaker Help & Tips => PlayMaker Tips & Tricks => Topic started by: Baer on February 10, 2017, 12:07:02 PM

Title: How to rotate skybox with Playmaker
Post by: Baer on February 10, 2017, 12:07:02 PM
How to rotate skybox with Playmaker
Easy, cheap and quick

Hi, everyone.
In my mobile game I want more live actions with objects and environments, but with less hardware requirements. One of my case – rotate standard 6-sided skybox with integrated “rotate” slider. Sounds simple, looks cute and works well even on old devices.
And how do it with lovely Playmaker?

FSM screenshot (https://image.ibb.co/nBS4ov/2017_02_10_19_50_42.png)
State 1 screenshot (https://image.ibb.co/iybava/2017_02_10_19_50_54.png)
State 2 screenshot (https://image.ibb.co/iMWm1F/2017_02_10_19_51_17.png)
Live sample (https://image.ibb.co/hAbx8v/Skybox_Rotation01.gif) (14mb gif, Time set to 500)

You can create your own Skybox-material with code or with shader tool like Shader Forge, uShader etc. and interact with it with this simple trick.
Hope, my small guide will be useful for someone :)
Title: Re: How to rotate skybox with Playmaker
Post by: jeanfabre on February 15, 2017, 02:24:27 AM
Hi,

Cool, thanks for this, but one thing.

 maybe you should not loop a state using a finish transition and instead set your actions to "everyFrame".

 can you confirm this for your rotating fsm?

Bye,

 Jean