View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002089 | NoesisGUI | C++ SDK | public | 2021-08-24 09:32 | 2021-09-02 18:02 |
Reporter | krupitskas | Assigned To | hcpizzi | ||
Priority | normal | Severity | block | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 3.1 | ||||
Target Version | 3.1.1 | Fixed in Version | 3.1.1 | ||
Summary | 0002089: view->SetProjectionMatrix() not affect hit test functionality | ||||
Description | We use 3.0, but still 3.1 also has this bug. We are using textblocks as 3d elements in our world and we need to be able to select them, but it's not possible right now. I've created reproducible scenario. Open IntegrationGLUT example, go to static void DisplayFunc(void) add this code in the beginning const auto perspective = Noesis::Matrix4::PerspectiveFov(90.0f, float(glutGet(GLUT_WINDOW_WIDTH)) / float(glutGet(GLUT_WINDOW_HEIGHT)), 0.01f); const auto viewport = Noesis::Matrix4::Viewport(float(glutGet(GLUT_WINDOW_WIDTH)), float(glutGet(GLUT_WINDOW_HEIGHT))); const auto offset = Noesis::Transform3::Trans(0.0f, 0.0f, 500.0f).ToMatrix4(); const auto prod = offset * perspective * viewport; _view->SetProjectionMatrix(prod); You will see that layout moved, but when you will try to click on button, it will be unsuccessful, because hit test still works in old projection matrix in 2D. Just try to click on this imaginable 2D position without transformations. | ||||
Steps To Reproduce | 1. Open IntegrationGLUT 2. Add my code 3. See incorrect behaviour Correct behaviour is: Possibility to pass correct hit test at the any position in the world, based on provided matrix | ||||
Tags | C++, Hittest, matrix | ||||
Platform | Any | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2021-08-24 09:32 | krupitskas | New Issue | |
2021-08-24 09:32 | krupitskas | Tag Attached: C++ | |
2021-08-24 09:32 | krupitskas | Tag Attached: Hittest | |
2021-08-24 09:32 | krupitskas | Tag Attached: matrix | |
2021-08-24 10:31 | sfernandez | Assigned To | => hcpizzi |
2021-08-24 10:31 | sfernandez | Status | new => assigned |
2021-08-24 10:31 | sfernandez | Target Version | => 3.1.1 |
2021-09-02 18:02 | hcpizzi | Status | assigned => resolved |
2021-09-02 18:02 | hcpizzi | Resolution | open => fixed |
2021-09-02 18:02 | hcpizzi | Fixed in Version | => 3.1.1 |
2021-09-02 18:02 | hcpizzi | Note Added: 0007401 |