Transform 3D Model into Point Cloud

shihua's icon

Hello everyone.

I recently studied an episode of Federico's tutorial and it was fantastic!

I made a little modification to his patch by replacing jit.bfg with jit.gl.model so that I could transform the 3D model into a point cloud.

But the result is not very satisfactory, because the point cloud splits into some rectangles according to the position of the vertices of the 3D model.

I want to make the point cloud shape smoother, and I have tried many methods without getting the desired result. Do you have any good suggestions?

Model into Particles.maxpat
Max Patch

Matteo Marson's icon

Hey Shihua,

You can create a point cloud generating n points randomly distributed on the surface of each triangle of the mesh.
The attached patch generates a fixed number of points per triangle.
A possible improvement could be to take into account the area of each triangle and generate a proportional amount of points randomly distributed on its surface, to get roughly the same coverage everywhere.

hope this helps, cheers!

Max Patch
Copy patch and select New From Clipboard in Max.

shihua's icon

Hey Matteo:

Your patch is so amazing, it's exactly the effect I wanted. Your approach is a direction I never thought of and I'm inspired by it. I hope more people see this post, it's a fantastic technique.


Thank you for your answer!

👽'tW∆s ∆lienz👽's icon

I hope more people see this post

yes, i saw it yesterday and it brought tears to my eyes(but wanted to wait til Shihua saw it before i responded: Thank You, Shihua, for starting the thread).
Thank You from me, too, Matteo, (and also for your recent oscilloscope tutorial). 🍶❤️‍🔥

shihua's icon

Hi Raja:

I haven't asked for help on this forum for a long time, and this time the problem was so hard to solve that I thought no one would reply.

Thanks to Matteo for his help, he is one of the most powerful jitter users I know, and it made me realize that communicating here is still a great way to get everyone ahead.

Hope we can realize our ideas!