Jump to content

A Question Regarding A Pic() Function


Lukich

Recommended Posts

I'm using a pic() function to apply color information pulled from a COP to points on my NURBS sphere. It works fine except for one little problem - the image (a default butterfly) instead of wrapping itself around the sphere is repeated twice on the sphere, once on the side facing me and the second time - on the back side. Do you guys know why this is happening? Here's the file.

Thank you very much.

odforce.rar

Link to comment
Share on other sites

yes, you do need to add UVs. Adding a point sop does not calculate where the uvs are located, it just makes uvs available to use/manipulate. You need to append a uvproject SOP, for example (whichever you use, make sure uvs are a point attrib and not a vertex attrib).

I did this and it worked fine...

Sphere SOP

-NURBS

-50x50 Rows and Columns

UV Project SOP

-polar projection

Point SOP

-Add Color

-pic("../cop2net1/default_pic", $MAPU, $MAPV, D_CR), pic("../cop2net1/default_pic", $MAPU, $MAPV, D_CG), pic("../cop2net1/default_pic", $MAPU, $MAPV, D_CB)

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