Jump to content

blackchicken

Members
  • Content count

    318
  • Donations

    0.00 CAD 
  • Joined

  • Last visited

  • Days Won

    1

blackchicken last won the day on February 14 2015

blackchicken had the most liked content!

Community Reputation

13 Good

About blackchicken

  • Rank
    Illusionist

Personal Information

  • Name
    jan
  1. Krakatoa in vex

    Hello, I`m working on Ink style effect. I would like to add point in between two (or more) nearest existing points, interpolate velocity and push new point slightly in vel direction, to have little bit more circular interpolation. That works well, better than point jitter or different cheap techniques. I would like to still fell motion from original sim. But I stuck on duplicated positions of some points, which is logical, other points can have similar near point. So I would like to add some counter, so if there were pair in past, don`t create new point. We are talking about millions of new points, so I need it as cheap and straight forward as possible. Basic idea, with some new points duplicated: float maxDistance = chf("maxDistance"); float minDistance = chf("minDistance"); int maxPoints = chi("maxPoints"); int nearPnts[] = nearpoints(0,@P,maxDistance, maxPoints); foreach (int pnts; nearPnts){ float distance = distance(point(0,"P",pnts), @P); if (distance > minDistance){ vector nearPos = point(0,"P", pnts); vector nearVel = point(0,"v", pnts); vector centerPos = lerp(nearPos, @P, 0.5); vector centerVel = lerp(nearVel, @v, 0.5); centerPos += centerVel * chf("pos_offset"); int newPoint = addpoint(0,centerPos); setpointattrib(0,"v",newPoint,centerVel); setpointattrib(0,"id",newPoint,@id*1000); setpointattrib(0,"newBorn",newPoint,1); } } I`m trying to add some counter ("tested") but seems like I cant read this attribute and my head is twisted I can see in spreadsheed, that "tested" has some range, so I need to connect with it. Any idea? Thanks a lot float minDistance = chf("minDistance"); int maxPoints = chi("maxPoints"); i@tested = 0; int nearPnts[] = nearpoints(0,@P,maxDistance, maxPoints); foreach (int pnts; nearPnts){ float distance = distance(point(0,"P",pnts), @P); setpointattrib(0,"tested",pnts,1,"add"); if (distance > minDistance && point(geoself(), "tested", pnts) == 1){ vector nearPos = point(0,"P", pnts); vector nearVel = point(0,"v", pnts); vector centerPos = lerp(nearPos, @P, 0.5); vector centerVel = lerp(nearVel, @v, 0.5); centerPos += centerVel * chf("pos_offset"); int newPoint = addpoint(0,centerPos); setpointattrib(0,"v",newPoint,centerVel); setpointattrib(0,"id",newPoint,@id*1000); setpointattrib(0,"newBorn",newPoint,1); } }
  2. Curve selection with near point

    Thanks a lot Tomas, that`s exactly what I`m looking for. I was lost in different loops but I knew there`s some really simple solution, like that one.
  3. Hello I`m searching for most effective way how to select (pair together) only one nearest curve of specific scattered point. I have T-pose baked curves (Fur curves, million of points) and I need to simulate them. I`m separating longest lines, where sim will be visible, then I`m scattering points on given surface (skin) with scatter relax, so I have nice, even distribution of points. Now, I cant find nice way, how to separate only one curve with nearest distance to specific scattered point. In the end Ill have same number of curves as my scattered points. Little scene attached. Also second step will be most efficient way how to transfer simulated guides back to baked Hi-res furs. Point deform is quick way but I`m looking for something super efficient. Don`t need extra details with transferring per guide, I`m looking for speed. Point cloud with radius with blending position is best bet? What do you think? Thanks a lot for ideas. curve_selection_v01.hipnc
  4. Camera menu, hide cameras

    That`s perfect, I knew it is possible. Your mine guardian angel for many years So when you`ll come back to Prague?
  5. Hello, I think I saw it somewhere, but cant remember, and cant find some info about it. I have a ton of cameras as gizmo for UV projection for Vray materials. I would like to hide them in camera menu and want to see only cam_render. Is there some way? Otherwise, it will be total mess if I have like 80 custom projections. Thanks for tips.
  6. Python setHSV

    Thanks a lot Symek, still soo much to learn
  7. Python setHSV

    Hello I`m stuck with setting correct color to nodes. I would like to set value with HSV. I want to do slight automatic gradient when I creating nodes in network box this one work in RGB: my_list = [nullA, nullB, nullC, nullD] loop = 0 nodePos = -1 for node in my_list: node.setColor(hou.Color(0.3, 0.5 * loop, 0.8)) node.setPosition(hou.Vector2(0, loop * nodePos)) loop += 1 but cant find the way how to set values with HSV, from doc should be something like this: my_list = [nullA, nullB, nullC, nullD] loop = 0 nodePos = -1 for node in my_list: node.setColor(hou.Color().setHSV(50, 0.5 * loop, 0.8)) node.setPosition(hou.Vector2(0, loop * nodePos)) loop += 1 Thanks for help, Jan
  8. WIP - ok++'s softbodies RnD + .hip files

    I just want to say thanks for sharing, there`s a ton of very useful information, simple, yet very powerful techniques. Exactly what ours supervisors wants from us every day
  9. Bullet penetration

    Hello I have scattered points, a lot of them and I copy some simple objects, which represents roughly my Hires Geo. Problem is, that whole system is procedural, so I never know if Ill be simulating 20k or 50k objects. Ofcourse more objects, more penetration on first frame. So I have an idea, to do a small sim, where on couple of frames play new bullet sim and all penetrating objects will move until theres no penetration (say time shift 10-20f). Then I`ll start my main sim without penetration (a lot of different constraints, some groups of active objects.....) But problem is, that bullet do nothing even there`s a lot of penetration. I cant find any parameter in bullet solver, rbd packet prim, which will help me. Ofcourse Ill be happy to hold main shape as close to original as possible. There is simple scene. Thanks a lot. bullet_penetration.hip
  10. Sails and ropes

    Thanks for answer. Main thing which makes me sad is that Drag does not work, i need nice subtle realistic motion of cloth. I have no problem with FEM cloth and speed I can handle this, but movement is problem now.
  11. Sails and ropes

    Hello I have some scenes with lot of sails and ropes. I`m solving two problems: 1, Cloth speed in Houdini.... you know,but I have problem move cloth realistically. There`s tab Drag in Cloth Object, but it does not work. I can set External Velocity Offset which I want, but there`s no change in sim. As I understand, it`s basic cloth regular wind force. With 3+ DOP fans I don`t have good results. Drag tab should be something like maya Ncloth default wind right? 2, Ropes. Which technique I should use? I need ropes to collide with clothes, two ways. One way is simulate ropes alone and then collide with cloth, so ropes deform clothes. Other way is simulate all together. I`m very new in grains, is this a possible way? I still thing specific parameters for cloth is better but problems with wire colliding, tiny sheets of cloth does not work too. What do you thing? I will be happy stay in houdini and don`t want to simulate all in maya ncloth. Thanks a lot.
  12. Hello, I have a problem with delayed load. In previous versions, I have no problem with mantra rendering, if delayed load has missing frames (negative frames -> not simulated). But now, I have error and mantra don`t render. It is possible in mantra, turn off Missing frames report like in file SOP? There is option for Report Error or No Geometry. I cant find something like this in delayed load or in mantra settings. Thanks a lot.
  13. Cheap underwater bubbles from HOT

    Hello, some guys asks me on vimeo about this setup so here is little hip. Its different scene (I lost original ) but same setup. Hope someone helps. blackchicken_foam.hip
  14. Hello I have a problem with water level. I have really simple fluid conntainer, whitewater from shelf and simple collision object which is not inside fluid container at first frame. When I have low res sim, all is ok, water level is zero. But When I add resolution, after say 100 frames, my water level is bellow zero. A lot. Thats is problem because I collide with boat and need water level to be zero. I set particle radius scale to 1. Thats what do the problem? I need really Hi res sim around 100mil particles. Any idea helps Another problem which I found is that in some frame random particles onside all fluid container has some velocity, frame to frame. In places where nothing happening. It makes later problem with vel transfer. No big deal bud I dont like it. If anybody has same problem,let mi know. Thanks a lot.
  15. Export multiple nodes as FBX

    Grrr thats no good news Of course I collapse objct which I want export and then in fbx exporting only one node. Thats ok. But sometimes I have complicated scene, I have objects parented to another things, some fetch from differen node trees. Sometimes I cant collapse them. And what if I need export 50 different objects? Ben Ill try Bungles. Thanks a lot.
×