Now
Latest post:AI portal automation: six scheduled tasks and five messages from meNext post:Saturday, 7:30Building:a task schedule that runs the portal: news, articles and refreshes every dayBuilding:rules for automation: one task, one job, one commit as the logBuilding:Famplace, an app that connects parents who live nearby, with a waiting listBuilding:Frinter on the phone: setting up a focus session on one screen
delta240mvt ↗

3D mascots in Blender: felt triangles for Frinter from one Python script

Instead of line icons, my app now has felt triangles from Blender: 3 colors, 4 faces, one Python script. Here are the renders and what did not work.

A script sheet with bars for lines of code, and next to it three soft triangles with eyes in teal, violet and yellow that sway one after another, with a hollow triangle above them.

On Thursday evening I wrote one sentence that changed the whole look of Frinter: look at the delta240mvt logo and render the mascots again, make them triangles in the system’s three colors. Two days later felt triangles are on the landing, on the sign-in screen, in the app icons, on the share cards and in the spinning loader. All of them come from one Python script that runs Blender without a window.

This post is about how I did it in my own project, what came out of it and what didn’t work. If you want the general path from design to code, it’s on the portal, in the design to code hub. Here is my specific case.

Why felt and not another set of line icons

Frinter is an app for focus and a calm day. Before, it had icons made of thin lines, the same as in every other app. Correct and cold. When I looked at the landing, there was nothing I would remember after closing the tab.

I wanted something warm. Felt makes you think of handmade things, of toys, of something you can hold. That fits a product that should give you your evening back, not take another hour. The triangle was obvious: the delta240mvt logo is a teal triangle, and Frinter splits the day into three spheres. Rozkwit (growth) is teal, Relacje (relationships) is violet, Praca głęboka (deep work) is yellow.

I do this for myself as much as for the user. Frinter is there for every focus session. If something is going to look at you from the screen in every session, let it be something you enjoy looking at.

Twelve felt triangles in three rows: teal, violet and yellow, each with four faces: open eyes, a smile, a wink and focus.
The whole set from one run of the script: 3 sphere colors times 4 faces. Renders on a transparent background, placed here on the landing's background.

What does a 3D mascot written in Python look like?

It’s a plain Python file that Blender runs in windowless mode. At the top are the three sphere colors, written like in CSS, and below them functions: the triangle shape, the felt material, the stitches, the face, the lights, the camera. At the end there is a loop that sets up the scene for every color and every face and saves the render.

The felt is the whole trick. The material is very matte, has a slight sheen in the color of the shape, and a little light passing under the surface. Three layers of noise texture make the unevenness: fine fluff, bands of fibers and big, soft folds. On top of that a white dashed line along the edge, like a seam. On the yellow one the seam is dark, so you can see it.

Cycles renders it on the Mac’s graphics card, at 640 by 640 pixels, on a transparent background. Then each render goes to WebP: 300 pixels for a mascot, 480 for the logo made of three triangles. On the page they weigh about as much as a regular thumbnail photo.

One file is one family of images. The Frinter repository now has seven of them: mascots, mascot icons, symbols, the spinning logo, the cookie for the consent banner, characters for five wellbeing dimensions and blog post covers. 1433 lines in total. Sounds like a lot, but every new pose is one command with a name as the argument, not an evening in the program.

Why a script and not modeling by hand

First reason: changes. The brightness of the whole set is one number in the script. I change it, run the script again and get twelve new renders: same material, same camera. With scenes set up by hand, every change is twelve changes and twelve chances for a difference I’ll only notice on the page.

Second reason: the same world in many places. The logo in the header, the loader, the social share card, the sign-in screen. All from the same material, so it looks like one family. I wrote about how much 3D shapes weigh on a page and how I load them in the post on 3D shapes from code on a website. Here I took a simpler route: instead of a model in the browser I have finished images, because a mascot doesn’t need to rotate under your mouse.

The top of the frinter.app landing in dark mode: the headline Buduj z AI (Build with AI), next to it a logo of three felt triangles, with mascots in three colors floating around.
The frinter.app landing after the change: the same renders float in the background at different sizes and brightness, and the logo by the headline is the felt trio.

The third reason is the simplest. I took the same recipe to a second project. Famplace, an app that connects parents who live near each other, got its own felt characters shaped like a little house with a speech bubble and a heart. Different shape, different colors, same method. The first Famplace landing with them went out on the same Thursday as the new Frinter.

