SDF from Curves?
3663 9 2- papsphilip
- Member
- 385 posts
- Joined: July 2018
- Offline
I havent used sdf before but i wanted to try a technique i had in mind to calculate distances between curves using SDF and output a contour at a specific value. i want to input thousands of curves so it has to be light calculation-wise.How can i implement this in 2d? i have no surface or volume just curves. I tried using volume rasterize curve but nothing shows up. Any tips? tutorials i can watch that can get me started?
Edited by papsphilip - July 27, 2019 09:18:19
- AslakKS
- Member
- 188 posts
- Joined: Feb. 2016
- Offline
This tool should help. I use it regularly.
https://github.com/mattebb/hda/tree/master/volume_rasterize_lines [github.com]
https://github.com/mattebb/hda/tree/master/volume_rasterize_lines [github.com]
- papsphilip
- Member
- 385 posts
- Joined: July 2018
- Offline
Aslak K-Sthats exactly what i'm looking for, but how can you output a curve at the end? like sampling the volume at a specific value
This tool should help. I use it regularly.
https://github.com/mattebb/hda/tree/master/volume_rasterize_lines [github.com]
- AslakKS
- Member
- 188 posts
- Joined: Feb. 2016
- Offline
I don't quite get what you mean “output curve at the end”.
Look into Volume Sample. https://www.sidefx.com/docs/houdini/nodes/vop/volumesamplefile [www.sidefx.com]
I think that's what you are looking for.
Look into Volume Sample. https://www.sidefx.com/docs/houdini/nodes/vop/volumesamplefile [www.sidefx.com]
I think that's what you are looking for.
- papsphilip
- Member
- 385 posts
- Joined: July 2018
- Offline
Aslak K-S
I don't quite get what you mean “output curve at the end”.
Look into Volume Sample. https://www.sidefx.com/docs/houdini/nodes/vop/volumesamplefile [www.sidefx.com]
I think that's what you are looking for.
sorry i didnt phrase that correctly i need the contour of the volume at a specific value. Like contours of a terrain! maybe through cops?
- AslakKS
- Member
- 188 posts
- Joined: Feb. 2016
- Offline
- AslakKS
- Member
- 188 posts
- Joined: Feb. 2016
- Offline
- papsphilip
- Member
- 385 posts
- Joined: July 2018
- Offline
Aslak K-S
Something along the lines of this?
https://vimeo.com/302984643 [vimeo.com]
ok not quite what i was looking for because i dont have heightfields and i dont know a way to convert a volume into a heightfield but i think i found a simpler way through cops using a trace afterwards.i thought this would be way easier though, like using a trail sop. this is supposed to be a standard mathematical procedure, by doing in sops there is a big disadvantage which is volume resolution. The quality of the final trace/contour depends on that. So if you had a million curves i suppose this method would be the wrong way to go. Anyway check my example scene, i used the github asset you mentioned and added some things.
- arjanM
- Member
- 28 posts
- Joined: Nov. 2013
- Offline
- papsphilip
- Member
- 385 posts
- Joined: July 2018
- Offline
Aslak K-Si ugraded this asset to a licensed version, here it is
This tool should help. I use it regularly.
https://github.com/mattebb/hda/tree/master/volume_rasterize_lines [github.com]
i dont know how to upload it to github so if someone is familiar with this please do so
-
- Quick Links