2022-07-09 08:42:42 +08:00
|
|
|
import { TextureFiltering } from '../src/texture';
|
|
|
|
import { ColourSpace } from '../src/util';
|
2022-09-12 08:07:42 +08:00
|
|
|
import { THeadlessConfig } from './headless';
|
2022-07-09 08:42:42 +08:00
|
|
|
|
|
|
|
export const headlessConfig: THeadlessConfig = {
|
2022-03-23 05:15:09 +08:00
|
|
|
import: {
|
2022-09-12 00:38:22 +08:00
|
|
|
filepath: '/Users/lucasdower/ObjToSchematic/res/samples/skull.obj', // Must be an absolute path
|
2022-03-23 05:15:09 +08:00
|
|
|
},
|
|
|
|
voxelise: {
|
2022-07-09 08:42:42 +08:00
|
|
|
voxeliser: 'bvh-ray',
|
2022-09-12 00:38:22 +08:00
|
|
|
desiredHeight: 80,
|
|
|
|
useMultisampleColouring: false,
|
|
|
|
textureFiltering: TextureFiltering.Linear,
|
|
|
|
voxelOverlapRule: 'average',
|
|
|
|
enableAmbientOcclusion: false, // Only want true if exporting to .obj
|
2022-03-23 05:15:09 +08:00
|
|
|
},
|
2022-09-12 00:38:22 +08:00
|
|
|
assign: {
|
|
|
|
textureAtlas: 'vanilla', // Must be an atlas name that exists in /resources/atlases
|
|
|
|
blockPalette: 'all-snapshot', // Must be a palette name that exists in /resources/palettes
|
|
|
|
blockAssigner: 'ordered-dithering',
|
|
|
|
colourSpace: ColourSpace.RGB,
|
|
|
|
fallable: 'replace-falling',
|
2022-10-02 10:03:07 +08:00
|
|
|
resolution: 32,
|
2022-03-23 05:15:09 +08:00
|
|
|
},
|
|
|
|
export: {
|
2022-09-12 00:38:22 +08:00
|
|
|
filepath: '/Users/lucasdower/Documents/out.obj', // Must be an absolute path to the file (can be anywhere)
|
|
|
|
exporter: 'obj', // 'schematic' / 'litematic',
|
|
|
|
},
|
|
|
|
debug: {
|
2022-09-12 02:21:33 +08:00
|
|
|
showLogs: true,
|
|
|
|
showWarnings: true,
|
2022-09-17 02:18:36 +08:00
|
|
|
showTimings: true,
|
2022-03-23 05:15:09 +08:00
|
|
|
},
|
|
|
|
};
|