2015-09-29 18:52:18 +02:00
# skinpreview3d.js
2015-09-29 19:12:29 +02:00
This is a Three.js powered Minecraft skin renderer packaged as a jQuery plugin.
The code was originally created by [Kent Rasmussen ](https://github.com/earthiverse ). You can find out more about his project [here ](https://github.com/earthiverse/3D-Minecraft-Skin-Viewer ).
2016-01-10 18:37:10 +01:00
[Github pages example ](http://hacksore.github.io/skinpreview3d.js )
2016-01-10 18:28:54 +01:00
# Features
* 1.8 Skins
* Capes
# Dependencies
* [Three.js ](https://github.com/mrdoob/three.js/ )
* [jQuery ](https://jquery.com/ )
2015-09-29 19:12:29 +02:00
# Usage
HTML
2016-01-10 18:28:54 +01:00
```html
2015-09-29 19:12:29 +02:00
< div id = "canvas_container" >
< canvas id = "canvas" width = "64" height = "64" > < / canvas >
< / div >
```
JS
2016-01-10 18:28:54 +01:00
```js
2015-09-29 19:12:29 +02:00
$(function() {
$("#canvas_container").skinPreview3D({
imageUrl: "/img/ref.png",
canvasID: "canvas"
});
});
```
# Todo
2016-01-10 18:28:54 +01:00
* Create a demo hosted on github pages.
* Alex support (Slim arms).
* Mouse wheel camera zoom.