Not strictly Houdini related, just a question from the mathematically challenged…
How can I convert a direction vector from cartesian to spherical coordinates?
I know the formula for a *position* (as well as the nodes topolar and frompolar) but not a vector… it's probably something simple that I'm overlooking…
Cheers,
Jon
math q: director vector to spherical coords
2383 5 1- jpparkeramnh
- Member
- 178 posts
- Joined: 1月 2013
- Offline
- Konstantin Magnus
- Member
- 670 posts
- Joined: 9月 2013
- Offline
Isn't a position just a vector, as well?
https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
- jpparkeramnh
- Member
- 178 posts
- Joined: 1月 2013
- Offline
- tricecold
- Member
- 258 posts
- Joined: 7月 2006
- Offline
wikipedia says
In mathematics, a spherical coordinate system is a coordinate system for three-dimensional space where the position of a point is specified by three numbers: the radial distance of that point from a fixed origin, its polar angle measured from a fixed zenith direction, and the azimuth angle of its orthogonal projection …
so you are missing two variables no, distance and azimuth angle
In mathematics, a spherical coordinate system is a coordinate system for three-dimensional space where the position of a point is specified by three numbers: the radial distance of that point from a fixed origin, its polar angle measured from a fixed zenith direction, and the azimuth angle of its orthogonal projection …
so you are missing two variables no, distance and azimuth angle
Head of CG @ MPC
CG Supervisor/ Sr. FX TD /
https://gumroad.com/timvfx [gumroad.com]
www.timucinozger.com
CG Supervisor/ Sr. FX TD /
https://gumroad.com/timvfx [gumroad.com]
www.timucinozger.com
- jsmack
- Member
- 7771 posts
- Joined: 9月 2011
- Offline
- jpparkeramnh
- Member
- 178 posts
- Joined: 1月 2013
- Offline
-
- Quick Links