Trying to use IPR with Isolate Select Render mask.
1) I set Render mask to “Isolate Select”
2) isolate selected objects in viewport
3) start IPR.
Move camera and in VFB I see where the object “was” and "is. I have the “Clear Frame buffers” checked in the Common tab of Render settings but still it’s like I am creating a motion trail of the Isolated objects inside VFB while dragging the render camera around.
Clearing the buffer is disabled by default for the Render mask’s “Isolate Select” mode. You could use the “Object Set” mode, where the buffer is cleared every time.
We’ll make a note to respect the “Clear Frame buffers” checkbox in IPR as well.
Mihail, I am not quite following how to use this Render mask “Isolate Select” with IPR. Either the “Clear Frame buffers” is enabled or disabled, when I isolate the selected object in viewport and start IPR, the IPR will render the isolated object just fine. But as soon as I move the camera, I see IPR shows the object in “two positions”.
In IPR, the “clear frame buffer option” is not taken into consideration at the moment, but as Mihail pointed out, we’ll try and do that soon.
This mode of the render mask does not clear the buffer in IPR, that’s why you’re seeing this “overlay” effect. The rest of the render mask modes (like object ID and object set) also work in IPR and there the buffer is automatically cleared (again with no respect to “clear frame buffer” - the "clear frame buffer has no effect in IPR at all for the moment).
IPR does respect viewport isolation. It doesn’t respect the “clear frame buffer option”. If you move the camera, you’ll get an overlay, but if you only change materials - only the isolated objects will be updated. The “clear frame buffer” will come soon.
Thanks for the explanations. It took me couple more tests to understand useful cases for this Isolate select Render mask option with IPR. It makes sense to me now.
Another related issue or request is that:
when Render mask is disabled, start IPR; isolate object in viewport via viewport button; IPR updates the whole scene (no overlay effect). Is it by design? If yes, what’s the logic behind to have IPR not respect the viewport Isolate select button in this scenario (Render mask disabled)?
Yes it is by design. The “Isolate Select” mode in V-Ray is only a Render Mask mode therefore it will only work when the render mask mode is not disabled. It uses the Isolate selection from the viewport to create a set of objects and render them with mask, nothing more. Soon there will be a tutorial in our Youtube channel and in the documentation page on the subject.
I just watched the youtube introduction of this Isolate Select feature. It’s definitely useful in several situations. However, I was wondering if I want to look-dev a material with this feature, I will highly likely tumble the camera around during IPR to evaluate the tweaked material of isolated objects. But this overlay effect totally defeats the purpose in this scenario. Am I using this feature wrong of it’s meant to be used when camera is locked down for a still image?
Does this work with the latest V-Ray public release? Both IPR and production render just ends up rendering the whole image when “isolate selected” is turned on and in the viewport only a handful of objects are visible
Edit: I can’t get this feature to consistently work after copying the YouTube video
I’m convinced this doesn’t seem to be working on the official build. No matter what I do, the whole IPR refreshes and never just the isolated objects I have in the viewport.
Edit: ^ That sounds like a really negative tone, sorry - I don’t mean it.
Could you upload a screen capture so we can get a better idea of what’s going on?
It should generally work with IPR and production when the render mask is used in “isolate select” mode. I assume you’ve already seen the video https://www.youtube.com/watch?v=jMETZvq8ojc
Hi Yolov, are you able to comment my previous post regarding using this feature for look-dev session where one needs to change camera angles during IPR?
Yes, sorry about that. The problem here is that the camera changes don’t trigger a refresh of the whole VFB when used in IPR + isolate select render mask.
You can use this MEL line to force the VFB to clear and it should work for this case. We’ll try to put a checkbox in the interface for the next patch: setAttr vraySettings.renderMaskClear 1;
Here’s the description of the possible attribute values: 0 (Force off) | 1 (Force on) | 2 (On - the default, clears the render mask in all modes except for “isolate select”)
Not sure why this could happen. One thing that could happen is that Maya has different Isolate Select sets for the different viewports. We use the set for the viewport that we are rendering. If you are isolating the objects in another viewport, it shouldn’t work.
I’m a bit lost here already, you’ll have to forgive me. And you’ll have to help me understand that a bit better - what do you mean by “changing” camera views (from the previous posts)? If you rotate the camera (pan, zoom, dolly, etc), you’ll have the “unwanted” overlay. The only way around that is to clear the buffer from that overlay, but the only thing left around the isolated object will be, well, “nothing”, i.e. black. Did you mean something else?
Sorry about that Yolov. I just think again and what I was hoping to see is basically updating the whole scene… Ignore what I wrote in the last post, please.
Still, I think there is room to improve the IPR isolate objects workflow. Here is a video where I feel the workflow is a bit more streamlined.
Users don’t need to go to Render Settings to toggle “Isolate Select” mask and hit “Ctrl + 1” hotkey to IPR with isolated objects. Everything is done in the frame buffer window. Although, our current implementation does allow one to isolate multiple objects and IPR them simultaneously, whereas in competitor’s render view one can only select one object a time.
Running setAttr vraySettings.renderMaskClear 1;
As Yolov suggested should clear the frame buffer and objects outside the isolated selection would appear black. You can also select objects in the VFB and toggle isolate select with the hotkey while inside the VFB. It’s not the same as the workflow in the video, but kind of similar.