Jump to content

How to acces vector fields in a volume? (temp,rest,vel)


Recommended Posts

Hi.

So I have a volume from a pyro sim, wich has various vector fields like temperature, density, rest field..etc

How can I acces these vector values in a volume wrangle, so I can do per-voxel suff with them?

They are not attributes so I cant simply write @temp, @rest....

Can someone explain me also why those vector fields are represented as primitives in the volume object?

 

Link to comment
Share on other sites

Oh ok, I noticed there was an error in my code....my bad :)

I also have another issue tho..

Always in a volume wrangle, if I want to print out the @resx @resy or @resz attributes, and I use the following code:

printf("%s \n", @resx);

I just prints out 0, and to get it to work I have to write: (found it ina old post)

printf("%s \n", @resx, @density);

Can you explain me why?

Link to comment
Share on other sites

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...