[osg-users] Different results from camera->getViewMatrix() in OSG 3.4.0 compared to OSG 3.2.1

Robert Osfield robert.osfield at gmail.com
Thu Apr 14 08:16:24 PDT 2016


On 14 April 2016 at 13:50, Ronny Hatteland <ronnyhatteland at gmail.com> wrote:

>
> Thank you for the quick reply! You are right. I fixed the input and now it
> is evident that the difference is in the windowMatrix:
>
>
> Code:
> WindowMatrix
> 3.4.0:
> [0] {960.00000000000000, 0.00000000000000000, 0.00000000000000000,
> 0.00000000000000000}
> [1] {0.00000000000000000, 443.00000000000000, 0.00000000000000000,
> 0.00000000000000000}
> [2] {0.00000000000000000, 0.00000000000000000, 0.50000000000000000,
> 0.00000000000000000}
> [3] {960.00000000000000, 581.00000000000000, 0.50000000000000000,
> 1.0000000000000000}
> 3.2.1
> [0] {960.00000000000000, 0.00000000000000000, 0.00000000000000000,
> 0.00000000000000000}
> [1] {0.00000000000000000, 443.00000000000000, 0.00000000000000000,
> 0.00000000000000000}
> [2] {0.00000000000000000, 0.00000000000000000, 0.50000000000000000,
> 0.00000000000000000}
> [3] {960.00000000000000, 443.00000000000000, 0.50000000000000000,
> 1.0000000000000000}
>
>
>
> Is seems like the difference in value [3][1] is what gives the vertical
> offset on the screen of 138 pixels (between the cursor and the object I
> normally display on the cursor position).
>
> Do you have any suggestion of how I could solve this?
>

I have no suggestions, because you have have said nothing at all about how
you are setting up your viewer - so there is absolutely no clues for us to
go on to why you might be seeing this difference.  All we have to go on is
some unknown application is producing difference results for some reason.

You have access to all the source code to OSG-3.4.0 and OSG-3.2.1, you have
access to your application and your data, you have all the tools available
to put breakpoints into your application code that sets up your viewer and
the OSG.

Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160414/2fca9953/attachment-0003.htm>


More information about the osg-users mailing list