Intrinsic UVs, curve gradient, Attribute remapping with ramp. Houdini tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ส.ค. 2024

ความคิดเห็น • 5

  • @OnkAnCa64
    @OnkAnCa64 3 ปีที่แล้ว +1

    thanks

  • @RMAFIRE
    @RMAFIRE ปีที่แล้ว

    Solid!! 👌👀

  • @xrossfader
    @xrossfader 2 ปีที่แล้ว

    I think this is super awesome but I'm unable to get it working properly and I wish I knew why.
    int pt_count = chi("point_count");
    float curve_length = chi("curve_length");
    int new_prim = addprim(0, "polyline");
    for (int i = 0; i < pt_count; ++i){
    float uvw = i / (pt_count - 1.0) * curve_length;
    vector pos = primuv(1, "P", 0, uvw);
    int new_pt = addpoint(0, pos);
    addvertex(0, new_prim, new_pt);
    }

    • @viktors_anfimovs
      @viktors_anfimovs  2 ปีที่แล้ว +1

      make chi("curve_length") a float not int, and your build curve in 2nd input of the wrangle node, since we are getting primuv positions from the 2nd input of the wrangle in primuv function. Now it works!

    • @xrossfader
      @xrossfader 2 ปีที่แล้ว

      @@viktors_anfimovs Thanks for the reply! Lets see if I can get it to work...