tgednathan

Dev log #3 | Eye Tracking

Published: December 1st 2024, 1:00:08 pm

PreviousNext
tgednathan main image
tgednathan image #0

Hey everyone. This time it's me, Nathan, writing this for the third dev log.

I was working on drawing eye expressions since characters look everywhere. I've decided to make this a procedural animation by implementing eye tracking.

I first started making the shader in the second screenshot. There, you only need the emotion with the white area, the pupil, and the highlight images. In the shader, the pupil and eyes will be duplicated (since we have two eyes :p) and a mask is generated from the white area of the eye image, and the pupils and highlights gets placed on it. That way I can move the pupils everywhere I want without clipping out of frame.

From there, I programmed some math and angles to place the pupil accordingly, and ta daa! Here they are.

We have yet to implement eye tracking in the game's cutscene. But with the random blinking and breathing of the characters, they begin to feel like real characters!

That's the update. Alex and I have decided to work on the game every Thursday to speed up development. Soon, I'll begin setting up the Steam page.

Join the discord if you have questions about the game or want to chat about other TG/TG content.

See ya later!