zveris Posted September 15, 2002 Share Posted September 15, 2002 is there a simple way to convert texture to vertex color in houdini? and as we are at that, is there any simple way to select vertex by color? thanks in advance Quote Link to comment Share on other sites More sharing options...
crunch Posted September 16, 2002 Share Posted September 16, 2002 Do you mean texture coordinates or texture color? If you mean texture coordinates, you could plunk down a point SOP and turn on add color, then stick: $MAPU, $MAPV, $MAPW into the fields for color. You can also copy the point colors to any other attribute. For example, the position. This would basically move the points of your model into the RGB color cube. Quote Link to comment Share on other sites More sharing options...
plan9 Posted September 17, 2002 Share Posted September 17, 2002 or use pic(), you can put this in the color parameters of a point SOP, or displace by adding it to the normal parameters. also, you can select points based on value, but couldnt tell ya the spell off the top of my nugget. type: exhelp pic float pic (string copname, float U, float V, float color_type) This function will lookup a single pixel from a COP and return the color of the pixel. The color_type parameter can be one of the following: D_CR, D_CG, D_CB, D_CA, D_CHUE, D_CSAT, D_CVAL, D_CLUM for the red, green, blue, alpha, hue, saturation, value, or luminance of the pixel. The color returned will be interpolated smoothly between adjacent pixels. eg. pic("/comp/ice1/color1", .5, .5, D_CLUM) See also: picni, tex, texni, res good luck Quote Link to comment Share on other sites More sharing options...
sirogi Posted September 17, 2002 Share Posted September 17, 2002 ....and once you color your vertices the way plan9 is suggesting, selecting vertices by color is as simple as plopping down a Group SOP and selecting by expression ($CR<0.2 for example... etc...) Quote Link to comment Share on other sites More sharing options...
zveris Posted September 18, 2002 Author Share Posted September 18, 2002 thx guys for help, trying it now. 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.