{"id":21948101,"url":"https://github.com/evolution-gaming/babylonjs-texture-generator","last_synced_at":"2025-04-23T00:15:49.332Z","repository":{"id":44980466,"uuid":"97712408","full_name":"evolution-gaming/babylonjs-texture-generator","owner":"evolution-gaming","description":"A tool that generates PVRTC, ETC1, ETC2, ASTC textures from png and jpg files.","archived":false,"fork":false,"pushed_at":"2023-04-18T18:46:22.000Z","size":35,"stargazers_count":23,"open_issues_count":6,"forks_count":8,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-23T00:15:43.275Z","etag":null,"topics":["astc","babylonjs","babylonjs-texture-generator","etc1","etc2","pvrtc","pvrtextoolcli","textures"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evolution-gaming.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":"2017-07-19T12:14:26.000Z","updated_at":"2025-01-16T12:59:59.000Z","dependencies_parsed_at":"2024-09-26T20:09:21.432Z","dependency_job_id":"8367057f-9cf3-41c2-9b4a-0c065a4aacb0","html_url":"https://github.com/evolution-gaming/babylonjs-texture-generator","commit_stats":{"total_commits":10,"total_committers":4,"mean_commits":2.5,"dds":0.5,"last_synced_commit":"0cde9693a4249736cfe63ac94ba18cf02be7007b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2Fbabylonjs-texture-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2Fbabylonjs-texture-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2Fbabylonjs-texture-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2Fbabylonjs-texture-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evolution-gaming","download_url":"https://codeload.github.com/evolution-gaming/babylonjs-texture-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250343957,"owners_count":21415041,"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":["astc","babylonjs","babylonjs-texture-generator","etc1","etc2","pvrtc","pvrtextoolcli","textures"],"created_at":"2024-11-29T05:11:59.171Z","updated_at":"2025-04-23T00:15:49.307Z","avatar_url":"https://github.com/evolution-gaming.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Babylonjs texture generator\n\n## About\n\nThis is a tool that generates PVRTC, ETC1, ETC2, ASTC, DXT textures from png and jpg files. It can run on node or as a gulp task.\n\nIt is meant to work with [Babylon.js](https://github.com/BabylonJS/Babylon.js). The tool is a port of two [.bat files](https://github.com/BabylonJS/Babylon.js/tree/master/Tools/CompressedTextured).\n\n## Installation\n\nIn order to use the tool, you need to have installed:\n\n* PVRTexToolCLI ([download](https://www.imgtec.com/developers/powervr-sdk-tools/installers/))\n* ASTC Evaluation Codec ([download](https://github.com/ARM-software/astc-encoder/tree/master/Binary))\n* Add *ASTC Evaluation Codec* to your path, a process which depends on your OS. ([documentation](http://cdn.imgtec.com/sdk-documentation/PVRTexTool.User+Manual.pdf) at page 5)\n* Run `npm run build` in terminal\n\n## Usage\n\nImport/require the exposed function `generateTextures` to your script. It accepts one argument as an object with the following attributes:\n\n* `PVRTexToolCLI` - *string*: The absolute path to the PVRTexToolCLI tool.\n* `inputDir` - *string*: The directory where the image files are located. It will be read recursively and all the images will be used in order to generate the new textures.\n* `quality` - *string (optional), (options \"low\"/\"high\", default: \"high\")*: The quality of the exported textures.\n* `exportFormats` - *string[] (optional) (options \"PVRTC\"/\"ETC1\"/\"ETC2\"/\"ASTC\"/\"DXT\", default: [\"PVRTC\", \"ETC1\", \"ETC2\", \"ASTC\", \"DXT\"])*: The format of the exported textures.\n* `async` - *boolean (optional, default: false)*: Whether the task should run asynchronously.\n\nExample usage:\n```javascript\nimport generateTextures from \"babylonjs-texture-generator\";\n// Alternatively\n// const generateTextures = require(\"babylonjs-texture-generator\");\n\ncreateGpuTexture({\n    PVRTexToolCLI: \"/Applications/Imagination/PowerVR_Graphics/PowerVR_Tools/PVRTexTool/CLI/OSX_x86/PVRTexToolCLI\",\n    inputDir: \"/src\",\n    quality: \"high\",\n    async: false,\n    exportFormats: [\"PVRTC\", \"ETC1\", \"ETC2\", \"ASTC\", \"DXT\"]\n});\n```\n\n### Limitations\n\nCurrently DXT files can not be exported on MacOS.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevolution-gaming%2Fbabylonjs-texture-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevolution-gaming%2Fbabylonjs-texture-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevolution-gaming%2Fbabylonjs-texture-generator/lists"}