Could you use voice commands to generate 3D models? It turns out you can – for free!
I watched a fascinating video posted by Reddit contributor bharms27. In the video, bharms27 requires a half dozen cylindrical spacers for a project. His workflow is astonishing:
- He speaks aloud a description of the parts required into ChatGPT
- ChatGPT generates some code to create the required models
- The code is pasted into software for execution
- The 3D models are generated and exported
- The 3D models are imported to a slicer for 3D printing
This all happens in only 45 SECONDS!
The ChatGPT prompt used was:
āGenerate code to create a cylinder with a diameter of one inch, a height of half an inch, and an interior diameter of half an inch. Create six of them and put them on a grid.ā
How is this possible? Letās look at the steps involved.
The AI used was said to be ChatGPT 3.5, the free version. bharms27 speaks into the mobile app, as the voice feature now seems to be available without a subscription. Speaking into the app results in a conversation thatās echoed in your ChatGPT history, where the code can be found.
[Aside: If you havenāt tried the speak feature on ChatGPT, it is quite incredible: you can literally have conversations with the AI in voice. Ideal for long car trips.]
The next step was to ārun the codeā. It turns out the code is for Grasshopper, the popular plugin for Rhino3D CAD software. Grasshopper provides a way to make a kind of flowchart that represents the steps to design a 3D object. Instead of doing these actions by hand, Grasshopper documents them. And documents can be made externally and imported, as is done here.
Rhino3D then executes the Grasshopper script and created the 3D models, which are then exported as STL using the Lunchbox plugin to Rhino3D.
However, thereās a big catch here: you have to have a paid license for Rhino3D (which includes Grasshopper). Currently, the price of Rhino3D is US$995 for a single user, which is more than many can afford, particularly when there are many lower priced 3D tools available, some even free.
Could this workflow be modified to become an entirely free sequence? I think it can.
The first part of the sequence is almost identical: speak the prompt into ChatGPTās voice feature. However, specify that you want the code made for OpenSCAD, a free programmatic 3D modeling tool. Hereās the prompt I used:
āGenerate OpenSCAD code to generate a cylinder with a diameter of one inch, a height of half an inch, and an interior diameter of half an inch. Create six of them and put them on a grid.ā
ChatGPT immediately responds with not only the entire code sequence, but also a detailed explanation of the requirements it derived from the prompt, an explanation of how the code works and even advice on how to use it.
Note that the code is not actually spoken out, as it is long and boring. ChatGPT said you can find it in your chat history, which I did.
I then pasted the code into the OpenSCAD app, which can then execute the code. I got this in the preview, shown at top.
With a render and export as STL I was then able to import this into PrusaSlicer for job prep:
This is quite amazing, and extremely easy to do. It does take only a few seconds to do this, although you have to be very clear in your prompt describing the object.
Itās likely this approach is usable only for relatively simple objects, as it would be increasingly more difficult to describe complex objects. However, getting models like this made in only seconds is still faster than me doing this by hand.
Iām hoping someone can integrate OpenSCAD and ChatGPT together into some kind of āvoice-to-3Dā system that would make this even easier. Perhaps it can even be integrated directly into the slicing software itself!
As they say, try it, youāll like it.