supermamie / php-minecraft-3d-skin Goto Github PK
View Code? Open in Web Editor NEWrender a 3D view of a skin as a svg or png image
render a 3D view of a skin as a svg or png image
This doesn't seem to be working on all skins because some skins I've tried this on have turned dark blue. Please see the images below to understand what I mean. The first image shows the skin that doesn't work and the second shows an other skin which works.
http://i.imgur.com/joapIAS.jpg
http://i.imgur.com/lTSOtWH.jpg
(The skin to the left of the 3D skins is using an other code, so ignore that.)
Is there a fix for this?
In 1.8, there will be a new skin format, which lets you have individual legs, arms, and also a hair/hat layer for each segment. It seems as if this project is inactive, but I would love for it to be updated to address the blue skin bug and support for 1.8 skins! (blue skin bug can be observed with jeb_'s skin as of today, presumably until he changes to a 1.8 skin format)
I've made a dirty hack so that I can use your cool script on command line. That way I can generate the images for my non-PHP-site in the background.
Maybe it is useful for somebody...
Just insert the snippet so that your 3d.php begins like this:
<?php
# Console hack to make it work on CLI
foreach ($argv as $key => $value) {
if($key > 0) {
$c = explode("=", $value);
$_GET[$c[0]] = $c[1];
}
}
/*
* Copyright (c) 2012, Pierre Gros
Then call it like this:
~$ php 3d.php a=-25 w=35 format=png login=supermamie > supermamie.png
Very good. Well done
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.