generative modeling for Rhino
I'm playing around with Giulio Piacentino's 'renderAnimation' (http://www.giuliopiacentino.com/grasshopper-tools) script for a Vray animation, and running into an issue with how materials are baked. The GH material component only controls the 'shinyness' value of the object, which doesn't seem to correspond to reflectance. The attached rendering shows prebaked GH spheres (blue) with a reflectance layer from Vray...compare those with the red/orange ones that come out of the renderAnimation script / straight from GH...no reflectance, but clearly some shiny action at the edges due to the default environment map.
Is there a workaround for getting baked geometry to automatically include reflectance control? Any custom material components out there? It seems like there should be a simple answer to this, but I can't find it... :)
here an addition to the previous script. With this, it should be possible to also input data for 'reflection' (a number) and 'reflectivity' (a color) for each of the objects. These values are currently available in rendering materials and not in display materials (based on OpenGL). In the script, if there are less reflectivity values than geometry objects, then the values are repeated in pattern.
By the way, if you need plug-in specific features, it should be possible to just use names of materials (strings) that are already in the document.
Please let me know how this is working. Thanks,
there was a new line char in the end of the material name (and the panel was disabled), that's why it was not working. This example now works here. Please keep in mind, however, that it is not possible to set the reflectivity if you use an existing material name.
I hope it helps,
McNeel Europe, Barcelona
Thanks Giulio...I can get it working with the existing material string (which works for now) but still no luck getting the thing to reflect anything-you could conceivably do something like chrome from GH, right?
if you put a Grasshopper material in the 'material' input, then you can use the 'reflection' (a number) and 'reflectivity' (a color). This will set the values in the Rhino material. I do not know if V-ray keeps track of these values, but I checked quickly with Rhino v5 default renderer and it works - so eventually Vray should, too.
On the other hand, if you assign 'material' with a string, you can tweak the material from the default renderer interface, and you should be able to get it to reflect as it's just the same material that is in the document.
I hope this helps,
McNeel Europe, Barcelona