magneto Posted March 23, 2015 Share Posted March 23, 2015 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 Quote Link to comment Share on other sites More sharing options...
fathom Posted March 23, 2015 Share Posted March 23, 2015 what textures are you trying to sample exactly if you don't have them...? Quote Link to comment Share on other sites More sharing options...
magneto Posted March 23, 2015 Author Share Posted March 23, 2015 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. Quote Link to comment Share on other sites More sharing options...
jkunz07 Posted March 23, 2015 Share Posted March 23, 2015 You should be able to reference the texture using color map vop and opdef syntax as discussed here:http://forums.odforce.net/topic/17976-embedding-textures-in-otls/ Quote Link to comment Share on other sites More sharing options...
pbarua Posted March 23, 2015 Share Posted March 23, 2015 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. Quote Link to comment Share on other sites More sharing options...
magneto Posted March 23, 2015 Author Share Posted March 23, 2015 Thanks guys, that's what I am doing but seems a little hard to dig in and hard code these paths. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.