Roll for Disaster / Production guide

Procedural diceHoudini and Blender

We asked a video model for a twenty. It put the number facing the camera. The players needed it on top. For future episodes we asked AI to help us build dice we could edit, light and film from any angle.

By Alejandro Perez · Reviewed

A teal die with a raised gold twenty on its upper triangle and a darker eight facing the camera.
Made with the Blender generator. Raised brass on Kiln enamel, with a custom set and lighting.

Tools and build instructions

Start with a supplied scene. If you can open a project, select an object and render a frame, try either first exercise below. The manual rebuild goes deeper into nodes, geometry and Python. You can follow it without AI.

Both tools build six shapes and a second set of percentile labels. The free files include modelling, shading, example lights and source. Our rolling system, chosen results, character assets and saved production pigment fields stay private.

Houdini 2.0.2 corrects the checksums for the setup and rights documents. Blender remains at 2.0.1. Both packages contain the same tested 2.0 tools. The builds below identify our test machines. Minimum versions and other operating systems remain unverified.

Our original code, graphs and sample assets in the packages use the MIT licence. Our original teaching text and diagrams use CC BY 4.0. Credit Alejandro Perez / CGI Nerd. Retain the included font notices. Check your Houdini session eligibility before starting the Indie exercise.

Houdini

Tested with Houdini Indie 22.0.508 on Linux x86-64. The library (.hdalc) and scene (.hiplc) are limited-commercial files. Use an eligible Indie session and keep this project separate from commercial Houdini pipelines. Check eligibility and client file-sharing rules before use.

Who qualifies for Indie? · Pipeline restrictions

We tested the Python rebuild in Indie. Commercial, Apprentice, Education and Engine sessions remain untested. Your session licence applies to the rebuild too.

First try. Extract the ZIP. Use Assets → Install Asset Library to install Dice.hdalc, then open Examples.hiplc. Select TableDie in Solaris.

Download Houdini 2.0.2 ZIP · 3.2 MB

Try the shadow test. On a recessed face, hold the camera, light and cut depth steady. Under Markings, keep Recess depth at 0.36 mm and raise Fill height from 0.08 to 0.27 mm. Compare the dark line just inside the groove. Raising the paint shortens the wall that casts the shadow.

Rebuild from the included Python source

Under /stage select TableDie, keep the display flag on Studio and choose /Studio/Camera with Karma CPU. For an editable reconstruction use the self-contained standalone.py in Houdini or keep the modular rebuild.py beside its sources. The tested installation provides NumPy, fontTools and the system GLU tessellator. See README for the Python Shell command. Check your SideFX licence and the included notices before using this edition in another pipeline.

Verify this ZIP

Compare a local SHA-256 digest with this value.

42176157a1f7384141c38888ff9b769009421e3a32537316d4922691ff32f908

Blender

Tested with Blender 5.2.3 LTS on Linux x86-64. The native scene contains its geometry and materials. You can edit it without an add-on or running the builder. The optional Python reconstruction uses the 5.2 modifier input API.

First try. Extract the ZIP. Open Dice-Studio.blend, save a working copy and press F12 to render the supplied scene.

Download Blender 2.0.1 ZIP · 4.3 MB

Find the same casting twice. In the studio scene, look for a pale streak near the 8 on the Estuary die. In Object Properties → Relations, change Pass Index from 5 to 12, then back to 5. The shader uses that number to sample a different part of the same noise field. Restore the index for continuity and check any compositing masks that use it.

Rebuild from the included Python source

In the studio scene select the d20 and open Modifiers. Change a mark in Dice controls. Try the second scene for all seven examples. The saved graph works without running a script. Use build_dice.py in a fresh session to recreate the file.

Verify this ZIP

Compare a local SHA-256 digest with this value.

b2c1cc2e89104fbea72363a98a8fe37ae89d02586fe6d1118e3593309858c546
Raised brass serif numerals above a blue enamel panel.
Houdini · Cloisonne with the raised panel option, rendered in Karma.
White recessed digits on a blue-green die with pale internal bands.
Blender · Estuary with recessed paint, rendered in Cycles.

Both portraits use the supplied teaching tools. Open either image for detail.

The prompts are new exercises for a coding assistant. Try building in an empty folder, keep its first result and run the checks below. Compare your solution with the supplied source. The prompts can produce different implementations across sessions.

Watch the series

Start with the production story or jump to the application you have open. Each film includes a transcript you can read here.

The films include generated scenes from the production and narration made with a synthetic version of the presenter’s own teaching voice. Sound effects from Epidemic Sound.

AI Couldn’t Get This Shot Right. So I Built a Tool. · 12:25
Raised gold twenty on the upper face of a teal enamel die.

The film is planned for Monday, December 7 at 8 a.m. Eastern. You can read the guide and transcript now.

Film chapters
  1. 00:00 The shot that needed a twenty
  2. 00:25 Free modeling and shading tools
  3. 00:38 Why the first shot failed
  4. 01:33 Give the assistant a test
  5. 03:07 Cut a pocket in Houdini
  6. 03:51 Carry the drawing into Blender
  7. 04:34 Design for the player
  8. 05:59 Inside the casting
  9. 07:37 What the reflection reveals
  10. 08:46 One hundred dice
  11. 09:39 Keep the bounce and change the result
  12. 11:41 Try it on your next shot
Read the transcript

0:00   [Dice clatter] For this shot, I needed a twenty. Here's what the video model gave me. See the twenty? It's facing the camera. The players read the top. Watch those markings change. Even the shape is wrong. For that episode, I animated a reference in Blender.

0:17   But I'm going to need more shots like this. So I gave the AI a different job. Help me write the tools to build these dice. You can build and shade these dice with the free Houdini and Blender files at CGINerd.com. The link's in the description.

0:34   We keep the rolling setup and our saved pigment fields in the studio. Here's why that matters for Roll for Disaster, our comedy about a group of gamers. Trace around that twenty. See how it looks like a pentagon? On a regular twenty-sided die, every face is a triangle.

0:52   And watch the markings when I back this up. See that little dash above the loop? It seems to grow right into the number as the die turns. How do you match that in the next shot? For episode one, I worked out the shot in Blender.

1:08   I could animate the die, put the twenty on top, and show exactly where the camera should be. That animation went in as a reference. Here's the generated take I actually cut into the episode. That got me through the scene.

1:22   But we've got four people at this table. They've all got different dice. And every time we cut back, you're going to get a really good look at them. How many times do I want to solve this problem? So what do you actually ask a coding assistant to build?

1:37   Let's forget about the fancy materials for a minute. Suppose I give you a plain cube and a little rubber stamp with a six on it. Put a six on the front. Easy enough. Now put it on the side. You just did something rather interesting.

1:53   You moved the stamp, you turned it to face the surface, and you decided which way was up. The computer needs all three of those decisions. That's a much better assignment for an assistant. Build one stamp. Put it on these faces.

2:09   Then show me the front, the back and a section through the cut. Give me something I can check independently of the code you just wrote. Here's one of the things I check. See those little arrows? Two of them tell me which way to turn the stamp.

2:25   The one sticking straight out of the surface is called the normal. We also need good normals on the finished model to get the reflections right. We tried giving another assistant the reconstruction instructions without the finished tool.

2:39   Here are two of the results. Would you accept those? I might have. But when we measured the surface normals on both bodies, some of those arrows had effectively disappeared. A direction with zero length isn't much help when you're trying to light a surface.

2:57   So you check the tiny polygons, repair the normals and run the test again. That's an experimental rebuild you're looking at. The downloads get their own checks. Let me show you where I'd start in Houdini. Open the example, go into Solaris and select Table Die.

3:15   Pick the cube. Switch between dots and numbers. Leave the camera alone. We're going to use that same light to judge the cut. Try lowering the paint. Watch the side of the recess that faces away from the light. Now bring the paint back up.

3:31   It's a very small distance, but if you're doing an insert where that die fills the screen, you can see it. Turn the outline into a solid that crosses the surface. Subtract it from the body. Use a shorter solid for the paint.

3:45   Look inside the loop of the six. You should still have a little island of the original material there. Let's hop over to Blender. You could start over by showing the assistant a picture of the Houdini result. I'd give it something much more useful.

3:59   Give it those same numbered faces, and tell it which parts you want to be able to change. Use a Bevel modifier on the blank. For the lettering, convert a copy of the text into outlines. Keep the inner loops. Place them with those same arrows.

4:16   In Geometry Nodes, Mesh Boolean set to Difference will do the cutting. Give the shorter insert its own material before you join the geometry. Now you can do this. Keep the cut, keep the camera, and change just the paint.

4:30   Then hold the paint color and change how far down it sits. For the next episode, I'd like to be able to cut from one of our generated actors to the table, and have you believe we just moved the camera. For that, I've got to get pretty fussy about what happens to the light.

