Hey everyone,
I've been studying machine learning and how it can be applied to houdini and I've come across a good application for it with curve fitting. Correct me if I'm wrong, but I don't think there is a way to accurately fit a curve to points in houdini. This technique is a bit limited but overall does a pretty good job.
I've made a tutorial series that comes with a example indie file and indie otls. I would love to hear your feedback.
Example File:
https://github.com/amovfx/HipFiles/blob/master/CurveFitting.v01.hiplc [github.com]
Otls:
https://github.com/amovfx/otls [github.com]
Videos
https://vimeo.com/307423675 [vimeo.com]
https://vimeo.com/307424388 [vimeo.com]
https://vimeo.com/307424680 [vimeo.com]
https://vimeo.com/307425022 [vimeo.com]
Fitting a curve to points with machine learning techniques. Videos and example files.
3943 9 2-
- amelnychuk
- Member
- 15 posts
- Joined: 1月 2010
- Offline
-
- Konstantin Magnus
- Member
- 674 posts
- Joined: 9月 2013
- Offline
Interesting topic! I´d love to try this out.
Unfortunately I get an LinAlgError: SVG did not converge on Mac OS.
Unfortunately I get an LinAlgError: SVG did not converge on Mac OS.
Python error: Traceback (most recent call last):
File "", line 35, in
File "/Applications/Houdini/Houdini17.0.388/Frameworks/Python.framework/Versions/Current/lib/python2.7/site-packages/numpy/linalg/linalg.py", line 1404, in svd
u, s, vt = gufunc(a, signature=signature, extobj=extobj)
File "/Applications/Houdini/Houdini17.0.388/Frameworks/Python.framework/Versions/Current/lib/python2.7/site-packages/numpy/linalg/linalg.py", line 99, in _raise_linalgerror_svd_nonconvergence
raise LinAlgError("SVD did not converge")
LinAlgError: SVD did not converge
https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
-
- amelnychuk
- Member
- 15 posts
- Joined: 1月 2010
- Offline
-
- Konstantin Magnus
- Member
- 674 posts
- Joined: 9月 2013
- Offline
Thank you, it works now! Seems like a very good resource.
By the way, one month ago I started a similar thread based on volumes, though:
https://forums.odforce.net/topic/40318-move-points-through-the-center-of-a-sdf/ [forums.odforce.net]
I find numpy very interesting. But it feels to me like an introductory tutorial on how to use it with Houdini is still missing![](/static/djangobb_forum/img/smilies/wink.png)
Especially how to fluently read and write all sorts of attributes with Python and Numpy is only vaguely documented so far.
By the way, one month ago I started a similar thread based on volumes, though:
https://forums.odforce.net/topic/40318-move-points-through-the-center-of-a-sdf/ [forums.odforce.net]
I find numpy very interesting. But it feels to me like an introductory tutorial on how to use it with Houdini is still missing
![](/static/djangobb_forum/img/smilies/wink.png)
Especially how to fluently read and write all sorts of attributes with Python and Numpy is only vaguely documented so far.
https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
-
- BabaJ
- Member
- 2110 posts
- Joined: 9月 2015
- Offline
Correct me if I'm wrong, but I don't think there is a way to accurately fit a curve to points in houdini.
Actually, it does.
A variation of the vex spline function allows you use point position arrays of variable lengths.
Aside from ones approach to generating/acquiring the array of point positions, the curve based on those positions can be done in a single wrangle node.
http://www.sidefx.com/docs/houdini/vex/functions/spline.html [www.sidefx.com]
Edited by BabaJ - 2018年12月21日 09:06:27
-
- anon_user_00157425
- Member
- 45 posts
- Joined: 2月 2014
- Offline
-
- BabaJ
- Member
- 2110 posts
- Joined: 9月 2015
- Offline
-
- jsmack
- Member
- 7981 posts
- Joined: 9月 2011
- Online
-
- BabaJ
- Member
- 2110 posts
- Joined: 9月 2015
- Offline
-
- anon_user_00157425
- Member
- 45 posts
- Joined: 2月 2014
- Offline
-
- Quick Links