nuki Posted November 7, 2018 Share Posted November 7, 2018 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? Quote Link to comment Share on other sites More sharing options...
davpe Posted November 8, 2018 Share Posted November 8, 2018 (edited) it will work but only with geometry stored on disk. geometry referencing in shaders in general only works if stored on disk. Edited November 8, 2018 by davpe Quote Link to comment Share on other sites More sharing options...
3dome Posted November 9, 2018 Share Posted November 9, 2018 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 1 Quote Link to comment Share on other sites More sharing options...
davpe Posted November 10, 2018 Share Posted November 10, 2018 (edited) 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 November 10, 2018 by davpe Quote Link to comment Share on other sites More sharing options...
3dome Posted November 12, 2018 Share Posted November 12, 2018 (edited) At least pointcloud stuff worked even back in 15.5. https://www.youtube.com/watch?v=eOWUJZ1vsFU from 25:50 on it is demonstrated If working with intersect() is new I can't say, but I don't think so Edited November 12, 2018 by 3dome 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.