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
1
Question by Mattias · Oct 08, 2010 at 03:31 PM · camerawatertintswim

color Tint camera

I'm trying to make a swimming script and am somewhat successful, but what i need now is, when the main camera is under water i would like to tint the whole screen a blue-ish color to simulate the underwater feeling. How would i go about doing this?

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

5 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by matyicsapo · Oct 08, 2010 at 06:32 PM

If you have a Pro license(or using the 30day free trial) you have access to image post processing effects. You can check out the effect in this project or just have a look at it via the webplayer here.

Otherwise you could use a cheap trick maybe by making a plane the child of the camera facing it and assign a material to it that makes it transparent and essentially you will see "everything" through this plane. The results are not that nice but it might be good enough for you.

Also check out the Render Settings page and see if a colored fog is applicable for your project.

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
avatar image
1

Answer by Jessy · Nov 13, 2010 at 11:37 PM

Use this shader on a triangle or quad that takes up the whole screen. Due to ZTest Always, you don't even need to worry about how far away from the camera it is, or if other things are in front of it. (The alpha channel of the color controls how opaque it is.)

Shader "Transparent Color" {

Properties { _Color ("Color", Color) = (1,1,1,.5) }

SubShader { Tags {Queue = Overlay} ZTest Always Blend SrcAlpha OneMinusSrcAlpha Color [_Color] Pass {} }

}

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
avatar image
0

Answer by Ed 1 · Oct 08, 2010 at 06:01 PM

Search before you ask link.

Comment
Add comment · Show 5 · 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 matyicsapo · Oct 08, 2010 at 06:24 PM 1
Share

that topic's only answer is very inadequate since it assumes that one has a pro license(or pro trial) since you can't use post processing effects otherwise - BUT - the author's code contains fog stuff which is a "solution" if you meant to refer to that with your link - BUT - then you could have helped him yourself or atleast pointed out what to look for in that topic

avatar image Ed 1 · Oct 09, 2010 at 07:58 AM 0
Share

i can use it without the pro trial

avatar image matyicsapo · Oct 09, 2010 at 10:51 AM 0
Share

not only the fog?

avatar image Ed 1 · Oct 10, 2010 at 04:17 PM 0
Share

what do you mean?

avatar image matyicsapo · Oct 12, 2010 at 01:39 PM 1
Share

http://unity3d.com/gallery/live-demos/tropical-paradise in this one when you go underwater the whole screen goes blurry(pro image effect), while if you test the project from a non-pro editor the only thing happens that there is some fog applied - so just check the difference between the 1st and one that you run from your indie editor(download link in my answer below)

avatar image
0

Answer by nowhereman · Nov 14, 2010 at 07:10 AM

I'm really noobish, so I can't say I have a lot of experience, but I very recently was trying to do something similar in one of my games. What I did was make a GUI Texture in Unity and make it the size of the entire screen, in your case you would make it a blue-ish color, and then you could change the alpha value of the texture's color to make the texture mostly see-through. It's crude, but it worked really well for my project

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
avatar image
0

Answer by UniqueMAX · Jul 03, 2015 at 03:04 PM

Create a fullscreen panel and give a color you want to it.

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

1 Person is following this question.

avatar image

Related Questions

Water light seems affected by camera angle 0 Answers

How to make a lake that you can swim in 2 Answers

Can I get this water effect in Unity(free)? Image inside. 1 Answer

Combining multiple layers and water 0 Answers

My Water Or My Camera? 0 Answers


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