V-Ray: No active viewport to render

Hello!

It is a bit strange to me that V-Ray can’t initialize the IPR without an active viewport.

Shouldn’t it simply run the IPR using the latest position of the viewport “view”?

Honestly we have never tried or thought of this, but I can already feel it being problematic. We have had to fix multiple weird problems with things not updating or working correctly with normal non-viewport VFB rendering. Not having a viewport I feel like would make it even worse. I might quickly try it after our release and see if it is feasible.

Thanks!

I noticed this behavior when I was writing my other post about ViewLayers. But thinking about it, it kind of makes sense to not run without an active viewport, since you can’t navigate through the scene inside the VFB. If you correlate this to Cycles, the only way to preview the scene is also having a viewport…

A first issue, though, is the IPR stopping when you switch the Viewport to another editor. It could keep running, if you don’t change the view.

Alternatively (and this is what I think many blender users will do), using the viewport to preview the same way we do with cycles. The issue here is that the colors of the IPR don’t match the ones from VFB, but this is another thing - I already reported this [VBLD-2184].

About VBLD-2184, I wrote in the issue that the problem is likely OCIO and more specifically the working color space(in the Cycles render settings). We reset the other parameters but with the working space it’s a bit harder. So can you try switching to Cycles and playing around with the color management settings. Not sure if my response was forwarded to you. We have been thinking about full OCIO support for a while but just never had the time to do it properly.

It should be correct on my end, but I’ll check that again! Thanks!

This is from the scene our support team attached to the issue, not sure if it’s yours, but that scene was setup with ACEScg working space. And Blender was appyling some corrections to the viewport which the VFB was unaware of thus causing the differences.

IPR should render the active Camera. I often start an IPR session with the active camera and then I want to switch to user, top, etc. cameras and IPR is also changing tor these cameras. I would want to be able to navigate through my scene but keeping the same camera angle in IPR.

Yeah, that could be an option.

It looks like the default behavior of VRay is similar to what happens in Maya, for example. There, if you run the IPR, it will always look for the active camera (which is the same camera as the used in the active viewport). The difference is that the navigation view in Blender is different from the camera object used to render.

The default behavior of IPR could always be to look for the active camera, but with a similar dropdown menu where we could switch to the viewport view?

This is the VFB in Maya (RenderCam was created later)

In Blender this could be something like this:

And the Production Render remains unchanged.

What do you think, @bozhidar_ivanov ?

Yes, the VFB camera selector is the correct way to do something like this, however, we haven’t had the time to implement it.