I am working on a Grasshopper script and having trouble with a VRay material.
I made the VRay material from a Rhino material. When you render it through the VRay renderer, it looks fine.
In Grasshopper, I’m trying to use the VRay Render node. I selected the object and applied the same material I’m using in the renderer for the VGeo node.
Hi.
If you want to render the GH vray material with the rest of your rhino scene, i think you have to add another component, called scene (render in project on the tab). This ‘exports’ the grasshopper objects back to the vray rhino render.
I’m doing this because I have other parts of the scene highlighted in the Grasshopper scene showing up.
So it’ll have to be done through GH and I won’t be able to export. (I think.)
I’m just trying to get a material that’s already in my scene (and is shown in a regular Rhino VRay render) to show up with right-clicking, rendering in GH.
I hope that makes sense!
Let me know if you need me to clarify.
It may be a problem that your vray material was converted from a rhino material.
It is a corner case and I don’t think the gh components were tested to that extent. I would recreate the material in pure vray form.
Another thought: if you are using scripting through ghpython or C# components in your definition, you can issue a rhino Render command (rs.Command) and trigger the normal rhino render sequence inside your gh definition.