Abstract
This paper presents a computational approach to anamorphic art by evolving 3D "supershapes" that resolve into recognizable 2D forms from specific viewpoints. Using a 3D superformula as a geometric generator, the system optimizes shape and camera parameters through a genetic algorithm guided by pre-trained vision models, specifically ImageNet-based classifiers and CLIP. The results demonstrate that abstract geometry can be tuned to evoke complex semantic concepts—ranging from biological forms like "broccoli" to mechanical objects like "record players"—bridging the gap between mathematical abstraction and representational art.
Introduction
While 2D generative art has seen a massive surge in popularity due to models like BigGAN and CLIP, the exploration of 3D generative art remains comparatively limited. This research focuses on a specific niche of 3D art known as anamorphosis: the creation of sculptures or installations that appear as abstract, unrecognizable heaps of material from most angles, but resolve into a clear, meaningful image from a single, specific vantage point.
The primary challenge in automating this process is the joint optimization of 3D structure and the 2D rendering process (including camera elevation, azimuth, and rotation). The goal is to produce a "view" that is both visually appealing to humans and semantically recognizable to computer vision models. This work explores how simple mathematical formulas can be leveraged to create such evocative geometry.
Methods
The proposed pipeline integrates three core components: a geometric generator, a scoring mechanism, and an optimization loop.
The Generator: The 3D Superformula
Rather than employing complex meshes or high-resolution voxels, which are computationally expensive to optimize, the author utilizes a 3D version of the superformula. This equation is a generalization of the superellipse and is capable of describing a vast array of natural and abstract shapes—such as shells, crystals, and flowers—using a very small set of parameters. This efficiency allows for rapid iteration during the optimization process.
The Scorer: Vision-Guided Feedback
To evaluate the success of a generated view, the system employs two distinct types of feedback:
- ImageNet Guidance: A pre-trained MobileNetV3 model calculates the loss against specific object classes (e.g., "volcano" or "hammerhead shark"), providing a score for "objectness."
- CLIP Guidance: OpenAI’s CLIP (Contrastive Language-Image Pre-training) model measures the cosine similarity between the rendered image and a natural language text prompt (e.g., "A painting of a turkey"), allowing for more abstract and artistic targets.
The Optimization Loop: Genetic Algorithms
Because the rendering process used in this study is non-differentiable, standard gradient descent cannot be applied. Instead, the author uses a Genetic Algorithm (GA). The GA maintains a population of 40 candidates, evolving them over multiple generations. In each iteration, the system selects the top 15 performers and applies mutations to their parameters—which define both the 3D shape and the camera's orientation—to find the optimal configuration.
Key Results
The system successfully generated a wide variety of 3D objects that resolve into recognizable 2D views. These results can be categorized by the type of guidance used:
- Class-based results: Using ImageNet labels, the model evolved shapes that clearly evoked categories such as "broccoli," "petri dish," "alligator lizard," and "volcano."
- Text-based results: CLIP-guided evolution produced more interpretive forms, such as an "elephant's head" or a "record player."
Qualitatively, the evolved shapes often resemble abstract sculptures rather than literal 3D scans. For example, the "elephant's head" captures the essence of the animal's ears and trunk through a series of folded planes and curves, demonstrating that the model prioritizes evocative features over anatomical accuracy. This "anamorphosis as a feature" approach allows the system to create geometry that feels intentionally artistic.
Discussion and Future Work
This work serves as a reminder of the effectiveness of Genetic Algorithms for "black-box" optimization in creative domains where the relationship between parameters and output pixels is complex. However, several limitations remain. The superformula, while expressive, is topologically limited and cannot represent shapes with holes or disconnected parts.
Future research could explore the use of differentiable renderers, which would allow for faster, gradient-based optimization. Additionally, as 3D deep generative models (such as Polygen) continue to mature, they could replace the superformula as the generator, enabling the creation of even more complex and realistic anamorphic art.
Summary updated