Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Michaelb on September 19, 2016, 03:26:36 PM

Title: Rotate Skybox [SOLVED]
Post by: Michaelb on September 19, 2016, 03:26:36 PM
Hi to all and thank you in advance for your help on this topic.

I want to rotate the Skybox in the environment lighting tab.

Have several skybox cube map materials that i assign to Skybox.

And i want to rotate the skybox with a slider.

A second part is that i want to control the brightness of the skybox with a slider as well.

I am on a tight deadline and what seemed so eazy turned out to be a nightmare.

Thank you.

Title: Re: Rotate Skybox
Post by: Michaelb on September 20, 2016, 04:45:22 AM
No one??? :'(

Is it so hard to do with Playmaker???
Title: Re: Rotate Skybox
Post by: djaydino on September 20, 2016, 02:17:25 PM
Hi,
is this possible with unity in code?
Title: Re: Rotate Skybox
Post by: Michaelb on September 20, 2016, 02:21:52 PM
Hi , thanks for the reply ,

found several topics

http://answers.unity3d.com/questions/923064/unity-5-skybox-not-rotating.html

and just now i found the camera component

https://docs.unity3d.com/Manual/class-Skybox.html

Will try this.

P.S

Other solution in Unity scripting do not work
Title: Re: Rotate Skybox
Post by: Michaelb on September 20, 2016, 04:14:58 PM
I think i solved it!!!!

Will post solution shortly for other that face the same issue.

Thank you for the help in general.
Title: Re: Rotate Skybox
Post by: Michaelb on September 22, 2016, 06:27:04 AM
No luck .....

@jeanfabre can you kindly help me out on this one?
Title: Re: Rotate Skybox
Post by: clandestine on September 22, 2016, 07:05:34 AM
I think you cant do it, you can map a sky panorama on a dome (half sphere) and rotate that.
Title: Re: Rotate Skybox
Post by: Michaelb on September 22, 2016, 07:28:50 AM
i need to light the scene with the HDRI as well.

Cant we make a quick action (Playmaker Team) ???
Title: Re: Rotate Skybox
Post by: Michaelb on September 23, 2016, 05:51:38 AM
Found solution with second camera.

First camera gets depth only.
Second camera get skybox.
Parent second camera to the first camera so it shows exactly the same on both.
First camera renders the scene , second the skybox.
If you rotate the second camera it rotates the skybox and you see it through the first one ;).

Second cameras depth must be lower that the first camera depth in the camera settings.

Thats it.