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, cursorPosition);


All works fine. But when I vary the height, the cursor moves horizontal.
Expected it to move between viewpoint and earth (perpendicular to earth).
The idea is to visualize the cursor depth variation in stereo.
What way could it be done?

Thanks

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=76738#76738





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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:
http://forum.openscenegraph.org/viewtopic.php?p=76728#76728





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 :)


Cheers,
Remo

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=76717#76717





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 <
akilan.arokiasw...@community.isunet.edu> wrote:

> 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
>
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org