Jump to content

texture to vertex color


zveris

Recommended Posts

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.

Link to comment
Share on other sites

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

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