Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Shadow Detection Asset

Discussion in 'Assets and Asset Store' started by NechyporukEvgen, Nov 21, 2015.

  1. NechyporukEvgen

    NechyporukEvgen

    Joined:
    Sep 3, 2013
    Posts:
    35
    small.jpg

    Asset Store link
    NEW Version 1.3 already available

    [ Demo here ]
    [ Docs here ]
    This asset can detect if the gameobject is in the darkness, shadow or on the light. Perfect for creating a stealth mode in you game. Asset built on raycast. Customizable shadow brightness. Customizable detector the frequency of checking the brightness of light. Processes only those light sources that are within the detector. Easy integration.

    Supported light:
    - Directional
    - Point
    - Spot

    It does not work with the baked shadows.





    1.JPG 2.JPG 3.JPG 4.JPG
     
    Last edited: Jun 22, 2017
    theANMATOR2b likes this.
  2. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    This is quite cool! what's the performance like?
     
  3. NechyporukEvgen

    NechyporukEvgen

    Joined:
    Sep 3, 2013
    Posts:
    35
    Thanks) At high loads is not checked, the overall good. The method of determining the shade rather non-standard, so it can be a costly resource. If people show interest, will optimize
     
  4. imtrobin

    imtrobin

    Joined:
    Nov 30, 2009
    Posts:
    1,548
    Quite interested. Are u rendering the scene again to do the checking?
     
  5. NechyporukEvgen

    NechyporukEvgen

    Joined:
    Sep 3, 2013
    Posts:
    35
  6. Eyehawk

    Eyehawk

    Joined:
    Dec 24, 2012
    Posts:
    288
    Dang, I wish I had this a few months ago! :) This looks amazing - will definitely consider this for our next game
     
  7. r2d2meuleu

    r2d2meuleu

    Joined:
    Sep 26, 2014
    Posts:
    3
    Hi !

    Your asset seems wonderful.
    I have only one question : in the video, the character is either in the light or in the shadows.
    Does your asset is capable of more refined info, like in skyrim ? ie does the character could be half visible, for example ?
     
  8. NechyporukEvgen

    NechyporukEvgen

    Joined:
    Sep 3, 2013
    Posts:
    35
    Oh sure. Thank you for the question. Now version 1.2 for confirmation. It is possible to do. You can get the brightness level of the shadows in which your character is as follows:
    transform.GetComponent <ShadowDetector> (). shadowBright
     
    Last edited: Jan 13, 2016
  9. NechyporukEvgen

    NechyporukEvgen

    Joined:
    Sep 3, 2013
    Posts:
    35
    Thank you very much, I hope you will help Asset
     
  10. NechyporukEvgen

    NechyporukEvgen

    Joined:
    Sep 3, 2013
    Posts:
    35
  11. NechyporukEvgen

    NechyporukEvgen

    Joined:
    Sep 3, 2013
    Posts:
    35
  12. hopeful

    hopeful

    Joined:
    Nov 20, 2013
    Posts:
    5,676
    Just saw this. It sounds like a great tool. Not just for the stated purpose of adding "cover" by being in shadows, but also maybe to auto-adjust exposure with Scion (image effect plugin), which has been a problem for me in dynamic and high contrast lighting situations.
     
  13. NechyporukEvgen

    NechyporukEvgen

    Joined:
    Sep 3, 2013
    Posts:
    35
    If you are using effects that make the shade darker - adjust the brightness of the shadows in shadow detector component
     
  14. imtrobin

    imtrobin

    Joined:
    Nov 30, 2009
    Posts:
    1,548
    are lights movable or must be static?
     
  15. NechyporukEvgen

    NechyporukEvgen

    Joined:
    Sep 3, 2013
    Posts:
    35
    the moved course, complete dynamic!
     
  16. hopeful

    hopeful

    Joined:
    Nov 20, 2013
    Posts:
    5,676
    Awesome! Bought right away. :)
     
  17. Eyehawk

    Eyehawk

    Joined:
    Dec 24, 2012
    Posts:
    288
    Awesome thanks! Just bought it :)
     
  18. NechyporukEvgen

    NechyporukEvgen

    Joined:
    Sep 3, 2013
    Posts:
    35
  19. hopeful

    hopeful

    Joined:
    Nov 20, 2013
    Posts:
    5,676
    I haven't had a chance to try out the new improvements, but it sounds great. Thanks! :)
     
    NechyporukEvgen likes this.
  20. NechyporukEvgen

    NechyporukEvgen

    Joined:
    Sep 3, 2013
    Posts:
    35
  21. Karter_with_a_K

    Karter_with_a_K

    Joined:
    Oct 13, 2017
    Posts:
    2
    Hey! Just purchased this asset, but it seems like there's compiler errors right out of the box. Something to do with building for WebPlayer. I've tried commenting out/removing the instances preventing the scene from playing, but that just leads to more issues.
     
  22. NechyporukEvgen

    NechyporukEvgen

    Joined:
    Sep 3, 2013
    Posts:
    35
    Hi, I apologize for the long silence. Please send a screenshot of the error to my email nechyporuk.evgen@gmail.com or jekelskaz@gmail.com and let me know unity version, i will definitely solve the problem.
     
  23. MrBeros

    MrBeros

    Joined:
    Aug 27, 2015
    Posts:
    27
    Hey, i want to use this asset for a solar energy system . Would this work ?
     
  24. NechyporukEvgen

    NechyporukEvgen

    Joined:
    Sep 3, 2013
    Posts:
    35
    Hi, the script itself can determine the level of light on the object. But the script is written under capsule colliders. And the script will be able to determine only dynamic light sources, without baked light. In the future, I plan to expand the functionality.
     
  25. NickNack20

    NickNack20

    Joined:
    Jun 21, 2021
    Posts:
    1
    I'm having trouble getting this to work. Is it compatible with HDRP?
     
  26. DarkDungeonStudio

    DarkDungeonStudio

    Joined:
    Oct 31, 2013
    Posts:
    37
    I would like to purchase this asset as it will save me a lot of time from doing this myself, but I have a question first.
    I need a exposure level, preferably going from 0.00 to 1.00, and not just a Visible = True or False.

    This way I can have NPCs or Creatures react to the player based on how exposed they are.

    EDIT:
    I'm also using HDRP so I would like to know if it will work fine with that.
     
  27. hopeful

    hopeful

    Joined:
    Nov 20, 2013
    Posts:
    5,676
    Probably best to contact @NechyporukEvgen directly or at least ping him, seeing as his last comment in this thread was 2019.