4:47   Now look at these three twenties. I'd like you to be able to tell who's rolling even if you never see a hand. One player loves all that swirling color. Another plays a retired blacksmith. And our strategist? He just wants to read the number.

5:01   Here's where I actually like using generated pictures. I wanted a set for this player, and I loved this combination of pink and teal. I can borrow that idea for the resin. I can get the dimensions and the lettering from much better references.

5:17   See that little shadow along the edge of the paint? If I just put a white number on a shiny surface, the reflection runs right across it. Cut a pocket, put the paint down inside it, and now the light can tell you how deep it is.

5:31   Here's the same idea turned around. Leave metal standing where the number goes, and drop the colored panel around it. Catch a highlight on that rim. You can get a very different kind of manufactured object out of the same drawing.

5:47   And these little flashes are reflective pieces. Move the light and a different set catches it. If I like where they are, I want to be able to change their color without throwing the whole handful back in again. Suppose I stir two colors into a cup of clear resin.

6:02   Just once. I want to stop right there and keep that little curl where the colors start to mix. How would you describe the shape of that curl to a computer? In our Houdini production setup, I can take a very thin slice through that cup, and make a map of how much pigment there is at each point.

6:22   Stack up enough of those maps, and I can look up the mixture anywhere inside the die. We store that three-dimensional information in a VDB file. You're looking at a section through the actual data. Here we're showing where light gets scattered.

6:37   We also keep track of how much of each color gets absorbed along the way. So if you look through a thin edge, you can get quite a different color than you get through the middle. Now, I don't want four copies of exactly the same swirl.

6:52   The seed gives the computer a place to start when it's making those little random variations. Change the seed and I get a different arrangement. Keep it with the recipe and I can come back to that same pour. Now here's a way to get swirls without saving any of those slices.

7:11   In the free Blender example we're asking a noise function for a value at a point, and using that to choose a color. It's a handy way to explore the pattern right in the shader. Here's another little test. Pick out a streak of color next to a number.

7:26   Turn the die. Does the streak follow it? If the pattern seems to slide underneath the number, check where you're getting your texture coordinates. You want them attached to the object. Once that resin sets up, the inside is pretty well protected.

7:41   The outside is another story. Watch the reflection. Those fine scratches break it up. And look right along the edge of the number. A little of the paint has come away. I can give that die a few years of handling and keep the very same casting underneath.

7:59   On a plain white die, that change in the shine may be about all I want. On a pearly one, I want a much softer change of color as it turns. Here's something to try before you decide that a surface is too shiny. Move a big light across it.

8:16   See how the reflection describes the rounding on the edge? The size of that bright patch depends on the size of the light as the die sees it. Roughness softens its outline. Now look underneath, right where the die touches the table.

8:32   I want to hang on to that little shadow, even when I bring the exposure up. And I'll check the height of the lens and how quickly the background goes out of focus against the shot I'm cutting from. [Dice clatter] Once you've got a die you like, make a hundred.

8:55   That's what you're looking at here. Each one gets an identity. I can keep its shape, its finish and the particular variation that went into that casting, even when I change cameras. Now we're into the private production work.

9:10   I used rigid bodies in Blender to pour these dice onto the table. Each die has a much simpler solid standing in for it. It's rounded where it hits the table. The solver can skip all those little edges inside the lettering.

9:24   In my first pass one of them actually went over the side. And when I checked the fast impacts, I had dice going into the floor between updates. So I changed the release and gave the solver smaller steps. Here's that impact slowed down.

9:39   Remember the blue die? Here's the original roll. I like that bounce. But look at the top. It's a three. Can I keep the roll and change the result? Try this with a regular twenty-sided die. Put it down on a piece of paper and trace around the bottom triangle.

9:59   Pick it up. Put a different face down inside that very same triangle. Run your finger around the outside. Every edge is right back where it was. And you can turn that bottom triangle three different ways and still get a perfect fit.

10:15   Watch the blue die on both sides. Same throw. Same bounce. On the left, there's our three. On the right, the twenty lands on top. I let the simulation finish first. Once I know which face ends up pointing up, I can work out how to turn the whole detailed die on its stand-in.

10:36   Then I go right back to the first frame and use that same mounting for the entire shot. There's a price for that trick. We're assuming that changing the lettering and the pigment makes a negligible difference to the balance.

10:50   And what if you've already seen which number was under somebody's thumb? Now I've got to match the beginning as well. If none of those three turns works, I'll look for another throw. And if a die gets stuck on an edge, I want the system to tell me that, too.

11:07   I need a clear result that stays put long enough for you to read it. So here we are, back at the beginning. Watch the blue one again. Same bounce, same spot on the table. This time, lean over and read the top. There's our twenty.

11:27   For a future episode, that gives me a choice. I can shoot the action from down here, cut up here to read the result, and still go back and change the lighting. Same cast of characters. Same little chips in the paint. Same performance.

11:41   Try this with something you keep having to fix. Maybe it's the hands on a clock between two shots. What would you like to change? What absolutely has to stay put? Give the assistant one of each, and ask it to show you the difference.

11:56   And if you want a place to start, try that six. Get the light to catch the inside edge of the paint. Once you've done that on one side of a cube, you've got most of what you need to put it anywhere. So, can AI roll a twenty?

12:12   Well, it helped me build the tools. And now I can give the editor that exact bounce, from either angle, with the twenty right on top.

Explore both tools
Check the three neighbours of twenty · 1:30
Read the transcript

0:00   What did he roll? If you're looking at the twenty, you're looking at the same thing I was. Trouble is, that's the side of the die. To read the result, you've got to look down from above. I needed a twenty for Roll for Disaster, a comedy about a group of gamers.

0:20   This was one of the takes the video model gave me. Look at the shape. It resembles a twelve-sided die. On a twenty, every face should be a triangle. Even the markings change as it turns. For that episode I animated a reference in Blender, and used a different generated take.

0:40   For the next one, I'd like to be able to move the camera anywhere and still see the right number. So I asked the coding assistant to help me make a tool. Give each face a number and keep it there. Now I've got something I can check.

0:56   Here's what I mean by a check. On this particular die the twenty has three neighbors. Two, eight and fourteen. I can ask the assistant to test for that. If I change the font or the finish and one of those numbers moves, I want to know why.

1:14   Now look down on our later test shot. There's the twenty. The rolling setup is private. You can get both tools for making and shading the dice, and see how we made that shot, at CGINerd.com.

Inspect the original take
Houdini · Read paint depth from a shadow · 1:15
Read the transcript

0:00   Look at the little line of shadow inside that number. You can change the color of the paint all day and never get that line quite right. In Houdini, try moving the paint. This is a procedural dice tool I made with a coding assistant after working on a tabletop comedy.

0:18   Open the example in Solaris, select Table Die, and switch to a cube. Pick the dots. They're nice and easy to see. Imagine taking a tiny cookie cutter and pressing it into the face. Subtract that shape from the body. Now make a shorter piece to go back in the hole.

0:37   That's your paint. Its height is measured from the bottom. Hold the cut depth and the light steady. Bring the paint up a little. See how that shadow narrows? Now try the same thing on a number. You get all those little changes in width as the line curves away from the light.

0:54   Once you can see that shadow, try turning the whole idea around. Leave the number standing up and put the color down around it. Watch what happens when the light crosses that edge. You can try both versions with the free Houdini dice tool.

1:09   I'll walk you through it at CGINerd.com.

Try the paint exercise in Houdini
Blender · Find the same streak of resin again · 1:28
Read the transcript

0:00   Pick a little streak of color next to that eight. As I turn the die, see how it stays right there? The highlight slides across it. It's a small thing, but it's a pretty good test for a resin shader. I'm working on a comedy about people playing a tabletop game.

0:16   I need a lot of dice, and I need to recognize the same ones when we cut to a different angle. Here's how you can try this in Blender. Select a die and open the modifier. Geometry Nodes takes care of the shape and the markings.

0:33   For the pattern, have a look at the material. We're sampling noise in three dimensions. Think of cutting the die out of a bigger block of swirled resin. Use coordinates that move with the object. If you want a second casting, shift the part of the block you're sampling.

0:50   In this example the object's pass index gives you a repeatable variation. Write that value down and you can find the same piece again. Try it in the studio scene. On the twenty, look under Relations in the object properties.

1:06   Change the pass index from five to twelve. Pick a number on the die and compare the color right along its edge. Now go back to five. There's the original streak. You can try it with the free Blender dice generator. The file and my step-by-step guide are at CGINerd.com.

Try the casting exercise in Blender

Three short experiments

Pick one thing to keep fixed, then watch what changes.

