Ocean procedural and vorticity point attribute on the shader

   266   9   2
User Avatar
Member
1036 posts
Joined: 4月 2008
オフライン
I have a procedural ocean with a masked flip sim surface and I want to add the vorticity attribute the geometry on top of the ocean shader mixing it and also I want that as a AOV, I tried with the conventional workflow adding the geometry property value mtlx with the vorticity attribute but I don't see it on the surface as I render.

Am I missing something?


Thanks.
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
1036 posts
Joined: 4月 2008
オフライン
So no way to add a point attribute to this workflow?
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
294 posts
Joined: 1月 2015
オフライン
Think I did it 2 years ago on a production. But have to doublecheck.
User Avatar
Member
546 posts
Joined: 11月 2016
オフライン
By diving into the Ocean Procedural, you have access to the material it uses. You should be able to use the vorticity primvar in the shader using USD Primvar Reader. In Karma Render Settings/Image Output/AOVs(Render Vars)/Extra Render Vars, you should also be able to easily output your vorticity as an AOV with source type set to Primvar.
Edited by Tanto - 今日 11:43:30
User Avatar
Member
1036 posts
Joined: 4月 2008
オフライン
Thanks for the reply.

I Already did that and nothing happens.

The baseline.

The thing is that I did a sim in a patch in the center of the ocean so I manually created a mask using the particle fluid mask node to create my masked spectrum so now I have a ocean that does not affect that part of the sim, so far so good.

Everything inside that masked area is affected by it including the displacement, waves and even foam particles which makes sense so now I am trying to figure a way to include my vorticity attribute on that area.

I also tried with a unmasked spectrum bringing a point attribute from the surface but it does not work it seems that those attributes need to come with the spectra somehow but I am not sure how to do it.

I hope I am making sense.


I want my vorticity to show up on the masked area with my foam particles if it is possible.
Edited by mzigaib - 今日 12:16:33

Attachments:
Screenshot 2026-01-29 140554_ocean_issue.png (2.2 MB)

https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
294 posts
Joined: 1月 2015
オフライン
Here is a example file of it working.

The shader that comes with the Ocean Procedural did not work out of the box with the Karma AOV node, so I made a Extra Render Var inside the Karma Render Settings node instead.

But the ocean shader does pickup the vorticity attribute from the mesh, so you can use it as you want.

Do you see the primvars:vorticity attribute on your mesh in Solaris?

In my test scene I only needed to turn on this in the Flip Solver, Particle Motion>Vorticity>Add Vorticity Attribute and it worked.
Edited by Heileif - 今日 12:49:18

Attachments:
OceanProceduralRnd01_Surface_v0001.hip (4.8 MB)

User Avatar
Member
1036 posts
Joined: 4月 2008
オフライン
Thanks I will check!
And yes I have this attribute on the particles but I was not sure how to read it inside the spectra
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
1036 posts
Joined: 4月 2008
オフライン
Oh I see you created another shader and the added the AOV, I understand.

I was just looking for a workflow to use the same ocean shader and spectra but I think maybe that is the way.
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
294 posts
Joined: 1月 2015
オフライン
mzigaib
Oh I see you created another shader and the added the AOV, I understand.

I was just looking for a workflow to use the same ocean shader and spectra but I think maybe that is the way.

The extra shader was just for debugging, the original shader works to.

Extra Render Var inside the Karma Render Settings node handles the vorticity AOV.
User Avatar
Member
1036 posts
Joined: 4月 2008
オフライン
Oh I see now, hummm

I did that I could not somehow get it working.

Thanks for that I will use this to debug my scene which is a little different because I am using the flipsolver SOP

Cheers!
https://vimeo.com/user2163076 [vimeo.com]
  • Quick Links