Jump to content

Search the Community

Showing results for tags 'vex'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Lounge/General chat
    • Education
    • Jobs
  • Houdini
    • General Houdini Questions
    • Effects
    • Modeling
    • Animation & Rigging
    • Lighting & Rendering
    • Compositing
    • Games
    • Tools (HDA's etc.)
  • Coders Corner
    • HDK : Houdini Development Kit
    • Scripting
    • Shaders
  • Art and Challenges
    • Finished Work
    • Work in Progress
    • VFX Challenge
    • Effects Challenge Archive
  • Systems and Other Applications
    • Other 3d Packages
    • Operating Systems
    • Hardware
    • Pipeline
  • od|force
    • Feedback, Suggestions, Bugs

Found 395 results

  1. VEX Function Source Code

    Is there a way to find the source code for a specific built-in VEX function?
  2. Brick wall tool works when moving the spline in x and z direction but when moved upwards the rotation of some of the bricks is rotated in a strange way. BrickWall.hipnc
  3. HOUDINI TREE RIG LIBRARY

    TD - TREE RIG LIBRARY Beta Version Some Feature * procedural rig for any tree model * tree model library and ease to use ui * live connect to speed tree * fast instancing features * redshift compatibility and mantra Pateron PAGE : https://www.patreon.com/standingmanfx FB : https://www.facebook.com/standingmanfx/
  4. Hey guys, I never got how does a foreach works in vex (at all!), can someone please explain me this? It does the same thing as the For-Each Loop node?
  5. hello, i have a curve in 3d space with an organic shape and i want to resample it so it becomes jagged but maintaining its features. So i was thinking i should compare the tangent value of each point with its next one and if the difference is big it means the curve is changing direction so i keep that point. If there is no big change in direction i remove points. But i have no idea how to implement this in Vop or Vex, i am new to Houdini. Any ideas?
  6. Hi, I was shaping a hex nut with VEX when two geometry questions arose: How can I mathematically define the offset from a circle to an n-gon? Currently I am multiplying by a magic number: sin(u_mod) * 0.12. How can I multiply vectors so they end up on an infinite plane defined by a position and a normal? Kind of what planepointdistance() does, but rather intersecting the plane with the points vector than just returning the closest position on the plane. Also I would not want to shoot rays around but rather set this mathematically. Here is how I deform the tubes outer points at the moment: float u = atan(v@P.z, v@P.x); float u_mod = abs(sin(u * 3)); float u_fit = fit01(u_mod, 0.75, 1.0); vector nml_flat = normalize(v@N * {1, 0, 1}); v@P -= nml_flat * sin(u_mod) * 0.12; v@P.y *= u_fit; Thank you! hex_nut.hiplc
  7. Hi, I wrote a factorial function in vex but the calculations break down after 12!. I am using Houdini 17.0.416 and I thought vex now can calculate up to 64bit. Is this something that needs to be enabled somewhere or am I doing something wrong? I am trying to do this in a detail attribute wrangle. Thanks
  8. I'm running a for-each-connected loop, and need to rotate separate shape such that the largest face is down, for example the one marked L is the largest for the shape in the image. I have a theoretical idea, no clue how to implement it, and not sure if there is a faster or simpler way: (1) get the largest face (no idea how) (2) rotate till the normal of the largest face is facing down Again it's too theoretical, but if you have a way that would turn these flat on they largest face I'll be grateful
  9. Object Fold Unfold

    Hello, Looking to make a similar effect http://www.tokeru.com/cgwiki/?title=Houdini#Unfolding_polys However, currently the effects works on faces (per-face) Is it possible to achieve the same but on islands or name attribute instead of face? Basically, the desired effect would be to unfold based on the color marked islands/groups. any suggestions or help please. Ipad_Cut.hipnc
  10. primpoints hELP

    I have multiple lines, 25 primitives all containing a wide range of points. I want to append each point to a group depending on the primitive number. My initial code looks like this, int poop[] = primpoints(0,0) foreach(int i; poop) { i@group_primnum_0 = 1; } This function grabs all of my points, when I only want specific points for each primitive to create groups out of. How can I make this procedural to loop over all of my primitives and assign each array it's own group id? Thanks! Still new to vex >:{|
  11. Roll-up curve

    Hi there, here is my attempt to solve "Roll-up Curve" in single wrangle node scene file available on Patreon: https://www.patreon.com/mkgrafics RollnRoll_1_1_1.mp4 RollnRoll_3.mp4 parameters.mp4
  12. Orient noise pattern along vectors

    I aligned vector directions towards some curves (ie. outer edges). How would I orient a stretched noise pattern accordingly? oriented_noise.hiplc
  13. For each POINT in each GROUP

    Hello guys I am still quite new in VEX coding and I am all day fighting with set of gravitational rules based on a membership of the points in groups. I am emitting particles, the particles are sorted to groups by 3-6 nearest points. So after couple of frames of emitting particles I have 100 groups and each groups has 3-6 points. Now I need to set some gravitational rules for every group so the points in every group will be attracted to each other just inside the group. I got stuck here. If anyone has any idea how to solve this issue, it would be perfect. Many thanks in advance. ap_ParticleGravitationalAttraction_01.hipnc
  14. Change a curve basis in VEX?

    I'm dealing with curve sampling these days and one thing I would like to is to set curves' basis through vex. But seems such is not possible, if I'm seeing correctly that those prim intrinsics are not editable: I can use indeed the Basis SOP to read the current basis and then edit what I want, I guess I could even pass a detail attribute to this field with a string generated in VEX... But not the most procedural way and doesn't allow specification per primitive. Anyone else been through this? Cheers
  15. Hello guys ! I noticed that in vex, if you modify an attribute and then read it back using the point() function (or prim(), or anything not using the @ nomenclature), it will return the input value, not the modified one. See this code, running over Detail vector thePos = point(0, "P", 0); // Input point's pos is {0,0,0} thePos += {1,2,3}; setpointattrib(0, "P", 0, thePos); thePos = point(0, "P", 0); printf("%d ", thePos); // Prints {0,0,0} instead of {1,2,3} I mean, even this code doesn't work ! No input, running over Detail addpoint(0, {1,2,3}); vector thePos = point(0, "P", 0); printf("%d ", thePos); // Prints {0,0,0} instead of {1,2,3} But interestingly enough, when running over Points (or prim or whatever), this happens //Input is one point, at {0,0,0} @P += {1,2,3}; vector thePos = point(0, "P", 0); printf("Real pos : %d\n", @P); // Prints {1,2,3} printf("Problem pos : %d\n\n", thePos); //Still prints {0,0,0} Not sure what that means, but it can't be applied in my case, as I need to run over Detail. Just wanted to point it out. I need to be able to modify some point attributes (pos and others) and then read them back when running over Detail. How can I do that ? Is it possible ? Thanks in advance ! point_old_value.hip
  16. Add points to a primitive

    Hello ! Plz, anybody help me with this problem: I want add a point to a primitive ,but i dont want add it in world space only! How i can add points on a primitive surface by vex? Thx! P.S. In this image points was added by vex in world space ,but they dont belong to any primitive. sad.
  17. VEX and HOM in external editor

    Hi, Just thought in ask if anyone knows of an external editor with vex and HOM libraries in them. You know to lazily have autofill and nice colors in an external editor (visual studio maybe??) Just kind of hoping that more advanced programmers here will have a better set up than mine
  18. Hey magicians, excuse my VEXnorance but: How can I push the green colors while keeping red ones in original position? also tried to add a distance slider but it moves all the points. Lastly im thinking about how to add more density points on the green part, depending on z distance Thanks!
  19. Help! to vex

    hey i have a vex there turns the color of RBD object in to red on impact. but here comes my problem, i can't find a way to turn it green one frame after the object have turn to red. anyone there can help me with that. and here is the vex i am using. if (@hit_total == 0) { @Cd = set(0.10,0.0275 ,0); } else { @Cd = set((@hit_total+@id+5), 0, 0); }
  20. PolyExtrude in VEX

    Hi, I've been wondering if anyone tried to recreate the polyextrude sop in vex? I'm particularly interested in the inset function of the sop, and how one would go about recreating this in vex. Any ideas? Thanks in advance.
  21. Creating points vex

    Hello; I have been creating points in a attribute wrangle set to run over detail. I typed in addpoint(0,{0,0,0}); which simply adds a point at the origin. That's what I have been doing until today when I noticed in the entagma video they type in int pnt0 = addpoint(0,{0,0,0}); What is the benefit of creating a int first vs. the way I have been doing it? Thanks
  22. Hi Guys, For a tool i'm working on i need the radius of my metaball to be affected by the size of a painted region from a terrain, can anybody suggest how this would be done? It needs to change as the user paints but i'm getting stuck on the exact terminology of the code i would need to type into the region field on the metaball, this is what i currently have typed into the radius field on the metaball but it isn't working: getpointbbox_size(/obj/leaf_pile/"bound1", 0) Any suggestions would be greatly appreciated!
  23. I have an attribute wrangle SOP running over points, in which I need to read the value of a detail attribute for every point. This seems fairly straightforward using the supplied attribute functions, but I can't get the behavior I need. Below is a simplified version of my VEX code, with calls to printf for testing. The geometry it's running over has an integer detail attribute called "last_clean." printf( "last_clean=%d\n", int(detail( 0, "last_clean"))); printf( "ptnum=%d\n", @ptnum ); if( detail( 0, "last_clean" ) == @ptnum ){ printf( "test\n"); //do stuff in this loop } and here's the output: last_clean=0 ptnum=1 ptnum=2 ptnum=3 ptnum=4 ptnum=5 ptnum=6 ptnum=7 ptnum=8 ptnum=9 ptnum=10 Note the lack of "ptnum=0" or "test." The only rationale I can imagine for this is that the call to detail() turns the wrangle into a detail one for that iteration, thus making all references to @ptnnum basically meaningless (which still doesn't exactly explain why it only reads the detail attribute once). But I can't find anything in the documentation about this behavior of those functions or wrangles (what else is new...). Can this behavior be changed? Is there a stupid error I'm missing? The wrangle is in an orange for loop block if that's relevant. Thanks for your help!
  24. Manipulating points with noise (vex)

    Hey y'all, very new to Houdini here and I feel like i'm missing something obvious. So i'm trying to create a line of points to be later turned into a polyline. I'm not having to much trouble making a straight line, but i'm trying to manipulate the points with noise but it seems to only be changing the position of the points in a linear way. ie, they're only growing farther up, not really 'wandering' in other directions. Any help would be appreciated, thanks! VEX vector pos; //vector rand; vector growthpos = normalize(chv("growthposition")); int numsteps= chi("numsteps"); vector wander = (noise(pos+1)); float wandermag = chf("wandermag"); for(int i; i < numsteps; i++){ pos = growthpos * i; pos = pos * (wander * wandermag) ; addpoint(geoself(), pos); }
×