Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

Flex CHOP Material

General discussion about anything TouchDesigner

Flex CHOP Material

Postby miketodd » Mon Nov 13, 2017 3:27 pm

I have been using the very excellent Flex CHOP (https://github.com/vinz9/FlexCHOP) and am wondering - is there any way to change or apply materials without having to edit the shader code? Basically I'm trying to make it look more like actual water, any suggestions would be appreciated.
miketodd
 
Posts: 3
Joined: Fri Sep 23, 2011 1:04 pm

Re: Flex CHOP Material

Postby n23 » Tue Nov 14, 2017 7:18 am

I guess it's possible to build fluid surface in a geometry shader, probably with some additional calculations in a compute shader. I would start with looking up how it's done in some Unity3D asset or other samples, then try to port them to TouchDesigner.

Maybe @vinz9 already did some research about rendering particles as fluid?
n23
 
Posts: 57
Joined: Sat Apr 15, 2017 11:59 am
Location: Cracow, Poland

Re: Flex CHOP Material

Postby vinz99 » Tue Nov 14, 2017 3:40 pm

Hello,

So a lot of people have been asking, maybe I should edit the readme ;)
There's no fluid surface actually constructed with polygons, it's a screen space technique involving rendering the depth, blurring it and doing deferred shading.
One thing that is missing in the released version of flex Chop is outputting the anisotropy per particle, for ellipsoid renderings, instead of spheres.

See http://docs.nvidia.com/gameworks/conten ... anual.html the paragraph on fluid rendering and the note at the end
[4] Reconstructing surfaces of particle-based fluids using anisotropic kernels

To get back to your question, even as is, just rendering the depth for spheres instead of ellipsoids and doing the shading on that will give bring you closer to a surface look.
vinz99
 
Posts: 362
Joined: Wed Apr 15, 2009 10:34 am

Re: Flex CHOP Material

Postby miketodd » Tue Nov 14, 2017 10:15 pm

Nice! Got an answer from the man @vinz99 himself!

So a couple of newbie questions, what do you mean about rendering the depth? Is this a setting in the geometry instance for the spheres? And by "shading on that" do you just mean post processing with a blur, or something beyond that?

Also, what is causing the scene to rotate in your example file? I can't for the life of me find it, so I'm assuming it's in the shader somewhere?
miketodd
 
Posts: 3
Joined: Fri Sep 23, 2011 1:04 pm


Return to General TouchDesigner Discussion

Who is online

Users browsing this forum: Yahoo [Bot] and 5 guests

cron