Sauerworld Forum

Sauerbraten Talk => General Chat => Topic started by: Salatiel on January 02, 2019, 04:03:07 pm

Title: Another (online) tool to create Pixel arts - Imtoc
Post by: Salatiel on January 02, 2019, 04:03:07 pm
Hello!
 IMTOC is a javascript/website that allows you to convert a txt containing color information to an executable .cfg format, without having to install anything.

(https://i.imgur.com/LCEgOOK.png)

You just need to transform an image into a text file using ImageMagick (this can easily be done online as well)

(https://raw.githubusercontent.com/SalatielSauer/IMTOC-Converter/master/demo.png)

When importing the text and converting, it will be organized as a cubescript file. You can run it ingame and draw the image line by line, similar to the old CubeArt made by SomeDude, but now you only have to do half the work ;D

(https://raw.githubusercontent.com/SalatielSauer/IMTOC-Converter/master/demo4.png)

(https://i.imgur.com/BsUOm6A.png)

(https://i.imgur.com/DyUpIqS.png)

Link: https://salatielsauer.github.io/IMTOC-Converter/ (https://salatielsauer.github.io/IMTOC-Converter/)
(tested only with chrome, it might look visually strange in other browsers)

There is a section on the page where you can find some links to sites that convert images to txt, if you know how I can implement this function on the page itself, tell me :D

Ingame Guide:
After putting the cfg file in the sauerbraten folder and running it ingame (/exec filename.cfg)...
/drawloadimg the name of the image should be the cfg name you downloaded earlier.
/drawreset will reset the 'pixel id' value to 0, you must do this every time you start a new image.
/drawundo this subtracts the width value from the 'pixel id', then you can re-draw this line.
/drawrow this is the command that will actually draw the pixel/cube.

Many thanks to RaZgRiZ for helping me with the cubescript part.

have fun and leave your feedback :)
Title: Re: Another (online) tool to create Pixel arts - Imtoc
Post by: Doko on January 02, 2019, 06:06:03 pm
Amazing  ;D
Title: Re: Another (online) tool to create Pixel arts - Imtoc
Post by: Salatiel on January 10, 2019, 04:26:01 pm
Amazing  ;D
;D