←  Programs

ComputerCraft | Programmable Computers for Minecraft

»

[1.4.5] NPaintPro

nitrogenfingers's Photo nitrogenfingers 25 Oct 2012

This is the way I'm doing it:

Spoiler

This will return a table, and any point in the table can be accessed with image[y][x]- this corresponds directly to X-Y coordinates your turtle can use.

Edit: It sounds like you're keen to give this a try Heracles, but would the introduction of a 3D Print function be valuable to NPaintPro?
Quote

Heracles421's Photo Heracles421 25 Oct 2012

View Postnitrogenfingers, on 25 October 2012 - 11:27 PM, said:

This is the way I'm doing it:

Spoiler

This will return a table, and any point in the table can be accessed with image[y][x]- this corresponds directly to X-Y coordinates your turtle can use.

Edit: It sounds like you're keen to give this a try Heracles, but would the introduction of a 3D Print function be valuable to NPaintPro?
We don't need 3D printing, I was planning to use multiple files for multiple levels of the building
Quote

nitrogenfingers's Photo nitrogenfingers 26 Oct 2012

View PostHeracles421, on 25 October 2012 - 11:39 PM, said:

View Postnitrogenfingers, on 25 October 2012 - 11:27 PM, said:

This is the way I'm doing it:

Spoiler

This will return a table, and any point in the table can be accessed with image[y][x]- this corresponds directly to X-Y coordinates your turtle can use.

Edit: It sounds like you're keen to give this a try Heracles, but would the introduction of a 3D Print function be valuable to NPaintPro?
We don't need 3D printing, I was planning to use multiple files for multiple levels of the building

I might have a crack at it anyway...
Quote

Heracles421's Photo Heracles421 26 Oct 2012

Well, if you want to give it a try, go for it
Quote

amtra5's Photo amtra5 27 Oct 2012

Congrats on paint program making CC 1.45 :D/>
Quote

1v2's Photo 1v2 30 Oct 2012

Very useful program, thanks.
Quote

DSlink2010's Photo DSlink2010 06 Nov 2012

View PostHuman, on 14 October 2012 - 04:27 PM, said:

Just wait till somebody makes a whole studio to make games!(Also my 100th post!)
Im gonna make you're sig real!
Quote

DSlink2010's Photo DSlink2010 06 Nov 2012

You never know what people will make!Someone might even make Photoshop in computercraft!
Quote

nitrogenfingers's Photo nitrogenfingers 18 Nov 2012

3D Printing has been added to NPaintPro! Link to the turtle printing program on the main page



I have spent hours messing around with this, printing off random junk and though it has some severe limitations you can still do some pretty awesome stuff with it. Things to note:
- Turtles have no directionality when printing, so objects like stairs, redstone repeaters, gates and slabs cannot have a specified direction (making them a bit pointless)
- Wall-mounted things like ladders, torches and paintings can't be relied on either, as printing is done in sweeps so the wall you're mounting your ladder to may not exist when your turtle tries to place it.
- It's all buggy. Needs more testing.

I've also added one or two other little features to the program, like a new "layered" mode that displays all layers at once!
Don't use this mode.
Quote

BigSHinyToys's Photo BigSHinyToys 18 Nov 2012

That is awesome great work nitrogenfingers
Quote

smiba's Photo smiba 18 Nov 2012

I guess i'm just really stupid.. but how do i printout to the 3D Printer? You have an "Print" button... But i don't

EDIT: Your pastebin text is right.. But the URL isn't x3 - Now downloaded the right one
Quote

Espen's Photo Espen 18 Nov 2012

@nitrogenfingers:
Nice work with the 3D printer.
Very nice design and well thought through.
Kudos! :)/>
Quote

Sammich Lord's Photo Sammich Lord 18 Nov 2012

I am going to make a castle with only turtles :)/>
Quote

BigSHinyToys's Photo BigSHinyToys 18 Nov 2012

My first castle / badly designed pile of boxes.
Spoiler
This is going to be awesome to mess-around with.
It would be nice is turtle place had orientation support would make everything printable then.
Quote

Sammich Lord's Photo Sammich Lord 18 Nov 2012

View PostBigSHinyToys, on 18 November 2012 - 10:05 AM, said:

My first castle / badly designed pile of boxes.
Spoiler
This is going to be awesome to mess-around with.
It would be nice is turtle place had orientation support would make everything printable then.
I was planning on something a lot bigger. More like a 1000x1000 block castle. :)/>
Quote

nitrogenfingers's Photo nitrogenfingers 18 Nov 2012

I must admit I've had so much fun messing around with this printer that orientation support does feel like the next thing on the checklist. I'll probably have to modify the file format so optional orientation escape characters can be littered through the program, as well as a directional paint display mode. I use stairs a lot in my builds and that redstone door from the video took awhile to design without repeaters or wall-mounted torches!

Anyway thanks for responses so far- love to see your creations so post what you make!
Quote

ETHANATOR360's Photo ETHANATOR360 18 Nov 2012

sweet im gonna make an 8 bit mario
EDIT:made
the head not enough room for body
Spoiler
Quote

ArchAngel075's Photo ArchAngel075 18 Nov 2012

Very welldone! In-fact this program is what i would be needing for my Angel-TV program for bigger than 2x4 screens....

Can you perhaps let me know if its possible to use this program in my own ?



When one closes(finish editing) a image how does the program save it? anything complicated or is it simple like the basic paint program? [read OP]
would the program be usable with mine if :

'shell.run("paint", "Frame" .. CFrame) --where CFrme is user or automaticaly defined frame number, [except after frame number a extra option would be to save as the npa. extention)

--so
CFrame = 1
--and run the shell command above would yield opening Frame 1 in paint
--once paint is closed with ctrl-enter + ctrl-right-enter (save and close file) it returns to my programs mainmenu automatically

would the above be possible if i used instead :

shell.run("NPaintPro" , "Frame" .. CFrame)

?
Quote

nitrogenfingers's Photo nitrogenfingers 18 Nov 2012

View PostETHANATOR360, on 18 November 2012 - 01:46 PM, said:

sweet im gonna make an 8 bit mario
EDIT:made
the head not enough room for body

You can scroll the canvas with the arrow keys if you run out of space.


View PostArchAngel075, on 18 November 2012 - 03:44 PM, said:

Very welldone! In-fact this program is what i would be needing for my Angel-TV program for bigger than 2x4 screens....

Can you perhaps let me know if its possible to use this program in my own ?



When one closes(finish editing) a image how does the program save it? anything complicated or is it simple like the basic paint program? [read OP]
would the program be usable with mine if :

'shell.run("paint", "Frame" .. CFrame) --where CFrme is user or automaticaly defined frame number, [except after frame number a extra option would be to save as the npa. extention)

--so
CFrame = 1
--and run the shell command above would yield opening Frame 1 in paint
--once paint is closed with ctrl-enter + ctrl-right-enter (save and close file) it returns to my programs mainmenu automatically

would the above be possible if i used instead :

shell.run("NPaintPro" , "Frame" .. CFrame)

?

You're of course free to use NPaintPro however you like. If you make something cool, share the link, would love to see what you come up with!

I'm afraid there's no option for specifying the selected frame from the command line- you have to change frames from within the program (with the goto menu option or the <> keys)
Quote

smiba's Photo smiba 18 Nov 2012

Can you also make an wireless printing script for this? (Only 1 color.. But still usefull for an minecraft office)
Quote