Re: [osg-users] Custom cursor problem?

2019-09-24 Thread tom joe
Hi, I calculate cursor position in osgEarth. My Graph is like, osg::PositionAttitudeTransform (PAT) | | | \/ cursor Node the PAT's setPosition is computed from, Geopoint srcMap(src_SRS, lon, lat, height); srcMap.transform(dst_SRS, dstMap); dstMap.toWorld(SRS,

Re: [osg-users] Custom cursor problem?

2019-09-22 Thread tom joe
Hi, how does this cursor differ from 3D cursor? in fact, i am trying to vary height of cursor over virtual earth (Ellipsoidal) for object depth measurement. I am not sure how to manipulate cursor height? -- Read this topic online here:

Re: [osg-users] Custom cursor problem?

2019-09-20 Thread tom joe
Hi, Changing cursor file to .png/.jpg works fine. I will look into Win32 cursor setting as well. Thank you! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=76723#76723 ___ osg-users mailing list

Re: [osg-users] Custom cursor problem?

2019-09-19 Thread Remo Eichenberger
Hi Tom When you use windows you can look on such code: graphicsWindowWin32->setCursor(osgViewer::GraphicsWindowWin32::MouseCursor::LeftArrowCursor); https://github.com/openscenegraph/OpenSceneGraph/blob/master/src/osgViewer/GraphicsWindowWin32.cpp#L2364 and try to understand Win32 of Microsoft

Re: [osg-users] Custom cursor problem?

2019-09-19 Thread Robert Osfield
Hi Tom, The osgPresentation::Cursor is a textured quad geometry rendered as part of the 3D scene, it's not a conventional desktop cursor. You should use a image format like .png or .jpg to specify the image. Robert. On Thu, 19 Sep 2019 at 17:53, tom joe <

Re: [osg-users] Custom cursor problem?

2019-09-19 Thread tom joe
Hi, my code sample is, std::string cursorFileName = "./crosshair.cur"; osgPresentation::Cursor*cur = new osgPresentation::Cursor(cursorFileName, 20.0f); -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=76712#76712