Jump to content
nuki

intersect() inside material builder

Recommended Posts

Inside a material builder I would like to use the intersect() function. As I couldnt get it to work with the op:/obj/path_to_mesh syntax or any other way I was wondering if using intersect() is even possible in mat context? Also, is there a simple way to return the scene path to the geo the current sample belongs to?

Share this post


Link to post
Share on other sites

it will work but only with geometry stored on disk. geometry referencing in shaders in general only works if stored on disk.

Edited by davpe

Share this post


Link to post
Share on other sites
On 11/8/2018 at 4:24 AM, davpe said:

it will work but only with geometry stored on disk. geometry referencing in shaders in general only works if stored on disk.

I'm not sure if that is always true.. have a look at this very simple example

dm_IntersectInSHOPs.hip

  • Like 1

Share this post


Link to post
Share on other sites
23 hours ago, 3dome said:

I'm not sure if that is always true.. have a look at this very simple example

dm_IntersectInSHOPs.hip

pretty interesting, was it always like this? i was doing some stuff with point clouds in shader and never could make this work in earlier versions. anyways i'm glad it works now :) 

Edited by davpe

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

×