<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi to all! <BR>
I have a question about vtk and screen resolution ... I hope someone can help me because my solutions for this kind of problem are very poor:/ <BR>Ehm...I am new at vtk so be patient with me ! Thanks :P ( And sorry for my english ! ) <BR>
<BR>
I am writing some code for a virtual reality environment... I visualize my 3d pic at full screen and with : <BR>
_size = Manager->viewer3d->getRenderWindow()->GetSize() ; <BR>
I get the size of the window ... BUT since my screen resolution is 1280x800 I was expecting size[0] = 1280 and size[1]=800 ... but things don't work out... instead of these values I have size[0]=1288 and size[1]=834 ...as a consequence, my cursor goes beyond my window's borders and disappears on the left side ( east ) and it stops some pixels before the border at the top of the window ( nord ) and disappears downwars ( south ). <BR>
<BR>I am searching for a general solution ...it should work for all kind of screen resolutions. <BR>
<BR>
I hope someone will show me the right way to face the problem. <BR>
<BR>
Thank you! <BR>
Lydia<BR>                                            <br /><hr />Screensaver, sfondi e scene: <a href='http://www.messenger.it/home_personalizzaMessenger.aspx' target='_new'>scarica i gadget di Messenger</a></body>
</html>