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
1
Question by HolBol · Aug 20, 2010 at 06:09 PM · cameramaskminimapshape

Camera Shape Masks?

Any way I can mask areas of where the camera shows, so like a Circular minimap instead of a rectangular one?

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 jorjdboss · Jul 28, 2012 at 05:11 AM 0
Share

I have put up a shader for shape cutout, in this thread: http://forum.unity3d.com/threads/145313-Camera-mask-alpha-falloff?p=994707&posted=1#post994707

Its not my shader and I don't know how it works.

The only problem with it is that you cant get a varying alpha. The areas in white or any shade of gray are 100% visible. Pure black is cutout and the camera doesn't show those pixels, so the $$anonymous$$imap can be made to look in any shape. Would be great if somebody comes up with an proper alpha mask.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Goody! · Aug 21, 2010 at 01:02 AM

If I'm reading your question right, I'd just put a plane attached under and facing the active camera with a screen filling graphic and a transparent circle to represent the minimap.

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 theMDproject · Sep 05, 2011 at 10:37 AM

hi! As I understood the aim of this mask is to render a secondary camera over a first one. I'm also facing this issue. The problem is to find a shader property to use that sprite mask in the following way: Make transaperent the inside of the circle; don't render enything in the outside of the circle. This way we could find a way to do something similar to what Blurst accoplished in their Brontosaur's Jetpack game but with a static mask and without using postprocessing tools.

Has anybody solved that?

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

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

2 People are following this question.

avatar image avatar image

Related Questions

Camera projection 1 Answer

how to controll second camera (MiniMap)? 1 Answer

Culling Mask with Depth Occlusion 1 Answer

Is it possible to make a camera update only once every X seconds ? 2 Answers

Mask to Camera? 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