opening and closing Eyelid effect on the camera

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.

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

eyelid

from outside

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

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

1 Like

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

Edges of the eyelid?

yes

So they sort of fade out at the edge?

exactly

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

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

1 Like

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

1 Like

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

vignette

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

2 Likes

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.

1 Like

How did you do the half sphere like that?

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

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

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

image

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

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

THEN, cut it in half, and voila :slight_smile:

eyelid2

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


What do you think it could be?

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…

No man is FPS (the image is from editor)

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