keltuzar Posted October 18, 2005 Share Posted October 18, 2005 Does anyone know how one can query information of the baked points in a point cloud? From the picture say I am using an illumination loop on point P and I need to calculate the distance from that point to the pointclouds points Pc over the distance D. Does anyone know what prman function I need to use to get that information? I know where is a filter radius in the texture3d function, but it doesnt give u the distance between the 2 points... PS: btw I am trying to implement Mario's sss code into a rsl code... Thanks in advance Quote Link to comment Share on other sites More sharing options...
Mario Marengo Posted October 18, 2005 Share Posted October 18, 2005 Hi there, I'm only now starting to get back to PRMan after being away from it for about 2 yrs., so I'm not up on all the latest-greatest features (including point clouds and brick maps). But after reading app-notes #39 and the updated #37, it would seem that the level of control that the pcunshaded()/pciterate() functions give you in VEX is just not possible using brick maps. The good news is that they've added the ptfilter program, which includes an implementation of Jensen's "Rapid Hierarchical etc" paper (i.e: subsurface scattering) without you needing to code it. So you just select among the predefined materials or pass it all the parameters and you're done... Of course, whether these parameters are intuitive or not is a different story, and having to experiment with material properties via a static pre-process pass could get, uhm, "tedious", but it's there... I guess you could use some form of gather() to emulate the point scattering, and then use bake3d() to both store the calculations and later look them up (as interpolated values). Don't expect this method (which incidentally I believe was the original method before brick maps showed up) to be a speed demon though. Maybe someone who's more up-to-date with PRMan can offer some better suggestions... Cheers. Quote Link to comment Share on other sites More sharing options...
keltuzar Posted October 18, 2005 Author Share Posted October 18, 2005 Thankyou Mario, Yes Ptfilter is awesome, it works great... BUT it takes a load of time to do it.... I will see what how one can use the gather funtions.... Thanks Quote Link to comment Share on other sites More sharing options...
rjpieke Posted October 19, 2005 Share Posted October 19, 2005 Does anyone know how one can query information of the baked points in a point cloud? From the picture say I am using an illumination loop on point P and I need to calculate the distance from that point to the pointclouds points Pc over the distance D. Does anyone know what prman function I need to use to get that information? I know where is a filter radius in the texture3d function, but it doesnt give u the distance between the 2 points... PS: btw I am trying to implement Mario's sss code into a rsl code... Thanks in advance 21945[/snapback] I'm pretty sure you're looking at having to write a custom shadeop using the PRMan API ... sorry. 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.