当前位置:   article > 正文

使用obi fluid进行洪水模拟,持续更新~_unity 洪水推进

unity 洪水推进

1. 记录一下版本 unity3D 2017.1.0 obi fluid v4.1

2. 好的一导入obi的package就开始报错(微笑)

Error loading launcher://unity/C:/Users/LYon/AppData/Roaming/Unity/Packages/node_modules/unity-editor-home/dist/index.html?code=i7f017GXlNd4zA39z4jwJg00bf&locale=en&session_state=7a2f5638a5f15567832b04e6b35aaf1116a1bf99038006363e92c9984d73f7af.InVej4QbVSwRQdlr0Zm8Ww010f

Assets/Obi/Scripts/Actors/ObiActor.cs(401,41): error CS1061: Type `UnityEngine.Matrix4x4' does not contain a definition for `rotation' and no extension method `rotation' of type `UnityEngine.Matrix4x4' could be found. Are you missing an assembly reference?

Assets/Obi/Scripts/Solver/ObiSolver.cs(814,27): error CS1501: No overload for method `CalculateFrustumPlanes' takes `2' arguments

Shader error in 'Obi/StandardPerInstanceColor': Unexpected identifier "UNITY_INSTANCING_BUFFER_START". Expected one of: typedef const void inline uniform nointerpolation extern shared static volatile row_major column_major struct or a user-defined type at line 36

Binary to YAML conversion: type unsigned int is unsupported

Binary to YAML conversion: type UInt16 is unsupported

这里是warning

Shader warning in 'Obi/Simple Particles': Use of UNITY_MATRIX_MV is detected. To transform a vertex into view space, consider using UnityObjectToViewPos for better performance.

查了一点资料 

好家伙...原来是2017.1版本matrix还没有rotation

查询网址:Unity - Scripting API: Matrix4x4.rotation 

总结:以上错误都由版本不匹配导致。使用obi fluid插件unity版本必须在2017.2及以上。

3. 重新下载的版本2018.2.4

运行成功

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/羊村懒王/article/detail/127902
推荐阅读
相关标签
  

闽ICP备14008679号