Jump to content

Volume: Store vel as one att ( not vel.x,vel.y,vel.z )


Recommended Posts

Hi everyone,

I want to create a volume that contain a velocity att to my voxel.

I realize that in some situations, vel can be store as one att but sometimes it duplicate it for each axis (vel.x, vel.y, vel.z). I guess it's probably faster to only have vel store one time as a vector attribute.

How can I achieve that for this simple exemple below? Should I use a different node than "volume".

Thanks

 

houdiniQ_vel.PNG

Link to comment
Share on other sites

I have just found out that it is possible to convert vel to a vdb with a "convert vdb" and after use a "vdb vector to merge". Not sure if it's the right thing to do but it works.

If you guys have extra info about that topic, let me know!

Cheers

  • Thanks 1
Link to comment
Share on other sites

Volume SOP creates vel.x, vel.y, vel.z field which is different to what VDB from Particles would create. VDB from particles would only create one field (ex: vel).

In H documentation for VOLUME SOP, there are a couple of things I can quote.

Quote

Stores a vector at each point. This is actually represented using three scalar fields (for example Cd.r, Cd.g, Cd.b) but Houdini knows to treat them as a single volume.

You can use VDB Vector Merge to merge the .x, .y, .z fields into one single VDB field.

Volume SOP (as far as I know), is an old way of creating volumes, now that OpenVDB workflow is around, it's more efficient in terms of resolution and speed. There is an in-depth explanation if you Google "Volume Houdini".

Quote

Because of the way this volume type is represented in memory, it does not require that you specify a box containing the volume; it can extend infinitely. Despite this, a VDB does define a 3D grid of voxels over the whole space.

 

  • Like 1
  • Thanks 2
Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...