noiseOfId

Hi,
I am fetching the the velocity per vertex from bifrost and use it in my shading network which works very well and giving the impression of bubbles underneath the surface.
One thing that I would like to add though would be to give it a bit of a ghosting effect so that the bubbles donnot instantly die with the velocity but fade out over say 5 frames.

Maybe a setup with timeOffset and multiAttributeTransfer might work but given the huge mesh data I don't think that would be feasible anyway.


Is there any other technique around for this scenario?
Maybe some Alembic hack?

Reply 0 0
pshipkov
No idea really since i didn't try anything fancy with Bifrost at this point.
I have to check if we can extract arrays from the bifrost graph and pipe them back in or to shaders.
If this is possible then everything you need is arrayDataContainer node to hold the values over couple of frames.
If you have a scene - pass it along and i will take a look.

The other solution is to bake everything into alembic and then play with the arrays coming from it - this should work.
Reply 0 0
noiseOfId

Yeah there are these somewhat hidden nodes:

https://knowledge.autodesk.com/support/maya/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/Maya/files/GUID-A56B1A40-6D7A-4BD5-9CB8-ABAFD19F5094-htm.html


I didn't have arrayDataContainer on my radar so I will have to check or else load up a scene later.

Thx!

Reply 0 0
noiseOfId

I think I confused multiAttributeTransfer with arrayDataContainer.

So in order to make this work I would have to rely on attributeTransfer so I still think this is probably not very usable due to the super-dense meshes.

Once thing I tried was to emit particles from the high velocity areas and Transfer Attributes from there but that is really slow too.


You mean the grabbing and splitting the arrays from the meshing output?

I think that is worth taking another look :)

I wish they had the bifrost graph documented already ...

 

Reply 0 0
noiseOfId

Here is a scene.

It kinda seems to work albeit a bit funky on some frames.
When I render I am using the luminance node to sorta calculate the magnitude of the velocity.

Wish I could find an easy way to do the same in the viewport

Reply 0 0
pshipkov
One thing to be aware of is that arrayDataContainer requires consisten point count over time in order to properly track point values. If the mesh changes then there is no way to tell which stored values correspond to which current points, because the point IDs are mangled.

Another possible work around is to use a fluidTexture3d and emit from the source ring colors into the fluid (use pointCloudFluidEmitter for that) then dissipate over couple of frames and then apply the fluidTexture3D to the second ring. That will produce the fade-out effect you are looking for.
It is more computation and solving of course.
Reply 0 0
noiseOfId
Ah yes makes perfect sense of course.
That fluidTexture3D is a great idea (haven't used that in ages :D), might even add a nice touch with it's smokey behavior .
Reply 0 0
Reply