3D Text

Boxshot lets you make 3D text objects using the fonts installed in your system. Note that Boxshot needs this font available on any other computer you’ll open the project, otherwise the text will be displayed using default font.

There are three groups of parameters you can configure. The first group controls the text itself and its size:

  • Text - the text to display. Boxshot does not support multiline 3D text, so you need to create a few text objects if you need a few lines of text;
  • Height - the height of the text block in centimeters - the cap height (measured from baseline to cap line);
  • Thickness - controls the thickness of 3D text object;
  • Curve smoothness - lets you set the level of detalization of text curves before triangulation;
  • Look up - when checked, the text lies on the floor, otherwise the text stands.

The next Text Style block of options controls the text appearance:

  • Font - lets you choose the font to use for 3D text;
  • Alignment - controls the pivot point of the text object;
  • Bold, Italic, Underline - the standard font options you may use.

Finally, Bevel section lets you configure 3D text edges:

  • Size - controls the size of the bevel;
  • Steps - lets you specify the number of steps in the bevel. The more steps you use, the smoother is the bevel;
  • Smooth - tells Boxshot what to do with bevel faces: should their edges be hard or smooth.

You can find more information in our 3D Text Tutorial.

Scripting

Here’s how you can create and setup a 3D text object using Boxshot scripting:

var m = scene.root.addMesh("3d text", "generator.text3d");
var g = m.generator;
g.text = "hello, world";
g.height = 10; // 10cm tall
g.thickness = 3; // 3cm deep
g.smoothness = 0.5; // 50%
g.upz = true; // 'true' for look up, 'false' for look front
g.font = "Arial";
g.align = "left"; // "left", "center" or "right"
g.bold = true;
g.italic = false;
g.underline = false;
g.bevelSize = 0.2; // cm
g.bevelSteps = 0;
g.bevelSmooth = false;