robertosfield wrote:
> Hi Ronny,
> 
> 
> I don't recall any specific changes to view matrix management between 
> OSG-3.2.1 and OSG-3.4.0.  I'm also not aware of any bugs being reported that 
> look relevant to this what you are describing.
> 
> 
> Printing out two sets of view matrices for the two versions without the 
> view's being identical isn't useful.  Try to create the exactly same input 
> conditions - for instance by explictly setting the view matrix.  The mouse 
> input are another variable you'd need to standardize.
> 
> 
> Also when describing the problem you'll need to do more than saying a 
> "vertical offset", this has so many different possible interpretations that 
> it's pointless even starting to guess what you mean.
> 
> 
> 
> Robert.
> 


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?

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





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

Reply via email to