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
3
Question by blackpag · Jan 08, 2013 at 03:37 PM · camerablur

Can I blur only part of the objects on my scene?

Hi, I know this question asked a few times but i cant get it working. I have two sets of objects, blurry and everything else.( blurry are on layer BLUR)

I created two cameras. first camera is for blurry objects. Clear Flags: depth only Culling mask : BLUR Depth: 1.5

Second is for everything else Clear Flags:Skybox Culling mask: all exept blur Depth:1

The Blur effect is happening to all objects,

All other parameters are default and same for both cameras.

any ideas?

Comment
Add comment · Show 2
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 Julien-Lynge · Jan 08, 2013 at 06:34 PM 0
Share

What do you see if you turn off one and then the other of the cameras?

avatar image blackpag · Jan 08, 2013 at 11:46 PM 0
Share

if i turn off the blurry camera i see the scene not blured and ofcourse without the object to be blured, if i turn off only the not bblured camera i see empty scene and the blured object

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by PAEvenson · Jan 08, 2013 at 08:03 PM

I remember trying to do something like this before. Since the Blur is a postprocess all cameras rendering with a depth behind the BLUR camera(< BlurCamera.depth) will render blurred. A solution I found was created Blur textures for all the items I want blurred and swapped them in when I needed them. You can test this by creating another layer and camera and rendering it with a depth of 2. Those items shouldnt be blurred. This was my understanding...I could be wrong.

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

so are you telling me the only solution is to create a texture that is looking blured and swap it with the normal one?

avatar image Julien-Lynge · Jan 08, 2013 at 11:50 PM 0
Share

This is outside my area of expertise, but there are events that Unity calls before and after rendering (e.g. http://docs.unity3d.com/Documentation/ScriptReference/$$anonymous$$onoBehaviour.OnPreRender.html).

If, as @PAEvenson says, post effects that you add to a camera appear to occur for all cameras, can you use the pre-render event to turn off the blur postprocess before rendering with the second camera?

avatar image PAEvenson · Jan 09, 2013 at 03:29 PM 1
Share

Thats how I solved the problem....swapping textures. I, however, was blurring GUIText font. Not sure if it'll fit for your solution.

I haven't tried what @Julien.Lynge says, but I believe, the postprocess happens during the pixel shader stage of the shader pipeline. So at this point you are only dealing with the pixels about to get shown to the screen. Hence, why it blurs all the other cameras behind it. Another camera could be drawn on top, and not have the blur effect(set the camera.depth > blurCamera.depth)

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

10 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

Related Questions

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

How to make camera position relative to a specific target. 1 Answer

Blur only specific objects 2 Answers

Two cameras depth-sorting correctly (for use with blur etc.) 0 Answers

Blur the camera and overlay them (Add) 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