Keep the bounce. Change the ending. · 0:52
Read the transcript

0:00   [Dice clatter] The bounce works. The story needs a twenty. And I just rolled a three. Watch these two shots together. [Clatter] See that little hop? They're playing the same computer simulation. On the bottom, I get my twenty.

0:14   How early do you think I made the change? Go all the way back. It's already there. I turned the entire visible die relative to the shape that hits the table. Then I kept that offset for the whole shot. That works because this particular turn lines the corners right back up.

0:33   We treat the die as balanced and ignore those tiny cuts in the surface. If you already saw the starting number in another shot, I might need a different throw. Here, the editor gets to keep the bounce. Our rolling setup is private.

0:48   I explain the trick at CGINerd.com.

See the private roll technique and its limits
Move one light · 0:39
Read the transcript

0:00   Same die. Same material. I only moved one light. Look at the dark little crescents inside those dots. I'm sliding a narrow strip of light across the back of the table, keeping it aimed at the die. Watch the reflection travel across the top.

0:17   Now look where it stops. The paint sits just below the surface. The little wall around the paint catches the light at a different angle. That tiny interruption tells you how the die was made. Try moving a light before you touch the material.

0:33   The Blender exercise is at CGINerd.com.

Try the Blender lighting exercise
Age a prop. Keep its identity. · 0:49
Read the transcript

0:00   The next scene happens years later. It still has to be the same die. How do you age it without losing the thing that makes it recognizable? Look just to the left of the twenty. See that little curl of turquoise? Think of it as a fingerprint.

0:16   In our Houdini setup, that swirl is part of a map of the pigment inside the resin. I keep that map fixed. Now I can scuff the outside. Watch the sharp reflection soften. Take it further, and little bits of paint start to disappear from the zero.

0:32   New, handled, worn. There's that same curl in all three. How old it feels is an art decision. This casting is private. You can see how it works and try the free modeling tools at CGINerd.com.

Follow the private casting through three wear states

Why the twenty fooled the camera

In Roll for Disaster, four friends sit down to play a tabletop role-playing game. What happens to their characters depends on the dice. For one shot in the first episode I needed a twenty. Take a look at this alternate roll from the video model. What did the player roll?

The alternate generated roll from take B. The outline around a large camera-facing 20 has several changes of direction along the sides and bottom. A separate flat surface faces upward.
Trace the orange line. A regular d20 has twenty triangular faces. You can already see more edges than a triangle needs.

The broad patch around that twenty looks more like a pentagon. A d12 has twelve pentagonal faces, each with five sides. A d20 has twenty triangles, each with three. We can’t count the hidden faces in this clip, but the visible shape already rules out a regular d20.

A player would lean over the table and read the number on top. From this angle the twenty is easy to see, but it’s facing us. And if you wind the shot back a little, there’s another problem.

Sequential crops of the same moving face. A detached stroke appears to join a loop.
These crops show the same moving face about a sixth of a second apart. A short dash and a loop appear to join into a six. The motion is soft enough that I would hesitate to name the original mark.

The generators in this lesson didn’t exist when we made Episode One. For that one shot I built a Blender animation to show the motion, camera and intended result. I supplied it as a reference. We used three earlier passages from take B, but for the roll itself we cut to take A. Compare the pencil and the view of the top face.

Blender reference showing a twenty on top beside a yellow pencil.
Blender motion reference
Finished overhead shot of the die and pencil, with the twenty visible on top.
Generated take used in Episode One

That got us through one insert. Now imagine doing it for every player, every die and every camera change. Even the scratches have to stay next to the same numbers when you cut to a close-up.

After Episode One I gave AI a different job. Help me write the tool that makes the die. Once the dimensions, lettering and materials became editable instructions, I could change one of them and check what happened to the others. That’s what “procedural” means here. Our first exercise is small enough to do with a pencil. By the end we’ll use the same face information to change a scripted result while keeping the bounce.

A new tabletop simulation sends dice into a lined tray.
A new test for this lesson. Once we could make one die reliably, we could vary the shape, colour and finish across a hundred of them. The pour uses a separate simulation. We’ll return to one blue die at the end.

What a photograph can tell you

A real burgundy d20 on a wooden surface.
Physical reference. Trace the narrow highlight along a rounded edge, then look at the worn patch of pale gold paint on the 1 beside the 2.

Look along a real die at a grazing angle. A streak of reflected light bends over a corner, drops into a groove and catches again on the lip. On a metal die the bright line can run around a whole face. That tells you which surfaces need to turn through the light. A paint mask alone would leave the highlight running straight across.

Production close-up of an iron-coloured twenty-sided die. Bright numeral crowns sit inside dark rims above red enamel.
Gentle Giant · Later character study. Follow the strip of light across the raised rim and down into the enamel.

We used physical dice to study that construction. Generated concept images helped us decide what each player might have bought. The Clever Rebel’s teal and raspberry swirls make an individual casting easy to recognise. The Chessmaster wants to read a black mark on white plastic. The Gentle Giant plays a retired blacksmith, so tiny reflections in dark red enamel suggest forge sparks. None of those sparks needs to emit light. The Dungeon Master collects mismatched sets. A whole assortment spilling from a pouch tells us something a matched row of dice would miss.

Generated concept sheet of pink and turquoise dice on white. Several printed values and face layouts are unreliable.
Generated concept · The colour pairing survived. Inspect the apparent solids and repeated labels before trying to model from this image.

A picture can suggest a palette and still give you an impossible die. Turn it over. Which number is underneath? Is the same chip beside the same numeral? What’s the distance between the two faces? Those decisions belong in a record you can inspect.

Four six-sided dice with white pips and distinct swirls of pink and turquoise resin.
Clever Rebel · Four castings share one design. The different pours give the editor a continuity check. These internal volume materials belong to the film project.

An AI coding assistant helped turn design decisions into reusable operations and checks. One useful way to work is to ask for a single face first, a test that proves it reads correctly, then the loop over all faces. Inspect the generated network and run the test again after every change. An assistant can propose several ways to make a bevel. Once you choose one, the saved geometry, parameters, source version and any seeds define the repeatable operation. Save those along with a reference frame. Running the same prose prompt twice gives you no such guarantee.

Give each face an address

Start with the sharp mathematical solid, centred at the origin. Keep a clean copy. Make a second branch for the rounded outer shape that will touch the table. A third branch carries the expensive visible details. You can replace a font or a material many times without losing the original face IDs.

Both downloads contain frames.json. For an exact manual reconstruction, import those vertices in millimetres and make one polygon per ordered index ring. Keep the supplied value and reading direction attached to the ring. A mesh editor can reorder polygons after a bevel or a Boolean operation. The original table still knows where the six goes.

Die Ideal construction Reading check
d4 Four triangles on a tetrahedron Three marks agree at the top vertex
d6 Six squares on a cube Opposite values add to 7
d8 Eight triangles on an octahedron Opposites add to 9
d10 Ten kites on a pentagonal trapezohedron Digits on opposite faces add to 9
Percentile Same kites, labels 00 through 90 Opposite tens add to 90
d12 Twelve regular pentagons Opposites add to 13
d20 Twenty triangles on an icosahedron Opposites add to 21

Those are the conventions in these files. Several number layouts can pass an opposite-sum test. Comparing each oriented ring against the original table catches swaps that the sum misses. The d10 is a useful trap. Joining two pentagonal pyramids gives ten triangles. The long kite faces need a staggered belt of vertices at two heights. Use the supplied ring order even if you know another mathematically valid layout.

Try the film’s neighbour test. Open either download’s frames.json. In D20 find the face with value 20. Each neighbour shares two of its three vertex IDs. In these files the three neighbours read 2, 8 and 14. Ask your coding assistant to make that a test and run it after changing the typeface. Then try swapping 8 and 14 in a disposable copy. A test that checks only the set of neighbours still passes. To catch that mistake, store which number belongs across each edge. You’ve just turned a continuity problem into a repeatable check.

To build a practice d20 from scratch, let φ = (1 + √5)/2. Take (0, ±1, ±φ), (±1, ±φ, 0) and (±φ, 0, ±1). Join triples whose three pairwise distances are 2. Point each triangle outwards. If the distance from the centre to a face plane is h, multiply every vertex by 10/h for 20 mm across opposite planes. Expect 12 vertices, 30 edges and 20 faces. Align two adjacent faces to their counterparts in the supplied solid before transferring the labels. A correct diameter still leaves you free to rotate the whole thing.

Draw in two dimensions

Imagine pressing a rubber stamp onto the front of a cube. Slide it two millimetres to your right and one up. Now walk around the cube and press it onto the next face. Your “right” has changed. The drawing on the stamp can stay exactly the same.

