[Unity] UnityでSpineで出力したアトラスにmipmapを手動で追加する方法はありますか?
Is there a way to manually add mipmap to the atlas output by Spine in Unity?
私は当初、カメラでズームをしても絵がぼやけずに描画できるように、高解像度のSpineアニメーションを出力していました。
それをUnityでスケール縮小して画面に描画していました。
Initially, I was outputting a high-resolution Spine animation so that I could draw the picture without blurring when I zoomed with the camera.
I used Unity to reduce the scale and draw it on the screen.
しかし、上の画像のように大きな解像度の絵を小さく縮小して描画するほど、粒子で絵が荒れてしまう事に私は気づきました。
このサイズのスケールでは0.25が一番綺麗に見えます。
However, I noticed that the smaller the size of a picture with a larger resolution, such as the one in the image above, is drawn, the more grainy the picture becomes.
0.25 looks best on this size scale.
しかし、それを採用した場合、カメラがズームした時は解像度の低さが気になってきます。
そこでUnityのMipmap機能を使えないかと調べました。
However, when it is adopted, the resolution is low when the camera zooms.
So I investigated whether the Mipmap function of Unity could be used.
しかし、Unityで自動生成されたMipmapはとてもぼやけて見えます。
私はmipmapの設定をいくつか試しましたが、Spineで予め縮小して出力されたサイズを適切なカメラスケールで表示することが最良のように思えました。
私はUnityの自動補正を使わずにMipmapを使えないかと思案しました。
But the Unity-generated Mipmap looks very blurry.
I tried a few mipmap settings, but it seemed best to have Spine pre-scaled down and display the output size on a proper camera scale.
I wondered if I could use Mipmap without using Unity's auto-correction.
そこで私はこの記事https://baba-s.hatenablog.com/entry/2019/06/03/090000を参考に、Unityで生成されたMipmapを、手動で上書きすることはできないかと考えました。
Spineで生成されたアトラスを1/2、1/4サイズにしたpng画像をphotoshopで出力し、
SetPixelsでmipmapを上書きしてみました。
So, with this article as a reference, https://baba-s.hatenablog.com/entry/2019/06/03/090000 I wondered if the Mipmap generated by Unity could be overwritten manually.
Output atlas generated by Spine to 1/2, 1/4 size png image with photoshop,
I tried overwriting mipmap with SetPixels.
しかし、上の画像のようにノイズが出現してしまい、上手くいきませんでした。
元々、これは無理に上書きしただけなので、仕様外の手法です。
もっと適切な手段があるのではないかと疑問に思いました。
However, the noise appeared like the image above, and it didn't work.
Originally, this was a method outside the specifications because it was overwritten by force.
I wondered if there might be a better way.
上記を踏まえて、
・UnityでSpineで出力したアトラスにmipmapを手動で追加する方法はありますか?
・もしくは、SpineにUnityのMipmapを割り当てて出力する機能はありますか?
何卒よろしくお願い致します
Based on the above,
-Is there a way to manually add mipmap to the atlas output by Unity in Spine?
-Or, is there a function that assigns Unity's Mipmap to Spine and outputs it?
Thank you