Jump to content

Texture info from closest surface project on Point's Cd


Chungz

Recommended Posts

Hi Guys,

 

I have been trying to get my point's cd from a mesh with texture.

I seen alot of method around that are using attribute promotes from vertex UV to points UV.

However the UV I promoted are slightly off.

I wonder if there's any way that I can use a vop to get closest surface texture's color info and project them to my point cd?

 

Very much thanks and appreciate any help from you guys.

 

 

I have attrached my file.
texPoinntTex002.hip

and the obj file (testAlembicCon.hip), just have to change the extension to.obj will do.

texPointTex002.hip

testAlembicCon.hip

Link to comment
Share on other sites

Use a Ray sop set to Minimum Distance and pull the uv attribute from your mesh, you can then use this to do a texture lookup in Vops. You can do it all in Vops if you wish, the XYZDist node will give you the nearest primitive and the parametric uv on that face, you can plug that data into a Primitive Attribute vop and pull uv from your mesh that way. 

transfer_texture.hip

Edited by tjeeds
  • Like 1
Link to comment
Share on other sites

Use a Ray sop set to Minimum Distance and pull the uv attribute from your mesh, you can then use this to do a texture lookup in Vops. You can do it all in Vops if you wish, the XYZDist node will give you the nearest primitive and the parametric uv on that face, you can plug that data into a Primitive Attribute vop and pull uv from your mesh that way. 

Hi tjeeds,

 

The second vop with the XYZdist node really did the trick there.

Thanks alot, didn't figure out that node before, I thought that might need some calculation on query surface color info with distance to the point and reproject to the point color.

Some how it can be done within few nodes.

 

Thanks again. 

Trying to get high resolution texture project back to my fluid mesh now. currently seems a little low resolution.

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