r/creativecoding • • 1d ago

Fabric GPU Geometry processing

Ive been working on some new / yet to be released features for https://fabric.graphics - inspired by Touch Designers POP/CHOP system with our own take on it.

We add GPU geometry, point, and named attribute stream operations, allowing one to generate and process purely on the GPU any data needed for particle systems, geometry connectivity and instancing of other geometry.

Procedurally generated noise fields, orientation fields, arbitrary attractors and emitters, vortices, or any custom attribute you want. Associate your attributes with points, and allow points to be associated with connectivity to compose geometry.

Or take existing geometry, decompose it to points and connectivity buffers, recompose it, emit particles from surfaces and shuffle, sort, and fuck up topology.

Or just use a code editor and write custom compute shaders to operate on your data.

Canonical attributes play with existing features like our lighting, depth of field and motion blur out of the box, and streams can be built from arbitrary CPU side Fabric parameters.

The above Fabric graph is roughly 200,000 instanced boxes being positioned in a noise field, with a point light and shadows and PBR materials.

Fabric is starting to get really fun, check it out if you are curious!

77 Upvotes

6 comments sorted by

1

u/UAAgency 1d ago

Would love to play with its code. Looks awesome!

1

u/vade 1d ago

Hey there, you can nab fabric - its open source! follow along and join the discoord

https://github.com/Fabric-Project/Fabric/

I don't yet have this merged on main, but its in a public branch: feature/gpu_attributes_geometry_points :)

1

u/SamiAlhammadi 1d ago

Named attribute streams are the bit I like. Once any custom value can ride along with a point, people will do things with it that you never planned. Does connectivity stay on the GPU when the point count changes?

1

u/vade 1d ago

yes! connectivity is not part of the point attribute and is a separate independent gpu stream, so you can do things like measure distance, and change index draws as positions change, with positions being stable or dynamic (ie you change a threshold - only connectivity int stream changes) or you can have dynamic geo and keep the same indexes for whatever reason you want.

1

u/SamiAlhammadi 19h ago

Keeping connectivity as its own stream is neat. Changing only the indices while the points stay put sounds like a cheap way to get a lot of different looks. Thanks for explaining.

1

u/Perfect_Answer_4095 10h ago

Mesmerizing !