Creative Communities of the World Forums

The peer to peer support community for media production professionals.

  • Posted by Pat Bray on May 17, 2011 at 4:06 pm

    I wondered what would be the best way to have a lens flare interact with an object between the camera and the background? For example if a space craft was moving through a scene and partially cut in front of the flare, there would still be light passing over the craft but it wouldn’t be so intense, and as more of the ship covered the flare, the more light would be blocked and more silhouetted the ship would be. Is there any expressions which might help, any tips on how to create this effect would be great.

    P

    Pat Bray replied 14 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    May 17, 2011 at 4:33 pm

    Try using this for Flare Brightness:

    maxDist = 100;
    minVal = 10;
    maxVal = 100;
    L = thisComp.layer(“ship”);
    p = fromComp(L.toComp(L.anchorPoint));
    d = length(p,effect(“Lens Flare”)(“Flare Center”));
    linear(d,0,maxDist,minVal,maxVal)

    Dan

  • Pat Bray

    May 17, 2011 at 4:51 pm

    Thanks Dan, I’ll give that a try and let you know how it goes….

    P

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy