are you in H20? 😮
github.com/jakericedesigns/Assorted-Houdini-Demos/tree/main/HeightfieldTerracing here’s a link to the hip file
are you in H20? 😮
github.com/jakericedesigns/Assorted-Houdini-Demos/tree/main/HeightfieldTerracing here’s a link to the hip file
“`c float radius = chf(“radius”);
float dia = volumevoxeldiameter(0, “height”) / sqrt(3);
int voxel_rad = ceil(radius / dia);
float height_max = f@height;
for(int i = i@ix-voxel_rad; i <= i@ix+voxel_rad; i++) { Â Â for(int j = i@iy-voxel_rad; j <= i@iy+voxel_rad; j++) Â Â { Â Â Â Â if(length2(set(i-i@ix, j-i@iy)) < voxel_rad*voxel_rad) Â Â Â Â { Â Â Â Â Â Â float height = volumeindex(0, "height", set(i, j, 0)); Â Â Â Â Â Â height_max = max(height, height_max); Â Â Â Â } Â Â } }
f@height = height_max; “`
There’s already an RFE about this when I was at SideFX(I think, its been a while)
for age yea you’ll have to implement that too – I guess that’ll be an RFE
Attachments in this post:
http://fx-td.com/houdiniandchill/wp-content/uploads/discord/20242301/14/24/vellum_autoid.hiplc
so heres One Weird Trick that Sim Folk Don’t Want You To Know
add a pop speed limit, and set a minimum speed
i found with default boid stuff in pops that particles can stop too easily, which ruins the look
if you don’t allow the particles to go below a certain speed, you get much more of that bird like motion
Attachments in this post:
http://fx-td.com/houdiniandchill/wp-content/uploads/discord/20241501/06/24/2024-01-06_12-57-02.mp4
Rediscover the whell I guess, fun exercise tho !
Attachments in this post:
http://fx-td.com/houdiniandchill/wp-content/uploads/discord/20234212/25/23/TraceC3D.gif
http://fx-td.com/houdiniandchill/wp-content/uploads/discord/20234212/25/23/sop_TraceContour3D.1.0.hdalc
here goes…
it creates a subdirectory named backup. saves a copy of your scene there named currentscenename_backup_timestamp.hip
then it does that every ten minutes.
and after it has written ten files it deletes the first one. so you have rolling loop of ten backup files. (to ensure your server is not full of files over night haha)
you can change update interval and number of stored backups really easily by just modifying the py file.
this in my opinion is how auto backup SHOULD work.
now it would be neat if it did not save files if the scene is unmodified. so that it does not make a lot of unneccessary saves. but I can live with that for now.
now this code is written by an idiot and chatGPT so do not blame me if it paperclips your machine
no more stupid overwriting of the original scene file. no broken links to caches from changes in filenames. just a straight backup if shit hits the fan.
Attachments in this post:
http://fx-td.com/houdiniandchill/wp-content/uploads/discord/20230112/24/23/456.py
most of the japanese houdini advent posts are online, like every year, some fried gold entries in there: qiita.com/advent-calendar/2023/houdini
Hello I’m Junichiro, working as a freelance programmer in Japan mostly for architectural, product and fashion design field. Thank you @mestela for the invite!