mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-16 19:51:50 +00:00
Updated pipeline for packing textures.
Open source texture packing pipeline from "https://github.com/odrick/free-tex-packer"
This commit is contained in:
parent
e770afc27b
commit
43bab84ab3
10
res_pipeline/Windows_buld.bat
Normal file
10
res_pipeline/Windows_buld.bat
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
|
||||||
|
call free-tex-packer-cli.cmd --project .\shapez_size_100.ftpp
|
||||||
|
|
||||||
|
call free-tex-packer-cli.cmd --project .\shapez_size_75.ftpp
|
||||||
|
|
||||||
|
call free-tex-packer-cli.cmd --project .\shapez_size_50.ftpp
|
||||||
|
|
||||||
|
call free-tex-packer-cli.cmd --project .\shapez_size_25.ftpp
|
||||||
|
|
||||||
|
call free-tex-packer-cli.cmd --project .\shapez_size_10.ftpp
|
||||||
39
res_pipeline/gulpfile.js
Normal file
39
res_pipeline/gulpfile.js
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
|
||||||
|
|
||||||
|
const gulp = require("gulp");
|
||||||
|
let texturePacker = require('gulp-free-tex-packer');
|
||||||
|
|
||||||
|
gulp.task('default', function() {
|
||||||
|
gulp.src('../res_raw/**/**/*.png')
|
||||||
|
.pipe(texturePacker({textureName: "atlas0_100"}))
|
||||||
|
.pipe(gulp.dest('dest/'));
|
||||||
|
|
||||||
|
gulp.src('../res_raw/**/**/*.png')
|
||||||
|
.pipe(texturePacker({
|
||||||
|
textureName: "atlas0_75",
|
||||||
|
scale: 0.75,
|
||||||
|
}))
|
||||||
|
.pipe(gulp.dest('dest/'));
|
||||||
|
|
||||||
|
gulp.src('../res_raw/**/**/*.png')
|
||||||
|
.pipe(texturePacker({
|
||||||
|
textureName: "atlas0_50",
|
||||||
|
scale: 0.50,
|
||||||
|
}))
|
||||||
|
.pipe(gulp.dest('dest/'));
|
||||||
|
|
||||||
|
gulp.src('../res_raw/**/**/*.png')
|
||||||
|
.pipe(texturePacker({
|
||||||
|
textureName: "atlas0_25",
|
||||||
|
scale: 0.25,
|
||||||
|
}))
|
||||||
|
.pipe(gulp.dest('dest/'));
|
||||||
|
|
||||||
|
gulp.src('../res_raw/**/**/*.png')
|
||||||
|
.pipe(texturePacker({
|
||||||
|
textureName: "atlas0_10",
|
||||||
|
scale: 0.10,
|
||||||
|
}))
|
||||||
|
.pipe(gulp.dest('dest/'));
|
||||||
|
|
||||||
|
});
|
||||||
37
res_pipeline/shapez.ftpp
Normal file
37
res_pipeline/shapez.ftpp
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
"meta": {
|
||||||
|
"version": "0.6.5"
|
||||||
|
},
|
||||||
|
"savePath": "",
|
||||||
|
"images": [],
|
||||||
|
"folders": [
|
||||||
|
"C:/Users/tnt/Documents/GitHub/shapez_tnt.io/res_raw/sprites"
|
||||||
|
],
|
||||||
|
"packOptions": {
|
||||||
|
"textureName": "texture",
|
||||||
|
"textureFormat": "png",
|
||||||
|
"removeFileExtension": false,
|
||||||
|
"prependFolderName": true,
|
||||||
|
"scale": 1,
|
||||||
|
"filter": "none",
|
||||||
|
"exporter": "JSON (hash)",
|
||||||
|
"base64Export": false,
|
||||||
|
"tinify": false,
|
||||||
|
"tinifyKey": "",
|
||||||
|
"fileName": "pack-result",
|
||||||
|
"savePath": "",
|
||||||
|
"width": 2048,
|
||||||
|
"height": 2048,
|
||||||
|
"fixedSize": false,
|
||||||
|
"powerOfTwo": false,
|
||||||
|
"padding": 0,
|
||||||
|
"extrude": 0,
|
||||||
|
"allowRotation": true,
|
||||||
|
"allowTrim": true,
|
||||||
|
"trimMode": "trim",
|
||||||
|
"alphaThreshold": 0,
|
||||||
|
"detectIdentical": true,
|
||||||
|
"packer": "MaxRectsBin",
|
||||||
|
"packerMethod": "BestShortSideFit"
|
||||||
|
}
|
||||||
|
}
|
||||||
37
res_pipeline/shapez_size_10.ftpp
Normal file
37
res_pipeline/shapez_size_10.ftpp
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
"meta": {
|
||||||
|
"version": "0.6.5"
|
||||||
|
},
|
||||||
|
"savePath": "",
|
||||||
|
"images": [],
|
||||||
|
"folders": [
|
||||||
|
"C:/Users/tnt/Documents/GitHub/shapez_tnt.io/res_raw/sprites"
|
||||||
|
],
|
||||||
|
"packOptions": {
|
||||||
|
"textureName": "../res_built/atlas/atlas0_10",
|
||||||
|
"textureFormat": "png",
|
||||||
|
"removeFileExtension": false,
|
||||||
|
"prependFolderName": true,
|
||||||
|
"scale": 0.1,
|
||||||
|
"filter": "none",
|
||||||
|
"exporter": "JSON (hash)",
|
||||||
|
"base64Export": false,
|
||||||
|
"tinify": false,
|
||||||
|
"tinifyKey": "",
|
||||||
|
"fileName": "pack-resultxx",
|
||||||
|
"savePath": "",
|
||||||
|
"width": 2048,
|
||||||
|
"height": 2048,
|
||||||
|
"fixedSize": false,
|
||||||
|
"powerOfTwo": false,
|
||||||
|
"padding": 0,
|
||||||
|
"extrude": 0,
|
||||||
|
"allowRotation": true,
|
||||||
|
"allowTrim": true,
|
||||||
|
"trimMode": "trim",
|
||||||
|
"alphaThreshold": 0,
|
||||||
|
"detectIdentical": true,
|
||||||
|
"packer": "MaxRectsBin",
|
||||||
|
"packerMethod": "BestShortSideFit"
|
||||||
|
}
|
||||||
|
}
|
||||||
37
res_pipeline/shapez_size_100.ftpp
Normal file
37
res_pipeline/shapez_size_100.ftpp
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
"meta": {
|
||||||
|
"version": "0.6.5"
|
||||||
|
},
|
||||||
|
"savePath": "",
|
||||||
|
"images": [],
|
||||||
|
"folders": [
|
||||||
|
"C:/Users/tnt/Documents/GitHub/shapez_tnt.io/res_raw/sprites"
|
||||||
|
],
|
||||||
|
"packOptions": {
|
||||||
|
"textureName": "../res_built/atlas/atlas0_100",
|
||||||
|
"textureFormat": "png",
|
||||||
|
"removeFileExtension": false,
|
||||||
|
"prependFolderName": true,
|
||||||
|
"scale": 1,
|
||||||
|
"filter": "none",
|
||||||
|
"exporter": "JSON (hash)",
|
||||||
|
"base64Export": false,
|
||||||
|
"tinify": false,
|
||||||
|
"tinifyKey": "",
|
||||||
|
"fileName": "pack-resultxx",
|
||||||
|
"savePath": "",
|
||||||
|
"width": 2048,
|
||||||
|
"height": 2048,
|
||||||
|
"fixedSize": false,
|
||||||
|
"powerOfTwo": false,
|
||||||
|
"padding": 0,
|
||||||
|
"extrude": 0,
|
||||||
|
"allowRotation": true,
|
||||||
|
"allowTrim": true,
|
||||||
|
"trimMode": "trim",
|
||||||
|
"alphaThreshold": 0,
|
||||||
|
"detectIdentical": true,
|
||||||
|
"packer": "MaxRectsBin",
|
||||||
|
"packerMethod": "BestShortSideFit"
|
||||||
|
}
|
||||||
|
}
|
||||||
37
res_pipeline/shapez_size_25.ftpp
Normal file
37
res_pipeline/shapez_size_25.ftpp
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
"meta": {
|
||||||
|
"version": "0.6.5"
|
||||||
|
},
|
||||||
|
"savePath": "",
|
||||||
|
"images": [],
|
||||||
|
"folders": [
|
||||||
|
"C:/Users/tnt/Documents/GitHub/shapez_tnt.io/res_raw/sprites"
|
||||||
|
],
|
||||||
|
"packOptions": {
|
||||||
|
"textureName": "../res_built/atlas/atlas0_25",
|
||||||
|
"textureFormat": "png",
|
||||||
|
"removeFileExtension": false,
|
||||||
|
"prependFolderName": true,
|
||||||
|
"scale": 0.25,
|
||||||
|
"filter": "none",
|
||||||
|
"exporter": "JSON (hash)",
|
||||||
|
"base64Export": false,
|
||||||
|
"tinify": false,
|
||||||
|
"tinifyKey": "",
|
||||||
|
"fileName": "pack-resultxx",
|
||||||
|
"savePath": "",
|
||||||
|
"width": 2048,
|
||||||
|
"height": 2048,
|
||||||
|
"fixedSize": false,
|
||||||
|
"powerOfTwo": false,
|
||||||
|
"padding": 0,
|
||||||
|
"extrude": 0,
|
||||||
|
"allowRotation": true,
|
||||||
|
"allowTrim": true,
|
||||||
|
"trimMode": "trim",
|
||||||
|
"alphaThreshold": 0,
|
||||||
|
"detectIdentical": true,
|
||||||
|
"packer": "MaxRectsBin",
|
||||||
|
"packerMethod": "BestShortSideFit"
|
||||||
|
}
|
||||||
|
}
|
||||||
37
res_pipeline/shapez_size_50.ftpp
Normal file
37
res_pipeline/shapez_size_50.ftpp
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
"meta": {
|
||||||
|
"version": "0.6.5"
|
||||||
|
},
|
||||||
|
"savePath": "",
|
||||||
|
"images": [],
|
||||||
|
"folders": [
|
||||||
|
"C:/Users/tnt/Documents/GitHub/shapez_tnt.io/res_raw/sprites"
|
||||||
|
],
|
||||||
|
"packOptions": {
|
||||||
|
"textureName": "../res_built/atlas/atlas0_50",
|
||||||
|
"textureFormat": "png",
|
||||||
|
"removeFileExtension": false,
|
||||||
|
"prependFolderName": true,
|
||||||
|
"scale": 0.5,
|
||||||
|
"filter": "none",
|
||||||
|
"exporter": "JSON (hash)",
|
||||||
|
"base64Export": false,
|
||||||
|
"tinify": false,
|
||||||
|
"tinifyKey": "",
|
||||||
|
"fileName": "pack-resultxx",
|
||||||
|
"savePath": "",
|
||||||
|
"width": 2048,
|
||||||
|
"height": 2048,
|
||||||
|
"fixedSize": false,
|
||||||
|
"powerOfTwo": false,
|
||||||
|
"padding": 0,
|
||||||
|
"extrude": 0,
|
||||||
|
"allowRotation": true,
|
||||||
|
"allowTrim": true,
|
||||||
|
"trimMode": "trim",
|
||||||
|
"alphaThreshold": 0,
|
||||||
|
"detectIdentical": true,
|
||||||
|
"packer": "MaxRectsBin",
|
||||||
|
"packerMethod": "BestShortSideFit"
|
||||||
|
}
|
||||||
|
}
|
||||||
37
res_pipeline/shapez_size_75.ftpp
Normal file
37
res_pipeline/shapez_size_75.ftpp
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
"meta": {
|
||||||
|
"version": "0.6.5"
|
||||||
|
},
|
||||||
|
"savePath": "",
|
||||||
|
"images": [],
|
||||||
|
"folders": [
|
||||||
|
"C:/Users/tnt/Documents/GitHub/shapez_tnt.io/res_raw/sprites"
|
||||||
|
],
|
||||||
|
"packOptions": {
|
||||||
|
"textureName": "../res_built/atlas/atlas0_75",
|
||||||
|
"textureFormat": "png",
|
||||||
|
"removeFileExtension": false,
|
||||||
|
"prependFolderName": true,
|
||||||
|
"scale": 0.75,
|
||||||
|
"filter": "none",
|
||||||
|
"exporter": "JSON (hash)",
|
||||||
|
"base64Export": false,
|
||||||
|
"tinify": false,
|
||||||
|
"tinifyKey": "",
|
||||||
|
"fileName": "pack-resultxx",
|
||||||
|
"savePath": "",
|
||||||
|
"width": 2048,
|
||||||
|
"height": 2048,
|
||||||
|
"fixedSize": false,
|
||||||
|
"powerOfTwo": false,
|
||||||
|
"padding": 0,
|
||||||
|
"extrude": 0,
|
||||||
|
"allowRotation": true,
|
||||||
|
"allowTrim": true,
|
||||||
|
"trimMode": "trim",
|
||||||
|
"alphaThreshold": 0,
|
||||||
|
"detectIdentical": true,
|
||||||
|
"packer": "MaxRectsBin",
|
||||||
|
"packerMethod": "BestShortSideFit"
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user