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 ModSimTeam · Oct 06, 2013 at 05:14 AM · shaderprojectorocclusionocclusion culling

Can a simple viewshed analysis be done with a projector?

I am looking to do a simple viewshed analysis and I'm wondering if a projector can be used for this. I would like the projector to project a color or light on to the terrain and buildings. The problem is projectors do not occlude behind geometry but instead go straight through. Is there a shader that I can use that will take into account occlusion of objects and terrain?

Comment
Add comment · Show 3
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 tanoshimi · Oct 06, 2013 at 06:25 AM 0
Share

Is this to be displayed in the editor or in-game? I'm assu$$anonymous$$g in the editor since, by definition, if you were seeing the object in game from the player's point-of-view, it will be included in he viewshed...

avatar image ModSimTeam · Oct 06, 2013 at 06:42 AM 0
Share

Hi Tanoshimi,

I am looking to do this in-game and not from a first person perspective. Say for example, in third-person, I click on a location the terrain and buildings would be painted yellow in the areas where I would have line of sight from that point. Area's that are behind terrains or buildings would not be painted yellow. This would create a simple viewshed type of view of what I can see from that location. The effect I'm trying to achieve is demonstrated in the attached image. alt text

I tried just placing a projector where I click. The projector projects a material starting from that point but does not stop once it hits the first surface. It continues to pass through and places the material on every surface it hits. Is there a shader or a way to only have the projector project on the first surface and occlude everything behind it essentially creating a viewshed view.

avatar image mikewarren · Jan 22, 2016 at 04:26 PM 0
Share

I know this question is a little old, but did anyone ever figure a way to do viewshed analysis effectively?

I want to be able to place an object in my scene and show visibility for the surrounding area, as demonstrated in this Google Earth video.

I know the process is the same as shadow mapping, and while I understand the concept, I don't know how to implement it. Any suggestions would be helpful.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by tanoshimi · Oct 06, 2013 at 07:48 AM

Ah, ok, I think we have different ideas of what a viewshed looks like :) What you're describing looks more like the effect in games such as Monaco. Does this help?: https://m.facebook.com/notes/monaco/line-of-sight-in-a-tile-based-world/411301481995

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

17 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

Related Questions

3d Text culled via occlusion culling? 0 Answers

How to make projector/light shader "alpha enabled"? 2 Answers

Revealing invisible objects with a projector 0 Answers

Occlusion culling at runtime 0 Answers

Loading Large Models - Unity 5 Occlusion Culling? 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