Juraj Posted January 8, 2015 Share Posted January 8, 2015 Hello, I need quick help. In shader I want to test if point is in certain group. There is In Group node but it takes input parameter Geometry file. In vopsop I could set it to op:/obj/path/to/object but what expression should I write there to set it to shaded object? Thanks. Quote Link to comment Share on other sites More sharing options...
jkunz07 Posted January 8, 2015 Share Posted January 8, 2015 I don't think you can reference geometry via an expression in shaders. You have to write it to disk and specify a file path like $HIP/geo/test_group_$F.bgeo. Mantra is a separate program from Houdini, so it cannot access a certain sop's cached geo Quote Link to comment Share on other sites More sharing options...
Juraj Posted January 8, 2015 Author Share Posted January 8, 2015 Thanks Quote Link to comment Share on other sites More sharing options...
Robert Posted January 9, 2015 Share Posted January 9, 2015 You can also assign attributes to the group to identify them and test for those attributes in your shader. Quote Link to comment Share on other sites More sharing options...
Juraj Posted January 9, 2015 Author Share Posted January 9, 2015 Yes, it's the way I finally solved it. But I was still curious. 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.