Jump to content

Cops question


Recommended Posts

Hi,

I am trying to get data from cops mapped into the point color in a Sop network. Currently I have a cop network that creates a noise.

How do I transfer data form the COP noise node to my pointSop color attribute? I thought maybe I need to use tex() but wouldn't that need a texture file written out? So, basically I want to not write a texture and just reference what the cop node is creating. Any ideas on how to do this???

thanks,

Walter

Link to comment
Share on other sites

so, to access the color of the noise field do I map into the pointSops color attribute this?

tex("../cop2net1/noiseOut",$MAPU,$MAPV,r)

tex("../cop2net1/noiseOut",$MAPU,$MAPV,g)

tex("../cop2net1/noiseOut",$MAPU,$MAPV,B)

This gives me a solid color instead of the noise pattern. I pulled my mesh density very hight to transfer more information from the noise.

I guess I could just map in noise($TX,$TY,$TZ) to give me a noise field... but would it be quicker to use cops in this instance?

Link to comment
Share on other sites

You were very close but you have to use the op: syntax when referencing an OPerator that provides data needed for the function. When using the op: syntax, you have to supply the full path to the OPerator

tex("op:/obj/name_of_object/cop2net1/noiseOut",$MAPU,$MAPV,r)
tex("op:/obj/name_of_object/cop2net1/noiseOut",$MAPU,$MAPV,g)
tex("op:/obj/name_of_object/cop2net1/noiseOut",$MAPU,$MAPV,b)

Cheers!

steven

Link to comment
Share on other sites

  • 2 months later...

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