A six stamped on the front of a cube.
Start with a flat drawing.
Two steps right and one up locate a point in the plane of the six.
Give each point an address on the stamp.

Think of each face as a piece of paper taped to the die. Mark the centre, draw an arrow towards the top of the text and take a photograph straight down the normal. Every letter should read forwards in that photograph.

A triangular face with right and up arrows beside a magnified section through a recessed stroke. Positive normal points out. The fill stops below the lip.
Left, a flat drawing in the face plane. Right, a section across one stroke. Depth is exaggerated. The winding of the outer loop and the hole in a six must be opposite.

Use the average of the polygon vertices as a convenient origin. On an asymmetric kite you can move the artwork within the face after fitting it. Cross two successive edge directions and normalise to get the outward normal N. Check that its dot product with the centre is positive. Cross the saved reading direction with N to get right, then cross N with right to recover a perpendicular up. This also removes small out-of-plane errors.

A point (x, y) on a glyph now lands at centre + x right + y up + z N. Choose negative z to cut below the face. Keep all three distances in the same units. When moving between Y-up and Z-up applications rotate the complete basis together. Swapping two components alone mirrors the text.

Try the small Python example below. Save it next to the supplied data and run python3 frame.py from that folder. It checks the ideal faces in whichever frame table you place beside it. For the first d8 face the centre is (4.2, 4.2, 4.2) mm. Stepping in by 0.2 mm gives approximately (4.0845, 4.0845, 4.0845). A positive step should move all three components the other way.

Compute the face frame · Python 3

Save frame.py

"""Run with Python 3 inside either unpacked source folder beside frames.json."""
from pathlib import Path
import json, math

def sub(a, b):
    return tuple(x - y for x, y in zip(a, b))

def dot(a, b):
    return sum(x * y for x, y in zip(a, b))

def unit(a):
    length = math.sqrt(dot(a, a))
    if length < 1e-9:
        raise ValueError("Zero-length direction")
    return tuple(x / length for x in a)

def cross(a, b):
    x, y, z = a
    X, Y, Z = b
    return y*Z-z*Y, z*X-x*Z, x*Y-y*X

def frame(die, face):
    ring = [die["vertices"][i] for i in face["vertices"]]
    c = tuple(sum(axis)/len(ring) for axis in zip(*ring))
    a, b, d = ring[:3]
    n = unit(cross(sub(b, a), sub(d, a)))
    if dot(n, c) <= 0:
        raise ValueError("Check winding and the centred origin")
    right = unit(cross(face["up"], n))
    up = cross(n, right)
    return c, right, up, n

def place(basis, x, y, z):
    return tuple(c+x*r+y*u+z*n for c,r,u,n in zip(*basis))

library = json.loads(Path("frames.json").read_text())
for name, die in library.items():
    for face in die["faces"]:
        basis = frame(die, face)
        c, right, up, n = basis
        assert abs(dot(cross(right, up), n)-1) < 1e-7
        assert all(abs(dot(sub(die["vertices"][i], c), n)) < 1e-4
                   for i in face["vertices"])
    print(name, len(die["faces"]), "planar faces")

# One test point 0.2 mm below the first face in the D8 record.
die = library["D8"]
point = place(frame(die, die["faces"][0]), 0, 0, -0.2)
print(tuple(round(x, 4) for x in point))

Fit the ink before adding depth

Flatten the font outlines into ordered loops. Preserve inner loops in 0, 6, 8 and 9. Centre the actual bounds of the drawing, including any orientation dot. A font’s advance width includes spacing for the next character. It can leave a single 1 noticeably off centre.

For each edge of the usable face, find the perpendicular unit vector pointing inward in the paper plane. For every outline sample, dot that vector with the displacement from the edge to the sample. The smallest result is your clearance. Reserve room for rounding, the panel rim if present and the widest part of the cutter. Reduce the common glyph scale until every distance clears that margin. A binary search between zero and your proposed scale works if the anchor is safely inside a convex inset. Try 20, 00 and a dotted 9 before trusting a fit based on 1.

For pips, place circles on a three-by-three grid. Use the centre for one, opposite corners for two, then add the centre for three. Four uses the corners. Five adds the centre. Six adds the middle position in each outer column to four. Keep that pattern in the same local basis as the numerals.

A translucent tetrahedral die showing the same apex number on two adjacent faces.
On this style of d4 the point carries the result. Walk around the die and you should read the same value at that point from three sides.

The d4 needs a different loop. For each incident vertex, aim the top of the numeral towards that vertex, slide its anchor away from the face centre and fit it inside the corner. Look up the vertex value each time. That gives twelve placements, three copies of each value. A face-down check reads the vertex opposite the supporting triangle.

For a percentile pair retain the printed labels. The tens die showing 40 and the units die showing 0 give 40. Both showing zero give 100. A lone ordinary d10 showing 0 usually reads as ten. Keeping those rules outside the artwork lets you reuse the same physical object.

Choose the section through the mark

One way to recess a mark is to subtract a cutter that extends slightly through the outer plane. Blender does this. In Houdini we build the same wall profile directly from rings of points. Stop its floor below the surface. Taper or soften the lip so the light can pick it up. Add a separate dark or pale fill that sits visibly below the lip. Inspect the wall at a shallow angle for gaps and coincident faces.

For raised metal, inset the face first, sink the panel, then leave metal standing where the letters go. Keep their crowns inside the table contact envelope. A useful check is to lay a virtual straightedge across the rim. If a letter touches it first, that face can rock. These two cross-sections lead to quite different tool graphs even when they share every number.

Measured production sections through a numeral 1 compare the original straight wall with a rounded mouth and drafted wall. Enlarged insets show the top corner.
Film development · A section through the same stroke explains why the newer lip picks up light. Open the drawing for the measured profile. These are production dimensions.

One drawing, two modelling paths

Houdini example of the numbered d20 with recessed marks.
Houdini · Lofted walls and tessellated caps
Blender example of the numbered d20 with recessed marks.
Blender · Boolean cuts and separate pigment geometry

Look at the edge above the 8. Blender rounds it more broadly in this setup. Both versions keep the same neighbours around the 20. Lighting and shading come from each application. These views illustrate the construction choices. A renderer benchmark would need matched colour transforms, lights and sampling.

Build it in Houdini

First, try a one-minute edit. Open the example, keep Studio on display and select TableDie. Choose Tide under Recipes, set Pattern seed to 11 and look at the colour beside the 8 in Karma. Now change only the seed. You’ve moved the pigment without recutting the groove.

To see why that works, start on the Stage. The download wraps a Solaris subnet in an Indie digital asset. You can study the same construction in the Python source. Read frames.json, then kernel.py, envelope.py and outlines.py alongside the graph. A useful first goal is one unpainted cube with a separate six you can isolate in the scene graph.

1. Make three SOP outputs

Houdini calls a geometry operation a SOP. A LOP edits the scene in Solaris. This is where the shape gets its materials, camera and lights.

Inside the SOP Create LOP named Shape_and_markings, wire three Python SOPs to a Switch named Representation. Route Cut_and_fill through the optional Include_foil switch. Connect that switch, Ideal_faces and Rounded_proxy to inputs 0, 1 and 2. Feed the switch into the display null OUT. A separate null, Recipes, holds the source, map and fonts in node user data. On this exact hierarchy the switch reads ch("../../../../outputmode"). Give the subnet a shape menu and promote size, radius, marking style and material controls. Pass the same selected record to each generator. In a hand-built subnet, a spare float on a child can follow a parent control with the HScript expression ch("../radius") if that control is one level above. Adjust the relative path to your node. The supplied kernel instead receives the asset node and evaluates named parameters on it.

For a first pass leave Override nominal size off. On a d20 you should get 20 mm across the flats. On a d4 the size field measures an edge. On a d8 and either d10 it measures pole span. Uniform resizing also scales the manufacturing details. The default 0.55 mm edge radius refers to the nominal size.

Reconstruct analytic coordinates in double precision while using the file to keep the ordering. For example, the d10 poles are at ±12.2 mm on Y. Space the ten belt vertices by 36° around Y at radius 10.2 mm. Alternate the sign of the belt height. Its magnitude is 12.2 × (1 − cos 36°)/(1 + cos 36°) mm. This keeps each four-corner kite planar. Neighbours share two vertex IDs.

2. Round without changing the face planes

For these centred solids every face is the same distance d from the origin. Shrink the sharp coordinates by (1 − r/d), where r is a positive radius smaller than d. Add r times each face normal to its shrunken vertices. That puts each new flat back on its original support plane.

Bridge adjacent flats by sampling directions between the two normals. Normalise each interpolated direction, multiply by r and add it to both endpoints of the shared core edge. Join successive pairs with quads. Fill the remaining spherical corners using normalised fans of the incident directions. Weld matching boundaries. Try a single edge with this interpolation, where a and b are endpoints on the shrunken solid, u and v are the adjoining face normals, and i runs from zero to steps inclusive.

