SUIMONO 教學SUIMONO - Interactive Water System 帶來強大並可深度客制化的海洋與水效果。
SUIMONO 相容於大部份的資源,包括 Gaia 地形生成系統、Tenkoku Dynamic Sky 動態天空系統。 官方教學 http://www.tanukidigital.com/suimono/ / 文件下載
將 SUIMONO 下載到 Unity 專案。
SUIMONO 展示場景 海邊場景展示水面上與水中的效果,包括波浪、折射、焦散等。
Buoyancy_Demo 浮力效果展示
加入 Suimono 模組到遊戲場景 開啟 [ SUIMONO - WATER SYSTEM 2 > PREFABS ] 資料夾↓ 1) 將 Suimono_Module 預製物件拖曳到您的遊戲場景 2) 將 Suimono_Surface 預製物件拖曳到場景,這是製作水面效果的物件。 3) 將場景的主要攝影機加到此模組的 scene camera object 欄位。 4) 將場景的 directional light 燈光加到模組的 scene light object 欄位。 5) 選取攝影機執行 [ Component > Image Effects > Suimono > UnderwaterFX ] 增加 Underwater 水底效果元件。 執行以上步驟完成基本安裝,您可以將 SUIMONO_Surface 放在遊戲場景中的適當位置,調整水面的高度。
執行效能 Performance Considerations Suimono has been optimized to run on a variety of systems and setups. However occasionally there still may be negative performance issues depending on your scene and setup. Read some of the notes below to help maximize performance.
場景優化 The options listed below will help optimize specific Suimono-functions in your scene, however the best optimization that can be done is to insure that your scene is well optimized from the start. This will mean different things depending on what you are doing in your project, however if there are performance issues in your scene already, Suimono will only magnify these issues with it’s rendering features.
Surface LOD (Level-Of-Detail) Suimono 2.1 comes with 4 different water mesh Level-Of-Detail (LOD) levels of varying mesh complexity. You can choose between high detail, medium detail, low detail, and single quad triangle levels. Choosing a lower LOD level can help save some performance calculations in your scene. These can be accessed on the Suimono Surface object under the Surface LOD setting. It’s recommended to use the detail level based on the size of the water in your scene. For example if your water surface is for a small pond, often using a low detail LOD level is perfectly fine, and will save on some resources. Note that LOD levels are not available when using the custom mesh setting, nor when using the Infinite Ocean setting.
DX11 Tessellation Running Unity in DX11 mode gives Suimono access to advanced shader instructions, such as tessellation. This feature adds in geometric data on your water surface automatically, giving you more realistic wave visuals and water interaction near the scene camera. However this comes at a cost in performance. You can turn down the tessellation settings on your surface object to improve the balance between performance and visuals, or turn tessellation off by turning them down completely.
Dynamic Reflections 動態反射效果 The Dynamic Reflection system in Suimono creates great visual reflections on your water surface. However it does this by rendering the visible scene a second time from a different projection matrix position. In an already complicated scene having this second reflection render pass can become too complex to maintain adequate performance. If you experience performance problems it’s recommended to adjust the number of game layers that are rendered in the Reflection function, as well as the distance and resolution it renders at. (see settings on the SuimonoSurface object)
Transparency 透明效果 The Transparency system in Suimono calculates a second render of your scene before water surfaces are rendered. This scene data is used to combine transparency with other advanced composition abilities, such as depth and fog. Because of this second rendering overhead you may find that Suimono performance degrades in a complicated scene. If you experience performance problems it’s recommended to adjust the number of game layers that are rendered int he Transparency function, as well as the distance and resolution it renders at. (see settings on the SuimonoModule object).
Caustic Effects 焦散效果 Suimono renders caustic lighting underneath the water surface to simulate light-ray refraction effects. On some systems and at certain viewing angles caustics can be expensive performance-wise. Turning off the ‘Enable Advanced Caustic FX’ setting on the SuimonoModule can alleviate some performance related issues, at the expense of some more advanced caustics control (edge blending, surface-specific color etc). You may also adjust the game layers that are affected and the resolution to get more performance out of this function.
Working with Presets 使用預設 Suimono Version 2.0 includes an automated preset system that allows you to quickly edit and save specific water settings for yuor surface objects. these can be saved and edited both in editor mode and play mode, however it’s strongly recomended to save and edit during play mode, as Unity prevents some features of Suimono from rendering properly in Editor mode. When you press play, the currently selected preset will load for your water surface. |