Hello,
I am currently working on a voronoi noise plug-in for Maya 2011 and at the moment I got it to work such that when you connect it to the color input of an object with some material (such as Lambert), you can see the texture.
However, when I try to connect it as a bump-mapping, nothing happens to the object.
I based my code on the noiseShader plug-in provided by the Maya API (http://download.autodesk.com/us/maya/2010help/API/noise_shader_8cpp-example.html).
I am pretty sure this is happening since I don't deal at all with the connections.
I was wondering if anybody has some suggestions on how I can get this to work. In the end I would like this plug-in to be able to displace a plane in a voronoi-cell pattern so that it looks like dry, cracked up ground.
Also, I noticed that in the texture-preview for my node, the image is very low frequency (it just looks like a blur of gray, screenshot provided). But in other sample shaders/nodes, the texture-preview is a pretty accurate representation of the actual shader in that its relatively high frequency (volumeNoise for example). I think it has to do with the image's width/height I am picking, but I have no idea how to fix it.
I am currently reading through the slopeShader's code (http://download.autodesk.com/us/maya/2009help/API/slope_shader_8cpp-example.html) to see how they deal with connections (http://download.autodesk.com/us/maya/2009help/API/slope_shader_behavior_8cpp-example.html); I can understand some of it, but not all.
Anyway, this is my first forum post so let me know if there is any more detail I should go into.
Any help would be greatly appreciated!
