balthou
Hello everyone,

I am actually trying to learn SOUP and I would like to try to make a specific effect "low cost".
If you saw Dr. Strange, you certainly noted the use of a mandelbulb fractal (astral travel scene). I would like to make an effect like that (or like the arnold mandelbulb test) with a relativly low cost and procedural tactic:

step 1 - I use a low rez of a mandelbulb fluid convert in mesh.

bulb.JPG 

step 2 - I sample/scatter it with a lot of particles

scatter result

scatter.JPG 
points result ( I modified the expression to randomize / jitter points positions but keep however the shape of the mandelbulb)

points.JPG 




after that

step 3 A : I instance spheres and I use lot of motion/vector blur to get a "wavy" result
step 3 B : I make a second pass of fluids to get a nice animated volume.
step 3 C: I just do several seeds of scatter that I render and I comp that with a vector/motion pass

I have multiple problem here:
Problem I : How to make renderable points created with SOUP?
- I just don't know how "just" render the result of the scattering. The lonely way I found to render it is to connect scatter node to a nParticles node, but the nParticles appears with a non-random pattern (straights lines like with a smooth goal at 0)
npartciles.JPG 
when I connect it to points node it works better (nParticles appears where points are) but there is not enough points and that lead to the question II:

Problem IIa: how to rise up the number of points in point node?
Problem IIb how to generate nParticles on surface with a random pattern but completly sticked to the surface of the mesh?

Problem III: Could anyone explain me how correctly connect instancer to scatter/points node?  when I try by following existing videos, nothing append:

fail.JPG  you can see the polysphere created by me in the center, nothing happened when I connect it to the instancer linked to the scatter or the point node:

graph.JPG 

If you have any suggestion about this project (maybe all my method is wrong?) I'll be glad to know it.

Thank you in advance for your help.

Balthazar



ref Arnold: https://www.youtube.com/watch?v=z4wy_oc6Y3A
https://www.youtube.com/watch?v=XalN4yHil-w
Reply 0 0
pshipkov

How to convert SOuP point cloud to nParticles:
scatter.outPositionPP -> pointCloudToCurve.inArray
pointCloutDoCurve.worldSpace -> nParticle.inputGeometry
This can handle very dense point clouds.

How to change the number of points in the point node ?You cannot. The point node is a modifier. It does not change topology (number of points in this case), but only properties of the geometry components.

How to generate nParticles on surface:
If your input mesh is generated from fluids iso surface then it is tricky. You can use standard mel commands to sample it and create nParticles on it. That will be slow and non-procedural.
My advise is to use the technique i explained above with scatter -> pointCloudToCurve -> nParticles

How to instance geometry to scattered points ?
Your graph is incorrect. What you need is this:
scatter.outPositionPP -> arrayToDynArrays.inArray
arrayToDynArrays.name = position
arrayToDynArrays.outDynamicArrays -> instancer.inputPoints
You can use any other vectorArray attribute (like nParticle.position) as a topology to instance to.

Hope this helps.

Reply 0 0
etmaxman

balthou, would you please explain how did you create the mandelbulb fluid ?

I have no idea how to create this!

Reply 0 0
balthou
Hello pshipkov,

Thank you for your quick answer, I will test it tonight.
(You made an amazing work with this plug-in, very thank you)

/////

Hello etmaxman

It is pretty simple: you just have to create a fluid grid into maya, in presets you have several mandelbulb example that you can use and refine by growing the grid subdiv (150 or 200 is a good beggining for a "low rez") but it's freaking heavy, even for a good computer. you can animate it in the texture tab of the fluid attributes. To easilly use the result you have to cache the fluid, next you convert it in mesh, I suggest you to make an alembic.
Their you have a good first mandelbulb shape to work.
I'll post the result when I will have finished.

bon baiser de France, and sorry for bad english :)
Reply 0 0
etmaxman

Thanks balthou, your english is absolutely fine ;)

am waiting for your results... :) 

Reply 0 0
balthou
Hello again,

I have followed your instruction and it works (I was a little disturbed by the name "pointCloutDoCurve.worldSpace" because in pointCloudToCurve node there is no such of name but when I connected the  pointCloutDoCurve.OutCurve --> nParticles.Ingeometry and it apparently worked)

Now I have an other problem: when I try to cache my nParticles (with nCache tab) it cache through the Time Line but when I load the particles cache, it appears that it is always the same frame which is cached.

Could you please explain me what is the process to cache the result of my Soup network?
Reply 0 0
pshipkov
Maya's dynamic tools are quite broken. Sigh. :)

Don't cache the particles. Do this instead:
pointCloudToCurve.outCurve -> nurbsCurveShape.create
nurbsCurveShape.worldSpace -> nParticle.inputGeometry
Basically, insert a nurbsCurve node between the other two.
Then alembic cache the nursbCurve. From that point the particles will react as cached.
There are other - more proper ways to do that, bu also they are a bit more complex too.
Hope that helps.
Reply 0 0
balthou
Hello there,

I finally arrived to cache my particles, but the result is not I was expecting: as particles are sampled each frame, they don't have velocity so I can't use a velocity attribute to enhance my render.

The result is nice anyway but too static. I will send the render in this topic.

I think one solution would to give a translation vector to particles (like in Z) to make them move from one extremity to another of the mesh and to goal them to the mesh.
As the mesh has no UVs (mandelbuld from fluids to polygon + evolving geometry) I can't use the usual goalU=parentU / goalV=parentV technique.

Would someone has an idea to do that?

Thanks in advance.

Reply 0 0
pshipkov
Good to hear you figured it out.

Velocity:
The problem you face is that nothing in your setup generates consistent velocity vectors.
You start with fluids-to-mesh non-simulation driven base, then fill in the gap with points.
You can use many SOuP nodes to generate the data, but i am not sure what the rules should be ?
Please provide a scene and/or render, so we can better understand what needs to be done.
Reply 1 0
balthou
Hello everyone,

I hope you are having happy holidays,

I had a lot of work that slow down my research about my "mandel scene":

Since the last time I succeed to create Uv to my mandelbulb using my alembic mandebulb and a highrez sphere with a rayproject node, not a perfect result but it's a beginning.

After that I have emitted some particles ( ~1 million) using Uv and goals to drive them from one pole to the other, I used this way because I didn't know how to drive them procedurally...



I partially succed that too (playblast in the video link (render is running now with krakatoa, I'll upload it as soon as possible).

Anyway it's illustrating what I would like to do just by using SOUP: have a flow of particles running from a pole to the other continuously  and dying at there arrival and sticking to the surface of the mandelbulb.

What do you think about that?
Is there a way to create this king of effect procedurally? would you have a better technique to make really birth particles only at one pole (and not randomly at the surface)?

Hope you like this first shot.

Thank you in advance for your help and again happy holidays :)

pshipkov wrote:
Good to hear you figured it out.

Velocity:
The problem you face is that nothing in your setup generates consistent velocity vectors.
You start with fluids-to-mesh non-simulation driven base, then fill in the gap with points.
You can use many SOuP nodes to generate the data, but i am not sure what the rules should be ?
Please provide a scene and/or render, so we can better understand what needs to be done.
Reply 0 0
pshipkov
Looking pretty good man.

I am finishing something here and next year plan to dive into fractals in depth.
So, your work is very welcome to my plans.

Thanks.
Reply 0 0
Reply