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 spectre1989 · Aug 15, 2013 at 07:41 AM · shaderglitcheffect

Screen Tearing Effect

Hi all,

I've been trying to create a sort of intentionally glitchy effect in Unity by throwing together a combination of post processing effects which flicker on and off. Something that I'd really like to create is a screen tearing effect - I've had some success by setting the camera clear flags to depth only, geometry tears into the skybox. What I really would like is a shader I could apply to an object to create screen tearing on that object, I've tried playing with some depth buffer tricks but so far haven't been able to get anywhere. Could anyone point me in the right direction?

Cheers

Comment
Add comment · Show 3
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 Benproductions1 · Aug 15, 2013 at 08:14 AM 0
Share

If you are using the correct ter$$anonymous$$ology to reffer to the effect you want this is how to do it:
1. $$anonymous$$eep the last rendered frame cached
2. Generate a random number between 0 and width*height
3. "cut off" the pixels from the previous render until you reach that number
4. Render the previous frame on top of the current frame (cut off)

Thats the general theory XD

avatar image spectre1989 · Aug 15, 2013 at 01:29 PM 0
Share

What's the fastest method of keeping the last rendered frame and combine these 2 frames? Texture2D.ReadPixels is pretty slow, as is combining the images in c# and then uploading them to the graphics card..

avatar image Benproductions1 · Aug 16, 2013 at 02:10 AM 0
Share

ID$$anonymous$$, never made a post-processing effect XD

0 Replies

· Add your reply
  • Sort: 

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

17 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

Related Questions

Something weird is happening with my vertex shader... 0 Answers

Shader to a Camera 1 Answer

How to mask a camera using the render from another 0 Answers

Hex grid effects 0 Answers

Intersection / Geometry blend shader graph problem 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