mogged
- 2 Devlogs
- 10 Total hours
Reverse engineered a reverse engineered cheat for omoggle to make my own facial rating system. (sourced from github:sawyershoemaker/omoggle-fluox)
Reverse engineered a reverse engineered cheat for omoggle to make my own facial rating system. (sourced from github:sawyershoemaker/omoggle-fluox)
okay so omoggle/mogwars was cool but this is cooler:
i noticed that those “backends” only ran on a static frame of your face and only measured landmarks. I decided to make one which bases it off of a 3D scan as well as texture information to estimate skincare.
After some research, I found 3DDFA, a small model which can reconstruct a 3D model of a face from photos.
the app first takes 7 poses by asking you to move your camera and then passes them all into the model. (120x120x3b tensor). The model gives 62 parameters per pose, and then the app takes the median identity-shape parameters across all views -> BFM2009 decoder -> 68 points used to calculate all the structural metrics.
then it uses the texture of the face that’s not in the eyes or mouth and samples them for clarity, eveness, texture, exposure, sharpness, etc. takes the median of that and then calculates a skin value. exact weights for them are found in the code.
sorry for the lackluster devlog quality, my >4k char devlog was js deleted and i’m pissed
a very chopped aquantience couldn’t believe how chopped he was and I wanted to prove it to him. however, he didn’t want to go into an omoggle match w me so I needed something that supported image upload
popular websites that do an omoggle-style ranking either are not accurate to omoggle or send your photo off-device to a vLLM or server, which I don’t want
for sake of brevity (character limit) I will not be describing exactly how each platform works nor how the metrics are calculated in specific, for those interested, check out src/lib/scoring. I promise I’m not larping, I actually understand how it works lol.
I then took all of that as well as some Google-given examples for the landmarking API and created a new NextJS + Shadcn + Tailwind v4 project. I first wrote the landmarking system and then the scoring system based on the output of the landmarker. After, I made a temporary UI with google stitch and got codex to wire everything together.
available at https://mogged.eli.best