# FlexCHOP
NVIDIA FleX 1.1 solver (https://developer.nvidia.com/flex) integration in TouchDesigner as a CHOP with a limited feature set :
* liquid particles only
* planes, boxes and spheres collisions
* simple disc and rectangle emitters
A NVIDIA graphics card is required since the library uses CUDA. Geforce 1070 or better recommended
<img src="https://github.com/vinz9/FlexCHOP/blob/master/flexChop.png">
## Usage
A sample Toe file for TouchDesigner 099 is provided in CHOP/Toe/demo.toe
Pressing R in perform mode will reset the timeline to frame 1 which resets the simulation.
Most parameters on the FlexCHOP are parameters of the solver, please refer to the FleX documentation for more information.
FPS determines the timestep of the simulation, higher FPS than TD FPS means the simulation will run in slow motion.
There is a fixed maximum number of particles in the simulation, after the number is reached, older particles are recycled in new ones.
Emission and Collisions are handled using CHOPs, with one emitter/collider per chop sample.
Refer to the sample Toe to see which channels are required (channel order is important)
## Compilation
To compile with Visual Studio 2015, download the FleX 1.1 library from https://developer.nvidia.com/gameworksdownload and place the flex folder at the root of the repository.
You also need to manually copy the flex .dlls (NvFlexDeviceRelease_x64.dll, NvFlexExtReleaseCUDA_x64.dll, NvFlexReleaseCUDA_x64.dll) from flex\bin to CHOP\Source\Release or the FlexChop dll will fail to load.
## Disclaimer
This is provided as is, mainly as a starting point for people interested in extending TouchDesigner with external c++ libraries.
I have an ongoing TOP implementation in TouchDesigner, more optimized and with a more complete feature set which was used on a few projects of mine, such as Fluid Structure (https://vimeo.com/218695680) and lull, with AV&C (https://vimeo.com/154879680)
Vincent Houzé
www.foliativ.net
没有合适的资源?快使用搜索试试~ 我知道了~
cpp-FlexCHOP一个NVIDIAFleX解决方案集成在TouchDesigner中作为CHOP
共19个文件
h:6个
cpp:3个
toe:2个
需积分: 14 2 下载量 6 浏览量
2019-08-16
05:59:24
上传
评论 2
收藏 841KB ZIP 举报
温馨提示
FlexCHOP一个NVIDIA FleX解决方案集成在TouchDesigner中作为CHOP
资源推荐
资源详情
资源评论
收起资源包目录
cpp-FlexCHOP一个NVIDIAFleX解决方案集成在TouchDesigner中作为CHOP.zip (19个子文件)
vinz9-FlexCHOP-6a536c8
.gitignore 2KB
README.md 2KB
LICENSE 1KB
flexChop.png 759KB
.gitattributes 483B
CHOP
Source
GL_Extensions.h 74B
FlexCHOP.sln 913B
FlexSystem.cpp 19KB
FlexSystem.h 4KB
FlexFluidCHOP.cpp 7KB
FlexCHOP.h 2KB
CHOP_CPlusPlusBase.h 10KB
FlexFluidCHOP.h 2KB
FlexCHOP.cpp 17KB
FlexCHOP.vcxproj 12KB
FlexCHOP.vcxproj.filters 4KB
CPlusPlus_Common.h 13KB
Toe
demo.3.toe 28KB
demo.toe 28KB
共 19 条
- 1
资源评论
weixin_39840515
- 粉丝: 446
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功