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
4
Question by Pure Phase · Apr 28, 2010 at 08:10 PM · cameraeffectblur

Can you use a camera effect that only applies to a certain layer?

Hi,

I would like to use a blur effect but only on certain objects. Is there a way I can put these objects on a certain layer, and have the blur only affect that layer?

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
1

Answer by sean · May 06, 2010 at 09:40 PM

Not sure if you can do it with a single camera, particularly given the nature of post-processing filters on the graphics card, but under certain circumstances you may be able to do it in multiple layered renders.

On one camera set to the full game screen, render only the layers you want sans-blur. On another camera set to the same params outputting to the same space, render only the layers you want blurred. If objects in the two layers don't intersect or clip eachother, just be sure to set the render order of the far-stuff camera to before the near-stuff camera and you should be set.

Otherwise, you may need a third pass and some special programmatic shader work to render a clipping mask texture (render ALL layers with a shader/filter that, rather than outputting to screen, writes a 0 to a texture when the rendered pixel is from one layer group and a 1 when it's from the other) and then plug that clipping mask into a filter on one camera or the other so that pixels only get drawn to the screen if they're part of what ~would~ be seen in that camera's layer set if it was being rendered with everything else.

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 blackpag · Jan 08, 2013 at 11:51 PM 0
Share

I am sorry but i didnt understand the answer, I have similar problem http://answers.unity3d.com/questions/376851/can-i-blur-only-part-of-the-objects-on-my-scene.html can you please look at my question and tell me what am i doing wrong?

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

1 Person is following this question.

avatar image

Related Questions

Blur without Pro 1 Answer

Camera Effect for partially Underwater View 0 Answers

motion blur without unity pro 1 Answer

camera blur effect 1 Answer

Unity 5.6 splash screen tool: Blurry background image 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