Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

John/adjust camera to viewport #44

Closed
wants to merge 4 commits into from

Conversation

johnkit
Copy link
Contributor

@johnkit johnkit commented Oct 16, 2014

This branch updates vtkMap to adjust the camera view angle based on the size of the viewport (specifically, the height of the viewport). The current code uses a constant 30 degrees, which is the vtk default. The purpose of this branch is to maintain a 1:1 ratio between the viewport pixel size and the tile pixel size.

By keeping the pixel sizes in sync, texture interpolation is not needed and no longer enabled. The result is a slight improvement in image sharpness, particularly with text/labels.

I am not 100% sure we want to merge these changes, however, as it will introduce perspective distortion of 3-D data (another reason to have 2 renderers, I suppose...)

So that textures don't have to be interpolated.
Modified example start coords for better visual comparison.
In order to keep tile textures 1:1 with viewport pixels
Also updated comments slightly
@johnkit
Copy link
Contributor Author

johnkit commented Oct 18, 2014

This is too aggressive, so let's drop it. Nonetheless, I still want to add an orthographic mode, so that we can reproduce the full image fidelity of each map tile.

@johnkit johnkit closed this Oct 18, 2014
@johnkit johnkit deleted the john/adjust-camera-to-viewport branch December 1, 2014 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant