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 7toni7 · Oct 16, 2014 at 07:05 AM · meshtrianglesillumination

How to know if triangles in a mesh are occluded or illuminated by directional light?

Hi all,

I'd need to know if the triangles of my mesh are occluded or illuminated. If they are illuminated it would be great to find a way to know how much brightness they have, and thus be able to set a bright threshold from which decide if a triangle is completely occluded or not. My scene is very simple, it has the following elements: a directional light (pointing to a mesh) and the mesh.

alt text

Do you know different approaches to do this? Thank you very much for all in advance!

2.jpg (341.8 kB)
Comment
Add comment · Show 15
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 7toni7 · Oct 16, 2014 at 08:41 AM 0
Share

Any help? :)

avatar image MrSoad · Oct 16, 2014 at 09:21 AM 0
Share

Hi, by Occluded I take it you mean lit up or not lit up?

I normally think of occlusion in terms of rendering a mesh or not in Unity, and in terms of Ambient Occlusion when baking a scene in Blender for instance?

As for trying to do what I think you are trying to do I have no idea, it sounds like quite a complicated thing to do, beyond my current skill anyway. Sorry :(

avatar image 7toni7 · Oct 16, 2014 at 09:55 AM 0
Share

By occluded I mean those facets that are not illu$$anonymous$$ated because there are other facets between them and the directional light.

Any solution? please, I'm totally confused :)

avatar image 7toni7 · Oct 16, 2014 at 09:57 AM 0
Share

Is there any way to obtain the brightness of the triangles or colors of the vertices in my mesh once the light is acting on them? thus, a dark color could indicate that that facet is about to be occluded.

avatar image MrSoad · Oct 16, 2014 at 09:59 AM 0
Share

I prob cant help you with this at all but if you can post a pic of something like the end result that you are trying to get by doing this, then maybe someone out there can think of a way to achieve this that may possibly be a totally different method for getting an acceptable solution to the problem you are trying to slove

Show more comments

0 Replies

· Add your reply
  • Sort: 

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

White artifacting bordering mesh triangles 0 Answers

Color triangle on mesh 3 Answers

How to obtain the brightness/color of a triangle? 2 Answers

Accessing Mesh: Triangle and Vertex array fields directly? 0 Answers

Procedurally Generated Mesh Texturing 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