Welcome to od|forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

konstantin magnus

Members
  • Content count

    269
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by konstantin magnus

  1. Ah I see. Something like this? voronoi_cube.hipnc
  2. I still have to look into how to do it with volumes, but here is a quick setup using VEX. voronoi_cells.hipnc
  3. You can also append a ramp after a random VOP to control the ratio. random_ramp_vop.hipnc
  4. That´s what I thought, too. There are threads about this and even a dedicated page in the documentation: http://sidefx.com/docs/houdini15.5/network/best_practices
  5. How about selecting specific points and connecting them with findshortestpath?
  6. Once you are more advanced you could also shape the bottle using VOPs. bottle_2.hipnc
  7. You can push points, edges and primitives inwards with the (soft) peak node.
  8. You can also set a vertical grid to rows and put a code like this into a wrangle: float rad = chf('radius'); float rot = chf('rotation'); float time = chf('speed') * @Time; float prim = chf('offset') * @primnum; float surp = clamp(time - prim, 0, 1); float side = fit01(@ptnum % 2, -1, 0.2); float bbox = relbbox(0, @P).y * rot; float grow = rad * side * surp; @P.x = sin(bbox) * grow; @P.z = cos(bbox) * grow; helix_line_growth.hipnc
  9. Create a polyfill to close the holes for the time being, put them in a patch group under "Output Groups", and remove the primitives in "patch" group when you are done?
  10. It still occurs after updating. Python 2.7.6 (default, Oct 26 2016, 20:33:43) [GCC 4.8.4] on linux2 Houdini 16.0.633 hou module imported. Type "help", "copyright", "credits" or "license" for more information. >>> ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 34580) Traceback (most recent call last): File "/usr/lib/python2.7/SocketServer.py", line 593, in process_request_thread self.finish_request(request, client_address) File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python2.7/SocketServer.py", line 651, in __init__ self.finish() File "/usr/lib/python2.7/SocketServer.py", line 710, in finish self.wfile.close() File "/usr/lib/python2.7/socket.py", line 279, in close Can it be because I installed some Editor named PyCharm or because of the python version in use?
  11. When I start Houdini I recently get this error message in the Python console. Python 2.7.6 (default, Oct 26 2016, 20:33:43) [GCC 4.8.4] on linux2 Houdini 16.0.557 hou module imported. Type "help", "copyright", "credits" or "license" for more information. >>> ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 40274) Traceback (most recent call last): File "/usr/lib/python2.7/SocketServer.py", line 593, in process_request_thread self.finish_request(request, client_address) File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python2.7/SocketServer.py", line 651, in __init__ self.finish() File "/usr/lib/python2.7/SocketServer.py", line 710, in finish self.wfile.close() File "/usr/lib/python2.7/socket.py", line 279, in close self.flush() File "/usr/lib/python2.7/socket.py", line 303, in flush self._sock.sendall(view[write_offset:write_offset+buffer_size]) error: [Errno 32] Broken pipe ---------------------------------------- How can this be fixed?
  12. You can control the amount of displacement inside a pointVOP using noise with a displace along normal-node.
  13. It's just a start, but you could turn colorful points into quads and let them randomly overwrite each other. opus_pattern2.hipnc
  14. I guess its assuming a square shaped image. probably the height value has to be multiplied by the aspect ratio.
  15. I would like to write primvertexcount(0, @primnum)>4 directly inside the group field of a polyextrude node (expecting a substitute for $NVTX > 4). How can I make this work?
  16. float t = chf("Speed") * @Time; float s = chf('Spread') * @Time; @P += set(sin(t) * s, 0, cos(t) * s);
  17. Hmm ok, after reading jsmack`s post in your other thread about this on the SideFX forums this would be the code, I guess: string cam = chs('Camera'); vector res = chv('Resolution'); v@pos = toNDC(cam, @P); v@pix = @pos * res; What are you trying to do, anyways?
  18. This might not be entirely correct (it's late), but you can use the transform node in VOPs to convert from world space to camera space. Then setup a wrangle node like this: vector res = chv('res'); // Screen resolution float focal = radians(chf('Focal_length')); // Cameras focal length in radians float angle = 2 * atan(0.5 / focal); // View angle float frustum = 2 * -@P.z * tan(focal * 0.5); // Cameras frustum size depending on the distance vector screen = set( (@P.x / frustum) + 0.5, (@P.y / frustum) + 0.5, 0 ); // Relative screen positions v@screen_pixel = set(res * screen); // Absolute screen positions in pixels screen_pixel.hipnc
  19. corrected it ; )
  20. Yes, you could do something like: int grp = @Cd.r > 0.5; // returns 1 if red color above 0.5, 0 if 0.5 or less setpointgroup(0, "red_group", @ptnum, grp, "set"); // sets group if grp is 1
  21. Thank you. I will try.
  22. Good find! After a pointgenerate node I put this in a pointwrangle. The while loop draws new curve segments until num reaches 1. And dir defines where the curves bend to. int i = chi('steps'); float spread_l = chf('Left'); float spread_r = chf('Right'); i@num = @ptnum; vector pos = @P; vector dir = {0, 1, 0}; int prim = addprim(0, "polyline"); while(@num > 1 && i > 0){ i -= 1; // break if(@num % 2 == 0){ @num /= 2; dir.x += spread_r; } else{ @num = (@num * 3) + 1; dir.x -= spread_l; } dir = normalize(dir); pos += dir; int pt = addpoint(0, pos); addvertex(0, prim, pt); } collatz_conjecture.hipnc
  23. Laubwerk has great trees. www.laubwerk.com
  24. The group SOP still has a function for selecting borders, as well. Just activate "Include by edges" and check "Unshared Edges". border.hipnc
  25. Even easier: