Langue de chat bakery: designing the wait

Once the geometry was ready, I needed to deliver the user’s design to the front end with a short wait. CPU baking with per-pixel antialiasing took too long, while providing GPUs for the workers raised operating costs. I approached image quality, responsiveness and service cost as one design problem.

Materials: baking without a GPU

I used affine transformation and resampling at the pattern level instead of centering the work on individual pixels.

First, I arranged the UV islands through rectangle packing. In the examples I worked with, area utilization was usually above 70%. Guillotine packing, which Roblox recommended at the time, was one of the approaches I considered.

Rectangle packing of color-coded UV islands
Rectangle packing of color-coded UV islands — Illustration: Enzoviz — metaverse-wearables-2

In this example, each channel needed 13 affine transformations and paste operations, with Lanczos resampling available. I composited logos, artwork and other non-pattern decoration beforehand and handled them as NumPy arrays. Reconsidering the unit of processing was part of making design feedback more immediate.

Baked garment patterns and logos
Baked garment patterns and logos — Logos belong to their respective rights holders. — Illustration: Enzoviz — metaverse-wearables-2