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
0
Question by thecomediclife · Apr 25, 2014 at 12:43 AM · shaderfog

Revealing only a section of the background in Unity2D

Hey guys, so in my 2D game, I have an isometric view, and what I'm trying to figure out, is essentially code something akin to Fog of War. What I want is for the background to be entirely white, except for in a large radius around my player. Inside that radius, you can see simply black outlines of the landscape, pre-drawn.

So I've tried my best at googling for the answer on how to do this, but what I can only find, are people recommending using Shaders. However, as much as I've searched for, anything teaching shaders is written in such advanced lingo, that a beginner like myself can't even begin to decipher it. So I guess what I'm asking is, how would I go around doing this? If the answer is shaders, where can I learn what shaders are and how they work, hopefully dumbed down enough that a beginner like me can understand it?

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 getyour411 · Apr 25, 2014 at 01:00 AM 0
Share

Google "unity3d fog of war", look at the methods described, implement the one that fits your game and experience level, ask a specific question if you have something you've tried and its not working.

Examples http://forum.unity3d.com/threads/206586-Fog-of-war-video-tutorial

http://answers.unity3d.com/questions/14733/how-would-i-do-fog-of-war.html

Google shader tutorials.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by thecomediclife · May 02, 2014 at 01:36 AM

I've seen both of these, and googled more. As I said in my original post, the things I've found via google, I don't understand. I'm looking for a simpler tutorial that can walk me through it more easily than these, because honestly, I'm very new to this.

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

20 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

Related Questions

How i can create vertical Fog by Shader Graph 0 Answers

Setting up a simple depth-based Shader Replacement material? 0 Answers

Fog centered on Vector3 1 Answer

Setting fog color on alpha blended to be fog color 1 Answer

PostProcess shader - Generate plane perpendicular to World XZ 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