Hello everyone,
I'm diving into the VRay SDK, in hopes of understanding how best to integrate VRay into our Jewelry Design Studio software. In our previous products we've always used the V-Ray for Rhino plugin within Rhinoceros (our CAD engine) and so our experience has only been with that plugin.
I'm hoping someone can help me bridge the gap between the V-Ray Rhino world and the SDK. Here are some task I need our software to perform, if anyone has any suggestions on where to look for samples/examples I would greatly appreciate it.
- Assign Materials to Rhino Objects (that VRay will understand)
- Save/Export the Rhino Objects into a format to be Rendered by Rhino
- Give access to viewing the VFB; Hide/Show the VFB and view that most recent Render
- Render the Design
So far I've been able to render some sample .vrscene files that were created using V-Ray for Rhino and exported. And I can launch the render using the SDK, and see the VFB, but it quickly disappears after the render completes. I'd like the VFB to stay there until the user chooses to close it.
Here is some code I've tried so far:
Also as far as best practices, should I hold one a single static instance of Renderer? Or should we be newing it up each time like this?
Sorry if this all seems very ignorant, I'm a bit out of my depth with VRay. But I hope to get the basics down, so that we can move forward with VRay as our embedded rendering engine.
Thank you for any help you can give me.
Jason Stevenson
JewelBeetle Software LLC
I'm diving into the VRay SDK, in hopes of understanding how best to integrate VRay into our Jewelry Design Studio software. In our previous products we've always used the V-Ray for Rhino plugin within Rhinoceros (our CAD engine) and so our experience has only been with that plugin.
I'm hoping someone can help me bridge the gap between the V-Ray Rhino world and the SDK. Here are some task I need our software to perform, if anyone has any suggestions on where to look for samples/examples I would greatly appreciate it.
- Assign Materials to Rhino Objects (that VRay will understand)
- Save/Export the Rhino Objects into a format to be Rendered by Rhino
- Give access to viewing the VFB; Hide/Show the VFB and view that most recent Render
- Render the Design
So far I've been able to render some sample .vrscene files that were created using V-Ray for Rhino and exported. And I can launch the render using the SDK, and see the VFB, but it quickly disappears after the render completes. I'd like the VFB to stay there until the user chooses to close it.
Here is some code I've tried so far:
Also as far as best practices, should I hold one a single static instance of Renderer? Or should we be newing it up each time like this?
Sorry if this all seems very ignorant, I'm a bit out of my depth with VRay. But I hope to get the basics down, so that we can move forward with VRay as our embedded rendering engine.
Thank you for any help you can give me.
Jason Stevenson
JewelBeetle Software LLC
Comment