steveJB Posted September 24, 2003 Share Posted September 24, 2003 hello again, Just another problem..... Im trying to create a cell noise pattern which contains 2 different materials or colour in each cell. I understand the cellnoise has an ID so by placing a random on it and attaching a spline with 2 different materials plugged into it, i can make a cellnoise pattern with two different colours or materials. The problem with the spline vop is, even though its producing different colours on my cell noise, it seems to blend the colours e.g. if i plug a yellow and blue material into the spline, i end up having not random yellow and blue cells but yellow, blue and green cells?? I understand you also have to connect the first input into the last input for the spline vop to work! Also have tried changing the linear to cardinal..still gives me a blend of colour!! PLEASE HELP ME !! steveB Quote Link to comment Share on other sites More sharing options...
David Gary Posted September 24, 2003 Share Posted September 24, 2003 Hi. I looked at your problem. (I hope i understood it well). It seems that the ID returns very large values (1*10^9 or something like that), so let use another method: There's a parameter that stays the same across each cell: the dist1. because it gives the first nearest point. So the hint is to convert the value returned by the dist1 to an alternating value ( 0 or 1 ) to switch between two materials, or two colors. See what i used for example. What about switching between n materials? convert dist1 to a range of integers... (note: the spline vop does interpolation things so typically blend colors) Hope this helps. cellnoise.zip Quote Link to comment Share on other sites More sharing options...
steveJB Posted September 24, 2003 Author Share Posted September 24, 2003 thats great - i took your idea and just used a clamp with the cellnoise as i needed the border from it! Thanks again....this Vop stuff is another world.... steveB Quote Link to comment Share on other sites More sharing options...
steveJB Posted September 24, 2003 Author Share Posted September 24, 2003 here is the file if you wana see!! thanx again steveB cellnoiseB.hipnc.gz Quote Link to comment Share on other sites More sharing options...
David Gary Posted September 24, 2003 Share Posted September 24, 2003 Great! Your solution is even easier than mine! My Houdini version didn't recognized the extra stuff you put with your file ( ri Photon etc.), but i got the essential part. It looks like a texture for a stained-glass window (in a church maybe) . Is it? Quote Link to comment Share on other sites More sharing options...
steveJB Posted September 24, 2003 Author Share Posted September 24, 2003 It may be because im using 6.1?? Im trying to put a high contrast black and white film sequence through Vops to show it as a reflected mirror over a constant colour...just messing around with video and vops! Love the creative side of vops, its still quite new to me but its good talking to other people as i come to a complete stand at times!! 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.