Skip to content

Needed help...local coordinate system for trackNode and mouse coordinates... #1954

Answered by gwaldron
keince asked this question in Support Q&A
Discussion options

You must be logged in to vote

It sounds like you want to convert from the TrackNode coordinate space to viewport space. This is a standard MVPW (modelview->projection->window) transformation, which is constructed here:

https://github.com/gwaldron/osgearth/blob/master/src/osgEarth/ScreenSpaceLayoutDeclutter#L198

That matrix will transform from a "TrackNode local" coord to a viewport coord. The inverse will go in the other direction.

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@keince
Comment options

Answer selected by keince
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@nebsar
Comment options

@keince
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants