jonp Posted September 18, 2008 Share Posted September 18, 2008 Is there any way to render points using Mantra at a consistent image pixel size, regardless of their distance? Quote Link to comment Share on other sites More sharing options...
Mario Marengo Posted September 18, 2008 Share Posted September 18, 2008 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). Quote Link to comment Share on other sites More sharing options...
Jason Posted September 18, 2008 Share Posted September 18, 2008 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 Quote Link to comment Share on other sites More sharing options...
jonp Posted September 18, 2008 Author Share Posted September 18, 2008 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. Quote Link to comment Share on other sites More sharing options...
Jason Posted September 18, 2008 Share Posted September 18, 2008 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;)) 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.