Shadow Art Generator

Copyright Claim

Shadow Art Generator

Boost
13
21
0
GIF

Print Profile(1)

All
P1S
P1P
X1
X1 Carbon
X1E
A1

0.2mm layer, 2 walls, 15% infill
0.2mm layer, 2 walls, 15% infill
Designer
1.7 h
1 plate

Open in Bambu Studio
Boost
13
21
0
0
2
0
Released

Description

Shadow Art Generator

This project is an OpenSCAD script designed to generate unique sculptures composed of random shapes. When illuminated correctly, these sculptures cast shadows that form a shape provided in IMAGE_PATH parameter. The script allows users to input their desired image and customize various parameters to create a one-of-a-kind piece of art.


Usage
You will also need to provide a path to the black and white image you want the sculpture to shadow. By adjusting the script parameters, you can control the dimensions, complexity, and randomness of the generated sculpture.

 

Parameters
The script comes with several adjustable parameters:

IMAGE_PATH: Path to the black and white image file. This is the image that will be recreated as a shadow by the sculpture. (Default: "/home/pawel/chopin.png")
WIDTH: The width of the print in millimeters. This defines the horizontal extent of the sculpture. (Default: 150)
DEPTH: The depth of the print in millimeters. This defines the vertical extent of the sculpture. (Default: 150)
LIGHT_ANGLE: The angle of the light source relative to the surface. This angle is crucial for casting the correct shadow. (Default: 10 degrees)
MAX_HEIGHT: The maximum height of the sculpture in millimeters. This limits the vertical extent of individual shapes within the sculpture. (Default: 30)
NUM_SHAPES: The number of random shapes to generate. More shapes can increase the detail of the shadow image, but also the complexity and computation time. (Default: 300)
RANDOM_SEED: Seed for the random number generator. This can be set for reproducible, ensuring the same sculpture is generated each time with the same seed. (Optional, Default: 1234)


Instructions
Place your desired black and white image at the path specified in the IMAGE_PATH parameter.
Adjust the parameters as needed to fit your requirements.
Run the script in OpenSCAD to generate the 3D model.
Export the model for 3D printing.
Position a light source at the specified LIGHT_ANGLE to observe the shadow effect.

Comment & Rating (0)

Please fill in your opinion
(0/5000)

No more