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
0
Question by Gebreel · Mar 02, 2015 at 04:02 PM · watereffectproblem during runtimeunderwater

Underwater effect when entering down a slope

Hello, I am working on an island game - that means lots of water [ocean, lakes, rivers]

I have a problem with implementing the underwater effect - I've searched everywhere: google, youtube, Unity answers and found nothing.

The underwater effect I have right now is a simple [make fog more dense IF camera.y is lower than the water level] script, it does work both when you are underwater AND when you go out.

The problem appears when I slowly walk down a slope, into the water - there is a moment when I see half underwater, and half over it - at the start, the fog is minimal and I can clearly see under water area without any fog, then when I slowly go deeper the fog becomes more dense BUT it happens both underwater AND over it - all of it while still seeing the edge of "water" plane in the middle. It is ugly, and unacceptable.

Are there any tutorials or tricks to make the process seamless? I am using unity free [got no money to get the pro one, and not gonna ARR!, so only free features available for me]

I attached a screenshot of what exactly is the problem: Notice the too-fogged mountains in the distance - this happens when the underwater effect kicks in [they are more visible normally], and also the plane of the water being "cut" and visible. On the second screenshot you can see how the mountains are supposed to look

alt text alt text

water-problem.png (461.3 kB)
look.png (373.3 kB)
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Gebreel · Mar 02, 2015 at 04:43 PM

One really simple [not sure if also simple to implement] solution I can think of would be displaying a flat texture right in front of the players face, that would level itself with the edge of water plane automatically - would look weird if player looked straight up, but still - could fix most of the ugglyness.

Any idea on how to do it? Would it be hard, or significantly drop the fps?

Here's a mockup of how it could look: alt text


water-problem2.png (328.2 kB)
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

20 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

Related Questions

need water 1 Answer

Make a water effect 1 Answer

underwater effect 2 Answers

Subnautica like underwater effect / rays 0 Answers

How can I do such as that effect for my water sprite in Unity? 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