isah_voodoo Posted December 31, 2019 Share Posted December 31, 2019 Hello I am working thorugh this rock modelling tutorial here: I am at the part 15:28 where he fixes the intersecting geometry using an intersect function. The code he writes is: vector p, uv; int hitPrimIndex = intersect(0,@P-@N*0.001), -@N, p, uv); if (hitPrimIndex == -1){ i@group_intersection =1; } For some reason it is not working for me. He is working with prims but he is plugging in the N attribute which is points. For some reason it works for him but not for me. I will attach my file for anyone that wants to take a look Thank you intersection_vex.hipnc Quote Link to comment Share on other sites More sharing options...
Librarian Posted December 31, 2019 Share Posted December 31, 2019 vector p, uv; int hitPrimIndex = intersect(0,@P-(@N*0.001), -@N*100, p, uv); if (hitPrimIndex == -1){ i@group_intersection =1; } Quote Link to comment Share on other sites More sharing options...
isah_voodoo Posted December 31, 2019 Author Share Posted December 31, 2019 @LibrarianThank you 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.