Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 11 Next capture
2021 2022 2023
1 capture
11 Jun 22 - 11 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 MartinIsla · Jul 29, 2015 at 11:52 AM · camerarenderingcanvasblur

Psychedelic camera effect

Hello, everyone!

First of all, thanks to everyone at this forum. I'm developing my first game and solved most of my problems by reading pre-existing questions. You are amazing!

Now there's something I need to do and I haven't found a way of doing it so far. I'm developing a 2D game using C# and I want something like a drugs effect. Change colors with psychedelic like pink, green, yellow, red. (Don't ask, I'm not the game designer)

I thought maybe I should use a camera rendering effect, but I've never done any camera rendering.

Also, and this is an extra, but related (so I don't post twice, I think it's better): I need a blur effect. I made this death cam with a dark/transparent background color with the scores and the "try again" button and I want a blur effect there. I read it could be very resource consuming, but I'll give it a try (also, it's a simple 2D game, so I think I can take some extra resources without compromising performance).

Again, thank you very much and I hope you can help me!

Comment
Add comment · Show 2
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 MartinIsla · Jul 29, 2015 at 07:48 PM 0
Share

I really haven't tried anything yet because I don't know where to begin. Sorry!

avatar image Oribow · Jul 29, 2015 at 08:03 PM 0
Share

You should look at fullscreenshaders. But to use them you must first learn to code shadows. This is really complicated. $$anonymous$$ore then learning c# in my opinion. Better take an existing solution. $$anonymous$$aybe from the asseststore.

2 Replies

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by jn327 · Jul 29, 2015 at 08:58 PM

Best to use an image effect yeah. One thing you could do is use the VignetteAndChromaticAberration effect and change it's intensity randomly, with a sine wave or mathf.pingpong in code. Something like:

 VignetteAndChromaticAberration chromatic_Vignette = Camera.main.GetComponent<VignetteAndChromaticAberration> ();
 
 chromatic_Vignette.chromaticAberration = Mathf.PingPong(Time.time, 2));

You'd get an effect like the following: https://www.youtube.com/watch?v=XLj5dhtMauo

You can also have a different effect that displaced the current screen render depending on a texture, I've made a package and put it on my dropbox: https://www.dropbox.com/s/kdddre20y1h7vg0/WavyScreen.unitypackage?dl=0

Comment
Add comment · Show 4 · 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 MartinIsla · Jul 29, 2015 at 09:03 PM 0
Share

That's really close to what I'm looking! Thanks! I'll tell you how it goes

avatar image MartinIsla · Jul 29, 2015 at 10:09 PM 0
Share

Totally worked. Thanks!

avatar image taksumaki · May 13, 2019 at 02:36 PM 0
Share

Hi @jn327 : I need to do something like this! The Dropbox link no longer works. Any other link to get the package?

avatar image jn327 taksumaki · May 13, 2019 at 04:48 PM 0
Share

Hey, it must have been deleted as I can't find it anymore, sorry about that. No matter as it probably would have all been legacy and half depreciated now that unity has merged all the effects into the post processing stack (see https://docs.unity3d.com/$$anonymous$$anual/PostProcessing-Stack.html), I've yet to mess around with it so I cant offer you much advice on its usage, but its probably the best approach.

If you're using a version of unity that doesn't support the post processing stack then you'll probably need the Standard Assets in your project (see https://docs.unity3d.com/540/Documentation/$$anonymous$$anual/HOWTO-InstallStandardAssets.html) Basically you'll want to attach the vignette effect to your main camera and then in script that you want to modify the vignette effect from use the code I posted above, you'll probably need to include 'using UnityStandardAssets.ImageEffects;' in said script (see https://answers.unity.com/questions/1018636/how-can-you-access-and-change-the-values-of-the-vi.html).

avatar image
1

Answer by taksumaki · May 13, 2019 at 02:33 PM

Hi @jn327 : I need to do something like this! The Dropbox link no longer works. Any other place to get the package? Thank you!, Hi @jn327: I need to do something like this! The Dropbox link no longer works. Any other link to get the package? Thank you!

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Best way to exclude canvas from postprocessing 0 Answers

Canvas screen space to world space not working. 1 Answer

Why do my sprites/textures darken whenever I move my camera? 0 Answers

Camera rendering with canvas overlay shrinking 0 Answers

Canvas Rendering Execution Order Question 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