Building a Custom Dice Model with OpenSCAD @WorldOfZeroDevelopment
Building a Custom Dice Model with OpenSCAD  @WorldOfZeroDevelopment
Uploaded November 2022 | Updated November 2026, 2 days ago
OpenSCAD is a tool that can compile programs into 3D models allowing you to code your own CAD designs instead of building them inside of a WYSIWYG type editor like Fusion 360, SketchUp etc.

The module we created for a basic dice looks like this:

```OpenSCAD
module CreateDice(size = 16) {
textSize = size * 0.75;
textLocation = size / 2 - 1;
textExtrusionSize = 2;
difference() {
cube([size, size, size], center = true);
translate([0,0,textLocation]) linear_extrude(textExtrusionSize) text("1", size=textSize, halign="center", valign="center");
rotate([180, 0, 0]) translate([0,0,textLocation]) linear_extrude(textExtrusionSize) text("6", size=textSize, halign="center", valign="center");
rotate([0, 90, 0]) translate([0,0,textLocation]) linear_extrude(textExtrusionSize) text("2", size=textSize, halign="center", valign="center");
rotate([0, 270, 0]) translate([0,0,textLocation]) linear_extrude(textExtrusionSize) text("5", size=textSize, halign="center", valign="center");
rotate([90, 0, 0]) translate([0,0,textLocation]) linear_extrude(textExtrusionSize) text("3", size=textSize, halign="center", valign="center");
rotate([270, 0, 0]) translate([0,0,textLocation]) linear_extrude(textExtrusionSize) text("4", size=textSize, halign="center", valign="center");
}
}
```

Get OpenSCAD: openscad.org/index.html
OpenSCAD's documentation: openscad.org/documentation.html
OpenSCAD on GitHub: github.com/openscad/openscad

You can get a copy of my models and the SCAD files that generate them here: github.com/runewake2/scad-examples

Join the World of Zero Discord Server: discord.gg/hU5Kq2u
Building a Custom Dice Model with OpenSCADSpherical Gravity in UnityRotating the Flight Controller - Lets Make a Side Scrolling Shooter - Part 2Validate Unity Inspector Input with OnValidate - Quick TipRunning a Minecraft Server in DockerCreating a Context Menu in Custom Unity EditorsGetting Started with Pathfinding using Dijkstras AlgorithmLearning to Deserialize YAML in C# with YamlDotNETSpinning In Circles and Other Mischief - Building Asteroids VR - Day 2Tracking Rigidbody Velocity in Asteroids VRIntroducing Testing into our PlatformerThe Search for Objects - Unity Observer - Part 1
World of Zero |

Building a Custom Dice Model with OpenSCAD

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER