pechart
Hi!

This is not really SOuP related, but maybe someone of the pros here has an idea. I already asked over at chaosgroup/nextlimit.

So, I have meshes from Realflow in a stiched ABC file. That loads fine in Maya. I need to render the meshes with motionblur, of course, so I put "velocity" in the motionVectorColorSet of the mesh. But Vray, and also Mental Ray, doesn't render the motionblur. So I took a look at the data with the soup display components tool and recognized, that the velocity channel of the vertices only contains a float array, not a vector array. Does anybody have an idea what's happening here?

Cheers!

pshipkov
You will need to convert the double array to vector one.

Create a point node.
Connect the alembic.outputGeometry (whatever that attribute name is) to point1.inGeometryPP.
Connect the alembic.outputVelocity (whatever that attribute name is) to point1.inWeightPP

In the "color" area of the point node's AE type this:

int $id = (int)$ID;

$CR=$WGT[$id*3];

$CG=$WGT[$id*3+1];

$CB=$WGT[$id*3+2];


Make sure the "enable" checkbox is turned on.

This will effectively create point colors on the mesh geo that will represent the velocities.
If you have multiple color sets in the nodal network you may need to insert a vertexColorSet before the point node, so you get the point colors "injected" in that set only and prevent it from stomping on other color data. Then specify that color set as velocity in the mesh AE.


Reply 0 0
pechart
Wow, that sounds very promising. Thanks. Unfortunatly my alembic doesn't have a attribute that sounds like it could be the velocity. Only 'speed', but that doesn't connect to 'inWeightPP'.
The resulting meshShape has a 'velocity', though. But that doesn't connect to 'inWeightPP', either.   

nodes.JPG 


Still this sounds very promising and would really help!







Reply 0 0
pshipkov
If you don't have per-point velocities in the alembic - there is nothing we can do about it.
Speed implies scalar values, the length of the velocity vectors, but no orientation.
But it may be just semantics.
Check if the "speed" actually represents velocity:

print (size(`getAttr alembic.speedAttribute`)/3);

if that returns a number that matches the point count then the point node trick will do.
Otherwise the data is just not there.
Reply 0 0
pechart
The mel gives an error: Argument of builtin "size" procedure must be an array type.

So I guess that's not good.

What makes me wonder is, that the poly mesh has an attr called velocity. I never noticed that attr on any mesh before. And that's what makes me think that there IS some data related to vertex velocity.

And if i call 

print (size(`getAttr mesh_shape.velocity`)/3);

I get a result. And also i can pipe that velocity into a display component's inDataPP and get an output:

nodes2.jpg 


The result doesn't match the pointcount of the mesh, though. And it's the same result on all frames.


EDIT: Ok, I can pipe that 'mesh.velocity' into the point node's normalPP, read that into the $R$G$B and use that color set in a new mesh at the outGeometry of the point node. That gives me something, but nothing useable for now. I'll continue trying.


Reply 0 0
pechart
Here's the result. Not exactly what I need, but at least something blurry :)

nodes3.jpg 
I tried inverting the values with $NX*-1 and reordered the $R and $G, but no difference.

I guess the problem is the not matching point count, as the point node says:

inNormalPP has length different than the number of points of inGeometry

So for now I just assume that realflow doesn't export the velocyties correctly into the ABC or maya (or vray or mental ray) can't read them for some reason.
Reply 0 0
pshipkov
I don't think there is per-frame velocity data in your alembic cache.
As far as i remember it will create and populate attributes on the mesh node(s) if the data is "static".
Otherwise it will be available on one of the output attributes of the alembic node.
I think you should try to connect some of these alembic node's attributes to the point node with the hope to find the right one.

The alembic implementation in Maya leaves a lot to be desired.
Sigh.

Reply 0 0
pechart
Ok. I'll try those attributes, but I don't have that much hope.

I'm not sure if maya is to blame for this. I think think the export from Realflow is broken or maybe it's even not supported.

I tried to import with exocortex crate, too, but this doesn't give me any useable channel, either.

Anyway, thanks for your support. I'll go with the RF bins then. Motionblur works with them, but I really wished I could have everything as ABC while assembling the render scenes.
Reply 0 0
pshipkov
if you can provide me a single frame of your alembic cache coming from realflow, or create new simpler cache that you can give to.
this will be the shortest path to "there".
Reply 0 0
aley
If you using vray, converting them to a vray mesh helped me getting correct motion blur and motion vectors

https://www.youtube.com/watch?v=myHkvr4SjYI
Reply 0 0
pechart
I actually dropped alembic and went with the RF bin sequences. If you setup your vray motionblur render settings to 

Duration '0.5'
Interval center '0'

it works. You get rendered blur and motion vectors. So, no need to convert those bins to vrmeshes anymore. (Only if you not want to use vray proxies, of course.) That's doing it for me right now. Let's see, if RF2015 has a better alembic support and writes useful data into the verts.

Oh, deforming the bin meshes also worked for me in this case.


Reply 0 0
Reply