Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by BrentShanahan1 · Jun 01, 2015 at 02:58 PM · transformskybox

Skybox horizon adjustment

I have a situation where there is a cliff you can look off over the ocean. When you look across the water down at the ocean level it aligns with the skybox horizon just fine and looks realistic.

When you look from the top of the cliff you can see below the horizon of the skybox and it looses all realism. The player will never be down near the edge of the water so I just need to adjust the horizon down a bit. so that it looks correct from the cliff.

Is there a way to shift or tilt the skybox to move the horizon down? I know in Maya there is an adjustment for that but I haven't been able to find anything similar in Unity.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
5

Answer by domiii · Jul 04, 2015 at 09:55 AM

The way I see it, you have three options:

1. Add fog

To me, it appears that the easiest way of dealing with this is to add fog to hide your Skybox's "underbelly". The Global Fog Package is a standard asset and quite powerful! Here is how it goes:

  1. Add the "Effects" standard package.

  2. Download this Extended Global Fog script and copy it into your folder (to enable more customization options). Note that the author posted multiple versions through-out the thread to fix bugs reported by others. Very helpful fella!

  3. Add the GlobalFog script component to your camera.

  4. Make sure to enable "Affect Sky Box"!

  5. Global fog uses the color and other settings defined under Windows -> Lighting -> Fog.

  6. However, as explained here, enabling Unity-standard fog causes a hell lot of bugs when used in conjunction with the extended fog script. So what you want to do is: (1) enable fog, (2) make the changes, (3) disable standard fog again.

  7. You are done! Fine-tune to your liking. :)

    2. Custom Skybox texture/material

Unity's Skybox is defined by a material applied to a tessellated sphere or box; so you can just make some adjustments to your Skybox texture, and move down or otherwise eliminate it's "horizon" using Photoshop, Gimp, Blender etc.

3. Roll your own Skybox shader.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image EthanFischer · May 15, 2020 at 02:27 AM 0
Share

Just wanted to say that adding fog works with HDRP in 2019.3 as well. Just need to go to the Sky and Fog volume and make sure the Fog component is enabled and tweaked to your liking.This answer nudged me in that right direction! Thanks

avatar image
4

Answer by Marlk · Oct 29, 2016 at 10:19 AM

I know this is a bit late but for anyone else that sees this: If you use the Mobile Skybox shader you can add Y offset to all the textures. It will screw up the skybox top a little bit but if seeing the bottom (eg looking down from aeroplan) is a priority it shouldn't matter.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image cl0n · Apr 30, 2019 at 11:42 AM 0
Share

Wow, 2019 and I found it helpful. Thanks a ton!

avatar image
0

Answer by Bryarey · Apr 14, 2021 at 07:02 PM

Again, it's late, but, probably, it can be useful for somebody: I created custom skybox shader with vertical scale/offset feature, and HSV controls for simple coloring and reuse skybox textures:

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

26 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Procedural Skyboxes Based on Scene Data 1 Answer

Normal Texture to Skybox 0 Answers

Sun coordination with Skybox 2 Answers

transform.RotateAround problems 2 Answers

Error with transform.RotateAround when I use a variable for the last parameter... 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges