r/ComputerCraft • u/Naive_Paint1806 • Jan 09 '25
Wrote naive G code parser to 3D print with turtles
Not perfect but still work in progress. I made a printer profile in PrusaSlicer and tried make so the generated gcode fits the purpose, then I have a middlestep to parse the gcode using python, then finally some lua ofc for the turtle movement etc.
Do anyone have something simular? Would love to see your setup, will add git link after some refactor.
364
Upvotes
16
u/Existing-Strength-21 Jan 09 '25
Very cool!!
I was working on something inspired by GCODE, I called it TCODE. The idea wasn't exactly what you did, taking a 3d model, slicing it, then having a turtle print it out.
My project is more like breaking down all Turtle commands in to individual TCODE instructions that can be sent over the air to any turtle, giving remote control to any turtle via a command computer.
https://www.reddit.com/r/ComputerCraft/s/a9DXj84jI2
10
u/leon0399 Jan 09 '25
That looks choppy, have you tried leveling your filament and drying your bed?
23
u/9551-eletronics Computercraft graphics research Jan 09 '25
thats certainly unique! i like the idea
3
u/johan__A Jan 11 '25
For some reason I never thought of using turtles for printing schematics (I know this is not what you did but it just made me think of that) I like using the schematic canon from create but doing it with turtles makes so much sense and would be a fun project to write.
2
u/Impossible_Turn_8541 Jan 09 '25
Love this lol
2
u/Nomad_00 Jan 10 '25
RIP benchy
2
u/dyskotron Jan 24 '25 edited Jan 24 '25
Briliant! you made me reopen project of mine to parse magica voxel files and print them with turtles.. nowhere close to finished but I took a few babysteps today)
My setup also starts with python script to parse .vox file and prepare it for lua, Its just one turtle that
no restock refuel atc, also no gps only local tarcking of coords, its fun already tho) here is one in the middle of build that failed shortly after :))
https://imgur.com/a/3HDyKxR
sources is this guys free asset pack
https://www.reddit.com/r/IndieGaming/comments/ix62hb/i_made_a_town_asset_pack_on_magicavoxel_i_give_it/#lightbox
1
u/jdjdkkddj Jan 10 '25
My irl 3d printer isn't even as good
1
u/pantygirl_uwu Jan 10 '25
3d printing and modded Minecraft crossover? this is the best thing i've seen in a long time.
1
u/pugjames91 Jan 12 '25
How do I do this?
1
u/Dekatater Jan 13 '25
Ohhh no, you just introduced print defects in Minecraft
I deal with these enough irl
1
u/delta-samurai Jan 15 '25
This is awesome and has a ton of potential for speeding up giant builds.