CHOPs modify DOPs-using pointsfromvolume SOP

   Views 2464   Replies 6   Subscribers 2
User Avatar
Member
351 posts
Joined: June 2016
Offline
Hi
A bit of a challenge for me and would appreciate feedback to see if I am on the right track.
I want to modify a Pyro simulation using CHOP data,. Since I don't think this is possible to do directly, one possible solution is to use a pointsfromvolume SOP to convert the cached simulation, modify these points, and then reconvert back to a volume using the volumerasterizepoints SOP. see the attached pics.

Am I on the right track?
What settings should I use in both my VDB and volumerasterizepoints SOPs?
Edited by art3mis - May 17, 2017 20:33:42

Attachments:
pointsFromVolume1.jpg (164.3 KB)
pointsFromVolume2.jpg (200.4 KB)
pointsFromVolume3.jpg (158.4 KB)

User Avatar
Member
7967 posts
Joined: July 2005
Offline
Well, I don't think you need to rasterize back per se. But if you do, then you need to ensure that your new VDB has the same voxel sizes. And then when you rasterize, you need to ensure that it doesn't rasterize more than one voxel per point or else you won't end up the same result as before. I haven't looked, so I'm not sure if this is possible or not with Volume Rasterize Points.

The other approach that you might be able to take is to use a Volume VOP SOP or Volume Wrangle SOP to modify the voxel values based on the nearest point or your converted point cloud.
User Avatar
Member
351 posts
Joined: June 2016
Offline
Thanks! So many ways to accomplish the same thing it seems. Another option I think is to use a VDB from particles SOP (attached) but as a novice where I am stumbling is how to apply my CHOP data(in the attached .hip a simple sine motion) to all my points in my pointsfromvolume SOP.
Vex wrangle or?
Also, total novice question, could I skip the conversion to points entirely and use a Volumevop SOP?

My goal in this exercise is to fully understand how to use CHOP data to influence and modify DOPs.

Any feedback appreciated!
Edited by art3mis - May 18, 2017 07:10:06

Attachments:
CHOPS_drive_SOPs.png (295.8 KB)
CHOPs_drive_DOPs_sine3.hiplc (547.3 KB)

User Avatar
Member
351 posts
Joined: June 2016
Offline
Thanks so just to be clear, converting to points is totally unnecessary to drive volume data from CHOPs?

And would the Volume VOP SOP method be the ‘preferred’ solution?
User Avatar
Member
7967 posts
Joined: July 2005
Offline
Sorry, I'm confusing you. Let me try again.

It is necessary right now to convert to points first because we don't have VEX functions that can directly access CHOP data. So indirectly, you access the point attributes from VEX to modify the voxel data.
User Avatar
Member
351 posts
Joined: June 2016
Offline
Thanks! I might need some handholding in regards to VEX, whether I use a Pointwrangle or VOP SOP.
Also attached is a corrected .hip file

Not to repeat myself but my question as noted in the sticky file is

“How to use CHOP data to influence movement of new particles in poinstfromvolume?”

Attachments:
CHOPdataInfluenceNewparticles.png (268.5 KB)
CHOPs_drive_DOPs_sine4.hiplc (610.3 KB)

User Avatar
Member
7967 posts
Joined: July 2005
Offline
You use a Channel SOP to import the CHOP date onto points.
  • Quick Links