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.
4161 9 2- amelnychuk
- Member
- 15 posts
- Joined: Jan. 2010
- Offline
- Konstantin Magnus
- Member
- 682 posts
- Joined: Sept. 2013
- Online
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: Jan. 2010
- Offline
- Konstantin Magnus
- Member
- 682 posts
- Joined: Sept. 2013
- Online
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
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
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
- 2129 posts
- Joined: Sept. 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 - Dec. 21, 2018 09:06:27
- anon_user_00157425
- Member
- 45 posts
- Joined: Feb. 2014
- Offline
- BabaJ
- Member
- 2129 posts
- Joined: Sept. 2015
- Offline
- jsmack
- Member
- 8042 posts
- Joined: Sept. 2011
- Offline
- BabaJ
- Member
- 2129 posts
- Joined: Sept. 2015
- Offline
- anon_user_00157425
- Member
- 45 posts
- Joined: Feb. 2014
- Offline
-
- Quick Links