asie 28 Posted March 11, 2016 Share Posted March 11, 2016 I've spent a fair amount of time trying to get the maximum image quality out of OpenComputers. It all began with BTM15's quick need for a presentation tool, giving us 160x100 at 256 colors - not a huge accomplishment, but a start. BTM16 later brought us 320x100 with adaptive palettes - better, but still not quite there. Recently, I have started working on it again, and thanks to a mini-competition between me and GreaseMonkey I managed to arrive at something rather high quality - the ChenThread Image Format, complete with its own CTIFConverter. It is 320x200, thanks to the new font's block-based nature of the Braille area of Unicode. (It also supports a 160x100 @ 16 color mode for OpenComputers' Tier 2 mode.) The converter, source code and reference viewer is available here. Keep in mind that, as this is a reference viewer, it will not be as fast as it could be - it does no GPU call optimizations whatsoever beyond the simplest ones. I will try to release a better version later. Here's an example of the quality you can get out of this: Quote Link to post Share on other sites
asie 28 Posted March 13, 2016 Author Share Posted March 13, 2016 Actually, you should use the OpenComputers 1.6 beta. Prior versions have a slightly sub-optimal font. Quote Link to post Share on other sites
Totoro 28 Posted March 13, 2016 Share Posted March 13, 2016 Amazing! Must be the most epic image lib for OC =) Quote Link to post Share on other sites
EliteClubSessions 21 Posted March 16, 2016 Share Posted March 16, 2016 It's probably need better drawing algorithm and better image format, but the idea... idea is amazing! Grouping 2x4 real pixels to one OC-unicode-pixel is a great field of opportunities! Quote Link to post Share on other sites
Tag365 2 Posted March 21, 2016 Share Posted March 21, 2016 I'm amazed by the picture quality as seen in these screenshots. Next step is to convert PNG files to that format. I have an API that allows obtaining color information from PNG image files. Quote Link to post Share on other sites
alekso56 2 Posted August 5, 2016 Share Posted August 5, 2016 I made this converter for ease of use. Quote Link to post Share on other sites
haloman30 0 Posted December 18, 2016 Share Posted December 18, 2016 Cant get it working, ctif-oc.lua gives me an error on line 13: ')' expected near '&'. What to do from here? Quote Link to post Share on other sites
asie 28 Posted December 18, 2016 Author Share Posted December 18, 2016 Use Lua 5.3, by shift-rightclicking the CPU until the Architecture is set tothat. Quote Link to post Share on other sites
haloman30 0 Posted December 18, 2016 Share Posted December 18, 2016 14 hours ago, asie said: Use Lua 5.3, by shift-rightclicking the CPU until the Architecture is set tothat. Worked! Thanks! Quote Link to post Share on other sites
RandomRedMage 5 Posted April 25, 2017 Share Posted April 25, 2017 Was wondering if this was still being worked on? It's been a while since I last poked my head in, but would be great to have some apis to work with it beyond just the simple viewer to view images. Quote Link to post Share on other sites
asie 28 Posted May 8, 2017 Author Share Posted May 8, 2017 On 4/25/2017 at 4:08 AM, RandomRedMage said: Was wondering if this was still being worked on? It's been a while since I last poked my head in, but would be great to have some apis to work with it beyond just the simple viewer to view images. I'm not focusing on APIs myself - the viewers are provided as part of the source code distribution and I'd love if someone turned them into a proper API! Anyhow, CTIF 0.2.0 is out! It improves the image rendering quality a bit (especially on "tier 2" - sadly, at the cost of performance) and makes usage of OpenComputers's higher resolutions (160*50 is only an area, not the actual maximum size). Quote Link to post Share on other sites
RandomRedMage 5 Posted May 9, 2017 Share Posted May 9, 2017 Ahh, nifty, I'm good with pricing things together and can generally understand what I read when looking at code, but Im still pretty bad at coding myself. So I think making an api would be way outta my own league here lol. Quote Link to post Share on other sites
Bero 0 Posted January 28, 2018 Share Posted January 28, 2018 Do I put the image link like "http://cax.no/conv/ctif/1517184001-OaAVD3.ctif" In the args table as a string? I have tried this and I get a new error. https://gyazo.com/7cb65fc78076d3c9caf0916e4f6f2b97 This has very poor documentation. Quote Link to post Share on other sites
asie 28 Posted January 29, 2018 Author Share Posted January 29, 2018 No, you put the local path to a file. If it's a remote path, like HTTP, you have to download it first. Quote Link to post Share on other sites
Bero 0 Posted January 31, 2018 Share Posted January 31, 2018 On 1/29/2018 at 3:40 AM, asie said: No, you put the local path to a file. If it's a remote path, like HTTP, you have to download it first. Hm, Ok.I'll test it later, Thank you. Quote Link to post Share on other sites
Bero 0 Posted January 31, 2018 Share Posted January 31, 2018 On 1/29/2018 at 3:40 AM, asie said: No, you put the local path to a file. If it's a remote path, like HTTP, you have to download it first. Nvm! I got it working! Quote Link to post Share on other sites
Anubisus 0 Posted January 6, 2022 Share Posted January 6, 2022 I have two questions: 1. Where to enter the path for the image and, if necessary, the name of the image 2. What should I do when the program gives this error: lib/to.lua:39: bad argument #1 (string expected, got nil): stack traceback: [C]: in function 'error' machine: 77: in global 'checkArg' /lib/shell.lua:77: in field 'resolve' /lib/10. Lua:39: in field 'open' /home/nhraz.lua:66: in glahal 'Inadimage' /home/obraz.lua 224: in main chunk (tail cells.) [C]: in function 'xpcall' machine:798: in global 'xpcall' /lib/process. lua:63: in function </lib/process. lua:59> Quote Link to post Share on other sites
NTPinheiro 0 Posted December 20, 2022 Share Posted December 20, 2022 I'm getting errors, but I probably just did something wrong https://prnt.sc/iJJ4HzxUWtRm Quote Link to post Share on other sites