Jump to content

transfer color texture to points


MENOZ

Recommended Posts

hello

i need to arrange some points on a sphere. they should exist only where my texture is white.

so i have my sphere with a black and white texture. i scatter some points on my sphere, then i want to delete the points wich fall on black areas of my sphere.

i can assign a texture to a sphere, and scatter points, but i don't know how to pass texture information to points.

can you help me please?

thank you

Link to comment
Share on other sites

Hey

Try using the tex expression in a point sop, then a delete sop to prune the points u dont need.

float tex (string filename, float U, float V, string color_type)

Textures can be 1, 3 or 4 channel images containing 8-bit, 16-bit or floating point data.

tex("Mandril.pic", $BBX, $BBY, r)

in their example they use Bounding X and bounding Y to look up the texture,

you would probably need $MAPU $MAPV too lookup ur coordinates.

hope this helps

Link to comment
Share on other sites

  • 5 years later...

Hey guys,

 

This is noob q. but is there a way i can get this to work without using the uvtexture sop?

Ive got a mesh with its own uvs...  and it seems it only works with the texture type @ orthographic. :wacko:

 

I've been working in houdini for about a month so its prob something really basic that im missing. 

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