You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem Description:
I am developing application(OSG(OpenSceneGraph) c++ with C# WPF UI) for a desktop environment and that application visualize 3D objects (Ex: GL primitives, OSG 3D Shapes, .stl file for 3D Model).
This application having inputs: mouse and touch screen also.
In osgViewer mouse and touch screen inputs are working fine.
But, I facing problem in C# WPF UI window: touch screen inputs are not getting in inherited WindowData Visualization.
Mouse inputs only working.
Code Snapshot::
osg::ref_ptrosg::GraphicsContext::Traits myTraits = new osg::GraphicsContext::Traits;
// Set location and size of the window
myTraits->x = windowX;
myTraits->y = windowY;
myTraits->width = windowWidth;
myTraits->height = windowHeight;
myTraits->windowDecoration = true;
myTraits->doubleBuffer = true;
myTraits->sharedContext = 0;
myTraits->samples = 6;
myTraits->inheritedWindowData = new osgViewer::GraphicsWindowWin32::WindowData(hwnd);
// Create graphics context
gcMain = osg::GraphicsContext::createGraphicsContext(myTraits.get());
.....
Solution Expectation:
I want same result(mouse and touch screen inputs) are work in C# WPF UI window(inherited WindowData Visualization) like osgViewer output.
please anyone help me to fix this problem.
thank you
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I amusing osg3.6.5
Problem Description:
I am developing application(OSG(OpenSceneGraph) c++ with C# WPF UI) for a desktop environment and that application visualize 3D objects (Ex: GL primitives, OSG 3D Shapes, .stl file for 3D Model).
This application having inputs: mouse and touch screen also.
In osgViewer mouse and touch screen inputs are working fine.
But, I facing problem in C# WPF UI window: touch screen inputs are not getting in inherited WindowData Visualization.
Mouse inputs only working.
Code Snapshot::
Beta Was this translation helpful? Give feedback.
All reactions