Jump to content




[1.4.5] NPaintPro

utility

238 replies to this topic

#41 nitrogenfingers

    Lua Professor

  • Members
  • 551 posts
  • LocationAustralia

Posted 25 October 2012 - 11:27 PM

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?

#42 Heracles421

  • Members
  • 258 posts

Posted 25 October 2012 - 11:39 PM

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

#43 nitrogenfingers

    Lua Professor

  • Members
  • 551 posts
  • LocationAustralia

Posted 26 October 2012 - 12:56 AM

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...

#44 Heracles421

  • Members
  • 258 posts

Posted 26 October 2012 - 01:38 AM

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

#45 amtra5

  • Members
  • 166 posts
  • LocationMelbourne, Australia

Posted 27 October 2012 - 11:48 PM

Congrats on paint program making CC 1.45 :D/>

#46 1v2

  • Members
  • 89 posts
  • LocationAmsterdam

Posted 30 October 2012 - 03:44 PM

Very useful program, thanks.

#47 DSlink2010

  • Members
  • 50 posts

Posted 06 November 2012 - 03:19 PM

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!

#48 DSlink2010

  • Members
  • 50 posts

Posted 06 November 2012 - 03:27 PM

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

#49 nitrogenfingers

    Lua Professor

  • Members
  • 551 posts
  • LocationAustralia

Posted 18 November 2012 - 06:58 AM

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.

#50 BigSHinyToys

  • Members
  • 1,001 posts

Posted 18 November 2012 - 08:51 AM

That is awesome great work nitrogenfingers

#51 smiba

  • Members
  • 7 posts

Posted 18 November 2012 - 09:17 AM

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

#52 Espen

    Curious Explorer

  • Members
  • 708 posts

Posted 18 November 2012 - 09:35 AM

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

#53 Sammich Lord

    IRC Addict

  • Members
  • 1,212 posts
  • LocationThe Sammich Kingdom

Posted 18 November 2012 - 09:42 AM

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

#54 BigSHinyToys

  • Members
  • 1,001 posts

Posted 18 November 2012 - 10:05 AM

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.

#55 Sammich Lord

    IRC Addict

  • Members
  • 1,212 posts
  • LocationThe Sammich Kingdom

Posted 18 November 2012 - 11:17 AM

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. :)/>

#56 nitrogenfingers

    Lua Professor

  • Members
  • 551 posts
  • LocationAustralia

Posted 18 November 2012 - 01:20 PM

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!

#57 ETHANATOR360

  • Members
  • 423 posts
  • Locationyour hardrive

Posted 18 November 2012 - 01:46 PM

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


#58 ArchAngel075

  • Members
  • 149 posts

Posted 18 November 2012 - 03:44 PM

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)

?

#59 nitrogenfingers

    Lua Professor

  • Members
  • 551 posts
  • LocationAustralia

Posted 18 November 2012 - 08:35 PM

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)

#60 smiba

  • Members
  • 7 posts

Posted 18 November 2012 - 09:34 PM

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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users