Jump to content

Importing custom point attribute into shader network


Adrian

Recommended Posts

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?

post-8850-0-60534400-1451960977_thumb.pn

Edited by Adrian
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...