Skip to content

Commit

Permalink
Necomaid pantie converter Ver. 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TenteEEEE committed May 18, 2020
1 parent 60b10c8 commit 31dc87b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 17 deletions.
Binary file added body/body_necomaid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mask/mask_necomaid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

当リポジトリはキッシュちゃんに限らず、**様々な3Dアバターにパンツを着せることだけが目的のプログラムです。**
キッシュちゃんのUVに合わせてパンツを描けば、他のアバター向けに自動変換後、テクスチャに貼り付けます。
現在対応アバターは、[キッシュ](https://mutachannel.booth.pm/items/954376)ちゃん(素体はブラジャーも対応)、[キッシュ・ライト](https://mutachannel.booth.pm/items/1379653)ちゃん、[シャーロ](https://tomori-hikage.booth.pm/items/987296)ちゃん([冬服](https://tomori-hikage.booth.pm/items/1572472)も対応)、[吸血鬼アンナ](https://wakonoatorie.booth.pm/items/1067958)ちゃん([ライト](https://wakonoatorie.booth.pm/items/1405336))、[ミルク](https://komado.booth.pm/items/1209496)ちゃん、[リンツ](https://mutachannel.booth.pm/items/1255264)ちゃん(素体はブラジャーも対応)、[ルア](https://ficsnade.booth.pm/items/1255054)ちゃん([クエスト](https://ficsnade.booth.pm/items/1414368))、[右近](http://seiga.nicovideo.jp/seiga/im8378009)ちゃん、[ミーシェ](https://ponderogen.booth.pm/items/1256087)ちゃん、[ファジー](https://nagatorokoyori.booth.pm/items/1255283)ちゃん、 [たぬ](https://udonfactory.booth.pm/items/1414433)ちゃん、[ラムネ](https://komado.booth.pm/items/1411609)ちゃん、[幽狐](https://armadillon.booth.pm/items/1484117)ちゃん、[VRoid](https://vroid.com/)ちゃん、[コルネット](https://mutachannel.booth.pm/items/1522470)ちゃん、[ノイ](https://ficsnade.booth.pm/items/1572406)ちゃん、[フィリナ](https://nagatorokoyori.booth.pm/items/1577042)、[Differe](https://tyubaki.booth.pm/items/1580267)ちゃん、[I-s(アイズ)](https://atelier-alca.booth.pm/items/1572567)ちゃん、[ブランカ](https://atelier-krull.booth.pm/items/1563233)ちゃん、[カルティ](https://takewaka.booth.pm/items/1555399)ちゃん、[愛奈](https://narazaka.booth.pm/items/1319390)ちゃん、[受付嬢](https://mk22.booth.pm/items/1568317)さん、[クロノス](https://karekitsune.booth.pm/items/1542143)ちゃん、[ももねこ](https://noranjp.booth.pm/items/1630569)ちゃん、[ハティ](https://kokorobouzu.booth.pm/items/1451160)ちゃん、[カロナーフ](https://bbkktn.booth.pm/items/1651921)ちゃん、[量産型のらきゃっと](https://noracat.booth.pm/items/1216498)、[フィリ](https://regs.booth.pm/items/1629301)ちゃん、[いな屋さんのビキニ](https://inani.booth.pm/items/1422414)、[シリウス](https://hyuuganatu.booth.pm/items/1723127)ちゃん、[ろうちゃん](https://wancorp.booth.pm/items/1732127)、[コロナ](https://hirune-vr.booth.pm/items/1700848)ちゃん、[響狐リク](https://kar.booth.pm/items/1148939)ちゃん、[QuQuさんの着物](https://sonovr.booth.pm/items/1745708)、[スピカ](https://wakonoatorie.booth.pm/items/1808374)ちゃん、[みみの](https://lsw.booth.pm/items/1336133)ちゃん、[転生ルナーフ](https://bbkktn.booth.pm/items/2006071)ちゃん、[リーメ&リーバ](https://tomori-hikage.booth.pm/items/972559)ちゃん、[ソルティ](https://steller.booth.pm/items/1672165)ちゃん、[シャオン](https://kutsushita03.booth.pm/items/2048231)ちゃんです。
現在対応アバターは、[キッシュ](https://mutachannel.booth.pm/items/954376)ちゃん(素体はブラジャーも対応)、[キッシュ・ライト](https://mutachannel.booth.pm/items/1379653)ちゃん、[シャーロ](https://tomori-hikage.booth.pm/items/987296)ちゃん([冬服](https://tomori-hikage.booth.pm/items/1572472)も対応)、[吸血鬼アンナ](https://wakonoatorie.booth.pm/items/1067958)ちゃん([ライト](https://wakonoatorie.booth.pm/items/1405336))、[ミルク](https://komado.booth.pm/items/1209496)ちゃん、[リンツ](https://mutachannel.booth.pm/items/1255264)ちゃん(素体はブラジャーも対応)、[ルア](https://ficsnade.booth.pm/items/1255054)ちゃん([クエスト](https://ficsnade.booth.pm/items/1414368))、[右近](http://seiga.nicovideo.jp/seiga/im8378009)ちゃん、[ミーシェ](https://ponderogen.booth.pm/items/1256087)ちゃん、[ファジー](https://nagatorokoyori.booth.pm/items/1255283)ちゃん、 [たぬ](https://udonfactory.booth.pm/items/1414433)ちゃん、[ラムネ](https://komado.booth.pm/items/1411609)ちゃん、[幽狐](https://armadillon.booth.pm/items/1484117)ちゃん、[VRoid](https://vroid.com/)ちゃん、[コルネット](https://mutachannel.booth.pm/items/1522470)ちゃん、[ノイ](https://ficsnade.booth.pm/items/1572406)ちゃん、[フィリナ](https://nagatorokoyori.booth.pm/items/1577042)、[Differe](https://tyubaki.booth.pm/items/1580267)ちゃん、[I-s(アイズ)](https://atelier-alca.booth.pm/items/1572567)ちゃん、[ブランカ](https://atelier-krull.booth.pm/items/1563233)ちゃん、[カルティ](https://takewaka.booth.pm/items/1555399)ちゃん、[愛奈](https://narazaka.booth.pm/items/1319390)ちゃん、[受付嬢](https://mk22.booth.pm/items/1568317)さん、[クロノス](https://karekitsune.booth.pm/items/1542143)ちゃん、[ももねこ](https://noranjp.booth.pm/items/1630569)ちゃん、[ハティ](https://kokorobouzu.booth.pm/items/1451160)ちゃん、[カロナーフ](https://bbkktn.booth.pm/items/1651921)ちゃん、[量産型のらきゃっと](https://noracat.booth.pm/items/1216498)、[フィリ](https://regs.booth.pm/items/1629301)ちゃん、[いな屋さんのビキニ](https://inani.booth.pm/items/1422414)、[シリウス](https://hyuuganatu.booth.pm/items/1723127)ちゃん、[ろうちゃん](https://wancorp.booth.pm/items/1732127)、[コロナ](https://hirune-vr.booth.pm/items/1700848)ちゃん、[響狐リク](https://kar.booth.pm/items/1148939)ちゃん、[QuQuさんの着物](https://sonovr.booth.pm/items/1745708)、[スピカ](https://wakonoatorie.booth.pm/items/1808374)ちゃん、[みみの](https://lsw.booth.pm/items/1336133)ちゃん、[転生ルナーフ](https://bbkktn.booth.pm/items/2006071)ちゃん、[リーメ&リーバ](https://tomori-hikage.booth.pm/items/972559)ちゃん、[ソルティ](https://steller.booth.pm/items/1672165)ちゃん、[シャオン](https://kutsushita03.booth.pm/items/2048231)ちゃん、[NecoMaid](https://sonovr.booth.pm/items/1843586)ちゃんです。

対応したいモデラーさんは[**CC0ぱんつ**](https://github.com/TenteEEEE/quiche_pantie_patch/wiki/CC0%E3%81%B1%E3%82%93%E3%81%A4)**の利用を検討してください。**

Expand Down Expand Up @@ -80,6 +80,8 @@
|![test](./sample/lunauff_pantie.png)|![test](./sample/leeme_reeva_pantie.png)|
|[ソルティ](https://steller.booth.pm/items/1672165)ちゃん|[シャオン](https://kutsushita03.booth.pm/items/2048231)ちゃん|
|![test](./sample/salty_pantie.png)|![test](./sample/shaon_pantie.png)|
|[NecoMaid](https://sonovr.booth.pm/items/1843586)ちゃん||
|![test](./sample/necomaid_pantie.png)||


## スペシャルサンクス
Expand Down Expand Up @@ -176,6 +178,8 @@ When you want to know the help, please run `python patch.py -h`
|![test](./sample/lunauff_pantie.png)|![test](./sample/leeme_reeva_pantie.png)|
|[Salty](https://steller.booth.pm/items/1672165)|[Shaon](https://kutsushita03.booth.pm/items/2048231)|
|![test](./sample/salty_pantie.png)|![test](./sample/shaon_pantie.png)|
|[NecoMaid](https://sonovr.booth.pm/items/1843586)||
|![test](./sample/necomaid_pantie.png)||

## Special thanks
[Quiche model](https://mutachannel.booth.pm/items/954376)
Expand Down
Binary file added sample/necomaid_pantie.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 7 additions & 16 deletions src/models/necomaid.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,21 @@

class patcher(patcher):
def __init__(self, body='./body/body_necomaid.png', **options):
super().__init__('スピカ', body=body, pantie_position=[0, 0], **options)
super().__init__('NecoMaid', body=body, pantie_position=[104, 2482], **options)
self.mask = io.imread('./mask/mask_necomaid.png')

def convert(self, image):
image = Image.open('./dream/0101.png')
pantie = np.array(image)
patch = np.copy(pantie[-170:, 546:, :])
pantie[-150:, 546:, :] = 0
patch = skt.resize(patch[::-1, ::-1, :], (patch.shape[0]-50, 60), anti_aliasing=True, mode='reflect')
patch = skt.resize(patch[::-1, ::-1, :], (patch.shape[0] - 50, 60), anti_aliasing=True, mode='reflect')
[pr, pc, d] = patch.shape
pantie[120:120 + pr, :pc, :] = np.uint8(patch * 255)

arrx = np.zeros(100)
arry = np.zeros(100)
arry[10:] += np.sin(np.linspace(0,np.pi,90))*120
# arry[3:13] += np.sin(np.linspace(0,np.pi,10))*-50
import matplotlib.pyplot as plt
pantie_ = affine_transform_by_arr(pantie, arrx, arry)

io.imshow(pantie_)
io.imsave('test.png', pantie_)

# pantie = np.uint8(resize(pantie, [1.38, 1.62]) * 255)[:, 11:]
# pantie = np.bitwise_and(pantie, self.mask)[:, 1:]
# pantie = np.concatenate((pantie[:, ::-1], pantie), axis=1)
# components = self.gen_components(image)
arry[10:] += np.sin(np.linspace(0, np.pi, 90)) * 300
pantie = affine_transform_by_arr(pantie, arrx, arry)
pantie = np.uint8(resize(pantie[:130, :330], [3.21, 3.21]) * 255)
pantie = np.bitwise_and(pantie, self.mask)[4:]
return Image.fromarray(pantie)

0 comments on commit 31dc87b

Please sign in to comment.