{"id":19123299,"url":"https://github.com/haplifeman/skinview3d","last_synced_at":"2026-06-05T13:30:15.774Z","repository":{"id":215523233,"uuid":"739147164","full_name":"HapLifeMan/skinview3d","owner":"HapLifeMan","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-04T22:47:10.000Z","size":13955,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-31T04:04:08.623Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HapLifeMan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2024-01-04T22:06:04.000Z","updated_at":"2024-01-07T23:40:22.000Z","dependencies_parsed_at":"2024-01-05T00:26:18.971Z","dependency_job_id":null,"html_url":"https://github.com/HapLifeMan/skinview3d","commit_stats":null,"previous_names":["haplifeman/skinview3d"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HapLifeMan%2Fskinview3d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HapLifeMan%2Fskinview3d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HapLifeMan%2Fskinview3d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HapLifeMan%2Fskinview3d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HapLifeMan","download_url":"https://codeload.github.com/HapLifeMan/skinview3d/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240181261,"owners_count":19761067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T05:25:03.161Z","updated_at":"2026-06-05T13:30:15.633Z","avatar_url":"https://github.com/HapLifeMan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# skinview3d\n\n[![CI Status](https://img.shields.io/github/actions/workflow/status/bs-community/skinview3d/ci.yaml?branch=master\u0026label=CI\u0026logo=github\u0026style=flat-square)](https://github.com/bs-community/skinview3d/actions?query=workflow:CI)\n[![NPM Package](https://img.shields.io/npm/v/skinview3d.svg?style=flat-square)](https://www.npmjs.com/package/skinview3d)\n[![MIT License](https://img.shields.io/badge/license-MIT-yellowgreen.svg?style=flat-square)](https://github.com/bs-community/skinview3d/blob/master/LICENSE)\n[![Gitter Chat](https://img.shields.io/gitter/room/TechnologyAdvice/Stardust.svg?style=flat-square)](https://gitter.im/skinview3d/Lobby)\n\nThree.js powered Minecraft skin viewer.\n\n# Features\n\n-   1.8 Skins\n-   HD Skins\n-   Capes\n-   Ears\n-   Elytras\n-   Slim Arms\n    -   Automatic model detection (Slim / Default)\n-   FXAA (fast approximate anti-aliasing)\n\n# Usage\n\n[Example of using skinview3d](https://bs-community.github.io/skinview3d/)\n\n```html\n\u003ccanvas id=\"skin_container\"\u003e\u003c/canvas\u003e\n\u003cscript\u003e\n\tlet skinViewer = new skinview3d.SkinViewer({\n\t\tcanvas: document.getElementById('skin_container'),\n\t\twidth: 300,\n\t\theight: 400,\n\t\tskin: 'img/skin.png',\n\t})\n\n\t// Change viewer size\n\tskinViewer.width = 600\n\tskinViewer.height = 800\n\n\t// Load another skin\n\tskinViewer.loadSkin('img/skin2.png')\n\n\t// Load a cape\n\tskinViewer.loadCape('img/cape.png')\n\n\t// Load an elytra (from a cape texture)\n\tskinViewer.loadCape('img/cape.png', { backEquipment: 'elytra' })\n\n\t// Unload(hide) the cape / elytra\n\tskinViewer.loadCape(null)\n\n\t// Set the background color\n\tskinViewer.background = 0x5a76f3\n\n\t// Set the background to a normal image\n\tskinViewer.loadBackground('img/background.png')\n\n\t// Set the background to a panoramic image\n\tskinViewer.loadPanorama('img/panorama1.png')\n\n\t// Change camera FOV\n\tskinViewer.fov = 70\n\n\t// Zoom out\n\tskinViewer.zoom = 0.5\n\n\t// Rotate the player\n\tskinViewer.autoRotate = true\n\n\t// Apply an animation\n\tskinViewer.animation = new skinview3d.WalkingAnimation()\n\n\t// Set the speed of the animation\n\tskinViewer.animation.speed = 3\n\n\t// Pause the animation\n\tskinViewer.animation.paused = true\n\n\t// Remove the animation\n\tskinViewer.animation = null\n\u003c/script\u003e\n```\n\n## Lighting\n\nBy default, there are two lights on the scene. One is an ambient light, and the other is a point light from the camera.\n\nTo change the light intensity:\n\n```js\nskinViewer.cameraLight.intensity = 0.9\nskinViewer.globalLight.intensity = 0.1\n```\n\nSetting `globalLight.intensity` to `1.0` and `cameraLight.intensity` to `0.0`\nwill completely disable shadows.\n\n## Ears\n\nskinview3d supports two types of ear texture:\n\n-   `standalone`: 14x7 image that contains the ear ([example](https://github.com/bs-community/skinview3d/blob/master/examples/img/ears.png))\n-   `skin`: Skin texture that contains the ear (e.g. [deadmau5's skin](https://minecraft.fandom.com/wiki/Easter_eggs#Deadmau5.27s_ears))\n\nUsage:\n\n```js\n// You can specify ears in the constructor:\nnew skinview3d.SkinViewer({\n\tskin: 'img/deadmau5.png',\n\n\t// Use ears drawn on the current skin (img/deadmau5.png)\n\tears: 'current-skin',\n\n\t// Or use ears from other textures\n\tears: {\n\t\ttextureType: 'standalone', // \"standalone\" or \"skin\"\n\t\tsource: 'img/ears.png',\n\t},\n})\n\n// Show ears when loading skins:\nskinViewer.loadSkin('img/deadmau5.png', { ears: true })\n\n// Use ears from other textures:\nskinViewer.loadEars('img/ears.png', { textureType: 'standalone' })\nskinViewer.loadEars('img/deadmau5.png', { textureType: 'skin' })\n```\n\n## Name Tag\n\nUsage:\n\n```js\n// Name tag with text \"hello\"\nskinViewer.nameTag = 'hello'\n\n// Specify the text color\nskinViewer.nameTag = new skinview3d.NameTagObject('hello', {\n\ttextStyle: 'yellow',\n})\n\n// Unset the name tag\nskinViewer.nameTag = null\n```\n\nIn order to display name tags correctly, you need the `Minecraft` font from\n[South-Paw/typeface-minecraft](https://github.com/South-Paw/typeface-minecraft).\nThis font is available at [`assets/minecraft.woff2`](assets/minecraft.woff2).\n\nTo load this font, please add the `@font-face` rule to your CSS:\n\n```css\n@font-face {\n\tfont-family: 'Minecraft';\n\tsrc: url('/path/to/minecraft.woff2') format('woff2');\n}\n```\n\n# Build\n\n`npm run build`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaplifeman%2Fskinview3d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaplifeman%2Fskinview3d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaplifeman%2Fskinview3d/lists"}