t = i / steps
direction = normalize((1 − t) × u + t × v)
edge_sample = (a + r × direction, b + r × direction)

A convex hull of the sampled exterior supplies the contact branch. Its sampling can be coarser than the visible die. Check the support error before simulation.

3. Loft the lettering

Use the bundled type outlines. The Python path flattens font contours and tessellates caps with holes. Preserve the order of samples when you offset a ring so sample i joins sample i at the next layer. Reverse the facing of a wall when a hole becomes an island. An 8 makes a particularly good test.

Inside make_face, positive depth subtracts the outward normal. For an engraved face, triangulate the flat region around the openings. Build a short bevel, then carry the wall down to depth d. The floor inset is bevel + d × tan(draft). Convert the angle to radians for Python. Close the floor. Make the pigment a second closed solid with slight clearance from the wall and floor. Its visible surface sits at depth minus fill height. Keep more than 0.07 mm above the fill and more than the bevel width. If needed, lower the fill.

For the raised setting, cut one inset panel and keep islands for the letters. In the teaching kernel the crown is recessed by 0.045 mm and the insert clearance starts at 0.008 mm. Test custom glyphs for pinched counters after offsetting. Keeping the defaults for a first build gives you a useful reference.

4. Separate the surfaces in Solaris

Create polygons, set primitive path, face_id, value, face_normal and face_up, and write vertex normals and projected UVs. The writer converts millimetres to metres, reverses the ring order for Houdini and keeps the normal and UV lists in step. Store the d4 apex value on the ideal points.

After SOP Create, wire the Body_and_fill Material Library. Build two MaterialX Standard Surface shaders, Shell and Inlay, each feeding its own MtlX Surface Material. Enable assignment inside the library for the matching Body and Fill geometry paths. For optional foil, insert Reflect_both_sides after the library. Use the Shade_finished_only Switch to bypass the library for the ideal and proxy modes. Expose base colour, metalness and roughness where needed. Inspect the resolved binding on each leaf prim. Give duplicates separate paths before merging stages. Keep ideal and proxy geometry out of the beauty pass.

5. Mix two pigments in object space

Start with Tide under Recipes. Change the pattern seed to 11. Pick one coloured patch near the 8. Switch the wear seed and check that the patch stays where it was. The surface scuffs use a different coordinate offset. To reconstruct the colour branch in the Material Library, choose vector signatures for the first four operations and float for the second fractal.

  1. Read MtlX Position in object space. Multiply by 110 per metre. Add the vector (0.113, 0.179, 0.233) times the casting seed.
  2. Feed that coordinate into MtlX Fractal3D with four octaves and amplitude (2.5, 1.35, 0.8). Add its vector output back to the original shifted coordinate. This bends the boundaries before you draw them.
  3. Sample a second Fractal3D there with five octaves. Feed its float output into Smoothstep with thresholds −0.33 and +0.33. Move the thresholds closer together for sharper boundaries.
  4. Use that mask in MtlX Mix between navy (0.005, 0.052, 0.135) and turquoise (0.045, 0.74, 0.59) in linear RGB. Connect to base colour and transmission colour. Set transmission 0.69, roughness 0.16, coat 0.18 and tint distance 0.012 m. Try neutral scatter at 9 per metre.
Navy and turquoise pigment bends around a numbered die on the example desk.
Tide uses a continuous field sampled on the shell, with absorption through the resin. The private Clever Rebel example uses a separate three-dimensional pigment volume.

For fine wear, combine a broad roughness variation with small isotropic noise and narrow directional streaks. In the supplied graph, Broken_lines isolates only the high parts of an elongated noise pattern. Feed a small amount into Bump as well. Try reducing Handling wear while keeping the camera fixed. The numeral should retain its highlight.

6. Put the foil where light can reach it

Use Amethyst for foil in the resin. For foil inside an enamel panel, enable raised marks, choose Liberation Serif Bold and press Cloisonne. For the portrait below, set Handling wear to 0.14, Fill transmission to 0.68 and Foil diameter to 0.088 mm. Both examples use the separate Scatter_foil branch. In Solaris assign a third, metallic Standard Surface to Foil and make that mesh double-sided. Each flake is a thin hexagonal reflector. A highlight should come and go as you move a light.

For the body, sample random points inside a bounding box and accept points that sit farther from every face plane than the deeper of rounding and engraving, plus the largest flake radius. For enamel, choose a triangle on the fill surface in proportion to its area. Move its corners towards the incenter by the fraction flake radius divided by triangle inradius. Pick a point inside that smaller triangle. Leave a radius above and below the tilted flake. Discard candidates that cannot fit. The mesh count can drop in narrow letters. Inspect foil_count on OUT.

Change only foil colour and compare positions. Then change the particle seed. Only the second edit should move the discs. If they disappear, check which material surrounds them and whether it transmits light. Start with fewer discs and raise sampling before judging very small glints.

7. Find a reflection that explains the shape

Watch the eight as a narrow light crosses the die. At one extreme the bevel catches the light and the face stays dark. At the other, the whole panel reflects the strip. For a product shot I’d look between these positions, where the raised eight picks up a bright edge and the blue enamel still has colour.

A thin reflection follows the left bevel. The blue panel behind the raised eight stays dark.
Strip on the left · Look at the bevel.
The broad reflection fills the panel behind the eight.
Strip on the right · Look at the panel.

Try a rectangular light roughly one die wide and four dice tall. Keep the camera, base lights, exposure and material fixed. Aim the strip at the centre and move it sideways. In the companion film we rendered seven positions in Karma and blended their contributions in linear light before the display transform. That lets us adjust the sweep timing without shading the die again. The two stills above show the individual end positions.

Cut_and_fillOptional foilIdeal_facesUnrounded recordsRounded_proxyConvex contact meshRepresentationChoose one SOP outputBody_and_fillShell, inlay and foilBypassKeep diagnostic geometry bareShade_finished_onlySend the selected branch to the stage
  1. Cut_and_fill · Optional foil
    Ideal_faces · Unrounded records
    Rounded_proxy · Convex contact mesh
  2. Representation · Choose one SOP output
  3. Body_and_fill · Shell, inlay and foil
    Bypass · Keep diagnostic geometry bare
  4. Shade_finished_only · Send the selected branch to the stage
Houdini reading map · Three representations share the recipe. Only the finished branch needs material assignments. See the captured network below for exact wiring.
A d12 with reflective flakes inside the resin.
Amethyst · Inspect individual flakes in transmitted light. Try changing their colour before changing the particle seed. Open for detail.
Houdini parameter panel for the Solaris dice generator.
Inspect the promoted controls here, then follow the selected output into the graph. Open for detail.
Houdini network for the downloadable dice generator.
Follow the construction into Solaris and inspect the material assignments on the resulting prims. Open for detail.

How far below the surface is the paint?

In Houdini, set the cut to 0.36 mm and compare two fill heights measured from the floor. Look at the crescent of exposed wall on the shadow side of each pip.

Deep lip around each pip.
0.08 mm of paint, leaving 0.28 mm exposed
Shallow lip with more paint.
0.27 mm of paint, leaving 0.09 mm exposed

Leave a little island inside the six

Stay on the cube and turn pips off. Look down on the six. The centre of its loop should still be part of the shell. In Fill change just Pigment, keeping the groove and light fixed. These crops use a closer camera.

Pale paint around the island inside a recessed six.
Original fill
The same groove with orange paint.
Only the pigment changed

Build it in Blender

Here the editable part lives in the modifier stack. The reconstruction script prepares the outlines once. Changing depth then means moving existing points through a field and evaluating the selected Boolean. You can follow helper, profile_group, die_group and die in build_dice.py as you wire it.

1. Prepare the base and the drawing

Use one modelling unit per millimetre and set the scene scale accordingly. Convert every Y-up position and direction with (x, y, z) → (x, −z, y). Make the sharp base mesh with its face_value face attribute. Add Bevel ahead of Geometry Nodes. Start around 0.55 units and six segments. Clamp overlap. This keeps exterior rounding off the tiny letters.

In a manual build, make two hidden source objects per form, one sans and one serif. Add a third object for cube pips. Keep each source at identity in the same local space as the base. Check one face before duplicating the process. For the cube, set pip centres 3.75 units apart and use a disk of radius 1.34 with 48 sides. On the tetrahedron start each numeral 43% of the way from the centre to its vertex.

Prepare a closed extruded text mesh for each outline choice, preserving the holes. A circle extruded the same way gives you a pip. Place the drawing in its local frame. Keep the helper objects linked and out of the render. A font switch selects prepared contours. Adding a new font requires preparing its helper geometry too.

