AlexRideout
Hello,

I am currently trying to find a good way to get houdini particles (or point clouds) to Maya. Currently I am looking at doing so through an Alembic cache. I found that Maya's default alembic plugin is unable to handle this area (get an error about Object not found for -object flag).

I found Exocortex Crate is now open source and supports particles/point clouds. Though unfortunately it doesn't seem to allow much operation or easy retrieval of data. The "alembicpoint" node that it has is a particle emitter that generates with a legacy particle node. Particles look fine as far as position and movement, but the main issue I am having is they don't seem to transfer attributes that I exported. Most importantly at this moment, I can't get velocity on there which is important for motion blur in rendering.

I can only assume that the emitter just refreshes point positions and whatnot every frame in the particle node. Is there a way to extract attributes from the "newparticles" data type that a particle emitter sends to particle nodes?

Cheers,
Alex
Reply 0 0
pshipkov
did you try partIO ?
Redpawfx is lurking around but if needed he can provide first hand feedback.
Reply 0 0
AlexRideout
I did look at partIO briefly, though didn't find it compiled for Maya 2016 in my brief search. I should probably set up a development environment to compile some of these open source plugins myself at some point, but don't presently have the time to do that.

Currently I am just using the Houdini Engine to import bgeo caches (or even alembic caches). Little bit of a workaround since it does require an Engine license to work, but probably the best compatibility at the moment. I just cache out the nParticles that the Houdini Engine drives and then can use an Engine free scene, though it isn't ideal to have that extra step, though also not the end of the world.
Reply 0 0
pshipkov
How many particles we are talking about here ?
Reply 0 0
patar3d
may i know whats your plan with the particle once it imported successfully in maya?
i mean if eventually you want to render it why not meshing it in houdini and import in maya as normal
alembic?meshing in houdini is by far most enjoyable and fully customize-able compared with any other
apps...if you tell me this maybe i can help you with the houdini side of things....even create a custom
HDA for your need...
ps: I might not read your reply in here so maybe if you like you can contact me trough patar3d@gmail.com
Reply 0 0
AlexRideout
Not a massive amount. Likely less than 100k at the moment. Though certainly nice to have a solution that would scale to larger sims of several million.

And thanks patar3d. I am basically planning on rendering the particles. The effect I am doing is a blood spray element via standard particles. Currently my workflow in Maya once I have the particles in there is to render them in Redshift. Redshift doesn't support direct particle rendering at the moment, so I am using a Maya Instancer node to just instance spheres to the particles.

I considered doing this in Houdini, but wasn't sure how much larger the alembic cache might be if I output instanced spheres instead of just points. I would also need velocity information on the spheres from Houdini so that Redshift is able to render motion blur. While going through alembic options, I did see something about Alembic instancing...not sure how that might work on the memory saving side of things or if it would work with the consideration of having velocity data on the spheres (mostly assuming vertex colors to store this since that seems the most effective way to do this in Maya).

If I was to do the meshing/sphere instancing within Houdini, should I be using a copier node or an instancer set up? Only just started using Houdini about a week or so ago. Definitely loving it so far, but am still learning.

Thanks!
Alex
Reply 0 0
patar3d
Redshift doesn't support direct particle rendering at the moment, so I am using a Maya Instancer node to just instance spheres to the particles.

this workflow is not optimized compared if you meshed it in houdini. plus your blood wont be as good as it were meshed (all spheres)..

I considered doing this in Houdini, but wasn't sure how much larger the alembic cache might be if I output instanced spheres instead of just points.

the current maya is not good to handle points where theres no polygon faces (pointcloud). much less
point attributes the way maya can read your point data is to put the attribute in vertex context. and
in maya import it as color sets. it can however read open polygon as curve either via alembic or houdini engine (but it can not handle a big amount of it say 24 million of it), this way you can get it to render streak particles...

I would also need velocity information on the spheres from Houdini so that Redshift is able to render motion blur.

like i said put it(v attributes) in vertex context...

If I was to do the meshing/sphere instancing within Houdini, should I be using a copier node or an instancer set up? Only just started using Houdini about a week or so ago. Definitely loving it so far, but am still learning.

my current workflow is i found it cooler to split the part where particles is straying from the bigger clumps of the water using the droplet attribute and meshing it differently..
Capture.JPG 
Reply 0 0
patar3d
just to show how flexible it is to mesh in houdini. this is my custom fluid surfacer:

https://www.youtube.com/watch?v=NY6yQp8fHMk

it bulge the edge of the surface as in real life due to surface tension.
its a houdini digital assets also works in maya with houdini engine..

Ps: not trying to make a houdini artist out of you, since this is a maya forum. just showing how nice and flexible it is to do it in houdini. also my main software is still maya. just use houdini for vfx stuffs...

best regards
Patar
Reply 0 0
AlexRideout
Hey Patar,

Thanks for the info! I am currently utilizing Houdini's meshing for the main part of the simulation. I have a flipsolver set up and a system for meshing it as an alembic mesh and already have that correctly outputting the vertex color information for velocity that renders correctly in Redshift when being brought into Maya.

The blood element that I am building currently has 3 separate elements to it. The Flip fluid for the main squib, a kind of smoke burst using the smokesolver and output as a vdb cache, and then a fine particulate simulation for a ballistic spray that I am running as a simple popsolver simulation. I am happy with the vdb meshing for the flip fluids, though only need fine droplets (hence the spheres) for the ballistic elements.

The main thing I was trying to figure out with this post is how to overcome the hurdles of importing point cloud data into Maya (potentially through Alembic) since Maya has a pretty terrible Alembic implementation and just generally poor support for point clouds. I might take a look at importing it as a curve though which may work for the fewer number of particles I have currently.

I do like the results of your surfacer though. My current surfacing method is pretty simple. I do have a surface tension solver attached to my flipsolver to get more interesting results. Is that something that you dealt with during simulation or during surfacing for this?

But yeah, mostly just looking for a good way to get particles from Houdini into Maya for rendering or driving of other systems. I have found Besha's OpenVDB plugin to offer some decent meshing ability of particles within Maya (while still not quite as flexible as the meshing options in Houdini, definitely a start). But still not quite what I am looking for for this particular element.

Thanks!
Alex
Reply 0 0
patar3d
The blood element that I am building currently has 3 separate elements to it. The Flip fluid for the main squib, a kind of smoke burst using the smokesolver and output as a vdb cache, and then a fine particulate simulation for a ballistic spray that I am running as a simple popsolver simulation. I am happy with the vdb meshing for the flip fluids, though only need fine droplets (hence the spheres) for the ballistic elements.

my god if what i meant is to also mesh the ballistic particles if you open my sample file it is split by using the droplet attribute... and i use spherical method instead of average position for the bigger clumps....

my surfacer is purely in the meshing surfacer so no need to modify the simulation (no need for surface tension force, unless u wanted it that way). it is created so that it can take data from other simulation software such as realflow. as it was created for a friend of mine who wants more control in surfacing particles and it also works in maya via houdini engine. it also handles filling up holes... newMesh.JPG beforeParticle.JPG  after particle.JPG   
Reply 0 0
Reply