Post by Red Moon Entertainment on Feb 14, 2017 17:41:43 GMT
I was wondering how to make rotate the skybox on Unity. I tried using two cameras (one for object and the other, which rotate, for the skybox) but I had some problem. Could anyone provide a script (I use Unity 5.3.5f1) to make it rotate?
I think you can create a sphere, add a panoramic picture, and try using the same script I showed you. (That's what I did in 3dRad.) But if you want something a little better, there are always assets and tutorials on youtube. (hopefully.)
Post by Red Moon Entertainment on Feb 14, 2017 20:48:41 GMT
Well, to be honest I don't know how to apply a panoramic picture and stuff like that to a sphere but, I discovered that all I need is a script to link the movements of two cameras ("Camera2" moves as "Camera1").
Easiet than you might think. All that you need to do is to move the texture accros the mesh (a skybox in this instance). So animate the texture and you're set to go.
I'll upload an example later if you ask, but you should get an answer by simply Googling "animating texture unity 3d".
The other easier method may be to just rotate the skybox. I found that using the physics (rigidbody component) to rotate a object is much easier but be sure to limit the speed and make the object kinematic.The reason for using the physics is that you can ramp up the weight of the object and in the script you can use much larger values to rotate, because lets be honest, using 0.002 values is irritating as hell.
Post by Red Moon Entertainment on Feb 16, 2017 14:11:42 GMT
I'm a little confused ... How can I apply the Rigidbody component to a skybox considering that cubemaps aren't in the object list? There's something wrong in the way I create skyboxes? I just press Right-click on the assets window and press Create/Legacy/Cubemap
However I'll try to animate the texture. Thx for reply
Feb 16, 2017 14:11:42 GMT
-I CRI EVRI TIEM-
A Steam user talking about Life Is Strange
Shoutbox is not guest accessible anymore! If you still want to view or chat in it, please, login or register!
3dradboards.org is always secure!
-- We help others to find their answers and to show their possibilities! --
Be a part of the community today!
"You are always welcome!"