frankengen Posted January 23, 2015 Share Posted January 23, 2015 Hi i want have my points be reflective with a point normal.. Like this I tried tranfsering normals from a sphere with normal pointing out but it does not seem to work. Does anyone have any ideas or could anyone pleas send me an example scene. It would be much appreciated , thank you in advance Many thanks Frank 1 Quote Link to comment Share on other sites More sharing options...
koen Posted January 23, 2015 Share Posted January 23, 2015 Adding decent normals to a point cloud is pretty simple with an attrib wrangle sop, place this in the code: float max_distance = 1; int max_points = 50; int handle = pcopen(1 ,"P", @P, max_distance, max_points); @N = normalize(@P- pcfilter(handle, "P")); This point the normal away from the local average, works pretty well. Play with the max distance to match you scene scale. Cheers, koen 1 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.