Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transformer: テクスチャ付き最大LODの抽出 #643

Open
nokonoko1203 opened this issue Sep 12, 2024 · 0 comments
Open

transformer: テクスチャ付き最大LODの抽出 #643

nokonoko1203 opened this issue Sep 12, 2024 · 0 comments
Assignees
Milestone

Comments

@nokonoko1203
Copy link
Collaborator

nokonoko1203 commented Sep 12, 2024

  • テクスチャが存在するなら、テクスチャが存在する最大のLODを抽出
  • テクスチャが存在しないなら、最大のLODを抽出
  • 地物が消えることは無い
  • 「テクスチャの使用」オプションは消す
  • 3種類のLOD選択オプションになる
    • 「最小LOD」: 最小のLOD(ほとんどのケースで、平面)
    • 「最大LOD」: 最大のLOD
    • 「テクスチャ付き最大LOD」: テクスチャが存在する地物は、テクスチャが付いた最大LODが抽出され、テクスチャがない地物は、最大のLODが抽出される
@nokonoko1203 nokonoko1203 added this to the 2025 milestone Sep 12, 2024
nokonoko1203 pushed a commit that referenced this issue Sep 25, 2024
<!-- Close or Related Issues -->
#643 (最適化が必要なのでクローズしません)
Close #644
Close #645

※不要なコミットが多いため `Squash and merge`を推奨


### What I did(変更内容)
<!-- Please describe the motivation behind this PR and the changes it
introduces. -->
<!-- どのような変更をしますか? 目的は? -->



- テクスチャ付き最大LODを出力するオプションを追加(`-t use_lod=textured_max_lod`)
- 単体のテクスチャありなしオプションを削除(`-t use_texture=true`)
- すべてのLODを抽出するオプションを追加(通常は機能しないため、開発時にコメントアウトを解除する)
- UI画面の初期ウィンドウサイズと各UIの間隔を修正(変換ボタンが見える様に)


![image](https://github.com/user-attachments/assets/3861ca1b-bdba-4c57-b5b5-16f579dea224)



### Notes(連絡事項)
<!-- If manual testing is required, please describe the procedure. -->
<!-- 手動での動作確認が必要なら手順を簡単に伝えてください。そのほか連絡事項など。 -->

動作確認
```sh

# テクスチャ付き最大LODを出力
cargo run -- <input_path> --sink gltf -t use_lod=textured_max_lod  -o --output <output_path>
```


```sh
# 全てのLODを出力 `nusamai/src/transformer/setting.rs`の`get_lod_selection_options()`内のコメントアウトを解除して実行
cargo run -- <input_path> --sink gltf -t use_lod=all_lod  -o --output <output_path>
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants