Light Effect Question

Discussion in 'How Can I...?' started by wmfear, Nov 13, 2021.

  1. wmfear

    wmfear Avid Boxer

    Joined:
    Apr 6, 2018
    Messages:
    159
    Likes Received:
    78
    Hi guys.

    I want my character to hold a flashlight in some darker scenes. I`m using the spot light node for this, but is there a way to avoid the light shining through walls etc? If I want it to look like he`s inside a building. I want the light to not shine outside of the building at all.

    Any tips?
    01.png
     
    Last edited: Nov 13, 2021
  2. wmfear

    wmfear Avid Boxer

    Joined:
    Apr 6, 2018
    Messages:
    159
    Likes Received:
    78
    I assume this is currently not possible to achieve in BB, but could it be done with a custom code? If so, I’d be interested
     
  3. Jaro

    Jaro Avid Boxer

    Joined:
    Sep 21, 2018
    Messages:
    381
    Likes Received:
    122
    Check that you do not have a gap between the wall and the ground. And check collision shape for both.
     
  4. wmfear

    wmfear Avid Boxer

    Joined:
    Apr 6, 2018
    Messages:
    159
    Likes Received:
    78
    Yeah, that is not the issue. You can create a box with correct collision shapes set up, place the spotlight inside the box, and it the light still goes through..
    01.jpg
     
  5. Jaro

    Jaro Avid Boxer

    Joined:
    Sep 21, 2018
    Messages:
    381
    Likes Received:
    122
    I wonder why it is always visible at ground level.
     

Share This Page