diff --git a/dev_stuff/gen_amp_textures/input/body/MaleBody01.png b/dev_stuff/gen_amp_textures/input/body/MaleBody01.png new file mode 100644 index 0000000..0f12fff Binary files /dev/null and b/dev_stuff/gen_amp_textures/input/body/MaleBody01.png differ diff --git a/dev_stuff/gen_amp_textures/input/body/MaleBody01a.png b/dev_stuff/gen_amp_textures/input/body/MaleBody01a.png new file mode 100644 index 0000000..39e85a5 Binary files /dev/null and b/dev_stuff/gen_amp_textures/input/body/MaleBody01a.png differ diff --git a/dev_stuff/gen_amp_textures/input/body/MaleBody02.png b/dev_stuff/gen_amp_textures/input/body/MaleBody02.png new file mode 100644 index 0000000..b66a231 Binary files /dev/null and b/dev_stuff/gen_amp_textures/input/body/MaleBody02.png differ diff --git a/dev_stuff/gen_amp_textures/input/body/MaleBody02a.png b/dev_stuff/gen_amp_textures/input/body/MaleBody02a.png new file mode 100644 index 0000000..9ebcba0 Binary files /dev/null and b/dev_stuff/gen_amp_textures/input/body/MaleBody02a.png differ diff --git a/dev_stuff/gen_amp_textures/input/body/MaleBody03.png b/dev_stuff/gen_amp_textures/input/body/MaleBody03.png new file mode 100644 index 0000000..c3a08fb Binary files /dev/null and b/dev_stuff/gen_amp_textures/input/body/MaleBody03.png differ diff --git a/dev_stuff/gen_amp_textures/input/body/MaleBody03a.png b/dev_stuff/gen_amp_textures/input/body/MaleBody03a.png new file mode 100644 index 0000000..c5d2c13 Binary files /dev/null and b/dev_stuff/gen_amp_textures/input/body/MaleBody03a.png differ diff --git a/dev_stuff/gen_amp_textures/input/body/MaleBody04.png b/dev_stuff/gen_amp_textures/input/body/MaleBody04.png new file mode 100644 index 0000000..5c3f42b Binary files /dev/null and b/dev_stuff/gen_amp_textures/input/body/MaleBody04.png differ diff --git a/dev_stuff/gen_amp_textures/input/body/MaleBody04a.png b/dev_stuff/gen_amp_textures/input/body/MaleBody04a.png new file mode 100644 index 0000000..02e767c Binary files /dev/null and b/dev_stuff/gen_amp_textures/input/body/MaleBody04a.png differ diff --git a/dev_stuff/gen_amp_textures/input/body/MaleBody05.png b/dev_stuff/gen_amp_textures/input/body/MaleBody05.png new file mode 100644 index 0000000..12a7a95 Binary files /dev/null and b/dev_stuff/gen_amp_textures/input/body/MaleBody05.png differ diff --git a/dev_stuff/gen_amp_textures/input/body/MaleBody05a.png b/dev_stuff/gen_amp_textures/input/body/MaleBody05a.png new file mode 100644 index 0000000..fbdbdcb Binary files /dev/null and b/dev_stuff/gen_amp_textures/input/body/MaleBody05a.png differ diff --git a/dev_stuff/gen_amp_textures/input/wound.png b/dev_stuff/gen_amp_textures/input/wound.png new file mode 100644 index 0000000..1b0bd79 Binary files /dev/null and b/dev_stuff/gen_amp_textures/input/wound.png differ diff --git a/dev_stuff/gen_amp_textures/main.py b/dev_stuff/gen_amp_textures/main.py new file mode 100644 index 0000000..d63cd86 --- /dev/null +++ b/dev_stuff/gen_amp_textures/main.py @@ -0,0 +1,46 @@ +from pathlib import Path +from PIL import Image + +input_bodies_path = Path('input/body') +input_wound_texture = Path('input/wound.png') +# 48, 33 TEXTURE + + +# 256,256 + +IMG_WIDTH = 256 + + +COORDS_L = { + #"H": (0, 115), + "F": (0, 59), + "U": (0,21), +} + +COORDS_R = { + #"H": (IMG_WIDTH - 50- COORDS_L['H'][0], COORDS_L['H'][1]), + "F": (IMG_WIDTH - 48 - COORDS_L['F'][0], COORDS_L['F'][1]), + "U": (IMG_WIDTH - 48 - COORDS_L['U'][0], COORDS_L['U'][1]), +} + +STATES = ["BOTH"] + + +overlay = Image.open(input_wound_texture) + +for filepath in input_bodies_path.glob('*.png'): # Only PNG files + base = Image.open(filepath) + body_name = filepath.stem + + + for key_L, value_L in COORDS_L.items(): + for key_R, value_R in COORDS_R.items(): + for state in STATES: + result = base.copy() + + if state == "BOTH" or state == "ONLY_LEFT": + result.paste(overlay, value_L, mask=overlay) + if state == "BOTH" or state == "ONLY_RIGHT": + result.paste(overlay, value_R, mask=overlay) + + result.save(f'output/{body_name}_{key_L}_{key_R}_{state}.png') \ No newline at end of file