栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 游戏开发 > Unity3D

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

Unity3D 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

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

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

运行成功

 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/900950.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号