3D minecraft head PHP

Discussion in 'Bukkit Discussion' started by TNTUP, Sep 29, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    TNTUP

    Hi, firstly I dont know if what im asking is in the right topic, feel free to move it somewhere where it belongs.

    Im looking for a PHP code that can do an isometric/perspective view as shown here: (used LukeRay's MC Avatar Generator as an example)
    [​IMG]

    but in PHP. Like I would like to have those options "head.php?user=TNTUP&size=32&hat=true"

    User is any minecraft username;
    Size is the size of the image (in pixels (32 > 32x32))
    Hat is to define if I want helm enabled/disabled

    I want to integrate it in my minotar setup and/or in my "Query a Minecraft Server" When finished this one, it will be on Mode 4.

    I did found one but its not the same as McLive's perspective view. I asked him for the perspective code, he refused to share. Thats why I decided to make mine. The one I found is made in html/js, theres a PHP code that fetchs player skin then the js renders it (earthiverse's HTML5 one) but I suck with js things so.. I don't know x( (Im noob to PHP and others

    Another one, but again theres a difference with the size... (SuperMamie's one)

    --

    I would like to integrate it in my minotar setup (I guess doing 3D perspective/isometric view is done with WideImage (Imagemagick) and/or in a single PHP file with those options suggested above.

    I did some googling it but I didn't find easy scripts that I can modify to my needs.

    --

    Why im asking this? Im looking for someone who can make this, I don't know how to use WideImage's functions.

    tl;dr Requesting Minecraft 3D head view (with/out hat) with sizes and username in PHP. If possible to integrate in my minotar setup (tntup.me)

    PS: My english sucks im french. Sorry for bad grammar.
     
  2. Offline

    frdmn

  3. Offline

    TNTUP

    Thanks ^^ Can'T wait to see it XD :p
     
  4. Offline

    frdmn

    TNTUP likes this.
  5. Offline

    TNTUP

  6. Offline

    frdmn

    TNTUP I know its not the nicest way to execute the bash file. You could probably do that somehow just with the plain Imagick PHP lib, but then you have to take a look into distortion and so on. The helmet thing is not a big deal, let me know if you need help!
     
  7. Offline

    TNTUP


    Mmmmh okay XD Many thanks to ya frd ^^ Hope to see teh req done... Or I can add it in my Query thingy it will be labeled as WIP mode 4 :p
     
  8. Offline

    frdmn

    Not a problem, btw. in case you use that snippet, you should totally escape the _GET requests otherwise people could inject unix commands via the username or the size argument!
     
  9. Offline

    TNTUP


    Awwww damn wont use it then... Oh well thanks for your awesome job frdmn
     
  10. Offline

    Mister_Fix

    The script you are currenty using for 3D box (the one that 'supports' helms) cannot support all helms; my helm just looks weird: http://cdn.goldencreate.com/a.php?a...playHairs=true&headOnly=true&login=Mister_Fix
    i would say just leave it to be without helms unless you are really good in PHP: GD. imagick is quite weak at these things.
     
  11. Offline

    TNTUP

    You notice its not "smooth" at teh edges, so um... hmmm
     
  12. Offline

    Mister_Fix

    Well yeah, that too.
    i didn't have too much time that week but in the mean time i made a simple script that cuts out the whole head image off the skin: http://cdn.goldencreate.com/avatar.php?user=Mister_Fix&size=1024
    if you make a script read that and turn that into 3D you have to use &size=32 in order for your script to work with all sizes, if you plan to do customizable sizes.
     
  13. Offline

    TNTUP

    Ye well with SuperMamie's one its not 32x32 if set to 32, its BIG... :/ idk how to fix that smooth thing
     
  14. Offline

    Mister_Fix

    She's too smart for us Lol.
     
Thread Status:
Not open for further replies.

Share This Page