Pixelate player faces

  1. What do you want to achieve? Keep it simple and clear!
    I have never used the devforum, however i am not familiar with ray casting and the functions used for what i want to do, so I am turning here for support.

I want to make a real-time face pixelation effect where the pixels are colored to the corresponding parts pixel similar to how faces are pixelated in body cam footage by soldiers, this effect is also utilized in games like ‘Body Cam’ where they pixelate every player face.

Here is how it’s done in ‘Bodycam’
image

Here’s a rough imitation i did of what i want using screengui

  1. What is the issue? Include screenshots / videos if possible!
    Like I said in the start of my post, I am not familiar with ray casting and these functions, as I have never really needed to use them for my projects.

  2. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I have read a bit on ray cast, and I have not yet managed to get something working, such as returning a hit part’s color, so any help is appreciated.

Ray casting doesnt seem, to me, to have anything to do with what your wanting to achieve. In fact, your attempt using guis looks pretty good as is. Just use a billboard gui and place it in front of the character’s face. Id set the sampling mode to pixel and make it slightly transparent.

Unfortunantly, theres no shaders and editableImage isnt out of beta yet so dynamically creating the blurred faces is not possible.

1 Like

I was thinking of casting rays to the heads of players to get the hit parts color, and set the corresponding pixel frames position and color to the rays return

The heads are made up of a single part, a mesh, with a texture, so that wont work. What you could do is upload pre-pixelated images of each different face, maybe with some adaptable colors for different skin colors to minimize the amount of images needed.