-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
658 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: github pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
env: | ||
GITEA_MAIL: ${{ secrets.GITEA_MAIL }} | ||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} | ||
|
||
jobs: | ||
build-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
ref: main | ||
submodules: true | ||
fetch-depth: 0 | ||
- run: | | ||
yarn install | ||
rm -rf dist/vrma | ||
git clone https://${GITEA_TOKEN}@git.syui.ai/ai/vrma dist/vrma | ||
rm -rf dist/vrma/.git | ||
- name: Build | ||
env: | ||
TZ: "Asia/Tokyo" | ||
run: | | ||
yarn build | ||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./dist | ||
user_name: 'ai[bot]' | ||
user_email: '138105980+yui-syui-ai[bot]@users.noreply.github.com' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules | ||
package-lock.json | ||
example | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "dist/vrma"] | ||
path = dist/vrma | ||
url = git@git.syui.ai:ai/vrma |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,30 @@ | ||
# vrm | ||
|
||
three-vrm + vrma | ||
|
||
## vrm & vrma | ||
|
||
```sh | ||
$ git submodule update --init --recursive | ||
``` | ||
|
||
or | ||
|
||
- vrm : [download](https://hub.vroid.com/characters/675572020956181239/models/7175071267176594918) | ||
- vrma : [download](https://vroid.booth.pm/items/5512385) | ||
|
||
> ./dist/vrma | ||
```js | ||
load("/vrma/model.vrm"); | ||
load("/vrma/VRMA_01.vrma"); | ||
``` | ||
|
||
## build | ||
|
||
```sh | ||
$ npm i | ||
$ npm run dev | ||
$ npm run build | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v.syui.ai |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
@font-face { | ||
font-family: 'icomoon'; | ||
src: url('../fonts/icomoon.eot?czi5du'); | ||
src: url('../fonts/icomoon.eot?czi5du#iefix') format('embedded-opentype'), | ||
url('../fonts/icomoon.ttf?czi5du') format('truetype'), | ||
url('../fonts/icomoon.woff?czi5du') format('woff'), | ||
url('../fonts/icomoon.svg?czi5du#icomoon') format('svg'); | ||
font-weight: normal; | ||
font-style: normal; | ||
font-display: block; | ||
} | ||
|
||
[class^="icon-"], [class*=" icon-"] { | ||
/* use !important to prevent issues with browser extensions that change fonts */ | ||
font-family: 'icomoon' !important; | ||
speak: never; | ||
font-style: normal; | ||
font-weight: normal; | ||
font-variant: normal; | ||
text-transform: none; | ||
line-height: 1; | ||
|
||
/* Better Font Rendering =========== */ | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
|
||
.icon-ai:before { | ||
content: "\e908"; | ||
} | ||
.icon-robot:before { | ||
content: "\e909"; | ||
} | ||
.icon-api:before { | ||
content: "\e90e"; | ||
} | ||
.icon-sandar:before { | ||
content: "\e90a"; | ||
} | ||
.icon-moon:before { | ||
content: "\e90b"; | ||
} | ||
.icon-home:before { | ||
content: "\e90c"; | ||
} | ||
.icon-cloud:before { | ||
content: "\e90d"; | ||
} | ||
.icon-phoenix:before { | ||
content: "\e906"; | ||
} | ||
.icon-honeycomb:before { | ||
content: "\e907"; | ||
} | ||
.icon-phoenix-power:before { | ||
content: "\e903"; | ||
} | ||
.icon-phoenix-world:before { | ||
content: "\e904"; | ||
} | ||
.icon-power:before { | ||
content: "\e905"; | ||
} | ||
.icon-syui:before { | ||
content: "\e902"; | ||
} | ||
.icon-archlinux:before { | ||
content: "\e900"; | ||
} | ||
.icon-archlinuxjp:before { | ||
content: "\e901"; | ||
} |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
div#menu { | ||
padding: 20px; | ||
border-bottom:solid 1px #ccc; | ||
} | ||
|
||
button { | ||
border: none; | ||
margin: 0; | ||
padding: 0 20px 0 20px; | ||
width: auto; | ||
overflow: visible; | ||
background: transparent; | ||
color: inherit; | ||
font: inherit; | ||
line-height: normal; | ||
-webkit-font-smoothing: inherit; | ||
-moz-osx-font-smoothing: inherit; | ||
appearance: none; | ||
-webkit-appearance: none; | ||
cursor: pointer; | ||
user-select: none; | ||
} | ||
|
||
a { | ||
text-decoration: none; | ||
} | ||
|
||
a:hover{ | ||
/* color: #fff700; */ | ||
color: #847e00; | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>ai</title> | ||
<link rel="icon" href="/favicon.ico"/> | ||
<link rel="stylesheet" href="/css/icomoon/css/icomoon.css"/> | ||
<link rel="stylesheet" href="/css/style.css"/> | ||
<script src="main.js"></script> | ||
</head> | ||
<body> | ||
<div id="menu"> | ||
<button id='btn-ai'><a href="https://v.syui.ai"><span class="icon-ai"/></a></button> | ||
<button id='btn-moon'><span class="icon-moon"/></button> | ||
</div> | ||
<div id="canvas" style="width:100%;height:640px;"></div> | ||
</body> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Submodule vrma
added at
3e83eb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"name": "vrm", | ||
"version": "0.0.1", | ||
"private": true, | ||
"scripts": { | ||
"build": "webpack", | ||
"dev": "webpack-dev-server --open" | ||
}, | ||
"devDependencies": { | ||
"ts-loader": "^9.5.1", | ||
"typescript": "^5.4.2", | ||
"webpack": "^5.90.3", | ||
"webpack-cli": "^5.1.4", | ||
"webpack-dev-server": "^5.0.3" | ||
}, | ||
"dependencies": { | ||
"@pixiv/three-vrm": "^2.1.1", | ||
"@pixiv/three-vrm-animation": "^2.1.1", | ||
"@pixiv/three-vrm-springbone": "^2.1.1", | ||
"three": "^0.162.0" | ||
} | ||
} |
Oops, something went wrong.