ankush.wadke Posted March 31, 2018 Posted March 31, 2018 We have a use case where we need to render some set of objects in a viewport and few in a different viewport, like this we require 4 viewports to be created. Is it advisable to just use single viewport and update its viewport mask 4 times every frame and render the 4 frames or its better to create 4 separate viewports with each one with a different mask.
sergej.koptev Posted March 31, 2018 Posted March 31, 2018 Actually, you cannot do this trick, because of viewportMask does not affects to shadows from sun && light sources (at least, in 2.6.1.1). You will see shadows from invisible objects in such viewport. Maybe, setEnable( true/false); for objects in scene before each rendering, will better solution.
ankush.wadke Posted April 3, 2018 Author Posted April 3, 2018 (edited) Thanks sergej.koptev. But for setEnable to reflect a update call is required, right? And if so I am utilizing 4 times the fps, is there a better trick to avoid so? Edited April 3, 2018 by ankush.wadke
Recommended Posts