Jump to content
Sign in to follow this  
isah_voodoo

intersect function and Normal

Recommended Posts

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

Share this post


Link to post
Share on other sites

vector p, uv;
int hitPrimIndex = intersect(0,@P-(@N*0.001), -@N*100, p, uv);
if (hitPrimIndex == -1){
    i@group_intersection =1;
}

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×