2. Store enough information to move either cap

Store four vector attributes per point. anchor is the mark origin. outline is the in-plane offset at normal size. axis is the face normal. inset gives the displacement per unit of clearance. To construct the last vector, find the two boundary edges meeting at that outline corner. Offset their lines inwards by one unit and subtract the original corner from the intersection. Handle nearly parallel lines with the common inward normal and check sharp mitres.

Store cap and flare as floats. Make four rings. Set cap to 0, 0.76, 0.90 and 1 from bottom to top. Set flare to 0, 0, 0.19 and 1. Limit miter travel on short edges as in the outline helper. In a reusable node group read the six fields with Named Attribute. Combine Math and Vector Math nodes, then feed the result into Position on Set Position. The field equations are

z = Bottom + cap × (Top − Bottom)
margin = Inset + Lip × flare
Position = anchor + Size × outline + margin × inset + z × axis

That final socket matters. Using Offset would add the original point position a second time.

3. Reuse that group for a cutter, paint and relief

Read the source meshes with Object Info in Original space. Use a geometry Switch for the typeface and another for pips on a cube. Feed the chosen mesh into three copies of the placement group. At a nominal cut of 0.36 mm and half fill, the paint surface is 0.18 mm below the face.

  • Cut. Set Bottom to −Cut and Top to +0.012 mm and Lip to −0.056 mm. Subtract the result from the bevelled body with Mesh Boolean in Difference mode.
  • Paint. Set Bottom 0.009 mm above −Cut and Top to −Cut + Cut × Fill fraction. Give the perimeter a 0.009 mm inset and a 0.018 mm Lip. Use Set Material for the paint and Join Geometry with the cut body.
  • Relief. Start 0.055 mm inside the body, use a 0.028 mm Lip, end at positive relief height and use Mesh Boolean in Union mode. Assign the mark material to the relief input. Inspect the resulting material slots.

4. Keep the finishing switches downstream

Use one Switch to select engraved or raised, another to return the bare rounded base for proxy inspection. End with a uniform Transform Geometry so the same size multiplier affects the whole result. Reseat the die if you change its dimensions. Duplicate a material before changing just one instance.

The raised Blender branch projects above the original face. Its bare proxy can miss the letters. Rebuild and test a contact envelope before using that option in a roll. This differs from the sunken Houdini panel. A shared face table guarantees neither identical bevels nor identical contact.

5. Cast two variations in Cycles

Start with Estuary | cast resin in the Body socket. Under Object Properties → Relations change Pass Index from 5 to 12. Look through the shell. You should see the pale bands move while the lettering stays fixed. Set it back to 5. This control also changes the index used by an object-index pass.

A pale diagonal ribbon rises from the lower corner of the triangle toward the right side of the eight.
Pass Index 5 · Follow the diagonal by the 8.
Pale bands run almost horizontally below the eight. The numeral and the camera stay in place.
Pass Index 12 · The stripe runs across the face.

To build the effect, take Object from Texture Coordinate. Add Object Index from Object Info using Vector Math in Add mode. Blender adds the index to all three coordinates. This translates the sampling point through the pattern while keeping the pattern attached to the die.

The Object vector and the numeric Object Index feed a vector addition in the Estuary material.
Start here if two copies show exactly the same streak beside a number.

Stretch those coordinates by (0.5, 1.2, 1.45). Feed Noise Texture at scale 0.095, detail 4 and distortion 1.6. Send the same factor into three Color Ramps. Use a navy to turquoise ramp for the surface tint with Principled transmission weight 0.72. A second ramp sets Volume Scatter colour. Put a thin pale band near 0.515. The third ramp controls scatter density. Try 0.035 at 0.49, a peak of 0.46 at 0.515 and 0.041 at 0.55. Pull those stops apart to thicken the suspended pigment.

Stretched coordinates drive one noise field with separate ramps for surface tint, density and scatter colour.
One field keeps the patterns registered. Separate ramps let you change the density without repainting the surface. Open for detail.

Add the scatter and a Volume Absorption shader together with Add Shader and connect to the material’s Volume socket. Try scatter anisotropy 0.16 and absorption density 0.125 at this file’s millimetre scale. In surfaces.py, follow the object index into the noise offset so every duplicate can have its own casting.

Blender 5.2.3 can warn “Maximum number of closures exceeded” here. In the supplied single-interior example, combining the two volume terms in one equivalent node gave the same displayed image. Check again if you stack several overlapping volumes. Leave Persistent Data off when changing material assignments between renders.

For a different test, choose Orchid | silver fleck and turn on Glitter. The geometry group uses a hidden mesh of candidate centres. The builder tests those points against inset face planes and a minimum spacing. Choose a seeded subset, instance a tiny hexagonal solid at each point, vary orientation and realise instances. Use a metallic foil material. Turn the branch off for opaque plastic. Scrub the particle seed with the camera fixed, then hold the seed and change only the metal colour.

Object InfoSans, serif or pipsPlace cap and floorReuse one field groupBevelRound the base firstProfile inputsReuse the outline at different depthsDifference + JoinRemove cutter and add paintUnionFuse raised lettersSwitch → Transform GeometryPick the finish or bare proxy, then scale
  1. Object Info · Sans, serif or pips
    Place cap and floor · Reuse one field group
    Bevel · Round the base first
  2. Profile inputs · Reuse the outline at different depths
  3. Difference + Join · Remove cutter and add paint
    Union · Fuse raised letters
  4. Switch → Transform Geometry · Pick the finish or bare proxy, then scale
Blender reading map · The outline helpers supply the drawing and the bevel supplies the base. Follow the selected finish through to the common scale. The bare proxy can bypass both marking branches. See the captured network below for exact wiring.
A purple d20 catches the light in individual silver flakes.
Orchid · Turn the light. The flashes should move from one flake to another while the particles stay inside the die. Open for detail.
A selection of generated dice in the Blender studio.
Compare the reflections across the collection under one set of lights. Open for detail.
Blender modifier stack with Dice controls open.
Adjust the outer radius first. The modifier below it controls the treatment of the marks. Open for detail.
Blender Geometry Nodes network for the downloadable die.
Trace the two finishing branches to their switch. The last scale also affects the proxy. Open for detail.

Change only the fill

Both cuts are 0.44 mm deep. The fill fractions of 0.18 and 0.82 leave about 0.36 mm and 0.08 mm of wall exposed. Watch the shadow along the back wall of each pip. Raising the paint shortens that strip even when the outline stays fixed.

Deeper visible wall with low pigment fill.
Lower fill · Blender teaching file
Narrower exposed wall after raising the paint.
Higher fill · Blender teaching file

Put the colour inside

Imagine pouring raspberry and turquoise into clear resin. Pull a stick through the cup once and stop. There’s a folded ribbon hanging in there. Photograph it from above and you have one lovely pattern. Look from the side and another part of the fold appears. How do we keep both views when the camera moves?

In our private Houdini production material we store a little three-dimensional map inside the Clever Rebel’s die. OpenVDB is a way to store these grids. It saves space by grouping regions that share one value, such as the empty space around the die. Here each sample tells the renderer something about the way light travels through the resin. Think of a stack of thin slices. Pick a position between samples and interpolate the neighbours.

Three sections below the twenty face. A bright pink fork divides and fades as the turquoise region broadens. The finished die appears beside the data.
Private casting study. The coloured sections show the RGB scattering grid on one logarithmic scale. They omit absorption, the shell, paint and lighting. The final image includes all four.
Section parallel to the twenty face. A bright fork of pink pigment crosses the triangle.
Follow one curl into the casting

Start 1.35 mm under the twenty. A pink fork crosses the triangle. Go deeper. The shape widens, a pale branch appears in the teal, then a different curl emerges near the far side. The pigment stays still. Only the inspection plane moves.

Private production study. Every third 0.15 mm section, shown at one brightness scale.

The free Blender example gets depth another way. Estuary evaluates noise at points inside the object while rendering. Its ramps feed actual volume scattering and absorption. You can move the pale band by editing the ramp and compare two casts by changing Pass Index. Both approaches can give a different view through each facet. Only the production example shown here reads our saved pigment grids. The free Houdini materials and both teaching archives omit those production fields.

