Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 Yujingping · Nov 20, 2016 at 08:55 AM · shaderrenderingimage effectsrender texture

How to apply image effect on a specific area of the screen

alt text

I am now trying to make a fake volumetric lighting post effect based on radial blur. However since the light source may not locate at the very center of the screen, I need to blur certain quads on the screen during the post effect. So my question is how to sample part of the screen pixels into a RenderTexture and later blend the texture with the original one? Any suggestions would be greatly appreciated!

2016-11-20-at-下午451.png (254.4 kB)
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 ToasterKyle · Nov 20, 2016 at 01:56 PM 0
Share

Do you want the specific squared area to have image effects? Or just the objects within that area

avatar image Yujingping ToasterKyle · Nov 20, 2016 at 02:03 PM 0
Share

Specific squared areas in screen space. Thank you for your reply and I feel eager to extend our discussion.

avatar image Yujingping · Nov 20, 2016 at 05:08 PM 0
Share

Just to mention ... I have figured out how to apply radial blur to a specific area of the screen. But however the solution is not general, which means it could NOT be utilized into other image effects. Hence could anybody provide some ideas about this post? Looking forward to any update.

1 Reply

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

Answer by Gmotagi · Nov 20, 2016 at 12:45 PM

Dont know if you have Shader Forge or not and this may be totally off from what you want to do. But the technique used in this tutorial is bluring on a quad. May be this will help you, if only giving an idea on a way to do it. https://www.youtube.com/watch?v=XKbSu5PC8VA

Comment
Add comment · Show 3 · 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 Yujingping · Nov 20, 2016 at 01:24 PM 0
Share

Thank you for your reply and your share. The technique introduced in the video is to set a transparent and blurred material to a mesh renderer, which is also a creative solution. $$anonymous$$y problem COULD UNDENIABLY BE solved by setting billboards with the materials and shaders set in the video. However I am now currently working on a paper published in 2011 about post effects with depth texture where this post is introduced, which means my problem could also be solved using only Image Effects. Hence I am interested in applying image effects to only part of the screen. The link to the paper is as follows: http://beta.unity3d.com/talks/Siggraph2011_SpecialEffectsWithDepth_WithNotes.pdf Anyway, I really appreciate your post, and feel eager to communicate more about rendering and shader! GL & HF.

avatar image Yujingping · Nov 20, 2016 at 01:25 PM 0
Share

BTW I am not a native English speaker and thus what I have written may look awkward. Thank you for your patience and understanding.

avatar image Yujingping · Nov 21, 2016 at 12:30 PM 0
Share

Finally, this comes to be the correct solution! However BE SURE to make the quads locate at the correction positions, otherwise it is no longer a fake image effect but a mirror or something.

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

78 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 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 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 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

How can I make the most efficient SDF Shader in unity 1 Answer

Image Effect - Screen coordinates 1 Answer

"Motion vectors" and "depth with normals" from camera's target texture 1 Answer

Screen shaders that alter geometry at runtime or through camera 1 Answer

In FastBloom(Bloom Optimized) shader, what's the difference between Standard and Sgx blur type? 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