projects:voyc:design_notes
Differences
This shows you the differences between two versions of the page.
| projects:voyc:design_notes [2023/01/12 03:14] – created jhagstrand | projects:voyc:design_notes [2023/01/26 20:58] (current) – [Polygons] jhagstrand | ||
|---|---|---|---|
| Line 129: | Line 129: | ||
| In voyc, all of our polygon data is closed.\\ | In voyc, all of our polygon data is closed.\\ | ||
| Therefore, we do not use closePath(). | Therefore, we do not use closePath(). | ||
| + | |||
| + | |||
| + | ===== Perspective Correction ===== | ||
| + | |||
| + | Drawing the Hires layer. | ||
| + | |||
| + | Projecting a bitmap onto a sphere. | ||
| + | |||
| + | Splitting a rectangular bitmap into smaller tiles, and projecting each onto the sphere. | ||
| + | |||
| + | Each bitmap tile must be perspective corrected. | ||
| + | |||
| + | Javascript canvas ctx commands available: | ||
| + | * rotate() | ||
| + | * scale() | ||
| + | * skew() | ||
| + | * translate() | ||
| + | * transform() - all of the above using matrix math | ||
| + | * clip() | ||
| + | |||
| + | These commands will NOT do perspective correction. aka distort, warp, free transform. | ||
| + | |||
| + | http:// | ||
| + | http:// | ||
| + | http:// | ||
| + | |||
| + | |||
| + | |||
| + | |||
projects/voyc/design_notes.1673511246.txt.gz · Last modified: 2023/01/12 03:14 by jhagstrand