# opening and closing Eyelid effect on the camera

**URL:** <https://forums.unrealengine.com/t/opening-and-closing-eyelid-effect-on-the-camera/749186>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [January 14, 2023, 12:18pm UTC](https://forums.unrealengine.com/t/opening-and-closing-eyelid-effect-on-the-camera/749186 "2023-01-14T12:18:30Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![98r\_almzzeh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@98r\_almzzeh](https://forums.unrealengine.com/u/98r_almzzeh)\
**Post date:** [January 14, 2023, 12:18pm UTC](https://forums.unrealengine.com/t/opening-and-closing-eyelid-effect-on-the-camera/749186/1 "2023-01-14T12:18:30Z")

</div>

I’m trying to create an opening and closing eyelid effect on my firstperson camera, what is the best way to approach it? I would like that other actors trigger the animation of the eyelid and that I can control the speed of the eyelid in my character blueprint.  
any help and hints are much appreciated.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [January 14, 2023, 12:22pm UTC](https://forums.unrealengine.com/t/opening-and-closing-eyelid-effect-on-the-camera/749186/2 "2023-01-14T12:22:32Z")

</div>

I think the easiest way, is just to put a pair of eyelid meshes right in front of the camera 🙂

![eyelid](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/3/7/037652e824d42ac2a9b16645d8174f764e8f152d.gif)

![from outside](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/0/2/f0222742baf5767b60f09d4f5dbee90cecf750d2.gif)

It’s just to half spheres. The material is just black unlit. And the code is

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/1/2c1ec24e799c54ac7bb654fd9ab9486ef46db0ef.png)

Notice that the exact settings there depend on how you placed the spheres in the character, but the concept holds.

---

<div class="post-metadata">

**Author:** ![98r\_almzzeh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@98r\_almzzeh](https://forums.unrealengine.com/u/98r_almzzeh)\
**Post date:** [January 14, 2023, 12:47pm UTC](https://forums.unrealengine.com/t/opening-and-closing-eyelid-effect-on-the-camera/749186/3 "2023-01-14T12:47:12Z")

</div>

wow that’s great, thank you! do you know if we could make the edges softer?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [January 14, 2023, 12:47pm UTC](https://forums.unrealengine.com/t/opening-and-closing-eyelid-effect-on-the-camera/749186/4 "2023-01-14T12:47:53Z")

</div>

Edges of the eyelid?

---

<div class="post-metadata">

**Author:** ![98r\_almzzeh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@98r\_almzzeh](https://forums.unrealengine.com/u/98r_almzzeh)\
**Post date:** [January 14, 2023, 12:48pm UTC](https://forums.unrealengine.com/t/opening-and-closing-eyelid-effect-on-the-camera/749186/5 "2023-01-14T12:48:04Z")

</div>

yes

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [January 14, 2023, 12:48pm UTC](https://forums.unrealengine.com/t/opening-and-closing-eyelid-effect-on-the-camera/749186/6 "2023-01-14T12:48:44Z")

</div>

So they sort of fade out at the edge?

---

<div class="post-metadata">

**Author:** ![98r\_almzzeh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@98r\_almzzeh](https://forums.unrealengine.com/u/98r_almzzeh)\
**Post date:** [January 14, 2023, 12:49pm UTC](https://forums.unrealengine.com/t/opening-and-closing-eyelid-effect-on-the-camera/749186/7 "2023-01-14T12:49:04Z")

</div>

exactly

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [January 14, 2023, 12:50pm UTC](https://forums.unrealengine.com/t/opening-and-closing-eyelid-effect-on-the-camera/749186/8 "2023-01-14T12:50:25Z")

</div>

You can probably do that in the material. Or, have another mesh along the edge that does not have total opacity.

---

<div class="post-metadata">

**Author:** ![98r\_almzzeh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@98r\_almzzeh](https://forums.unrealengine.com/u/98r_almzzeh)\
**Post date:** [January 14, 2023, 12:51pm UTC](https://forums.unrealengine.com/t/opening-and-closing-eyelid-effect-on-the-camera/749186/9 "2023-01-14T12:51:43Z")

</div>

Cool, Thanks a lot, Truly a hero!!!

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [January 14, 2023, 1:19pm UTC](https://forums.unrealengine.com/t/opening-and-closing-eyelid-effect-on-the-camera/749186/10 "2023-01-14T13:19:04Z")

</div>

This is V2. It’s just a sphere and material, no code ( apart from to change the params of the material ). It’s not quite right, but you get the idea

![v2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/f/8/4f8fcac9c6fff0a6869a4708b3690b5f72b3ae06.gif)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [January 14, 2023, 1:24pm UTC](https://forums.unrealengine.com/t/opening-and-closing-eyelid-effect-on-the-camera/749186/11 "2023-01-14T13:24:41Z")

</div>

Much easier method, post process vignette. It doesn’t quite look like eyelids, but

![vignette](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/3/2/4322cad6574be6bd9e2eecdae7685d1c824244eb.gif)

I was just doing it manually, like this ( code is inside first person character )

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/a/7/aa7fc155241d88284dfeddd57af0bc9de60a37b0.png)

---

<div class="post-metadata">

**Author:** ![98r\_almzzeh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@98r\_almzzeh](https://forums.unrealengine.com/u/98r_almzzeh)\
**Post date:** [February 6, 2023, 11:27am UTC](https://forums.unrealengine.com/t/opening-and-closing-eyelid-effect-on-the-camera/749186/12 "2023-02-06T11:27:25Z")

</div>

thank you! this looks also good but it’s not the effect i was going for.  
it was possible with the first answer.  
I used two planes instead of the half spheres and just had to add an opacity mask to them so that it looks like an eyelid.

---

<div class="post-metadata">

**Author:** ![Snowbeat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Snowbeat](https://forums.unrealengine.com/u/Snowbeat)\
**Post date:** [March 19, 2023, 1:55pm UTC](https://forums.unrealengine.com/t/opening-and-closing-eyelid-effect-on-the-camera/749186/13 "2023-03-19T13:55:24Z")

</div>

How did you do the half sphere like that?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [March 19, 2023, 2:11pm UTC](https://forums.unrealengine.com/t/opening-and-closing-eyelid-effect-on-the-camera/749186/14 "2023-03-19T14:11:23Z")

</div>

You can do it in modelling mode. Make a sphere, and plane cut it

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/2/9/b291fe98531008d67c3dd00796d21db7aecdc7e6.jpeg)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/3/c/a3c9845e3ebba96d5db02a42114f076f37fcbf1e.jpeg)

---

<div class="post-metadata">

**Author:** ![Snowbeat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Snowbeat](https://forums.unrealengine.com/u/Snowbeat)\
**Post date:** [March 20, 2023, 5:30pm UTC](https://forums.unrealengine.com/t/opening-and-closing-eyelid-effect-on-the-camera/749186/15 "2023-03-20T17:30:45Z")

</div>

Can you publish how did you attach the sphere to character?  
Because your seems like perfect, in my case it’s pretty weird 😅

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [March 20, 2023, 6:18pm UTC](https://forums.unrealengine.com/t/opening-and-closing-eyelid-effect-on-the-camera/749186/16 "2023-03-20T18:18:27Z")

</div>

By default, the sphere mesh you make with the geo tools has the pivot at the bottom

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/b/f/1bf663ae86ef777a90c8125670fb13f5c026cb34.jpeg)

You need to have it in the right place to make animation of the eye easy. After cutting in the default way, it’s not in a handy place

![eyelid1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/6/9/b6934b73a04e471d56fa464a7ee8feb4fd3cef14.gif)

So, make the sphere again, but this time, after making it, move the pivot to the center

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/7/a/47aedd9c9299a8f162bf52cc8994a74973d6b4b7.jpeg)

THEN, cut it in half, and voila 🙂

![eyelid2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/f/3/6f336589691f43c101c798f41d504cf9b0453b92.gif)

---

<div class="post-metadata">

**Author:** ![Snowbeat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Snowbeat](https://forums.unrealengine.com/u/Snowbeat)\
**Post date:** [March 20, 2023, 7:33pm UTC](https://forums.unrealengine.com/t/opening-and-closing-eyelid-effect-on-the-camera/749186/17 "2023-03-20T19:33:56Z")

</div>

Great thanks you, but see how it looks when I put the character in the level:

 ![Immagine](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/2/f/e2f22113e71de5524d9f84b334e92bf642c85920.jpeg)  
 ![Immagine2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/9/2/e924bdab3ce1cab13de90159bc31f3cb94d4fbd8.png)

What do you think it could be?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [March 20, 2023, 7:35pm UTC](https://forums.unrealengine.com/t/opening-and-closing-eyelid-effect-on-the-camera/749186/18 "2023-03-20T19:35:53Z")

</div>

That’s a third person character, the example was only for first person.

The other example here, with the PP, will make the screen go black, and back.

But to be real, when it’s third person, THEY just close their eyes. It would have no effect on the camera…

---

<div class="post-metadata">

**Author:** ![Snowbeat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Snowbeat](https://forums.unrealengine.com/u/Snowbeat)\
**Post date:** [March 20, 2023, 7:40pm UTC](https://forums.unrealengine.com/t/opening-and-closing-eyelid-effect-on-the-camera/749186/19 "2023-03-20T19:40:44Z")

</div>

No man is FPS (the image is from editor)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [March 20, 2023, 7:42pm UTC](https://forums.unrealengine.com/t/opening-and-closing-eyelid-effect-on-the-camera/749186/20 "2023-03-20T19:42:04Z")

</div>

What does it look like when you press play? Do you see the character ( forgetting about the lids for now ).

[Next page](https://forums.unrealengine.com/t/opening-and-closing-eyelid-effect-on-the-camera/749186.md?page=2)
