Jump to content

Viewport mask query


photo

Recommended Posts

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.

Link to comment

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.

Link to comment

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 by ankush.wadke
Link to comment
×
×
  • Create New...