Rebuild the principle in Houdini · units, folds and optical depth
  1. Work in metres. Keep a sharp reference solid and use die-local positions throughout. On the twenty-millimetre d20 study the grid pitch is 0.00015 m. We inset the active region 0.85 mm from the ideal face planes for clearance behind the recesses. Check the deepest cut before borrowing that offset.
  2. In a Volume Wrangle, distort the sample coordinates gently with a low-frequency field. For an isolated filament measure the shortest distance d to a curved centreline. Give it width w in the same units. A weight of exp(-(d/w)*(d/w)) peaks on the line and fades across it. Taper w, branch the line and combine nearby strands with a maximum. Broader regions of colour under the strands keep the casting from looking like a bundle of wires. Reduce the noise scale in physical space for closer folds. Check a section for detail smaller than a voxel.
  3. Mix nonnegative RGB scattering and absorption coefficients using those weights. Write separate vector grids and feed their respective terms in the Karma medium. The inspection density in this example is the largest colour channel of total extinction. Multiplying both coefficients by it again would change the result. For a uniform path with extinction k per metre and length L metres, the direct surviving fraction in each channel is exp(-k*L). A thick region can therefore look quite different from a thin edge. Scattered light can also reach the camera.
  4. Keep one medium under the engraved shell. In this study we also sampled the pattern near the surface into face maps, added finer wisps there and reduced transmission over concentrated deposits. The shell index of refraction was 1.505. To see what the volume contributes, render a control with neutral clear transmission and keep the medium, light, lens and exposure fixed.
  5. Store the seed and the field recipe, coordinate scale, software version and baked result. A seed chooses a repeatable variation only within the same recipe. Transform the interior with the shell. Render from two angles and track a fork under a numeral. If the whole pattern slides as you translate the die, check for world-space sampling.

Age the surface without recasting it

Matched crops of the twenty. A strip reflection softens and paint breaks away from the lower curve of the zero.
Private Houdini study. Read the same casting from left to right. New, regularly handled, well worn. Open the image and compare the boundaries of the zeros.

If every scratch is a dark line, the die can look dirty under every light. Try putting a cluster of shallow marks into roughness first. Sweep a bright strip over the surface. The reflection should soften locally as it passes. Add a little variation to the shading normal for the finest grooves. Leave some polish intact. Save a different wear seed from the casting seed so a familiar swirl stays beside the same mark as you change the finish.

Separate scratches, scuffs and lost paint

In this study each face has a 768-pixel chart spanning 16 mm. That gives about 21 micrometres per texel. A finer scratch may survive only as a change to the group reflection after filtering. Judge it at the intended delivery size. Mask broad dull handling patches independently of the fine tracks. For a scuff across an edge, pick one site in die space and project it onto both neighbouring charts. Check UV joins under moving highlights.

Keep complete paint loss separate from thinning inside a surviving stroke. Start at connected chips, feather the damaged region inward and add a little irregular loss elsewhere. Let thin areas show more of the casting and change their roughness. Bump can suggest a ragged film edge. The actual groove still needs depth. A mask on a flat face cannot cast the same small shadow. Keep pigment geometry below the lip and check narrow counters at grazing angles.

A pale pearly Blender die with dark serif numerals under warm and cool studio lights.
Public Blender example · Shell. Turn the die under fixed lights to judge how the sheen moves. For glitter, track individual flakes as they catch and lose the source. Their positions should remain fixed inside the casting.

In the supplied Shell shader a stretched noise pattern drives both colour and thin-film thickness. If its value is f, the thickness input is 90 + 390 × f nanometres. Try flattening that thickness variation while leaving the colour ramp alone. Repeat the turn. This is an artistic approximation of nacre. Some bands remain visible because the tint varies too.

Light the object and try to break it

Try the short film’s moving-light exercise in Blender. Open the supplied scene, choose a recessed cube with pips and frame the top at a shallow angle. Aim a narrow rectangular area light at the die and render a reference. Keep the cube, camera, paint height, material, exposure, view transform and other lights fixed. Slide that strip light sideways behind the cube, keeping its aim on the centre and its size and power fixed. Render again. Where the reflection breaks at a pip, compare the wall with the paint below it. The little crescent can change even though the shape stays the same.

The lighting breakdown below goes further and also changes surface roughness in one step. Compare your first two renders before trying that extra change.

Start with a broad rectangular light reflected along an edge, a dim fill on the camera side and a dark card opposite. Fix exposure. Turn the object slowly until the highlight crosses an 8. If both counters disappear together, check the geometry in an unlit view before changing the shader. If they survive there, widen the reflected strip or raise roughness a little.

Black pigment sits below the white face of a rounded six-sided production die. The lip catches a pale highlight.
Chessmaster · Plain white resin makes a useful diagnostic. A raking highlight reveals the recess even where the black paint is almost featureless.

For an opaque practice die, start with a dielectric body, roughness around 0.3 and slightly rougher paint. Give the white a little headroom below display white. For bare metal raise metalness on the metal alone and let the surrounding cards supply contrast. Enamel still reflects like a dielectric. Compare the same angle before adding scratches. A tiny roughness change can sell handling wear without altering a silhouette.

One teal cube shown three times. A narrow white strip crosses its upper face, widens and then softens.
New Cycles lighting test using the teaching geometry. The first change widens the light. The second raises surface roughness. Those two controls can both broaden a highlight. Watch its boundary.
Try the strip test in Blender

Choose a pip cube with Lagoon and Cream in the supplied studio. Seat it on the table. Aim a rectangular Area light at the centre from behind, a little above the die. Leave a weaker fill near the camera so the front stays readable. Look down on the top face and slide the source sideways until its reflection crosses a pip. The edge rounding should catch the source briefly even when the flat face misses it.

Side elevation. The source is beyond the cube. A ray reflects from the top into the camera, making equal angles with the surface normal in three dimensions.
Projected positions at the end of the move. The orange path follows the centre of the light on an ideal flat face. The other lamps and the small sideways offsets are omitted. Where a pip interrupts the plane, the reflection breaks.

Set the camera near (6, −103, 85), aim it at (0, 0, 8) and frame the cube. We used a 90 mm lens here. The table is at Z = 0. With the camera locked, change one thing at a time. In the example the final light centre is (−5, 49, 55) in the scene’s millimetre convention. We widen the rectangle from 5 to 16 while leaving its other dimension at 44 and its power fixed. Then we raise the Lagoon base roughness input from 0.13 to 0.45 in the Surface wear node. For this test we used AgX with High Contrast and a fixed exposure. Match the trend before chasing a particular brightness. Changing distance changes the apparent size too.

Low view of the cube with a fine shadow immediately beneath its rounded lower edge.
Same light, lower camera. Follow the dark line under the base into the much softer cast shadow. Check for a gap before trying to fix a floating die in the grade.

For an insert, match the reference camera height and distance before adjusting focal length to frame the shot. Moving closer changes the apparent proportions of near and far faces. Focus on the result and compare how quickly the tabletop falls out of focus. If the number itself goes soft, stop down or adjust the focus plane before sharpening the whole frame. Raise exposure only after checking the shadow under the die and the highlights on the paint together.

For a production comparison, keep the scene-linear OpenEXR and inspect reflections and transmission separately. Our Houdini work uses Solaris and Karma with a Linear Rec.709 working space. Judge both images through the same display transform. When transmission is noisy, compare the raw beauty with a version that adds back a fraction of the difference between filtered and raw transmission. Check thin edges at motion speed. Adding a complete second pass on top of the beauty counts that light twice.

A short acceptance test

  1. Inspect the ideal solid. Count faces, test the opposite pairs, read the d4 from all sides and inspect 6 and 9 after a half turn. Confirm that each physical edge has two incident faces with opposite traversal.
  2. Inspect the finished mesh. Isolate body and fill. Look for zero-area faces, flipped normals, open seams, lost counters and sliver intersections. For closed parts, compare signed volumes before and after export. An open display surface needs a separate check.
  3. Push a real control. Change size, then rounding, then type. Recheck clearance on the tightest face. Switch a d6 from numerals to pips. Change only the paint and confirm the outer bounds stay fixed. Reopen a saved copy with the original package folder moved.
  4. Check the shot. Put two differently coloured dice in the same scene. Look for an inherited parent material overriding one child. Confirm the intended top value from the mathematical frame. Watch the highlights cross the bevels at final delivery size.

In production a d6 once looked convincing while its shell and paint intersected. A topology correction was worth more than another lighting pass. A beauty render and a geometry test catch different failures.

What we could reproduce

In Houdini Indie on Linux, a fresh instance of the digital asset and an independent run of the supplied Python source produced matching geometry hashes in 34 paired checks (28 distinct geometry hashes). These are the recorded tests for Table Die 2.0. The separate AI prompt was later clarified and that wording still needs an independent reconstruction trial. Early tests caught fill walls facing the wrong way and controls missing from fresh instances. Later, our D6 passed scripted edits even though the checkbox for pips was missing from the screen. We had compared a menu choice with its numeric position in the visibility rule. Testing for the menu token D6 restored the control. We now test visibility as well as the mesh. The mass readout is an estimate from geometry and assumed body and fill densities. Changing a look leaves those densities alone.

