VRay Rendering Grasshopper Material


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.

BUT when you render out the image from that node, the material doesn’t show up.

Could someone help me with getting the Grasshopper VRay node show the material?

EDIT: Bonus points if you can tell me why the rendering from Grasshopper is upside-down as well. :wink:

Thanks in advance!


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.

Hope that helps!

Hi Fin,

Thanks for the tip! That’s not exactly what I was looking for, but I didn’t know you could do that. :slight_smile:

I’m rendering the scene in Grasshopper by right-clicking the V-Ray Render node and going to 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.

That’s all I can think of.