Jump to content

map color from texture to particles


ITdreamer

Recommended Posts

Hello, friends.

Please, help me to find out what is the problem. I need to map color from texture to the particles. I think that the problem is that UV attribute doesn't transfer to the pop_network. And when I try to map color to particles using Color POP and tex function, it dosn't know the UV coordinates of the source color. I tried to map color using Color POP and COP2 Network, but when I write $MAPU and $MAPV to U and V fields, Houdini falls.

Here is the simple script, where I have this problem. Please, fix it and post.

Many thanks.

Part_Color.hip

Link to comment
Share on other sites

The problem is the UV Texture sop creates the UVs as vertex attributes by default, which the particles aren't picking up since they are points. To fix this you can set the Apply To paramter to Point Texture, or Attribute Promote them.

Edited by graham
Link to comment
Share on other sites

On the UVTexture sop there is a parameter called 'Apply to' which controls whether the texture is applied to points or vertices. Natural Location, the default, lets the operator determine what type of attribute is created. In this case it has created the UVs as a vertex attribute. If you change this option to 'Point Texture' it will create the UVs as a point attribute and allow your particles to pick them up.

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...