Jump to content

shading points with transparency changing with distance from the camer


Guest ravin

Recommended Posts

Guest ravin

I am attaching a file with spheres copied to particles, and I am applying a color to the spheres. Now I want to control the transparency of the spheres with the distance from the camera. So if a point is far it is less opaque than the ones in the front. How can I achieve this?

Basically I am trying to achieve a dusty volumetric look.

thanks,

dustRendering.hip

Link to comment
Share on other sites

BTW, with millions of particles this may be very slow to render. I don't know you exact intentions but from previous posts it seems you want to render lots of points? Perhaps I would be tempted to write out a Pz or opacity or alpha variable and doing something with it in compositing.

Edited by Macha
Link to comment
Share on other sites

Guest ravin

BTW, with millions of particles this may be very slow to render. I don't know you exact intentions but from previous posts it seems you want to render lots of points? Perhaps I would be tempted to write out a Pz or opacity or alpha variable and doing something with it in compositing.

I will try this technique with opacity coz i really need this for opacity. And yes you are right I am intending to render lots of particles. How do you write out the Pz or opacity variable in houdini and use it in compositing? I have no experience with this technique.

thanks,

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...