{"id":590,"date":"2022-08-22T14:29:26","date_gmt":"2022-08-22T21:29:26","guid":{"rendered":"http:\/\/fx-td.com\/houdiniandchill\/?p=590"},"modified":"2022-08-22T14:56:03","modified_gmt":"2022-08-22T21:56:03","slug":"archived-post-by-sniperjake945-13","status":"publish","type":"post","link":"http:\/\/fx-td.com\/houdiniandchill\/2022\/08\/22\/archived-post-by-sniperjake945-13\/","title":{"rendered":"Archived post by SniperJake945"},"content":{"rendered":"<p class=\"\">you can get some neat effects by adjusting the above code too, like a weighted max, with just a constant y value for the gradient can give you this like pillars rising up effect: &#8220;`c vector g = volumegradient(1, 0, @P); \/\/taking the gradient from the second input,<br \/>\nfloat intensity = ch(&#8220;intensity&#8221;); float dx = length(<a href=\"mailto:v@dPdx\" >v@dPdx<\/a>); \/\/voxel size; g *= dx; \/\/scale our vector by voxel size float samples = chi(&#8220;samples&#8221;); float out_val = @density; float weights = 1.0; for(int i = 0; i <= samples; i++){     float u = i \/ float(samples); \/\/0 -> 1     vector sample_p = <a href=\"mailto:v@P\" >v@P<\/a> + g * u * intensity;     float value = volumesample(0, 0, sample_p);     float w = smooth(-.1, 1, 1 &#8211; u); \/\/in theory this should be a gaussian, because its a better falloff, but yolo     out_val = max(out_val,value * w); \/\/weighted max<br \/>\n} @density = out_val;\/\/ \/ weights; &#8220;`<\/p>\n<p>Attachments in this post: <br \/><a href=\"http:\/\/fx-td.com\/houdiniandchill\/wp-content\/uploads\/discord\/20222908\/22\/22\/unknown.png\">http:\/\/fx-td.com\/houdiniandchill\/wp-content\/uploads\/discord\/20222908\/22\/22\/unknown.png<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>you can get some neat effects by adjusting the above code too, like a weighted max, with just a constant y value for the gradient can give you this like pillars rising up effect: &#8220;`c vector g = volumegradient(1, 0, @P); \/\/taking the gradient from the second input, float intensity = ch(&#8220;intensity&#8221;); float dx = &hellip; <a href=\"http:\/\/fx-td.com\/houdiniandchill\/2022\/08\/22\/archived-post-by-sniperjake945-13\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Archived post by SniperJake945<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-590","post","type-post","status-publish","format-standard","hentry","category-hou-general"],"_links":{"self":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts\/590","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/comments?post=590"}],"version-history":[{"count":0,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts\/590\/revisions"}],"wp:attachment":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/media?parent=590"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/categories?post=590"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/tags?post=590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}