Often, for common point lookup tasks, for the sake of ease, when I want to look up point info I just use the nearpoint() function or just a simple pcopen() followed by pcfilter(). I've also used pciterate and the other related functions for occasional purposes.
But there are a lot of point cloud functions I never use, and because they exist, they must be useful. Ideally I'd want to find out which ones will make my point lookups as fast as possible.
Are there any pro-level tutorials that go over them with examples anywhere?
Cheers,
Jon
VEX point cloud masterclass / tips?
4913 11 1- jpparkeramnh
- Member
- 178 posts
- Joined: Jan. 2013
- Offline
- Librarian
- Member
- 142 posts
- Joined: Aug. 2009
- Offline
Only thing that you need to know about Houdini it's this
Than just combine
https://www.youtube.com/watch?v=dq5B3TeFeL8 [www.youtube.com]
Than just combine
https://www.youtube.com/watch?v=dq5B3TeFeL8 [www.youtube.com]
- jpparkeramnh
- Member
- 178 posts
- Joined: Jan. 2013
- Offline
srletak76
Only thing that you need to know about Houdini it's this
Than just combine
https://www.youtube.com/watch?v=dq5B3TeFeL8 [www.youtube.com]
Sorry but I didn't see anything about the point cloud specific VEX function that I mentioned. I'm not a beginner by any stretch of that word.
- jsmack
- Member
- 8038 posts
- Joined: Sept. 2011
- Online
I find the pointcloud functions that return arrays to be the most useful. The while pcopen/iterate shenanigans are from another time. I'm not sure if there's any performance implications between them.
The grid based pgfind uses a different algorithm that may or may not be faster in some circumstances, it's worth checking out.
The grid based pgfind uses a different algorithm that may or may not be faster in some circumstances, it's worth checking out.
- tamte
- Member
- 8780 posts
- Joined: July 2007
- Offline
I think Jon means functions like pcopenlod() and pcsampleleaf() which can speed up point cloud queries
https://www.sidefx.com/docs/houdini/vex/functions/pcopenlod.html [www.sidefx.com]
https://www.sidefx.com/docs/houdini/vex/functions/pcsampleleaf.html [www.sidefx.com]
I have seen them being used in the shading context, however never used them myself
https://www.sidefx.com/docs/houdini/vex/functions/pcopenlod.html [www.sidefx.com]
https://www.sidefx.com/docs/houdini/vex/functions/pcsampleleaf.html [www.sidefx.com]
I have seen them being used in the shading context, however never used them myself
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- jsmack
- Member
- 8038 posts
- Joined: Sept. 2011
- Online
tamte
I think Jon means functions like pcopenlod() and pcsampleleaf() which can speed up point cloud queries
https://www.sidefx.com/docs/houdini/vex/functions/pcopenlod.html [www.sidefx.com]
https://www.sidefx.com/docs/houdini/vex/functions/pcsampleleaf.html [www.sidefx.com]
I have seen them being used in the shading context, however never used them myself
Neat, never used those before. Sounds like something a photon shader would use such as the gi light.
- animatrix_
- Member
- 4685 posts
- Joined: Feb. 2012
- Online
jsmack
I find the pointcloud functions that return arrays to be the most useful. The while pcopen/iterate shenanigans are from another time. I'm not sure if there's any performance implications between them.
Last time I checked there was a performance difference favoring the old pcopen.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
- jpparkeramnh
- Member
- 178 posts
- Joined: Jan. 2013
- Offline
tamte
I think Jon means functions like pcopenlod() and pcsampleleaf() which can speed up point cloud queries
https://www.sidefx.com/docs/houdini/vex/functions/pcopenlod.html [www.sidefx.com]
https://www.sidefx.com/docs/houdini/vex/functions/pcsampleleaf.html [www.sidefx.com]
I have seen them being used in the shading context, however never used them myself
Yes, exactly… Jeff Wagner talks about pgfind in his VEX masterclass and touches on point clouds a little bit, but sometimes it's hard to creatively imagine novel uses for these. I'm guessing a lot of them were added with specific use cases in mind.
Some sort of example page with snippets for each would be fun to create some day. (Matt Estela? )
- tamte
- Member
- 8780 posts
- Joined: July 2007
- Offline
- takita
- Member
- 207 posts
- Joined:
- Offline
jpparkeramnh
Jeff Wagner talks about pgfind in his VEX masterclass and touches on point clouds a little bit, but sometimes it's hard to creatively imagine novel uses for these.
Hi Jon -
This may or may not be helpful but in the vellum solver (for the grains) there's a VOP called “get_neighbors” that uses both pcfind and pcfind_radius (switched by the “uniform_radius” parameter), and there's a bit commented out on pgfind (which IIRC is for accessing points that are spatially partitioned in to blocks the way a VDB might, could be wrong tho) - all of that could be a bit of a clue as to what the finer distinctions between them are.
-T
Edited by takita - Dec. 20, 2019 00:00:17
- Librarian
- Member
- 142 posts
- Joined: Aug. 2009
- Offline
- jpparkeramnh
- Member
- 178 posts
- Joined: Jan. 2013
- Offline
-
- Quick Links