sekow Posted December 14, 2015 Share Posted December 14, 2015 what am I doing wrong? i cant load my custom attribute into shops. see attached hipfile I know I could use Cd for that but why does mantra not recoginze my @clsID attribute? thanks attribute_SHOP.hip Quote Link to comment Share on other sites More sharing options...
sekow Posted December 14, 2015 Author Share Posted December 14, 2015 i can save the integer value inside Cd.r and read that into shop as a workaround. cant even query ptnum directly into the shader Quote Link to comment Share on other sites More sharing options...
Annon Posted December 14, 2015 Share Posted December 14, 2015 SHOPs doesn't support ints if memory serves. For instance, I always end up making a fid (float ID) to get things working in shaders, but this might be old habbits, by the look of your post though I think it's still applicable. Quote Link to comment Share on other sites More sharing options...
sekow Posted December 14, 2015 Author Share Posted December 14, 2015 is this something I should have read up in the docs? stumbled onto this by accident and could not find any explanation. and yes, float values work. so keep that old habit Quote Link to comment Share on other sites More sharing options...
fathom Posted December 14, 2015 Share Posted December 14, 2015 seems like it auto-promotes ints to floats inside mantra. so just changing your parm to a float (without changing the type on your geometry) will still work. i suppose that kind of makes sense in mantra to handle blending of ints during shading. how would mantra handle an int attribute if it's sampling between two vertices and it has to be an int coming into the shader? 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.