当前位置:网站首页>Unity uses NVIDIA flex for unity plug-in to realize the effects of making software, water, fluid, cloth, etc. learning tutorial
Unity uses NVIDIA flex for unity plug-in to realize the effects of making software, water, fluid, cloth, etc. learning tutorial
2022-07-24 14:45:00 【Ten one divination】
Preface
Because of the function of work , Query the plug-in ; The plug-in was not selected after downloading , But here I will share the learning process , Convenient for latecomers to learn ; I feel that this plug-in has stopped updating , However, the plug-in is still very powerful ; I don't know whether it can really achieve the effect of promotional video through this plug-in , I feel that it may be possible to spend a certain amount of time .
Publicity effect


Plug-in effect




Installing a plug-in
Only need to .unitypackage Just drag the file into the project .
After importing successfully , There will be one more menu at the top NVIDIA Options :
You can add components and create resources .
and Project The right button of the window will also have one more NVIDIA Options :
You can create Assets.
The plug-in USES
In the engineering of Assets\NVIDIA\Flex Samples There will be cases under the directory , You can view it directly and quickly :
Assets\NVIDIA\Flex\Actors Under the directory, there are component scripts for various effects :
Assets\NVIDIA\Flex\Assets Under the directory are resource scripts for various effects :

One of the most special is FlexContainer resources , Basically, every effect component script needs a FlexContainer resources , Similar to effect container resources , Can be found in Project Right click in the window > Create > NVIDIA > Flex > Flex Container establish :
FlexContainer The resource attributes are shown in the figure :
You can set the maximum number of particles , Attributes of a single particle 、 Global gravity 、 Cloth properties 、 Fluid properties, etc .
Here we will try two effects .
software
stay Assets\NVIDIA\Flex Samples\4. Soft Actor\Scene Make in the scene .
stay Project Right click in the window > Create > NVIDIA > Flex > FlexSoftAsset New FlexSoftAsset, software Boundary Mesh choose Cube:
And create an empty node , newly added Flex Soft Actor Components , Associated with the newly created New FlexSoftAsset And before Flex Container:
After the operation, it was found that the previous cylinder disappeared , Only new Cube:

I tried to create a new one Flex Container, stay Project Right click in the window > Create > NVIDIA > Flex > Flex Container establish , And will NewFlexSoftActor Of Container Set to new Flex Container, Now it's normal :
According to the above test , It means different Flex Soft Actor Need different Flex Container, Otherwise, one will not generate .
Fluid
stay Assets\NVIDIA\Flex Samples\9. Fluid Renderer\Scene Test under the scenario , In this scenario FlexSourceActor Realize a source of fluid , It can continuously produce water flow :

Here is a new water body , Create a new one FlexArrayAsset resources , And select Boundary Mesh by Cube:
Create a new one FlexArrayActor node , And the new FlexArrayActor and FlexFluidRenderer Components ,FlexArrayActor Represents a scalable group object ,FlexFluidRenderer For rendering as fluid . The original Flex Container And the new FlexArrayAsset Related to FlexArrayActor Components :
Then check the running effect :

In this way, you can share one Flex Container , Now I'm completely confused .
summary
This plug-in is still not suitable for projects , And a little bit more , It may only be applicable to NVIDIA graphics cards PC platform ( This is speculation , It hasn't been verified ), Mobile platform is impossible . Only one Beta Test version , After the Assetstore It's also off the shelf , therefore , The test is ok , Others should be cautious . There will also be various errors ( But it works ):
Another point is that many of its codes are encrypted , For programmers, I haven't found some effect control , I don't know how to control the coding . Of course, I'm looking forward to its improvement and commercial use , It should be strong .
边栏推荐
- Can't remember regular expressions? Here I have sorted out 99 common rules
- REST风格
- Research Summary / programming FAQs
- Can you buy 6% of financial products after opening a stock account?
- Rasa 3.x learning series -rasa fallbackclassifier source code learning notes
- 【NLP】下一站,Embodied AI
- Don't lose heart. The famous research on the explosive influence of Yolo and PageRank has been rejected by the CS summit
- threw exception [Circular view path [index]: would dispatch back to the current handler URL [/index]
- threw exception [Circular view path [index]: would dispatch back to the current handler URL [/index]
- Centos7安装达梦单机数据库
猜你喜欢

After reading this article, I found that my test cases were written in garbage

关于构建网络安全知识库方向相关知识的学习和思考

Simple understanding and implementation of unity delegate

深度学习中的学习率调整策略(1)

Detailed explanation of address bus, data bus and control bus

spark:获取日志中每个时间段的访问量(入门级-简单实现)

Maotai ice cream "bucked the trend" and became popular, but its cross-border meaning was not "selling ice cream"

老虎口瀑布:铜梁版小壶口瀑布

Bibliometrix: dig out the one worth reading from thousands of papers!

深入浅出边缘云 | 2. 架构
随机推荐
基于ABP实现DDD--实体创建和更新
Summary of Baimian machine learning
2.4. properties of special profile
C language -- three ways to realize student information management
The first n rows sorted after dataframe grouping nlargest argmax idmax tail!!!!
TS learning record (I) sudo forgets the password (oolong) try changing the 'lib' compiler option to include 'DOM'
Moving the mouse into select options will trigger the mouseleave event processing scheme
深度学习中的学习率调整策略(1)
spark学习笔记(三)——sparkcore基础知识
Unity 委托 (Delegate) 的简单理解以及实现
打假Yolov7的精度,不是所有的论文都是真实可信
The vs compiled application is missing DLL
Rasa 3.x learning series -rasa [3.2.3] - new version released on July 18, 2022
[oauth2] IV. oauth2authorizationrequestredirectfilter
SQL的SELF JOIN用法
PrestoUserError: PrestoUserError(type=USER_ERROR, name=INVALID_FUNCTION_ARGUMENT, message=“Escape st
基于ABP实现DDD--实体创建和更新
sql server语法—创建数据库
多数据源配置下,解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)问题
Automated penetration scanning tool