• 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 Siflou · Jul 30, 2014 at 02:47 PM · camerarendertextureblur

Blurring a texture without blurring everything

Hey Guys, I have an app where I must blurr a texture, but not the whole screen. In my scene, I have 2 camera, 1 that displays all the textures that must not be blurry and one that displays the blurred texture. I have pro so I use the blur script from there but for whatever reason, it seems to affect the all the textures even though there on different layer than my blur camera renders, they have a different material too, I really don't know why it is blurring the entire viewport and even though my textures are on another camera, there are still blurred. I figured out a way to fix that by using render texture , but it is kind of a pain to do, I have to size down my camera so it fits the texture and then I can project my camera to the texture and all other textures don't get blurry. Am I doing it the right way or I'm maybe missing something that could do it easier. Here is a screenshot that shows my sprite on the left that must not be blurred and the one in the right that, I blurred using the trick above.

Thanks a lot for your time :)

Claudealt text

screen shot 2014-07-30 at 10.38.43 am.png (152.9 kB)
Comment
Add comment · Show 1
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 $$anonymous$$ · Jul 30, 2014 at 03:01 PM 0
Share

$$anonymous$$aybe this will help you:

http://forum.unity3d.com/threads/contribution-texture2d-blur-in-c.185694/

2 Replies

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

Answer by Siflou · Jul 30, 2014 at 03:18 PM

Found It. My problem was actually with the order in which the cameras were drawn. The main camera (no blur) was rendered first (order -1). After that, my camera was rendered (order 0). I tried to switch them up, I put my clear flag to don't clear on my main camera, with a solid color on my blur camera, and it turns out that it worked just like I would expected. Only the texture that I wanted to be blurry was blurred. Hope it helps. Thanks a lot for your time :)

Comment
Add comment · 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
0

Answer by duck · Jul 30, 2014 at 02:57 PM

Make sure you're using layers properly - you might be setting the camera gameobject's layer rather than the camera's culling mask layers. To specify the layers which each camera renders, use the "Culling Mask" dropdown menu on the camera's inspector. This allows you to check or uncheck any combination of layers that the camera should render:

alt text


30-07-2014-15-55-47-fe9c.png (23.7 kB)
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 Siflou · Jul 30, 2014 at 03:13 PM 0
Share

It is set properly, I have the texture I want to be blurry on the layer UI, and my blurr camera is only rendering the UI layer, in the camera preview I can see that it can only see my blurred texture, but it blurr other the other texture that is on the default layer, on the other camera. I'm using the Blur script from the standard assets. I'm using the javascript one. Any other ideas ? Thanks a lot !

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

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

23 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

Related Questions

RenderTexture Mirror - Camera postion and rotation 1 Answer

RenderTexture and OnMouseEnter offset 0 Answers

Does filling a RenderTexture using a pixel shader require a camera? 1 Answer

Blur on first plane 0 Answers

Canvas interaction on render texture to message PhysicsRaycaster 1 Answer


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