I want to use dot product to calculate points and neighbours points normal on same geometry,
try to make some effect like ambience occlusion.
I've use array and for loop to try to find them, but it {0,0,0}...
I know that I can use mask by feature node to get ambience occlusion,
but I just want to know how to get neighbours point normal.
Can someone tell me how to fix it?
And sorry for my english.
int pt_neighbors[] = neighbours(0, @ptnum); int num_neighbors = len(pt_neighbors); vector myNormal = point(0, "N", @ptnum); for (int i = 0; i < num_neighbors; ++i) { int neighbor = pt_neighbors[i]; v@neighborNormal = point(0, "N", neighbor);//it's {0,0,0} f@dot =dot(myNormal, @neighborNormal); }