Earlier Houdini Markings tab. The D6 pips control is missing.
Earlier build · A script could still toggle pips.
Corrected Markings tab with Use pips on D6 and two sizing controls.
Corrected build · An artist can now reach the same control.

Asking a coding assistant to “make sure pips work” can leave this gap. A better request is to create a fresh instance, choose D6, update the parameter states and verify that an artist can see the checkbox. Then switch shapes and check that it goes away. In Houdini Python that last check can be as short as this.

die = hou.node("/stage/TableDie")  # use a disposable copy
for token in ("D6", "D20"):
    menu = die.parm("shape")
    menu.set(menu.menuItems().index(token))
    die.updateParmStates()
    assert die.parm("pips").isHidden() == (token != "D6")

In Blender, the native file opened in isolation with automatic script execution disabled. For Dice Studio 2.0, the source rebuild matched the native file in 120 paired point checks. Some checks return to earlier geometry, giving 92 distinct point hashes. For consecutive Cycles material changes, leave Persistent Data off. During one batch, keeping data between renders left a changed material missing. The comparison checked sorted vertex positions rounded to 0.00001 mm. Geometry agreement alone cannot tell you whether a highlight looks right. The paired renders above are useful for that second question.

What happens if you only give the assistant the prompt?

Try this first request before handing over the full brief.

Make just one cube face with a recessed 8. Keep both islands inside the loops. Let me change the paint height independently of the cut. Show me the cross-section before copying it to other faces.

If the assistant returns a convincing image, ask where you can change the depth. Then inspect the mesh. The first two trials below used earlier versions of the briefs. They show how different reconstructions can be. We haven’t independently reproduced every new finish from the updated prompts alone.

Independent low-sample Houdini reconstruction of the d20, with a readable twenty on top.
Independent prompt trial · A plausible picture still needed a geometry repair.

An isolated Houdini exercise used the prompt and its numerical appendix to rebuild the d20 and pip cube. The assistant used a different font, native bevels, Boolean cuts and simpler shaders. An early stage metadata edit failed. Keeping the Solaris defaults and checking the units after reopening solved that part. Both examples rendered, and their triangle edges paired, yet both bodies failed the normal-length check. We’d inspect tiny triangles, repair them and retest before using those models. That exercise covered two examples and omitted several controls. It illustrates how far the specification travelled on its own.

Seven independently rebuilt teal dice with cream numerals. The front cube has a dot below its six.
Independent Blender trial · The appendix gave the builder enough information to recover all seven engraved examples.

The Blender trial also started with the brief alone. The builder kept Bevel and Boolean live, baked the Quicksand outlines and used a separate child for paint. The file reopened in isolation and rendered in Cycles. The editable positioning group, proxy, pips, serif switch, relief and shader library remain outside that trial.

One duplicate cube gave different rounded vertex lists. Comparing the sampled surfaces put them within 0.00000348 mm. That’s a useful distinction when you write a test. Require identical topology if you plan to transfer point data. If you only need the same visible shape, define a surface tolerance and check the marks separately.

What changed on the next attempt?

For a second test, we gave another assistant the expanded briefs and the Quicksand Bold font, then asked for just a numbered d20 and a pip cube in each application. Compare the positions of the 8, 10 and 16 in these small test frames. The same face table survived two different implementations. Look along the ridge above the 8 and you can see how differently the highlights describe the edge.

Houdini reconstruction with 20 above the darker front 8 and a narrow edge highlight.
Houdini · Independent Karma test at 480 × 270.
Blender reconstruction with the same face arrangement and wider, softer edge highlights.
Blender · Independent Cycles test at 480 × 270.

The first Houdini subtraction left 372 invalid directed edges on the d20 even though the cutters were closed. Imagine drawing triangles across the end of a stroke, then pulling the outline inward to bevel it. A short triangle that fit the original outline can fold over. Cleaning up short segments, limiting corner offsets, rebuilding the cap triangles for each new outline and triangulating the Boolean result brought the error count to zero. All four examples reopened and passed edge-pairing and volume checks.

During that exercise we clarified the downloadable prompts, including the starting font and reference lighting. The trials kept their own lighting settings. Those final wording edits and the full range of optional finishes still need an independent reconstruction. Use the supplied native files when you need the exact tool.

How we kept the bounce and changed the result

This extension comes from the internal shot system. The teaching downloads focus on building the object. For a roll, give the solver a smooth convex proxy and retain the detailed mesh for the camera. That assumes the little engravings and local pigment differences have negligible effect on contact and mass. Test that assumption again for a new silhouette.

Production d20 outline beside a section comparing the sharp tip, rounded visible mesh and simplified proxy. Their support distances differ slightly.
Production contact study · Compare support distances in many directions. A tiny error on the flat can be much larger near a rounded vertex. Recheck your own output at its intended size.

Simulate and save the entire motion. Wait for stable contact, low linear and angular speeds and a clear face held over several samples. Compare transformed face normals with the actual table normal. Reject a cocked die or one outside the playing area. For a d4 use the supporting face to identify the opposite vertex.

The hundred-dice pour · 16 seconds

These cuts replay one simulated pour at several speeds. At seven seconds, look beside the white cube for the blue d20. The camera rises until you can read its top face. Then the same action plays side by side with two different results. The soundtrack uses impact sounds without dialogue.

Read the transcript

0:00   [Dice clatter in a tray.] [The impacts stretch out in slow motion.] [A short burst of rattling.] [The clatter repeats.]

Give each contact a place in time

Mark the first visible contact and the last little rock. At 24 frames per second one frame is about 42 milliseconds. A hard attack before contact can make a perfectly good bounce feel wrong. If you have subframe samples, start there, then check the cut at playback speed. Remap event times whenever you slow the picture or replay the same action from another angle.

A whole handful needs a changing density of sound. Group nearby impacts, keep distinctive hard strikes and leave space for isolated late ticks. A scrape follows sliding contact. An object falling freely should not rattle continuously. Compare close and wide perspectives at matched loudness. Keep the recordings and sound edit separate from the generator.

Follow the blue die

In the new tray shot the blue die gave us a three. Suppose the editor asks for a twenty. Find a proper local rotation S of the solid that sends the original twenty to the face that landed up. The d20 offers 20 choices of destination and three ways to line up the triangle there, giving 60 rotations. Reject reflections. Check that the rotation preserves both the proxy and the modelled inertia. With column vectors the render transform at every sample is T(t) S. In a row-vector API reverse that multiplication. Test one labelled point at the beginning, the first impact and the end.

Blue d20 showing three on top.
Natural take · 3
Blue d20 showing twenty on top.
The same motion · 20

Compare the blue die beside the white cube in the two frames. Pick out the contact edges and the positions of its neighbours. Those stay fixed between versions. Apply the offset to the whole visible die from the first frame. The lettering, scratches and internal colour travel together. If a preceding close-up fixes the opening orientation, you may have no legal choice left. Search another natural throw. The result says nothing about predicting a real player’s roll.

Separate tabletop shot with a marbled d20 showing 2 on the left and a metal cube showing 4 on the right.
Separate two-dice shot · The natural roll gave 17 on the d20 and 3 on the cube. We chose a different constant rotation for each die. Here you see the scripted version, 2 and 4, on that shot’s original paths.

Would the new die belong in the room?

A generated alternate frame with a tumbling burgundy die in front of a seated player.
Alternate roll · Take B
A blue CGI die on the same table. A bright 16 faces the lens while the upper face is almost edge-on.
New still study for a future shot · Outside the episode edit

Look at the cool strip of light on the left shoulder and the darkening just under the base. Those help seat the new object on the table. This is a lighting exercise. The revised blue die fills a little more of the frame and has cleaner contours than the moving original. For a moving insert, match the lens, apparent size, softness and exposure across several frames. A convincing contact shadow also has to travel with the die.

From this height the 16 is easy to read. The scripted twenty on top is almost hidden. A second camera looking down on the same performance would let the audience read the result without asking for another throw.

Read it from the editor’s chair

Replay the end of the film. Cover the numbers and follow the last wobble against the other dice. Now look at the top triangle from overhead. The two views do different jobs. One lets you feel the impact and the other tells you what happens to the player. Keep the same contact sound across that cut. A second knock would suggest another bounce.

Take the method elsewhere

Try a numbered camera dial. Replace the face table with angles around a cylinder. At each tick use the radial direction as the normal and the dial axis as up. The same outline, fit, recess, fill and grazing-light checks still apply. A second exercise is a set of letterpress blocks. This time you want mirrored artwork, and the contact plane determines which letters print.

Keep one well-understood example beside your new object. A small change you can explain, rebuild and check is the part of a procedural tool that survives the next production.

Illustration detail

Production figure. Zoom to read; swipe or scroll to explore. Escape closes.

Open full-resolution image