Hi,
I am using an OCD camera to view a Processing 3D sketch. I have the window dimensions set to 1024 width x 1024 height and everything is as it should be. Now I need to display this sketch on a screen which is 1024 width x 768 height but I need everything to stay exactly as it was except as if the bottom section of the screen (i.e. the lost 256 pixels) were masked or cut away just like in the the following two test snapshots demonstrate.
If my OCD camera settings are as follows for a screen of 1024 x 1024:
fov = 1.85459 radians (106.26 degrees)
aspRatio= 1.0
camSelected = new Camera(this, 0, 0, screenWidth/2,
0, 1, screenWidth/2,
0, 0, 1,
fov, aspRatio);
What should the settings be for a screen size of 1024 x 768 in order to achieve the same effect as in the two snapshots?
The reason why I need this to be exactly right is that I am lining up multiple screens and at different angles so everything needs to match up perfectly.
For info I am running the sketch in Present mode to ensure the screen is filled and there are no borders.
Any ideas anyone? I've tried lots of different settings but I never seem to get it just right.