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
1
Question by tryptefan · Aug 11, 2015 at 02:00 AM · 2ddistortionnormal maprefraction

How do I make refraction visible in 2d mode?

I'm making a pond in a top down game using the standard stained glass distort material and the refraction is only visible in the scene window. When I click "2d" in the scene window, the distortion effect vanishes and it is never visible in the game window (with orthographic camera).

I'm guessing that the normal map is distorting along the z-axis and is thus invisible when only viewing x-y.

How would I make this distortion visible in 2d mode.

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
5

Answer by $$anonymous$$ · Mar 02, 2017 at 08:09 PM

I was looking for an answer for this question and I just found a solution; so that you can use the Stained BumpDistort Shader visible in 2D.

Do following steps:

  • make sure your "Near" parameter of your Camera is not 0; set it to -1 or +1 or just play with it.

  • you should be seeing your particles kind of black or dirty.

  • then play with your distortion ammount, it should be a pretty low value to be calibrated in 2D mode.

  • For me it works perfectly in 2D by following this steps

Hope you too!alt text

https://www.youtube.com/watch?v=lZCGg94hCmI&lc=z13qibdzbozhh5ta404cgpwwts3sxtnprds


unitansdist.jpg (95.6 kB)
Comment
Add comment · Show 1 · 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 bison-- · Jun 09, 2018 at 11:21 PM 0
Share

Thank you SO $$anonymous$$UCH! I would NEVER EVER guessed that the "near" value between -1 and +1 of the camera would cause this problem.

It was set to 0.5, so it didn't work.

THAN$$anonymous$$S A LOT <3

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Rotating Sprite Stretching Object 1 Answer

How to make 2d distortion? 2 Answers

distortion/refraction 1 Answer

changing 2d normal map with animation 0 Answers

2D and distortion shader 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