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
8
Question by Gameart1235 · Dec 12, 2013 at 12:04 AM · effectdistortionripple

Distortion Effect (Free Unity)

Been looking this up for sometime now, and I found a lot of other post on this like how to Heat Distortion or Distortion Ripple, but with no luck on how would one make this. I know that you need to make a Shader and I'm slower learning this. What I need help with is this.

(1) Can anyone point me in the right direction on how would one do this.

(2) What shader code would I need, (not asking for the code) just want to know a start.

(3) Would I need anything else to make this effect?

Plz help, I been really wanting to make this and I just can't make it work.

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

Answer by Maylina · Oct 09, 2014 at 02:28 PM

Look at this one example. Seems there is no restrictions: http://kostiantyn-dvornik.blogspot.com/2014/10/unity-3d-anoxemia-heat-distort-tutorial.html

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 Firedan1176 · Jan 26, 2015 at 02:54 AM 0
Share

That still only works for Pro and with deferred lighting. :(

avatar image PimajeXenja Firedan1176 · Feb 11, 2016 at 09:54 AM 0
Share

It works In Unity 5 as long as it is not on mobile. Do you know how to get it to run on mobile?

avatar image Ash-Blue · May 30, 2015 at 10:19 PM 0
Share

In Unity 5 (free) it seems to be working fine. To use the effect you'll want to grab the Distort.shader file and create new materials with it. I also recommend looking at the project sample. Which explains almost everything you need to know by inspecting the scene's objects.

avatar image cadpeople · Oct 20, 2015 at 11:48 AM 0
Share

Crap. I can't get this to work. When I view it in hte editor, it looks perfect, but in play mode everythign behind the particle, is flipped vertically :(

avatar image dylanHart · Sep 30, 2016 at 01:53 PM 0
Share

@cadpeople play mode was rendering this upside down for me as well. It appears to me that this happens when it's rendered using directX. I don't know enough about how this shader works to provide a directX fix, but forcing the Unity editor to run Open GL ins$$anonymous$$d seems to be a work-around. Add -force-glcore to the target path to do this. e.g., my target path is below:

"D:\Unity 5.3\Editor\Unity.exe" -force-glcore

I assume the target platform needs to run Open GL too, of course. Any help on fixing this shader for directX would be appreciated!

avatar image
0

Answer by EX_Darius · Dec 12, 2013 at 12:23 AM

Programming shaders is pretty hard, you can take a look at the following guides:

http://docs.unity3d.com/Documentation/Manual/ShaderTut1.html http://docs.unity3d.com/Documentation/Manual/ShaderTut2.html

http://docs.unity3d.com/Documentation/Components/SL-SurfaceShaders.html

I wish you the best of luck!

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 Kiloblargh · Dec 12, 2013 at 12:24 AM

Look into cubemap-based refraction. It may not give you the exact effect you were hoping for but it's a good place to start.

Shader programming is hard. It will take you some time to learn, but is worth it.

This is a good reference that I found helpful...

Comment
Add comment · Show 2 · 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 Kiloblargh · Dec 12, 2013 at 12:48 AM 0
Share

I gave it a little more thought, and I think a cubemap refraction shader, with the refraction amount modified by time-based perlin noise, that fades out at steep view angles (like an inverted rim-light shader) would give you pretty good looking heat ripples.

avatar image Gameart1235 · Dec 12, 2013 at 03:22 AM 0
Share

I will look into that. ty!

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

21 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

Related Questions

Multiple Cars not working 1 Answer

Blurred texture on range 1 Answer

Why are my sprites being distorted? 1 Answer

UnityEngine.Input.GetMouseButton(1)) issue 1 Answer

Health Bar common effect 2 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