Jump to content

Is there a way to sample texture information from a geometry without u


Recommended Posts

Hi,

 

For example let's say you have a model like Pig Geometry (from H14) which has uvs and texture maps inside the OTL file. You don't have this file and you don't wanna save it yourself as the file could be updated later on but yours won't be.

 

I have some points on the surface of this geometry with uv information. How can I sample its texture values so I can apply them as point colors to my points?

 

I can't use color map vop because I don't have the textures. I can't use prim attribute vop with Cd because the geometry has no colors.

 

Any ideas?

 

 

Thanks :)

Link to comment
Share on other sites

Check out the pig test geometry in Houdini 14. It has textures but they are coming from Extra Files section of its OTL. So I don't wanna save a copy from there because of the reasons I mentioned above. The texture files are not easily accessible otherwise.

 

I thought there would be a way to access these without unlocking and tinkering with the OTL. Perhaps something like "texture:diffuse" as a special texture file path, etc.

Link to comment
Share on other sites

I can't use color map vop because I don't have the textures. I can't use prim attribute vop with Cd because the geometry has no colors.

 

 

You can use op: to reference file using colormap VOP or texture VOP as John suggested.

 

or

 

You can also use AttribFromMap SOP which is HDA and magic happening inside VOPs.

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