Jump to content

Leaderboard


Popular Content

Showing most liked content on 06/04/2018 in all areas

  1. 1 point
    Here is another cartoon shader based on lambertian shading and a color ramp. And a quick tutorial on it, as well: cartoon_shader_4.hiplc
  2. 1 point
    Hello, Create a new node change the settings to the default you would like, and then go to the gear menu in the parameter dialogue and save the "Permanent Default". Do not worry this does not change how it "Permanently" it will save an .idx file in your personal preference. You can remove or move that .idx from your personal preference to anywhere in the $HOUDINI_PATH in order to distribute it through out your project. There are even are even more zanier ways to change the default preference, but that is the most robust and simple in most cases. -Ben
  3. 1 point
    I reworked my solution upon realizing that the ignore pivot attribute tickbox was still there. Much easier now, but let me know if for whatever reason it doesn't work for you. Kind of came at the problem in a very nonlinear fashion, so I may have missed some steps in trying to draft up a linear solution.
  4. 1 point
    Generally speaking you should set system and other environment variables not related to Houdini in the shell, or to the system, before launching Houdini. You should not use Houdini.env for production use like that. I do not believe it will let you set non houdini environment variables. Plus there is no reading from the Houdini.env . Though that would be easy to test pretty quickly if something has changed. Usually having a python like wrapper that injects all the variables into a shell prior to launching is the best. As you can use this same system on other DCC too. Also side note, If you are messing with $HOME you should try and use $HOUDINI_USER_PREF_DIR instead. There are some known programs that do try and use $HOME, which is why SESI made the $HOUDINI_USER_PREF_DIR so you don't break other stuff. Hope that helps
  5. 1 point
    Ok now I'm trying to constrain the growth within a letter but also copy it over multiple scattered points on the letter. It seems to work fine except on the for each, it translates all primitives instead of having the 3 groups starting from the origin. I can't really visualize how I could achieve this, I tried to have the copy to points before the copy/transform but the scale is relative to the SOP centroid. loopcopy to points.hipnc
  6. 1 point
    You can add the SSS Samples Property to geometry objects: Now when you render, you'll get more samples on the objects where you need it. Pixel Samples are the one property that can only live at the object level; there are probably others, but that's the only one I can remember. Here's some documentation: http://www.sidefx.com/docs/houdini/props/_index per_obj_sss.hipnc
  7. 1 point
    You basically just create a random integer attribute using a wrangle. Then stamp that into the index of a switch. ap_rnd_switch_stamp.hiplc
  8. 1 point
    I need to load density texture from cop network but gives error, only works with files. Sorry i didnt explain well ap_cop2scat.hipnc
  9. 1 point
    Thanks for the tip @acey195 and @petz thanks for the solution. Here is the quick VEX snippet that I tested, works a treat! // Get Lines vector A = point(0, "P", 0); vector B = point(0, "P", 1); vector C = point(1, "P", 0); vector D = point(1, "P", 1); // Calculate Line Vectors vector AB = B-A; vector CD = D-C; // Calculate To Vector vector toVec = A - C; // Calculate Intersection vector vecx = cross(AB, CD); float val1 = dot(vecx, cross(CD, toVec)); float val2 = dot(vecx, vecx); vector pos = A + (val1 / val2) * AB; addpoint(0, pos);
×