主权项 |
1. A computer-implemented method of rendering a three-dimensional model of a geographic area, comprising:
rendering on a display of a computing device a polygon mesh from a perspective of a virtual camera, the polygon mesh modeling geometry of the geographic area; identifying, with the computing device, a reference direction associated with a view-dependent texture to be rendered in conjunction with the polygon mesh, the view-dependent texture optimized for viewing the three-dimensional model from a reference viewpoint associated with the reference direction; determining, with the computing device, a viewpoint direction associated with a fragment of the polygon mesh, the viewpoint direction extending from the virtual camera towards the fragment; determining, with the computing device, a stretching factor for the fragment based at least in part on the viewpoint direction associated with the fragment and the reference direction, the stretching factor indicative of the amount that a texture mapped image is stretched when mapped to the fragment; and selecting, with the computing device, a texture for rendering at the fragment based at least in part on the stretching factor. |