Hello everyone, I will be up-front in my ignorance toward Mental Ray: I really know nothing. However, I have a unique challenge for anyone willing to help me out:
Can I get a "line wobble" effect by modifying the contour shaders in Mental Ray?
I have successfully used MR to achieve the toon-shaded effect, but the contour lines are too perfect, and obviously Computer Generated. To make 3D toon shaded animation look more like 2D cell animation, the line wobble is crucial. When artists draw lines in animation, they dont use rulers, so there are many small variations in the line that is often refered to as line "wobble." I need to accomplish the wobble effect in addition to the toon shaded effect and I'm hoping some creativity with MR will do the trick. I want to interfear with MR's contour store and contour contrast utilities to cause it to draw a wobbly contour line. I have looked at the C source code for these utilities and noticed that it draws the contour by repeatedly collecting two points along the edge of some geometry and drawing a line between them. I figure if I can intercept the points, I can add or subtract some values to cause MR to wobble the contour line. So this is my theory, but I have no idea how to implement it. Where can a noob like me go to learn how to modify the existing C code in the contourshade.c and outimgshade.c files? I can program in C no problem, but how do I recompile the code on a Windows platform and test it out in maya? Can you guys think of any other creative ways to achieve this line wobble (and varying the line width doesnt accomplish the same thing as wobbling the line). Any advice you can offer would be most excellent, even if it's as simple as a link where I can learn how to code, compile and import my own C++ code into Maya. Thanks so much, Please help!
-John Doublestein
web.ics.purdue.edu/~jdoubles