Marcus Ottosson

negow

About Me

Connect

LOCATION
Not Specified
ウェブサイト

Houdini Engine

Availability

Not Specified

Recent Forum Posts

Gradient Descent 2020年4月5日10:41

I ported the example to VEX, thought it might be helpful even though the thread is a few years now.

int numiterations = chi("number_of_iterations");
float gravity = chf("gravity");
float max_search_distance = chf("max_search_distance");

vector last_position = @P;
for (int _i=0; _i < numiterations; _i++) {
    
    // Move with gravity
    //        |
    //        |
    //        v
    vector new_position = last_position + set(0, -gravity, 0);
    
    // Resolve collision
    //
    //    _____|
    //   /     |
    //  /      |\
    // /       v -->
    //            \____
    //
    last_position = minpos(1, "", new_position, max_search_distance);

    int ptnum = addpoint(0, last_position);
    setpointattrib(0, "id", ptnum, @ptnum);
}

Feed Maya shape node with geo from Houdini 2010年5月15日5:36

That look absolutely marvelous, SYmek. Will to some reading up on it.

Feed Maya shape node with geo from Houdini 2010年5月14日18:32

Did some checking up on COM as well which looks interesting.

Please forgive my poor programming knowledge but, to use COM, one would essentially need to write plug-ins for both Houdini and Maya, right?