# Build a procedural tabletop die in Houdini Act as a Houdini technical artist and implement the following generator from scratch in my licensed installation. Inspect the local version and available Python modules first. Work in a new folder and a fresh scene. Preserve existing files. Do not install packages, distribute files, change license metadata or request external assets without permission. Use only fonts whose license permits the intended use and include notices. Keep the source readable, leave the node graph editable and report what actually ran. If you cannot run Houdini, provide source and a test plan with verification clearly pending. ## First success Create a Solaris subnet named TableDie with an optional stage input. Place one teal D20 at the origin in a right-handed, Y-up, metre-based scene. The first render must show a rounded shell, true recessed numbers with contrasting pigment, a broad neutral contact shadow and the 20 legibly facing up. Then support the other six marking maps below through the same code. Offer an unlocked Python construction route and optionally a native versioned digital asset in the format generated by my license. Do not translate or load any existing coded asset. ## Geometry contract The numerical appendix is self-contained. Each entry lists approximate local vertices in millimetres, outward ordered polygon vertex indices, a displayed value and a reading-up vector. D4 also lists one value per vertex. Treat these records as orientation and numbering guides. Reconstruct double-precision symmetric coordinates before filleting, using nearest corresponding guide vertices to maintain ordering. Check face coplanarity, outward winding and opposing sums. * D4 is a regular tetrahedron of edge 21. Use alternating corners of a cube. Each face value in the guide describes the result when that face supports the die. Put one mark near each of the three tips, aligned up toward its vertex, repeating that vertex label on all three incident faces. Use the opposite vertex for the result. * D6 is a cube at ±8. Opposites total 7. Default to conventional recessed pips. Use 2.68 diameter, 3.75 pitch, a lower-left to upper-right diagonal for two and three, four corners for four and five, two columns of three for six. Offer numerals too. * D8 is a regular octahedron with vertices ±12.6 on the axes. Opposites total 9. * D10 and Tens use the same pentagonal trapezohedron. Poles at y=±12.2. Ten ring points have radius 10.2 in XZ, angular spacing 36 degrees, alternating height ±12.2(1−cos36°)/(1+cos36°) according to the guide. Build ten planar kites. Opposite displayed digits total 9, or 90 for Tens. Render 0 through 9 for units and two digits 00 through 90 for Tens. Standalone zero means ten. In a percentile pair both zeros mean 100. * D12 uses the regular dodecahedron at 18.8 across flats. With φ the golden ratio use (±1,±1,±1) and cyclic permutations of (0,±1/φ,±φ), oriented as in the guide and normalized to inradius 9.4. Opposites total 13. * D20 is an icosahedron with inradius 10. Take a unit pole from guide vertex 0, project vertex 1 to obtain a perpendicular reference, and form a ring at axial coordinate 1/√5 with radius 2/√5 at 72-degree intervals. Add antipodes and scale by 10/√((1+2/√5)/3). Opposites total 21. For each face compute centroid c, outward unit normal n, right u=normalize(up × n), v=n × u. A local point x,y at recess depth d maps to c+xu+yv−dn. Keep geometry in mm until final export. Respect Houdini polygon order, USD orientation and vertex normals. Store face ID, value, normal and reading up. Store D4 apex values on ideal vertices. Add local UVs. Never reassign values when changing appearance. For edge radius r=.55, shrink the centered polyhedron by 1−r/inradius. Offset each shrunken face along its normal by r. Bridge adjacent tangent edges with arcs obtained by normalizing linear blends of adjacent normals. Cap each corner using a spherical fan with identical boundary samples. Fuse coincident points by a small tolerance and preserve smooth analytic normals. Keep edges and corners coupled. Five divisions suit display. A separate collision output takes a convex hull of the same envelope sampled at two divisions. Also expose the unrounded ideal output. Do not include marks in the proxy. For matching trials use Quicksand-Bold.ttf by default and LiberationSerif-Bold.ttf for serif. Ask for licensed local copies if absent. If you must substitute, record the exact difference. Extract the actual TrueType outlines or use the Font SOP. Support a custom file. Flatten curves adaptively and preserve holes in 0, 4, 6, 8 and 9. Center ink bounds. Start at cap heights 2.82, 7.2, 4.75, 4.45, 3.65, 4.28 and 3.8 for D4, D6, D8, D10, Tens, D12 and D20 respectively. Fit D20 doubles to 5.08 width and lower centers by .74 toward the broad edge. Lower D8 and both kite labels by .32. Enable lower-right dots by default on labels 6, 9, 60 and 90. For nominal target height H and fitted ink width W, center each dot at (W/2 + .083H, −.36H) relative to the label center, radius .045H. Fit D4 labels about 42% from face center to each vertex. Check clearance against every inset edge. Triangulate caps with holes through a robust tessellator or use native SOP booleans. Clean repeated points and very short segments before building side walls. Bound local offsets by edge length and neighboring clearance. A valid triangle in the original glyph can flip or collapse after a bevel. Tessellate each offset cap separately with its holes, matching its actual side boundary. Split T junctions. Check the evaluated solids again after conversion to USD float points. Reject inverted or collapsed triangles, holes and intersections. If a counter closes or a bevel fails, report the face and shrink the local offset or simplify the curve before retrying. Start with .36 cut depth, .022 lip bevel, 1.5° inward wall draft, .18 fill height from the floor. Keep closed pigment solids just inside the cavity with about .008 clearance. For raised mode inset the tangent face by .48, cut the field around digit or pip islands, leave crowns .045 below contact, bevel their tops and perforate the fill around those islands. Reject overlaps and overfill with an actionable message. Expose a uniform nominal-size override that scales details with the design. ## Network and interaction Use SOP Create with clearly named branches for finished, reference and proxy geometry. A switch cooks only the selected branch. Import named meshes below /Dice/. Bind Body and Fill separately through a Material Library, skipping shading on diagnostic modes. Use object coordinates, a seeded 3D noise field and a two-color mix on MaterialX Standard Surface. Separate optical properties from density. Estimate mass by summing signed triangle tetrahedra for each closed material shell and multiplying cubic millimetres by density in g/cm³ and 1e−6 to get kg. Label the estimate and avoid any claim of measured physics. Organize native parameters by shape, markings, surface and mass. Hide irrelevant options. Add tooltips stating units. Expose tint, fill tint, roughness, fill roughness, metalness, IOR, transmission, tint depth, second color, pattern scale, strength and seed. Provide one-click teal resin, amber transmission, warm white and bronze finish recipes. They must preserve geometry and structural density. Add named outputs and comments. Avoid external scene dependencies. Supply installation, camera and troubleshooting instructions. For the reference still use body linear RGB (.029,.24,.26), fill (.88,.77,.5), roughness .26/.32 and IOR 1.49. Orient face 20 so local right points X, normal points Y and reading-up points −Z. Then yaw +20° around Y. Floor at −10 mm, neutral .18 gray. Camera at (0,72,104) mm looks at origin with a 90 mm lens on 36 mm width, 16:9 and no depth of field. In metre USD use .9 focal length and .36 horizontal aperture because the camera units are tenths of a scene unit. Set clipping to .001–10 metres. Disable the default headlight and leave the world black. Aim three normalized rectangles at the origin. Use sizes 75×55, 55×80 and 90×25 mm at (−50,60,55), (65,28,20) and (0,65,−55) mm with relative powers 1, .35 and .8. Start with intensity .024 times each relative power, white light and zero exposure offset. Use Karma, save scene-linear Rec.709 EXR and display it with only the sRGB transfer at 1920 × 1080. The reference D20 upper-left 50 × 50 table patch has median display RGB near 107/255 (linear .147). Treat that as a diagnostic, report any exposure change and preserve the untouched render. Repeat with the pip D6, face 6 up and floor at −8 mm. ## Material and photography extension Retain the four finishes specified above and add four editable recipes. Use two object-space coordinates with separate seeds for pigment and wear. Multiply position by spatial frequency, then add seed times (.113,.179,.233). Displace by a four-octave vector fractal whose amplitude is curl times (1,.54,.32). Evaluate a five-octave scalar fractal there and smoothstep between minus and plus softness. Use that weight for independently controlled two-color body and fill blends. Connect the blends to base color and transmission tint, with independent roughness, metalness and tint distances. Add fine bump and roughness variation using separate broad noise, tiny grains and sparse elongated thresholded noise for abrasions. * Tide blends navy (.005,.052,.135) and turquoise (.045,.74,.59) with cream paint. Use frequency 110 per metre, curl 2.5, softness .33, transmission .69, tint distance 12 mm, neutral transmission scatter 9 per metre, coat .18 and roughness .16. * Pearl blends rose and cream with a satin anisotropic highlight, sheen and clear coat. * Amethyst uses absorbing violet resin with 6500 tiny reflective silver hexagons distributed within a convex core inset beyond all cuts. * Cloisonne uses subtly mottled brass with transmitting blue enamel and gold discs inside the fill. Prefer raised serif lettering here. Scatter 6800 candidates by upper cap area, shrinking each triangle toward its incenter by particle radius and limiting depth by the same radius. Discard candidates that cannot fit. Use .059 mm diameter with .5–1.35 variation and random tilt. Use a separate particle seed and bind a two-sided metallic shader. Keep discs outside mass and closed-shell checks. Confirm color edits preserve disc coordinates. Bypass scatter when disabled. Add a reusable macro portrait scene with a smoked oak surface, a defocused book, controlled warm and cool area reflections and contact at the actual lowest mesh point. Frame the whole silhouette. Preserve raw linear EXRs and explain any display processing. ## Checks and handoff Start a fresh session from another directory. Run every map in ideal, convex, recessed and raised modes. Check unique values and opposite sums, D4 incident markings, 6/9 orientation, dimensions, winding, finite UVs, near-unit normals, two opposite uses per undirected edge and convex hull support inequalities. Inspect body and fill material bindings on two chained instances. Change scale, lettering and display material independently. Restore settings and compare mesh hashes. Reject fill above the rim. Render one raised serif die and one patterned die. Save, reopen and repeat a cook. Document actual version, license, dependencies, unresolved geometry cases and differences from the requested behavior. Do not claim commercial interoperability, unbiased rolls, printability or universal font support. ## Numerical appendix The JSON is in millimetres. Array order gives stable zero-based IDs. ~~~json {"D8":{"vertices":[[0.0,0.0,12.600000381469727],[12.600000381469727,0.0,0.0],[0.0,12.600000381469727,0.0],[-0.0,-0.0,-12.600000381469727],[-0.0,-12.600000381469727,-0.0],[-12.600000381469727,-0.0,-0.0]],"faces":[{"vertices":[0,1,2],"value":6,"up":[-0.40824830532073975,0.8164966106414795,-0.40824830532073975]},{"vertices":[2,1,3],"value":4,"up":[-0.40824830532073975,0.8164966106414795,0.40824830532073975]},{"vertices":[4,1,0],"value":7,"up":[-0.40824830532073975,-0.8164966106414795,-0.40824830532073975]},{"vertices":[3,1,4],"value":1,"up":[-0.40824830532073975,-0.8164966106414795,0.40824830532073975]},{"vertices":[0,2,5],"value":8,"up":[0.40824830532073975,0.8164966106414795,-0.40824830532073975]},{"vertices":[5,2,3],"value":2,"up":[0.40824830532073975,0.8164966106414795,0.40824830532073975]},{"vertices":[4,0,5],"value":5,"up":[0.40824830532073975,-0.8164966106414795,-0.40824830532073975]},{"vertices":[4,5,3],"value":3,"up":[0.40824830532073975,-0.8164966106414795,0.40824830532073975]}]},"D12":{"vertices":[[-11.050363540649414,0.0,4.220862865447998],[-11.050363540649414,0.0,-4.220862865447998],[-6.8294997215271,-6.8294997215271,-6.8294997215271],[-4.220862865447998,-11.050363540649414,0.0],[-6.8294997215271,-6.8294997215271,6.8294997215271],[0.0,4.220862865447998,-11.050363540649414],[0.0,-4.220862865447998,-11.050363540649414],[-6.8294997215271,6.8294997215271,-6.8294997215271],[4.220862865447998,-11.050363540649414,0.0],[6.8294997215271,-6.8294997215271,-6.8294997215271],[-6.8294997215271,6.8294997215271,6.8294997215271],[0.0,-4.220862865447998,11.050363540649414],[0.0,4.220862865447998,11.050363540649414],[6.8294997215271,-6.8294997215271,6.8294997215271],[-4.220862865447998,11.050363540649414,0.0],[6.8294997215271,6.8294997215271,-6.8294997215271],[4.220862865447998,11.050363540649414,0.0],[6.8294997215271,6.8294997215271,6.8294997215271],[11.050363540649414,0.0,-4.220862865447998],[11.050363540649414,0.0,4.220862865447998]],"faces":[{"vertices":[0,1,2,3,4],"value":6,"up":[-0.4253253936767578,0.6881909370422363,0.5877852439880371]},{"vertices":[5,6,2,1,7],"value":4,"up":[0.6881909370422363,0.5877852439880371,-0.4253253936767578]},{"vertices":[8,3,2,6,9],"value":1,"up":[0.5877852439880371,-0.4253253936767578,0.6881909370422363]},{"vertices":[10,0,4,11,12],"value":11,"up":[-0.2628655433654785,0.9510565400123596,-0.1624598503112793]},{"vertices":[13,11,4,3,8],"value":5,"up":[0.9510565400123596,0.1624598503112793,0.2628655433654785]},{"vertices":[10,14,7,1,0],"value":3,"up":[0.1624598503112793,0.2628655433654785,0.9510565400123596]},{"vertices":[15,5,7,14,16],"value":8,"up":[0.9510565400123596,-0.1624598503112793,-0.2628655433654785]},{"vertices":[16,14,10,12,17],"value":12,"up":[0.5877852439880371,0.4253253936767578,-0.6881909370422363]},{"vertices":[13,8,9,18,19],"value":10,"up":[-0.1624598503112793,-0.2628655433654785,0.9510565400123596]},{"vertices":[15,18,9,6,5],"value":2,"up":[0.2628655433654785,0.9510565400123596,0.1624598503112793]},{"vertices":[12,11,13,19,17],"value":9,"up":[-0.6881909370422363,0.5877852439880371,0.4253253936767578]},{"vertices":[19,18,15,16,17],"value":7,"up":[0.4253253936767578,-0.6881909370422363,0.5877852439880371]}]},"D10":{"vertices":[[10.200000762939453,1.287988305091858,0.0],[0.0,12.199999809265137,0.0],[3.151973247528076,1.287988305091858,9.700776100158691],[8.251973152160645,-1.287988305091858,5.9954094886779785],[8.251973152160645,-1.287988305091858,-5.9954094886779785],[3.151973247528076,1.287988305091858,-9.700776100158691],[-8.251973152160645,1.287988305091858,5.9954094886779785],[-3.151973247528076,-1.287988305091858,9.700776100158691],[-10.200000762939453,-1.287988305091858,1.2491397102275324e-15],[-8.251973152160645,1.287988305091858,-5.9954094886779785],[-3.151973247528076,-1.287988305091858,-9.700776100158691],[0.0,-12.199999809265137,0.0]],"faces":[{"vertices":[0,1,2,3],"value":7,"up":[-0.48797857761383057,0.7976090908050537,-0.3545371890068054]},{"vertices":[4,5,1,0],"value":3,"up":[-0.48797857761383057,0.7976090908050537,0.3545371890068054]},{"vertices":[2,1,6,7],"value":1,"up":[0.186391219496727,0.7976090908050537,-0.5736532211303711]},{"vertices":[8,6,1,9],"value":9,"up":[0.6031746864318848,0.7976090908050537,-1.0599790154275016e-16]},{"vertices":[9,1,5,10],"value":5,"up":[0.186391219496727,0.7976090908050537,0.5736532211303711]},{"vertices":[0,3,11,4],"value":0,"up":[-0.6031746864318848,-0.7976090908050537,0.0]},{"vertices":[2,7,11,3],"value":4,"up":[-0.186391219496727,-0.7976090908050537,-0.5736532211303711]},{"vertices":[6,8,11,7],"value":6,"up":[0.48797857761383057,-0.7976090908050537,-0.3545371890068054]},{"vertices":[10,11,8,9],"value":2,"up":[0.48797857761383057,-0.7976090908050537,0.3545371890068054]},{"vertices":[5,4,11,10],"value":8,"up":[-0.186391219496727,-0.7976090908050537,0.5736532211303711]}]},"Tens":{"vertices":[[10.200000762939453,1.287988305091858,0.0],[0.0,12.199999809265137,0.0],[3.151973247528076,1.287988305091858,9.700776100158691],[8.251973152160645,-1.287988305091858,5.9954094886779785],[8.251973152160645,-1.287988305091858,-5.9954094886779785],[3.151973247528076,1.287988305091858,-9.700776100158691],[-8.251973152160645,1.287988305091858,5.9954094886779785],[-3.151973247528076,-1.287988305091858,9.700776100158691],[-10.200000762939453,-1.287988305091858,1.2491397102275324e-15],[-8.251973152160645,1.287988305091858,-5.9954094886779785],[-3.151973247528076,-1.287988305091858,-9.700776100158691],[0.0,-12.199999809265137,0.0]],"faces":[{"vertices":[0,1,2,3],"value":70,"up":[-0.48797857761383057,0.7976090908050537,-0.3545371890068054]},{"vertices":[4,5,1,0],"value":30,"up":[-0.48797857761383057,0.7976090908050537,0.3545371890068054]},{"vertices":[2,1,6,7],"value":10,"up":[0.186391219496727,0.7976090908050537,-0.5736532211303711]},{"vertices":[8,6,1,9],"value":90,"up":[0.6031746864318848,0.7976090908050537,-1.0599790154275016e-16]},{"vertices":[9,1,5,10],"value":50,"up":[0.186391219496727,0.7976090908050537,0.5736532211303711]},{"vertices":[0,3,11,4],"value":0,"up":[-0.6031746864318848,-0.7976090908050537,0.0]},{"vertices":[2,7,11,3],"value":40,"up":[-0.186391219496727,-0.7976090908050537,-0.5736532211303711]},{"vertices":[6,8,11,7],"value":60,"up":[0.48797857761383057,-0.7976090908050537,-0.3545371890068054]},{"vertices":[10,11,8,9],"value":20,"up":[0.48797857761383057,-0.7976090908050537,0.3545371890068054]},{"vertices":[5,4,11,10],"value":80,"up":[-0.186391219496727,-0.7976090908050537,0.5736532211303711]}]},"D4":{"vertices":[[-7.42462158203125,7.42462158203125,-7.42462158203125],[7.42462158203125,7.42462158203125,7.42462158203125],[7.42462158203125,-7.42462158203125,-7.42462158203125],[-7.42462158203125,-7.42462158203125,7.42462158203125]],"faces":[{"vertices":[0,1,2],"value":4,"up":[-0.8164966106414795,0.40824830532073975,-0.40824830532073975]},{"vertices":[2,1,3],"value":3,"up":[0.40824830532073975,-0.40824830532073975,-0.8164966106414795]},{"vertices":[3,1,0],"value":2,"up":[-0.40824830532073975,-0.8164966106414795,0.40824830532073975]},{"vertices":[0,2,3],"value":1,"up":[-0.40824830532073975,0.8164966106414795,-0.40824830532073975]}],"vertex_values":[3,1,2,4]},"D6":{"vertices":[[-8.0,-8.0,-8.0],[8.0,-8.0,-8.0],[8.0,-8.0,8.0],[-8.0,-8.0,8.0],[-8.0,8.0,-8.0],[8.0,8.0,-8.0],[8.0,8.0,8.0],[-8.0,8.0,8.0]],"faces":[{"vertices":[0,4,5,1],"value":5,"up":[0.0,1.0,0.0]},{"vertices":[1,5,6,2],"value":3,"up":[0.0,1.0,0.0]},{"vertices":[2,6,7,3],"value":2,"up":[0.0,1.0,0.0]},{"vertices":[3,7,4,0],"value":4,"up":[0.0,1.0,0.0]},{"vertices":[3,0,1,2],"value":6,"up":[0.0,0.0,1.0]},{"vertices":[4,7,6,5],"value":1,"up":[0.0,0.0,-1.0]}]},"D20":{"vertices":[[-7.569339752197266,10.0,-1.0316548347473145],[-7.569339752197266,2.3606796264648438,9.77197551727295],[4.678109169006348,-2.3606796264648438,11.441227912902832],[12.247448921203613,2.3606796264648438,1.669252634048462],[4.678109169006348,10.0,-6.039412498474121],[-12.247448921203613,-2.3606796264648438,-1.669252634048462],[-4.678109169006348,-10.0,6.039412498474121],[7.569339752197266,-10.0,1.0316548347473145],[7.569339752197266,-2.3606796264648438,-9.77197551727295],[-4.678109169006348,2.3606796264648438,-11.441227912902832],[2.891230344772339,10.0,7.071067810058594],[-2.891230344772339,-10.0,-7.071067810058594]],"faces":[{"vertices":[11,9,8],"value":1,"up":[-0.37846699357032776,-0.8726779818534851,0.3085382580757141]},{"vertices":[10,0,1],"value":2,"up":[0.9128709435462952,0.3333333432674408,0.2357022613286972]},{"vertices":[11,7,6],"value":3,"up":[-0.37846699357032776,0.0,-0.9256147742271423]},{"vertices":[10,3,4],"value":4,"up":[-0.48621678352355957,0.3333333432674408,0.8077636361122131]},{"vertices":[9,0,4],"value":5,"up":[-0.2820926308631897,-0.6666666865348816,-0.6899125576019287]},{"vertices":[7,3,2],"value":6,"up":[-0.07796848565340042,-0.8726779818534851,-0.4820311367511749]},{"vertices":[11,5,9],"value":7,"up":[0.48621678352355957,-0.8726779818534851,-0.0450151264667511]},{"vertices":[6,2,1],"value":8,"up":[-0.2820926308631897,-0.8726779818534851,-0.3985685110092163]},{"vertices":[3,7,8],"value":9,"up":[0.40824830532073975,0.7453559637069702,0.527046263217926]},{"vertices":[1,5,6],"value":10,"up":[0.07796848565340042,0.7453559637069702,0.6620916724205017]},{"vertices":[8,4,3],"value":11,"up":[-0.07796848565340042,-0.7453559637069702,-0.6620916724205017]},{"vertices":[5,1,0],"value":12,"up":[-0.40824830532073975,-0.7453559637069702,-0.527046263217926]},{"vertices":[4,8,9],"value":13,"up":[0.2820926308631897,0.8726779818534851,0.3985685110092163]},{"vertices":[10,2,3],"value":14,"up":[-0.48621678352355957,0.8726779818534851,0.0450151264667511]},{"vertices":[0,9,5],"value":15,"up":[0.07796848565340042,0.8726779818534851,0.4820311367511749]},{"vertices":[2,6,7],"value":16,"up":[0.2820926308631897,0.6666666865348816,0.6899125576019287]},{"vertices":[11,6,5],"value":17,"up":[0.48621678352355957,-0.3333333432674408,-0.8077636361122131]},{"vertices":[10,4,0],"value":18,"up":[0.37846699357032776,0.0,0.9256147742271423]},{"vertices":[11,8,7],"value":19,"up":[-0.9128709435462952,-0.3333333432674408,-0.2357022613286972]},{"vertices":[10,1,2],"value":20,"up":[0.37846699357032776,0.8726779818534851,-0.3085382580757141]}]}} ~~~