Houdini - Procedural Modeling Tips! - Radial Sort
Вставка
- Опубліковано 9 лют 2025
- Lets kick off the procedural modeling tips series by learning how to perform a radial sort given a set of points. This is extremely useful when creating procedural modes for things like road intersections. We will start off by learning how to do the radial sort in Houdini, then take a look at a practical example of the radial sort being used in a road network system.
Find more tutorials and course like this at the Indie-Pixel patreon page: / indiepixel
it just saved my life!
thx kenny u da best
You can also do this radial point sorting by using the following settings:
Point Sort: Expression: atan2($TX,$TZ)
Thank You very much!
What happens if the circle is at an arbitrary angle? and what if you wanted to offset the start point? I know offsetting the start point could be done easily with a sort node, but it'dbe cool to figure out how to do it in vex.
well there is a node called "curve from edge" which may really help this situation without sort manually :)
thanks man you're allway"s the best ... i wanna ask you about when you are going to release the car physics course
I have been slowly developing it on my patreon page. So you can find the first half there currently. Im hoping to have it done within the next 2 months. Then I will post it up on Udemy and other platforms. Thanks!
in vop
(geometryvop global ) P
to connect
(vector to float )
to connect
(arc tangent)
(vector to float ) to ( arc tangent connecting is
fval 1 to x
fval 3 to y
the result connect to
(Bind Export node) should be name the attribute ( sortval ) and type is ( float )
Ahh thanks. I though I had to get the centroid subtracting the bbox min and max so subtract again from the original position and then use the atan node. It is even simple
@@Bolaway Nope. Add min and max after that divide on 2 then you get center. And by the way, you get more nodes than if you write code in VEX. 3 lines versus 8 nodes.
kenny yyds(永远的神)!!when will u realease the road system tutorial? will it be noticed in youtube? patreon 's price for the turtor will be the best?
indeed i love it thanx alot
vector center = getbbox_center(0);
vector dir = normalize(@P - center);
f@sortval = atan2(dir.x, dir.z);
Thank you for your brief and great explain about radial sort, May I have a basic question, like the P5[0.5, 0.0, 0.866025],and the opposite pointP7[-0.5, 0.0, -0.866025],why their arctan2(x/z) value are not the same? It confusing me for a while..
I enjoyed
Can someone explain the atan2? Its a nice tip and all but there is absolutely zero explanation on why he is doing what he is doing
At 02:25 - can't you just do the following?
@N = normalize(@P);