Jump to content

intersect function and Normal


isah_voodoo

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...