Interaction with 3D UI
Posted: 16 Aug 2021, 19:33
Hey!
Im working on 3d text tool and recently struggled with rendering. Right now struggling with selection (clicking).
Basically Im rendering whole view with custom matrix
Now I need to understand when anyone select text and highlight it
I've tried this:
This is Noesis::TextBlock, which accept canvas. Works nice when no matrix provided.
When matrix is provided, then clicking region isn't change (nothing renders there, but click callback works).
Also I've thought that Render(matrix) doing immediate calculations, so I've tried
Also no luck.
Checked Oculus example (can't run it though). Didn't saw anything special, same Render(matrix).
So what am I doing wrong?
Thanks.
Im working on 3d text tool and recently struggled with rendering. Right now struggling with selection (clicking).
Basically Im rendering whole view with custom matrix
Code: Select all
_view_3d_text->GetRenderer()->Render(prod);
I've tried this:
Code: Select all
_temp_text_block->PreviewMouseLeftButtonDown() +=
[canvas_text_tool](Noesis::BaseComponent* , const Noesis::MouseButtonEventArgs& ) {
spdlog::info("clicked");
};
When matrix is provided, then clicking region isn't change (nothing renders there, but click callback works).
Also I've thought that Render(matrix) doing immediate calculations, so I've tried
Code: Select all
_view_3d_text->SetProjectionMatrix(prod);
Checked Oculus example (can't run it though). Didn't saw anything special, same Render(matrix).
So what am I doing wrong?
Thanks.