Jump to content

AppWall + different projection matrices + Visualizer


photo

Recommended Posts

Hello,

using the visualizer in an AppWall application with different projection matrices fails -> rendered at wrong position

I guess the visualizer uses the projection matrix of the first display for any further display.

Is this true?

How to use visualizer in this context?

 

Best regards

Christian

Link to comment

Hi Silent,

should be no problem to reproduce because it is a generic problem:

  1. AppWall application with 2x1 displays
  2. m_synckerManager->getSyncker()->getProjections()->setDefaultProjectionsEnabled(false);
  3. m_AppWall->setProjection(0, 0, projTv);
    m_AppWall->setProjection(1, 0, projIr);
  4. Visualizer::renderLine2D or any other draw function

The rendered line will be visible on both displays at exactly the same screen position.

But the screen positions should be different because of the different projection matrices.

 

Best regards,

Christian

VisualizerBug.png

Link to comment

Hello! 
Visualizer::renderLine2D - draw line in screen space. It is independent of the projection matrix. you need to use renderLine3D with depthtest = false

Visualizer is tool for debugging - there are no way to draw different visualizer lines on each screen. We recommend use WidgetCanvas instead Visualizer for this purpose.

 

  • Thanks 1
Link to comment
×
×
  • Create New...