Adrian Posted January 5, 2016 Share Posted January 5, 2016 (edited) Edit: Solved, input attribute needs to be of type float to be interpreted correctly, int is not ok apparently, even if converted. I have a bunch of points that carry a "refCount" point attribute of type integer. I wanted to create a simple flat shader that colors geometry based on this attribute. I had a vague memory of how to accomplish this and looked in the forums to confirm this. However it appears that the approach I tired doesn't work; in mantra, the points only carry the leftmost color of the ramp, i.e. the one closest to 0. I've attached a screenshot of the network as it's simpler than explaining. The fit range node takes in the expected range of "refCount" and outputs values from 0 to 1 for the Color Ramp. I have enabled attribute visualization in the viewport and can see that Houdini picks up the "refCount" attribute just fine. What am I doing wrong in the shader? Edited January 5, 2016 by Adrian 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.