Wednesday, 2 April 2025

3D from Gemini 2.5

I used Google AI Studio to generate a 3D objects from a 2D images  --  using the Gemini 2.5 Pro Experimental 03-25 model -- by generating code for OpenSCAD (though the results are not always pretty):

BOCCIONI

I downloaded the famous sculpture by Umberto Boccioni -- Unique Forms of Continuity in Space -- distorted it, and then used AI to regenerate that distortion into a 3D figure:

DOWNLOAD: Boccioni3D.GLB (440.36 KB)


After distorting Umberto Boccioni's sculpture with SculptGL and Midjourney -- I uploaded the 2D result to Google AI Studio and generated the OpenSCAD code with the Gemini 2.5 Pro Experimental 03-25 model:

prompt: "Write OpenSCAD code for this figure.
The model will be 3D printed."


Then I uploaded that code into OpenSCAD Playground online and generated a 3D GLB object:

GLB file generated online

The result was not so pretty, but it was amazing that I could generate a 3D printable object from a 2D image just by using an LLM (Large Language Model).


REDMAN

Rinse and Repeat.  I used the same process to generate a new 3D object from a figure that I originally drew in Paint 3D in 2021:

DOWNLOAD: Redman.GLB (628.21 KB)

prompt: "Write OpenSCAD code for this figure.
The model will be 3D printed."

GLB file generated online


FROG MODEL

Again, I turned a 2D image of a 3D figure that I drew in 2021 into a similar 3D figure using Google AI Studio, and then even put that 3D result into AUGMENTED REALITY:

DOWNLOAD: Frog3D.GLB (146.44 KB)

prompt: "Write OpenSCAD code for this figure.
The model will be 3D printed."


Interestingly, it was Google AI Studio
 that labeled my figure "Frog Model"

GLB file generated online


SITTING

I also took another 3D figure I drew in Blender in 2021, converted the 2D image into 3D again using Google AI Studio, and 3D printed it at Quelab:

Ally 3D printed the above figure for
 me at Quelab on March 2, 2025

DOWNLOAD: Sitting.GLB (49.03 KB)

prompt: "Write OpenSCAD code for this figure.
The model will be 3D printed."

GLB file generated online

3D PRINT




The beginning of the 3D print

From AI into the Physical World!

FAIL

The Gemini 2.5 Pro Experimental 03-25 model in Google AI Studio generated errors in the OpenSCAD code when I tried to generate a 3D object of the origami javelina below -- too many folds or scales?  I was not smart enough to correct the mistake(s):

I could not get Google AI Studio
to turn this 2D origami image into a 3D object

The HORIZON

Soon MCP will take over to use many AI programs together, and make generating AI ART somewhat smoother

No comments:

Post a Comment

Note: only a member of this blog may post a comment.