walterbehrnes Posted November 14, 2008 Share Posted November 14, 2008 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 Quote Link to comment Share on other sites More sharing options...
malexander Posted November 14, 2008 Share Posted November 14, 2008 Nope, tex() does not require a texture to be written out. It simply cooks the COP specified (if needed) and looks up the color at the UV position provided. Quote Link to comment Share on other sites More sharing options...
walterbehrnes Posted November 14, 2008 Author Share Posted November 14, 2008 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, 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? Quote Link to comment Share on other sites More sharing options...
stevenong Posted November 14, 2008 Share Posted November 14, 2008 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 Quote Link to comment Share on other sites More sharing options...
hkrol Posted January 28, 2009 Share Posted January 28, 2009 An alternative is the pic() expression function. The tex() function doesn't seem to work properly with float comps and does not update interactively. Instead of r,g,b you would have to use D_CR, D_CG, D_CB. - Henning 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.