Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

Particle Flowfields

Share your components here. First one to 100 wins!

Particle Flowfields

Postby asterix » Tue Sep 29, 2015 11:19 am

phpBB [video]

Particle motion calculated and stored on the GPU inside textures. Plenty of notes in text files and the GLSL scripts so you can learn how to play with it, and get a better understanding of GLSL.

https://github.com/vjasterix/TD-Particle-Flowfields


What is it?
This demonstrates a technique of performing particle calculations inside textures, which has significant performance benefits over cpu methods, allowing users to create several million particles really easily. Turbulence is added into the scene using vector flowfield like behaviours, as well as some curling effects which are probably more noticable

Usage
Documentation is noted throughout the tox file in little text DATs and also within the pixel shaders.

Different Geometry
You can feed in other geometry as an emitter source (plug it into finalGeo null) so long as: its vertex count is the same or less as particle count chop ( 500 verts).

More Particles
Currently the demo is rigged so you just need to increase the particle count chop to get more particles. It is the square root of the final particles produced. However I'm sure you'll want to play with different meshes so keep ing mind: You can increase the number of particles in the current sketch by increasing the particle count chop, which is the square root of the total particles emmitted. ie set it to 500 an your particles will be 250,000. set it to 1000 and your particles will be 1,000,000 Keep in mind your finalGeo sop must have the same amount of particles as particlecount. And particles SOP's vertices has the final amount of particles.

Different Displacement Textures
Try patching in some geometric textures to nx and nx1 for interesting effects.

Have fun
Please experiment and read through the notes so you can learn and make similar cool things. I won't be offering support however I am available to hire for commercial projects.
asterix
 
Posts: 145
Joined: Fri Jul 19, 2013 1:34 pm

Re: Particle Flowfields

Postby raganmd » Tue Sep 29, 2015 1:59 pm

sick!
raganmd
 
Posts: 1383
Joined: Thu Mar 28, 2013 5:21 am
Location: San Francisco, CA

Re: Particle Flowfields

Postby doctorhandshake » Tue Sep 29, 2015 2:16 pm

This is boss. Thanks for posting and for documenting so clearly.
Noah Norman
http://hardwork.party

codename: massapequa
User avatar
doctorhandshake
 
Posts: 143
Joined: Wed Aug 17, 2011 6:31 pm
Location: Brooklyn, NY

Re: Particle Flowfields

Postby luka23 » Wed Sep 30, 2015 5:35 pm

holy moly

big big thank you for this, amazing what you guys are able to do with "some" lines of code!
speechless for now, but playing...
best, thank you and bring it on! ;-))
luca
luka23
 
Posts: 92
Joined: Tue Oct 29, 2013 2:26 pm

Re: Particle Flowfields

Postby greg » Wed Sep 30, 2015 7:19 pm

Phenomenal! That's a very elegant setup in /Composition/particles with the 3 color-buffer render, the 3 selects to the 3 feedbacks, the shader, and the setup of the static 250,000 points in the SOP.

PS: The Noise SOP should have absTime.seconds driving its time instead of me.time.seconds, which cycles/jumps the motion every 10 seconds. The latest 088 Noise SOP now defaults to absTime.seconds, which never repeats.

Thanks for posting!
User avatar
greg
Staff
 
Posts: 552
Joined: Tue Nov 13, 2007 1:08 am

Re: Particle Flowfields

Postby asterix » Fri Oct 02, 2015 6:25 am

Thanks for pointing that out Greg, didn't know you could do that!
asterix
 
Posts: 145
Joined: Fri Jul 19, 2013 1:34 pm

Re: Particle Flowfields

Postby greenpattern » Sat Oct 01, 2016 9:17 pm

Load this in a VR setup! I tried last night and its possibly the prettiest thing I ever saw. thx for sharing this alien technology!
Never learned so much than by tweaking this patch!
Now I 'm trying learning about glsl as we speak but particle subject cannot find that much.
Can anyone point me out some understandable cool info about how u make this from scratch?
I can imagine how things work in nodes with particles but how you guys have this kind of control over particles with simple lines of code blows my mind. thx
User avatar
greenpattern
 
Posts: 231
Joined: Tue Dec 01, 2015 3:05 pm
Location: Edinburgh Scotland, but I'm french

Re: Particle Flowfields

Postby greenpattern » Tue Oct 04, 2016 10:48 am

There is one thing I cannot figure out!
What changes life spawn of these particles, anyone got a clue?
this patch is full of cool explaination, very clear, I just cannot find that one. Which would help a lot in making it a bit more fluid for head track rather than decraesing amount of particles. thx
User avatar
greenpattern
 
Posts: 231
Joined: Tue Dec 01, 2015 3:05 pm
Location: Edinburgh Scotland, but I'm french

Re: Particle Flowfields

Postby mouren » Sun Nov 20, 2016 5:16 am

This is so awesome.

Thank you!!
mouren
 
Posts: 112
Joined: Fri Oct 17, 2014 3:10 am

Re: Particle Flowfields

Postby asterix » Tue Nov 29, 2016 10:44 pm

Hi Green,

lifetime is determined by the y axis number of pixels. Each pixel in y is a frame in the particle life. You could possibly tweak that for longer / shorter lifetimes but it won't work right out of the box ;)
asterix
 
Posts: 145
Joined: Fri Jul 19, 2013 1:34 pm

Next

Return to Shared .tox Components

Who is online

Users browsing this forum: No registered users and 5 guests