Updated README and fixed a few things for vagrant usage
This commit is contained in:
parent
3f1ed3679b
commit
878969bc22
26
README.md
26
README.md
|
|
@ -1,2 +1,26 @@
|
||||||
# skinpreview3d.js
|
# skinpreview3d.js
|
||||||
TODO: finish readme
|
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).
|
||||||
|
|
||||||
|
|
||||||
|
# Usage
|
||||||
|
HTML
|
||||||
|
```
|
||||||
|
<div id="canvas_container">
|
||||||
|
<canvas id="canvas" width="64" height="64"></canvas>
|
||||||
|
</div>
|
||||||
|
```
|
||||||
|
|
||||||
|
JS
|
||||||
|
```
|
||||||
|
$(function() {
|
||||||
|
$("#canvas_container").skinPreview3D({
|
||||||
|
imageUrl: "/img/ref.png",
|
||||||
|
canvasID: "canvas"
|
||||||
|
});
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
# Todo
|
||||||
|
* Create a demo hosted on github pages
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,6 @@ apt-get install nginx -y > /dev/null
|
||||||
echo "nginx Config files"
|
echo "nginx Config files"
|
||||||
rm -rf /etc/nginx/sites-available/default
|
rm -rf /etc/nginx/sites-available/default
|
||||||
rm -rf /etc/nginx/sites-enabled/default
|
rm -rf /etc/nginx/sites-enabled/default
|
||||||
ln -s /var/www/nginx_vhost /etc/nginx/sites-enabled/
|
ln -s /var/www/misc/nginx_vhost /etc/nginx/sites-enabled/
|
||||||
|
|
||||||
service nginx restart
|
service nginx restart
|
||||||
|
|
@ -5,11 +5,6 @@ server {
|
||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
|
|
||||||
sendfile off;
|
|
||||||
large_client_header_buffers 8 16k;
|
|
||||||
client_header_buffer_size 8k;
|
|
||||||
client_max_body_size 4m;
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php;
|
try_files $uri $uri/ /index.php;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue