christian.kubler Posted March 4, 2021 Posted March 4, 2021 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
silent Posted March 5, 2021 Posted March 5, 2021 Hi Christian, How do you use Visualizer? Can you show us your code and the results you get? Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
christian.kubler Posted March 5, 2021 Author Posted March 5, 2021 Hi Silent, should be no problem to reproduce because it is a generic problem: AppWall application with 2x1 displays m_synckerManager->getSyncker()->getProjections()->setDefaultProjectionsEnabled(false); m_AppWall->setProjection(0, 0, projTv); m_AppWall->setProjection(1, 0, projIr); 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
cash-metall Posted March 5, 2021 Posted March 5, 2021 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. 1
christian.kubler Posted March 5, 2021 Author Posted March 5, 2021 Thank you for the info! Best regards, Christian
Recommended Posts