• 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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

camera blur effect 1 Answer

Blur without Pro 1 Answer

Camera Effect for partially Underwater View 0 Answers

motion blur without unity pro 1 Answer

Camera shake, everything disappear from screen except canvas. 2 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges