Closed nokonoko1203 closed 1 month ago
この変更は、画像の読み込み機能を削除し、テクスチャパッキング機能を強化したことに焦点を当てています。ObjAtlasSink
がテクスチャのキャッシュとパッカーを統合し、マテリアルの処理ロジックを簡素化。これにより、全体のパフォーマンスが向上し、マテリアル管理が効率的になりますが、マテリアルが見つからない場合のエラーハンドリングが簡素化されました。
ファイル | 変更の概要 |
---|---|
nusamai/src/sink/obj_atlas/material.rs |
load_image 関数を削除し、不要なインポートを整理。これにより、画像の直接読み込み機能が失われました。 |
nusamai/src/sink/obj_atlas/mod.rs |
TextureCache とTexturePacker の導入により、テクスチャ管理機能を強化。新しい制御フローでテクスチャをキャッシュに挿入し、アトラスをエクスポートする機能を追加。 |
nusamai/src/sink/obj_atlas/obj_writer.rs |
write_obj 関数からmaterials パラメータを削除し、マテリアルキャッシュに依存するように変更。マテリアルの処理を簡素化。 |
🐰 うさぎの詩
画像は消えた、でも心配無用、
テクスチャの旅は、さらに楽しく、
新しいアトラスを作り、形を変え、
マテリアルの管理、速さが勝つ!
さあ、みんなで祝おう、コードの進化を! 🎉
Attention: Patch coverage is 0%
with 125 lines
in your changes missing coverage. Please review.
Files | Patch % | Lines |
---|---|---|
nusamai/src/sink/obj_atlas/mod.rs | 0.00% | 118 Missing :warning: |
nusamai/src/sink/obj_atlas/obj_writer.rs | 0.00% | 7 Missing :warning: |
:loudspeaker: Thoughts on this report? Let us know!
@nokonoko1203 変換処理中にオーバーフローがatlas-packerのtexture.rsファイルの161行目で発生しています。 ご確認お願いします。
thread 'pipeline-sink' panicked at /Users/hoge/.cargo/git/checkouts/atlas-packer-0eceddb6ce829bab/c2c3e78/src/texture.rs:161:44:
attempt to subtract with overflow
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
ERROR nusamai::pipeline::runner > Sink thread panicked with message: attempt to subtract with overflow
ERROR nusamai > Pipeline thread panicked: "Sink thread panicked with message: attempt to subtract with overflow"
INFO nusamai > Total processing time: 146.0530415s
@nokonoko1203 変換処理中にオーバーフローがatlas-packerのtexture.rsファイルの161行目で発生しています。 ご確認お願いします。
thread 'pipeline-sink' panicked at /Users/hoge/.cargo/git/checkouts/atlas-packer-0eceddb6ce829bab/c2c3e78/src/texture.rs:161:44: attempt to subtract with overflow note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace ERROR nusamai::pipeline::runner > Sink thread panicked with message: attempt to subtract with overflow ERROR nusamai > Pipeline thread panicked: "Sink thread panicked with message: attempt to subtract with overflow" INFO nusamai > Total processing time: 146.0530415s
@nokonoko1203 こちら、クレートの更新をし忘れただけでした。すみません。
三角形でカットしてる部分が切れ目が見えちゃってるのもあるので、マージンをとってカットするのがよいのかも?(言うのは簡単ですが)
Description(変更内容)
Notes(連絡事項)