bkzed Posted December 6, 2012 Share Posted December 6, 2012 Hi I am new to Houdini but I have a working knowledge of Maxscript and MEL. I am currently working on a particle system where I need to adjust the each point size based on there distance from the camera, in another words I want my points to decrease or increase there size as I move camera to near or far from them. any idea? thx Quote Link to comment Share on other sites More sharing options...
rich_lord Posted December 6, 2012 Share Posted December 6, 2012 Hello Ravi, you can do it like this by creating a distance to the camera attribute in VOPS, and then using that attribute to drive your scale value. scale_affected_by_distance_to_camera.hipnc Quote Link to comment Share on other sites More sharing options...
rich_lord Posted December 6, 2012 Share Posted December 6, 2012 Oh, sorry, I see you want to do this with a particle system. Heres a different file where there is a POPVOP in the particle sytem, creating a pscale attribute based on the distance to the camera. The popnet`s 2nd input is the point that the distance will be measured from - the camera in this example. The pscale attribute is built in, so the copy node at the SOP level picks it up automatically without any copy stamping. pscale_from_camera.hipnc 2 Quote Link to comment Share on other sites More sharing options...
bkzed Posted December 6, 2012 Author Share Posted December 6, 2012 Hi Richard, this is exactly what I want. many thanks for hip file! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.