Switching seamlessly between cameras in the viewport

Following this exmple: Change the Viewport’s Active Camera — Omniverse Developer Guide

It seems that when switching cameras from code there is a noticeable glitch even if the cameras are in the exact same position. Whats the best way to switch viewport cameras so that user wouldn’t perceive it. The reason for switching cameras is that I’m animating a temporary camera instead of the viewport one and then after the animation it is switched back to the default viewport camera. That way there is no conflicts.

Whilst we try very hard to minimize the transition from camera to camera, remember this is a fully real-time, GPU accelerated renderer, and it will need a few milliseconds to switch cameras and to begin rendering again.

May I ask the question why are you “animating a temporary camera instead of the viewport one” and then after the animation, switching back to the default viewport camera? Maybe I can help you with your workflow to better understand the need to do this. Walk me through your workflow.

1 Like