The top of the famplace.app landing in light mode: the headline Poznaj rodziców z okolicy (Meet parents near you), surrounded by felt house-shaped characters with speech bubbles, hearts and faces.
Famplace, the second project from this week: the same felt and the same faces, but a different character shape and a light theme by default.

With Famplace I went one step further than with Frinter. The landing was dark at first, like Frinter’s, but on Friday I switched it to a light theme by default. Dark is still there as an option, and the switch is felt, of course: a little sun and a moon. An app for parents, opened during the day with a kid around, doesn’t need to look like a code editor at midnight. The same material handled both versions with no change to the script, only the background under the renders changed. For me that was a good test of whether the method travels or only fits one product.

One morning, every place in the app

From Thursday 23:18, when I saved the script to the repository, to Friday 13:16, felt went everywhere. First the web app: dark theme and 18 navigation icons as mascots holding props. On Friday morning, the logo. From one 900-pixel render of the triangles came favicons at 16, 32 and 48 pixels for browser tabs, home screen icons and the iPhone app icon. The iPhone app’s launch screen is exactly the first frame of the animated intro, so the handover doesn’t jump.

Then the loader. Instead of flat triangles, three felt ones spin, each in turn around its own axis, then a short pause. 40 frames at 24 frames per second, a seamless loop, packed into one strip of 128-pixel images. The whole strip weighs 119 KB and works both on the web and in the phone app.

Finally, things I wouldn’t have thought of at the start. The five wellbeing dimensions in the app got their own felt characters instead of letters: a wave, a heart, balanced stones, a lightning bolt and a halo. The first posts on the Frinter blog have animated covers: a mascot in the sphere’s color with props that say what the post is about, in a three-second loop. The social share cards got the same material.

The cover of the post on closing the workday on the Frinter blog: a three-second loop straight from Blender, played three times here. The props, a laptop and a moon, say what the post is about.

For me, that was the biggest win of the whole change. Not one nice mascot, but the fact that every new element gets its look right away, without designing from scratch.

What didn’t work: a mascot holding a tiny icon

On Thursday before midnight I swapped the app’s icons for mascots holding props. A triangle with a calendar, a triangle with a moon for sleep, a triangle with a chart. On a big screen, cute. In the navigation bar, at a small size, it looked like a colored blob with something tiny in the middle.

At 6:14 in the morning I undid it. The icons became symbols alone in the same felt: a felt calendar, a felt moon, no character. The mascots stayed where they have room: on the landing, on empty screens, in the app guide. I passed the same rule to Famplace right away: icons should stand alone, not a mascot holding a tiny icon.

The interesting part was why I fell into that trap. I looked at the eighteen mascots with props in a big preview, side by side, and each one was readable. Nobody looks at a navigation icon in a big preview. The new symbol script frames each symbol so it fills its square, and gives them bolder shapes and lighter colors. Only that survived shrinking down to the navigation bar. The characters stayed in page headers, on empty screens and on sphere cards, which is where they get a few dozen pixels or more.

The second thing I fixed was a dark halo. In the app’s light theme there was a dark halo around the felt icons and mascots. On a dark background you can’t see it, on a light one it looked like a dirty outline. It’s gone from the light theme now.

The right half of the Frinter sign-in screen: a dozen felt triangles in three colors with different faces at the top, and below them the headline Agenci AI mogą pracować całą noc. Ty nie musisz. (AI agents can work all night. You do not have to.)
The sign-in screen at web.frinter.app: here the mascots are big and show all four faces. The navigation icons kept only the symbols.

What I take from this

My rule from now on: a character only where it gets at least a few dozen pixels. Below that, a symbol in the same material. The felt holds the family together, not the face.

If you want to make a 3D mascot for your own project, start with a small set and write it as a script before you make the first pretty render. Three colors, four faces, one camera. My order was:

  • brand colors at the top of the script, the same as in the site’s CSS,
  • one material for all characters, fine-tuned on a single triangle,
  • faces as separate small functions: eyes, eyelids, smile, blush,
  • render on a transparent background and straight to WebP,
  • only then poses, props and animations.

Before you leave a render running for a long time, look at a few frames, the same as with check frames before a Blender render. The mascot script takes a sample count and the name of one character, so a quick preview of one triangle is one command before I render the whole set.

The same triangles also play the lead in the landing’s scroll-driven scenes. How I calmed them down on iPhone is in today’s other post on scroll animations on iPhone Safari.

Want to build something like this yourself?

I work with people 1:1 under the delta240mvt brand. On your project, from the first step.

See the offer ↗