This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Shefla's profile picture

Convert your minecrat skin face to paint format

Started by Shefla, 08 October 2013 - 09:52 AM
Shefla #1
Posted 08 October 2013 - 11:52 AM
I'm working on a small project that i would like to share with you.
Basically it samples pixels data from a skin and quantize colors to fit in terminal/monitor color space.
There's already a working proof of concept available online, for now it's coded using javascript to take avantage of easy image manipulation functions.
In the demo you can tweak hue, saluration and lightness to adjust color values of your image.
It seems that simplest skins works best, when there's a lot of colors the output is a bit weird.

I would like to port most of the code to lua maybe using a custom web service to get image pixel data.

I've heard on IRC that something like this has allready been done, if so please share.
Are there people who knows about the different methods of color quantization?
Zudo #2
Posted 09 October 2013 - 12:55 PM
This is nice, but in the wrong place. This would go in General, until there is a CC program to go with it. Then it will go in Programs.
Bubba #3
Posted 09 October 2013 - 07:37 PM
Is there a question in this topic? If yes, I will leave it here, but please edit the OP so as to be clear. If no, I will be moving this to General in the next day or two.
jay5476 #4
Posted 10 October 2013 - 12:23 AM
well basiclly you will need http enabled to do this and then you could use a site like that (or your own, make sure you can change user in CC) and then read through the response to find the code
Shefla #5
Posted 10 October 2013 - 12:36 PM
Thanks for your replies. :)/>

I keep working on ccface and made a rest api to access skin pixel data from http:
GET http://api-shefla.rhcloud.com/ccface/YourMinecraftName
returns a JSON encoded array of rgba values.

From that i can port the converter to lua and start the fun part.
Currently colors are quantized using closest euclidian distance and i would like to add more methods but don't understand how they works.

Shefla #6
Posted 11 October 2013 - 09:01 AM
Here is the first release of ccface for computercraft available on pastebin/iUaDzANQ. B)/>
Keep in mind that this program requires http api enabled to work.

Installation:
pastebin get iUaDzANQ ccface

Usage:
ccface <CharacterName>

Screenshot:
Zudo #7
Posted 11 October 2013 - 11:15 AM
Sick.
amtra5 #8
Posted 12 October 2013 - 02:25 AM
Try WhatTheHai with this, sort of bugged ;)/>
Shefla #9
Posted 14 October 2013 - 10:45 AM
I did and it works. :)/>
All skins are saved in /.ccface folder so you allways can modify it using paint.
amtra5 #10
Posted 15 October 2013 - 06:59 AM
I just thought it looked weird XD
Geforce Fan #11
Posted 17 October 2013 - 08:27 PM
It gives me an error on line 127 saying Unable to connect to skin service
HTTP is enabled.
edit: lol nvm apparently cap count.
Shefla #12
Posted 22 October 2013 - 07:45 AM
Yes the character name is case sensitive. ^^

Maybe a moderator can move this topic to the program section?
ComputerCraftFan11 #13
Posted 24 October 2013 - 01:37 AM
Try WhatTheHai with this, sort of bugged ;)/>

If you set the lightness to -0.3 (third slider) with WhatTheHai , it turns into a zombie
Left4Cake #14
Posted 05 November 2013 - 08:50 PM
Where are minecraft skins uploaded too?

I have done something similar with this: http://www.computercraft.info/forums2/index.php?/topic/13393-http-image-converter/page__pid__126974

I would only need to modify it a bit. To accomplished the same thing.
basdxz #15
Posted 07 November 2013 - 04:24 AM
My face is coloured wrongly, how do I fix it? Try basdxz and see for yourself :(/>.
awsmazinggenius #16
Posted 07 December 2013 - 02:25 PM
I would use this, but my skin is so simple already:



EDIT: Sorry for bump. Thought I read 7 December, not 7 November.
Edited on 26 December 2013 - 08:30 AM
Trey2.k #17
Posted 18 December 2013 - 01:23 PM
Dude this is epic
Edited on 18 December 2013 - 02:07 PM