The Lost Feed

🌐Old Internet

The Strange Story of Bauble: Making 3D Art with Code

Discover Bauble, the forgotten browser tool that let anyone create stunning 3D art using simple code. Learn how math and Lisp made digital dreams.

8 views·5 min read·Jul 16, 2026
Show HN: Make 3D art in your browser using Lisp and math

Imagine a world where you could sculpt amazing 3D art not with a mouse or brush, but with simple lines of code. A place where complex shapes and scenes came to life right in your web browser, all built from pure mathematics.

Years ago, a fascinating project called Bauble appeared, promising to make this creative vision a reality. It was a unique experiment that brought together high-level programming and advanced graphics techniques, letting people play with digital art in a way few had seen before.

The Strange

Story of Bauble: Art from Pure Math

Bauble was a special tool designed for making 3D art in your browser. It used a technique called raymarching signed distance functions (SDFs). Think of SDFs as a way to describe 3D shapes using math formulas, almost like creating 3D vector art.

These SDFs are very common in the world of procedural art, where artists generate visuals using algorithms. With SDFs, you can create incredible scenes and objects, but usually, it means writing very technical, low-level code that is hard to understand.

Beyond the Pixels: What Are Signed Distance Functions?

Signed Distance Functions are a clever way to define a shape. Instead of drawing every point, you write a function that tells you how far any given point in space is from the surface of your object. If the point is inside the object, the distance is negative. If it’s outside, it’s positive.

This mathematical trick allows for incredibly smooth and complex shapes. You can combine different SDFs to make new forms, subtract one shape from another, or blend them together. It opens up a whole new universe of creative possibilities for digital artists.

"I wanted to play with SDFs, but I found it very frustrating to translate 'I want to rotate this' into 'okay, that means I have to construct a rotation matrix, and then apply it to the current point, and *then

  • evaluate the shape...'"

This quote captures the main problem Bauble aimed to solve. The underlying math for SDFs is powerful, but actually using it in traditional coding environments was a huge hurdle for many creative minds. It required deep knowledge of graphics programming that most artists simply didn't have.

Lisp in Your Browser: The Code That Built Worlds

To make SDFs easier to use, Bauble introduced a high-level programming language. It used a specific kind of Lisp called Janet DSL. Lisp is known for being very flexible and good at handling complex ideas with simple code.

This choice of language was key. Instead of struggling with matrices and low-level commands, artists could write simpler instructions like "rotate this shape" or "combine these two objects." The Janet DSL then took these easy-to-understand commands and turned them into the complicated code needed for the browser to draw the 3D art.

Simplifying Complex Graphics

The goal was to remove the frustration. Imagine wanting to rotate a cube. In a traditional setup, you might need to write several lines of code that deal with mathematical matrices. With Bauble, you could express that idea in a much more direct and human-readable way.

This high-level approach meant that artists and curious coders could focus on the creative side of building shapes and scenes. They didn't need to get bogged down in the very technical details of how a computer draws pixels on a screen.

The Magic

Behind the Scenes: From Lisp to GLSL

So, how did Bauble turn simple Lisp code into stunning 3D visuals? It worked by compiling the Janet DSL code down to GLSL shader code. GLSL (OpenGL Shading Language) is the language that graphics cards use to draw things very quickly.

When you wrote your Lisp-like commands in Bauble, the tool translated them into the exact GLSL instructions your browser needed. This process happened behind the scenes, so you never had to see or write the complex GLSL yourself.

This translation step was a crucial part of Bauble's magic. It bridged the gap between easy-to-write, high-level code and the fast, low-level code required for real-time 3D rendering in a web browser. It was a clever piece of engineering that made advanced techniques accessible.

Why Bauble Was Different: Breaking Down Barriers

Bauble stood out because it lowered the barrier to entry for a complex art form. Before Bauble, if you wanted to experiment with raymarching SDFs, you needed a solid background in:

  • Advanced mathematics
  • Graphics programming (like GLSL)

  • Understanding how 3D engines work

Bauble changed that. It allowed someone with basic programming knowledge to start creating impressive 3D scenes. It turned a highly technical field into a playground for creativity.

This focus on user-friendliness and artistic expression, rather than raw technical mastery, made Bauble a unique and exciting project. It showed what's possible when smart tools are built to simplify powerful concepts.

The

Legacy of a Lost Tool: What Happened to Bauble?

Despite its innovative approach, Bauble never became a household name. Many groundbreaking projects in the tech world capture attention for a short time before fading. The fast pace of web development and new tools constantly emerging can make it hard for even brilliant ideas to stick around.

Perhaps the niche audience for generative 3D art, even simplified, was still too small. Or maybe other tools offered different benefits that appealed to more users. Whatever the reasons, Bauble now exists as a forgotten viral story, a testament to creative problem-solving.

Its existence, however brief, proved that you could make complex 3D graphics creation much simpler. It inspired others to think about how high-level languages and clever compilation could open up new artistic avenues.

Bauble reminds us that innovation often happens in unexpected places, combining different fields like Lisp programming and 3D graphics. It shows the power of making difficult things easy, opening up new ways for people to express themselves and build digital worlds.

How does this make you feel?

Comments

0/2000

Loading comments...