{"id":19815172,"url":"https://github.com/akbartus/a-frame-component-simplify-modifier","last_synced_at":"2026-06-16T14:32:15.529Z","repository":{"id":175892912,"uuid":"654429180","full_name":"akbartus/A-Frame-Component-Simplify-Modifier","owner":"akbartus","description":"A-Frame Component for simplifying GLTF meshes, which is adaptation of Three.js example to A-Frame","archived":false,"fork":false,"pushed_at":"2023-06-16T19:21:53.000Z","size":372,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T19:26:49.757Z","etag":null,"topics":["aframevr","mesh-simplification","threejs"],"latest_commit_sha":null,"homepage":"https://simplify-modifier.glitch.me/","language":"HTML","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/akbartus.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-16T05:41:03.000Z","updated_at":"2023-06-16T17:14:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"94df5e15-0711-4638-9804-084937d661cc","html_url":"https://github.com/akbartus/A-Frame-Component-Simplify-Modifier","commit_stats":null,"previous_names":["akbartus/a-frame-component-simplify-modifier"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/akbartus/A-Frame-Component-Simplify-Modifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akbartus%2FA-Frame-Component-Simplify-Modifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akbartus%2FA-Frame-Component-Simplify-Modifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akbartus%2FA-Frame-Component-Simplify-Modifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akbartus%2FA-Frame-Component-Simplify-Modifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akbartus","download_url":"https://codeload.github.com/akbartus/A-Frame-Component-Simplify-Modifier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akbartus%2FA-Frame-Component-Simplify-Modifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34410780,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["aframevr","mesh-simplification","threejs"],"created_at":"2024-11-12T10:04:58.636Z","updated_at":"2026-06-16T14:32:15.524Z","avatar_url":"https://github.com/akbartus.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A-Frame-Component: Simplify-Modifier \n\u003cimg src=\"img/screenshot.jpg\" title=\"Video screen capture\" alt=\"Video screen capture\" height=\"400\"\u003e\n\n### **Description / Rationale**\nThis is A-Frame component for simplification of GLTF meshes. It is the adaptation of similar \u003ca href=\"https://threejs.org/examples/webgl_modifier_simplifier.html\"\u003eexample\u003c/a\u003e made in Three.js with additional features:\n* Simplification of multiple gltf meshes\n* Assigning color to simplified mesh\n* Enabling wireframe of simplified mesh.\n\n\n### **Instructions**\nIn order to use the component attach \"simplify-modifier\" to a-entity with gltf-model component. The component has the following attributes: \n* \u003cb\u003ecolor: { type: 'color', default: '#ffffff' }\u003c/b\u003e - Color of the simplified mesh\n* \u003cb\u003ewireframe: { type: 'boolean', default: false }\u003c/b\u003e - Whether to show wireframe of simplified mesh or not\n* \u003cb\u003ecount: { type: 'number', default: 0.7 }\u003c/b\u003e - Vertices to remove. Accepts values from 0 to 1. 0 - almost no simplifaction is made. 1 - complete simplification. Please note that if 1 is selected, mesh will not be visible. \n* \u003cb\u003eoffset: { type: 'number', default: 1 }\u003c/b\u003e - Offset of simplified mesh on x-axis. If 0 is selected, it will be in the same position as original GLTF model.\n\nThe code below shows the sample implementation of the component:\n```\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n\u003chead\u003e\n    \u003ctitle\u003eA-Frame Component: Simplify Modifier\u003c/title\u003e\n    \u003cmeta charset=\"utf-8\"\u003e\n    \u003cmeta name=\"viewport\" content=\"width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0\"\u003e\n    \u003cscript src=\"https://aframe.io/releases/1.4.2/aframe.min.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"js/simplifymodifier-component.js\"\u003e\u003c/script\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003ca-scene\u003e\n        \u003ca-entity simplify-modifier=\"color: lightblue\" gltf-model=\"3d/LeePerrySmith.glb\" position=\"-1 1.5 -2\" rotation=\"0 0 0\" scale=\"0.2 0.2 0.2\" scale=\"0.01 0.01 0.01\"\u003e\u003c/a-entity\u003e\n        \u003ca-sky color=\"#000\"\u003e\u003c/a-sky\u003e\n    \u003c/a-scene\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\nPlease not that meshes without textures are only supported. When doing simplification if mesh is not visible, try to decrease the count value. \n\n### **Tech Stack**\nThe project is powered by AFrame and Three.js. The 3d model (gltf file) was taken from \u003ca href=\"https://github.com/mrdoob/three.js/tree/dev/examples/models/gltf/LeePerrySmith\"\u003eThree.js repository\u003c/a\u003e.\n\n### **Demo**\nSee demo of the component here: [Demo](https://simplify-modifier.glitch.me/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakbartus%2Fa-frame-component-simplify-modifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakbartus%2Fa-frame-component-simplify-modifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakbartus%2Fa-frame-component-simplify-modifier/lists"}