playMaker

Author Topic: Rotate Skybox [SOLVED]  (Read 9727 times)

Michaelb

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 53
Rotate Skybox [SOLVED]
« 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.

« Last Edit: September 23, 2016, 05:52:09 AM by Michaelb »

Michaelb

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 53
Re: Rotate Skybox
« Reply #1 on: September 20, 2016, 04:45:22 AM »
No one??? :'(

Is it so hard to do with Playmaker???

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Rotate Skybox
« Reply #2 on: September 20, 2016, 02:17:25 PM »
Hi,
is this possible with unity in code?

Michaelb

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 53
Re: Rotate Skybox
« Reply #3 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

Michaelb

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 53
Re: Rotate Skybox
« Reply #4 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.

Michaelb

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 53
Re: Rotate Skybox
« Reply #5 on: September 22, 2016, 06:27:04 AM »
No luck .....

@jeanfabre can you kindly help me out on this one?

clandestine

  • Sr. Member
  • ****
  • Posts: 255
    • ЯKD.ZONE
Re: Rotate Skybox
« Reply #6 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.

Michaelb

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 53
Re: Rotate Skybox
« Reply #7 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) ???

Michaelb

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 53
Re: Rotate Skybox
« Reply #8 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.