{"id":1082,"date":"2026-02-20T16:59:17","date_gmt":"2026-02-21T00:59:17","guid":{"rendered":"http:\/\/fx-td.com\/houdiniandchill\/?p=1082"},"modified":"2026-02-20T17:08:25","modified_gmt":"2026-02-21T01:08:25","slug":"archived-post-by-ogvfx-4","status":"publish","type":"post","link":"http:\/\/fx-td.com\/houdiniandchill\/2026\/02\/20\/archived-post-by-ogvfx-4\/","title":{"rendered":"Archived post by ogvfx"},"content":{"rendered":"<div class=\"postie-post\">\n<p class=\"\">This is something I learned at dreamworks awhile back to do pscale to pixel calulations from camera.<br \/>\nit creates a uv on the particles coming in on the second input then used the cameras info to calculate the pscale at a pixel level.<br \/>\n&#8220;`\/\/get camera details float aperture = chf(&#8220;aperture&#8221;);     \/\/ ch(chsop(&#8220;..\/camera&#8221;) + &#8220;\/aperture&#8221;) float focal = chf(&#8220;focal&#8221;);&#8217;     \/\/ ch(chsop(&#8220;..\/camera&#8221;) + &#8220;\/focal&#8221;) float resolution = chf(&#8220;resolution&#8221;);     \/\/ ch(chsop(&#8220;..\/camera&#8221;) + &#8220;\/resx&#8221;)+1 \/ 1 float pixel_width = chf(&#8220;pixel_width&#8221;);     \/\/ ch(&#8220;..\/paticle_pixel_size&#8221;)     \/\/ this gets used to increase or decrease based on a pixel default of 1 is set to 1 pixel<br \/>\n\/\/get uv camera vector camUV = point(1,&#8221;uv&#8221;,@ptnum);<br \/>\nfloat uvZ = camUV.z;<br \/>\n \/\/calculate camera scale<br \/>\nfloat cameraScale = (aperture\/focal\/resolution) ;<\/p>\n<p>\/\/set new pscale if(ch(&#8220;..\/pscale_operation&#8221;)==0) <a href=\"mailto:f@pscale\">f@pscale<\/a> = uvZ * cameraScale * (pixel_width*.5);<br \/>\n\/\/multiply pscale<br \/>\nif(ch(&#8220;..\/pscale_operation&#8221;)==1) <a href=\"mailto:f@pscale\">f@pscale<\/a> *= uvZ * cameraScale * (pixel_width*.5); &#8220;`<\/p>\n<p>Attachments in this post: <br \/><a href=\"http:\/\/fx-td.com\/houdiniandchill\/wp-content\/uploads\/discord\/20265902\/20\/26\/nxplayer.bin_96rUEVP4Kb.png\">http:\/\/fx-td.com\/houdiniandchill\/wp-content\/uploads\/discord\/20265902\/20\/26\/nxplayer.bin_96rUEVP4Kb.png<\/a><br \/><a href=\"http:\/\/fx-td.com\/houdiniandchill\/wp-content\/uploads\/discord\/20265902\/20\/26\/nxplayer.bin_naczKWgDws.png\">http:\/\/fx-td.com\/houdiniandchill\/wp-content\/uploads\/discord\/20265902\/20\/26\/nxplayer.bin_naczKWgDws.png<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>This is something I learned at dreamworks awhile back to do pscale to pixel calulations from camera. it creates a uv on the particles coming in on the second input then used the cameras info to calculate the pscale at a pixel level. &#8220;`\/\/get camera details float aperture = chf(&#8220;aperture&#8221;); \/\/ ch(chsop(&#8220;..\/camera&#8221;) + &#8220;\/aperture&#8221;) float &hellip; <a href=\"http:\/\/fx-td.com\/houdiniandchill\/2026\/02\/20\/archived-post-by-ogvfx-4\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Archived post by ogvfx<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts\/1082"}],"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=1082"}],"version-history":[{"count":0,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts\/1082\/revisions"}],"wp:attachment":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/media?parent=1082"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/categories?post=1082"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/tags?post=1082"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}