Top 8
git checkout hogeしてerror: pathspec 'hoge' did not match any file(s) known to gitとなったときの対処法【Git】
Oct. 13, 2019, 12:57 a.m.GitHubからpullするときにfatal: refusing to merge unrelated historiesとエラーが出るときの対処法
Aug. 13, 2019, 3:41 a.m.Secure BootのままNvidiaドライバをaptからインストールする【Ubuntu 16.04】
July 24, 2021, 9:39 a.m.NumPyで標準誤差を計算する【Python】
Feb. 4, 2020, 2:24 a.m.
ストーリー追加 Mod: The Outsider やっていく日記【Outer Wilds】
Feb. 19, 2023, 6:33 a.m.正規表現のre.search().groups()とre.findall()の違い【Python】
Oct. 11, 2019, 12:12 a.m.OverleafのBibTeXでjunsrtを使う
Jan. 8, 2019, 1:30 a.m.
Google Driveで「画像をコピー」をする
Oct. 8, 2018, 8:48 a.m.Realistic WaterをUnity 2019.1で動かす
Sept. 28, 2019, 9:20 a.m. edited Dec. 21, 2019, 5:18 a.m.Unityには水アセットがたくさんあります.その中でもRealistic Waterは2015年4月からリリースされており,古参のものと思います.いつだったかセールで手に入れていたので,さっそく手元のMacBook AirでUnity 2019.1.6f1にインポートしてみました(Realistic Waterのバージョンは2.0.3).そしてモバイル用のサンプルシーンであるSeaMobile.unity
を開いてみると,
Texture creation failed. 'B5G6R5_UNormPack16' is not supported for Render usage on this platform. Use 'SystemInfo.IsFormatSupported' C# API to check format support.
UnityEngine.RenderTexture:.ctor(Int32, Int32, Int32, RenderTextureFormat)
Water_DistortionAndBloom:InitializeRenderTarget() (at Assets/KriptoFX/Water2.0/Scripts/Water/Water_DistortionAndBloom.cs:161)
Water_DistortionAndBloom:Start() (at Assets/KriptoFX/Water2.0/Scripts/Water/Water_DistortionAndBloom.cs:126)
Texture creation failed. 'B5G6R5_UNormPack16' is not supported for Render usage on this platform. Use 'SystemInfo.IsFormatSupported' C# API to check format support.
UnityEngine.RenderTexture:.ctor(Int32, Int32, Int32, RenderTextureFormat)
Water_DistortionAndBloom:InitializeRenderTarget() (at Assets/KriptoFX/Water2.0/Scripts/Water/Water_DistortionAndBloom.cs:161)
Water_DistortionAndBloom:LateUpdate() (at Assets/KriptoFX/Water2.0/Scripts/Water/Water_DistortionAndBloom.cs:133)
というエラーが出てしまいました.残念ながら水も映っていません.
そこで,エラーの示すWater_DistortionAndBloom.cs
の161行目を見てみると,
source = new RenderTexture(width, height, 0, RenderTextureFormat.RGB565);
とありました.このRenderTextureFormat.RGB565
はすべてのグラフィックカードでサポートされているわけではないようです.そのため,これをより一般的なRenderTextureFormat.ARGB32
に変えました.
source = new RenderTexture(width, height, 0, RenderTextureFormat.ARGB32);
すると,
と無事に動くようになりました(ただ,時々RenderTextureがうまく動かなかったりと少し不安定だったので,新しくシーンを作ってそちらにPrefabを置いてしまうのが良さそうです).
Top 8
git checkout hogeしてerror: pathspec 'hoge' did not match any file(s) known to gitとなったときの対処法【Git】
Oct. 13, 2019, 12:57 a.m.GitHubからpullするときにfatal: refusing to merge unrelated historiesとエラーが出るときの対処法
Aug. 13, 2019, 3:41 a.m.Secure BootのままNvidiaドライバをaptからインストールする【Ubuntu 16.04】
July 24, 2021, 9:39 a.m.NumPyで標準誤差を計算する【Python】
Feb. 4, 2020, 2:24 a.m.
ストーリー追加 Mod: The Outsider やっていく日記【Outer Wilds】
Feb. 19, 2023, 6:33 a.m.正規表現のre.search().groups()とre.findall()の違い【Python】
Oct. 11, 2019, 12:12 a.m.OverleafのBibTeXでjunsrtを使う
Jan. 8, 2019, 1:30 a.m.
Google Driveで「画像をコピー」をする
Oct. 8, 2018, 8:48 a.m.Tags
- #Python (23)
- #量子力学 (12)
- #Unity (11)
- #量子情報 (9)
- #AoE2 (8)
- #Mac (8)
- #数学 (7)
- #Quantum Zoo (6)
- #Outer Wilds (6)
- #意識 (5)
- #NumPy (5)
- #Bash (5)
- #Linux (5)
- #相対論 (4)
- #シミュレーション (4)
- #Docker (4)
- #Android (4)
- #Qiskit (4)
- #GitHub (3)
- #Django (2)
- #情報理論 (2)
- #LaTeX (2)
- #Rust (2)
- #PyO3 (2)
- #AR (2)
- #Git (2)
- #iOS (2)
- #C++ (2)
- #正規表現 (2)
- #電磁気学 (1)
- #Google Drive (1)
- #Overleaf (1)
- #Let's Encrypt (1)
- #ポケモン (1)
- #AdMob (1)
- #Autoya (1)
- #docopt (1)
- #SymPy (1)
- #AWS (1)
- #Twitter (1)
- #URP (1)
- #iMovie (1)
- #論文 (1)
- #PyTorch (1)
- #C# (1)