Jump to content

transferring color from texture onto points


ranxerox

Recommended Posts

hey all, I have a textured model, and some points which track on the surface of the model. I would like to transfer the color from the texture on this model onto these points (so that the particles emanating from them can inherit color). I am using attribpromote to promote the uvs from vertex attributes to point attributes, then using an attribute transfer SOP to transfer the uvs to the points. Then I create a Cd for the dest points and my plan was to make a VOPSOP to texture the points based on these uvs and the same texture as the model. I am kind of stuck because I can't find a VOP to load a 2d texture (so that I can look up the color based on the uvs of the current point).

question: Is this the right way to go, and if so, what VOP can I use to load the file texture in the VOPSOP ?

thanks in advance.

-ranxx

Link to comment
Share on other sites

oops, just found it, 'colormap' VOP is what I was looking for. Thanks.

-ranxx

hey all, I have a textured model, and some points which track on the surface of the model. I would like to transfer the color from the texture on this model onto these points (so that the particles emanating from them can inherit color). I am using attribpromote to promote the uvs from vertex attributes to point attributes, then using an attribute transfer SOP to transfer the uvs to the points. Then I create a Cd for the dest points and my plan was to make a VOPSOP to texture the points based on these uvs and the same texture as the model. I am kind of stuck because I can't find a VOP to load a 2d texture (so that I can look up the color based on the uvs of the current point).

question: Is this the right way to go, and if so, what VOP can I use to load the file texture in the VOPSOP ?

thanks in advance.

-ranxx

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