Jump to content

Search the Community

Showing results for tags 'copy to points'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Lounge/General chat
    • Education
    • Jobs
    • Marketplace
  • 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 10 results

  1. Hi all, I'm going crazy trying to figure out what I thought was a simple and common problem to solve. I'm creating a walk-cycle of a man covered in flapping rectangles of paper. I'm scattering 1500 points over a mocap biped in a t-pose, interpolating the points on the animated version of the biped, creating a planar patch, defining pins, copying the planar patches to points, and then doing a cloth simulation with vellum (with biped and self collision). This all works just as suspected - awesome. The problem is, when I copy the planar patches to points they intersect with each other and they intersect with the biped on the first frame and stay like that as a result. I've tried a for each point loop with intersection analysis to remove planar patches that intersect but it would calculate on each frame (as opposed to only the first frame as I'd like) and was a big mess. I'm a novice and don't know what to do having spent a whole day trying to research/experiment. Please advise me on how to resolve this - would really appreciate it.
  2. Hi, So I've got a bunch of particles that die after 1 second. On these points I have geometry copied on it. The first second the geometry stays and the animation looks fine. But right after some particles start dying and are removed. The geometry jumps to other points and cause the animation to look weird and flickering. My guess is that if a geo is copied on pointnumber 1, and this point is deleted. Another point becomes number one and therefore the geometry jumps to that point. Both have a different id attribute. So I'd rather want the geometry being copied by @ID instead of the pointnumber. So that when that point dies the geometry is removed too. How can I do this? I've added an example file. Particle Copy example.hipnc Thanks in advance M Particle Copy example.hipnc
  3. I have a simple set up that is copying multiple files from a switch node into a copy to points loop and randomizing them. I would now like to export them out of Houdini so I can use them in my C4D Scene, however when I export them out they all come in as one object. Is it possible to export them out as one object, but when I open them in C4D they are split into sub objects by the file name I am using in Houdini? I have tried using an unpack node, but houdini is saying there isn't any packed geometry. Any insight or advice would be appreciated.
  4. Hello everyone! I am trying to do a simple thing but it seems like I am missing something. I want something similar to this: But instead of controlling it by pscale, I would like to take the bounds of my instancing objects and make them get away from each other if the bounds of the instanced object is bigger than the distance between the points, or maybe deleting them as well. I am trying to do this just to scatter some crowds in a field, is there is an easier way to do that, it would be nice to know as well as I am quite new to crowds. I am attaching a simple example file of what I am trying to do. Crowd_RND_01.hip
  5. After packing geometry, if I use this VEX snippet to edit the pivots I get predictable results: vector pivotOffset = chv("manual_pivot_offset"); vector pivotCentroid = primintrinsic(0, "pivot", @ptnum); vector newPivot = pivotCentroid + pivotOffset; setprimintrinsic(0, "pivot", @ptnum, newPivot); @P += pivotOffset; If I check "transform using point orientations" in the copy to points SOP and pack the copied geometry, the pivot will move according to the custom offset, but the object moves in a different direction. How can I solve this?
  6. Hi everyone. I have a RBD sim that falling some geo's. And I wanted to copy some geo's to their centers. But theese geo's has no rotation data. How can I copy the rotation data of sim ? I tried to tranfer orient and w attributes and it doesnt work as well.
  7. Hello guys, theese days I'm working on a project about swarm behaviour of fishes. I made a particle setup, than I copy to points node for change particles to animated abc. But I have an issue about it, the movement of fishes are so noisy. There is any way to do it make them smooth, and more natural. By the way, sorry for newbie question. Thanks for attention. fishes_swarm.mp4
  8. Hi, I`m trying to create a SOP node, that basically does the same thing as the copytopoints SOP in Houdini but with a Box deformation added to it. Now I was able to copy the detail from the second Input into the gdp, but I find myself unable to access the newly added geo to actually offset it to the corresponding point in the first input. I want to add that I am a noobie when it comes to HDK (as you can probably see) and any help is much appreciated and thanks in advance. OP_ERROR SOP_copyPTs::cookMySop(OP_Context &context) { OP_AutoLockInputs inputs(this); if (inputs.lock(context) >= UT_ERROR_ABORT) return error(); const GU_Detail *firstGDP = inputGeo(0, context); const GU_Detail *secondGDP = inputGeo(1, context); UT_AutoInterrupt progress("still copying..."); duplicateSource(0, context); GA_RWHandleV3 Phandle(gdp->findAttribute(GA_ATTRIB_POINT, "P")); GA_Offset firstPToff; GEO_CopyMethod copymethod = GEO_COPY_ADD; GA_FOR_ALL_PTOFF(firstGDP, firstPToff) { if (progress.wasInterrupted()) break; gdp->copy(*secondGDP, copymethod, true, false, GA_DATA_ID_CLONE); UT_Vector3 Pvalue = Phandle.get(firstPToff); } Phandle.bumpDataId(); return error(); } i got it to work! (propably a pretty bad way to do it but it works) (orientation is working as well now but its not in the code down below) I am still very interested how experienced users would have written it. :S GA_FOR_ALL_PTOFF(firstGDP, gridPoints) { if (progress.wasInterrupted()) break; GU_Detail *newgdp = new GU_Detail(); GA_RWHandleV3 newPhandle(newgdp->findAttribute(GA_ATTRIB_POINT, "P")); newgdp->copy(*secondGDP, copymethod, true, false, GA_DATA_ID_CLONE); GA_Offset spherePoint; UT_Vector3 pointPos = Phandle.get(gridPoints); GA_FOR_ALL_PTOFF(newgdp, spherePoint) { UT_Vector3 spherePos = newPhandle.get(spherePoint); UT_Vector3 addedPos = spherePos + pointPos; newPhandle.set(spherePoint, addedPos); } gdp->copy(*newgdp, copymethod, true, false, GA_DATA_ID_CLONE); }
  9. Hi, I'm trying to randomize the uniform scale of some spheres which are being copied to points. However, nothing I've tried is working. The best result is using a transform node, but all the spheres merely scale to the first parameter and ignore any type of randomization. The attached file currently has an app wrangle using some vex to randomize pscale that was defined in an att created node, but it's throwing errors I don't understand how to fix. Thanks in advance... wk5_terrain-02.hipnc
  10. Hi there! I am trying to make a simple example of RBD, so I duplicate the Pighead using copy to points and I want to see them crashing with the objects, but they are all stick together and I don't know how to make them to collision individually. Any clue? I hope you understand what I'm trying to do, I have attached my scene. thank you all! test.hipnc
×