1
General / Re: universe using sf::view
« on: May 15, 2012, 10:40:29 am »
Maybe this handrawn brings light into the dark:
On no. 1 you see the universe with dimensions 10000,10000. The ship is at 5000,5000. sf::View is at 4600, 4700, with a size to screen of 800, 600. You can see on the screen completly 4600, 4700 to 5400, 5300.
Now on no. 2 you see the ship at 100, 100. sf::View now must show the space from 9700, 9800 to 500, 400, because on no 3 you see that if the ship comes to the right end it should move around to left end and if it comes to the bottom it should move to the top, but the objects at the rest of the bottom or on the right side must be seen too.
Is this explanation better?
Best regards
Andreas
On no. 1 you see the universe with dimensions 10000,10000. The ship is at 5000,5000. sf::View is at 4600, 4700, with a size to screen of 800, 600. You can see on the screen completly 4600, 4700 to 5400, 5300.
Now on no. 2 you see the ship at 100, 100. sf::View now must show the space from 9700, 9800 to 500, 400, because on no 3 you see that if the ship comes to the right end it should move around to left end and if it comes to the bottom it should move to the top, but the objects at the rest of the bottom or on the right side must be seen too.
Is this explanation better?
Best regards
Andreas