Jump to content

WidgetSpriteViewport is very jumpy when the viewport changes


photo

Recommended Posts

Hi,

 

I am trying to use a WidgetSpriteViewport, but I am finding the results to be very jumpy.

I am trying to create binoculars that has it's own camera.

 

Setting the new camera to the main camera works fine, but when I set it to the WidgetSpriteViewport, it becomes very jumpy.

 

For testing, I am setting the main camera to the widget's camera with this: Unigine::Game::get()->getPlayer()->setCamera(spriteViewportWidget->getCamera());

You can see in the attached gif that the main camera is not jumpy, but the WidgetSpriteViewport one is.

 

Any idea why this may be? The camera's position and look direction is changing every update, but I am not modifying the widget itself.

 

Thanks,

Sam

 

post-1741-0-70626300-1465948006_thumb.gif

Link to comment
  • 3 weeks later...
×
×
  • Create New...