Jump to content

rendering points with a fixed pixel size


jonp

Recommended Posts

Is there any way to render points using Mantra at a consistent image pixel size, regardless of their distance?

In a shader, it would be something like:

max(1e-6,width*Pz);

But because this has to happen at the attribute level, you'll have to calculate Pz in SOPs when assigning the width attribute. (BTW, Pz represents the distance to the camera plane, not to the center of projection).

Link to comment
Share on other sites

Is there any way to render points using Mantra at a consistent image pixel size, regardless of their distance?

Not at the flick of a switch, nope.

But you could project the points onto a plane in front of camera, perhaps? (Be careful of velocity motion-blur, of course)

Or you could change the width of the points to counteract perspective? (EDIT: Mario answers this, I see)

Cheers,

Jason

Link to comment
Share on other sites

I guess that's the way to go, but to keep it from being dependent on any particular camera, I'd need have access to some kind of variable that tells where the Eye is in SOP space.

Yeah, you could construct a SOP HDA that you can point to your render camera. (Magic math not included;))

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...