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 FireShishi · Sep 30, 2013 at 05:29 PM · shaderwatersimulationunderwater

Caustic underwater effect

I want to make a as realistic as possible underwater effect. Any ideas are welcome.

I have been working with fog but that isn't good enough. Now I figured out that a caustic effect would help too. I have been googling for it and expect for one downloadable project I haven't found any tutorial for it.

So my question is how do I make a caustic effect in unity3d(I'm working with C#).

Any other tips for making the underwater effect as realistic as possible are very appreciated.

Thanks in advance

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
1
Best Answer

Answer by Hoeloe · Oct 01, 2013 at 12:20 AM

One way you can do this (far from the best way, but it's quick, easy and it works) is to use Unity's built-in projectors. There is a shader called Projector/Additive, which is helpful. Then, you just get an animated texture, save each frame as a separate image, and swap out the texture on the material during run time. This will display the caustic, animated, mapping to the sea/river/lake etc. bed. This method will also overlay the caustic on top of dynamic objects, like the player, who might be underwater, too.

To make an even more realistic effect, you might want to look into making godrays to go along with it, which will give you the shafts of light you sometimes see underwater.

Comment
Add comment · Show 3 · 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 FireShishi · Oct 01, 2013 at 11:45 AM 0
Share

Thanks for you respond I have tried it and it worked pretty well. Except for the Projector/Additive thing. I worked with normal light projector and a script I found earlier which didn't made any sense to me till now.

http://answers.unity3d.com/questions/39572/using-a-projector-to-place-a-animated-image-on-a-t.html

I'm still not quite satisfied about the water but my question about the caustic has been answered.

For those who don't know where to find the projector. You can import the package under Assets > import package > projectors

avatar image Hoeloe · Oct 01, 2013 at 12:06 PM 0
Share

Well, the Additive one is more a matter of preference, and it depends on your caustic texture. I found it gave a good effect when I used it, but you may prefer others.

avatar image FireShishi · Oct 28, 2013 at 03:28 PM 0
Share

I found a little problem with the display of the caustic. If I get lower on the terrain it will give some empty blocks without the caustic effect any idea on how to fix it?

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

15 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

Related Questions

Subnautica like underwater effect / rays 0 Answers

underwater shader 1 Answer

Mask water for underwater effects 0 Answers

How to get caustics only show underwater? 1 Answer

Why is my Pro Water Material Grey? 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