Results 1 to 4 of 4

Thread: Node for "is a shadow falling on me?" spot?

  1. #1
    Axes grinder- Dongle #99
    Join Date
    Jul 2003

    Question Node for "is a shadow falling on me?" spot?

    If one wished to determine if a shadow is falling on a given point on a surface, how does one do so?

    They only call it 'class warfare' when we fight back.
    Praise to Buddha! #resist
    Chard's Credo-"Documentation is PART of the Interface"
    Film the cops. Always FILM THE COPS. Use this app.

  2. #2
    Super Member
    Join Date
    Aug 2016
    a place
    i had a feeling dbw had something like that but might be 2015.

    perhaps logic node and ray cast or spot info

  3. #3

    perhaps use a gradient w/distance to, and using the light as a source for the gradient ?

    or ray cast node ?
    LW vidz   DPont donate   LW Facebook   IKBooster   My vidz

  4. #4
    TrueArt Support
    Join Date
    Feb 2003
    To check whether there are obstacles between light and spot, take World Position of Item light, subtract Spot World Position, normalize, and plug to Ray Cast Node Ray Direction. Take Spot World Position and use as Ray Origin. If result of Ray Cast is -1 there is no obstacles at all, if result is between 0.0 and Math > Vector > Distance between Spot World Position and Light Item Info node World Position, there are obstacles. Higher values that that calculated distance would mean that there is geometry behind light in that direction. The easiest would be making Gradient node with -1 key, and keys 0 and dynamic key (Show Output), taking Distance node output as key value.

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts