User Tools

Site Tools


projects:voyc:design_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

projects:voyc:design_notes [2023/01/12 03:14] – created jhagstrandprojects: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://tulrich.com/geekstuff/canvas/perspective.html \\
 +http://pubs.sciepub.com/ajme/2/7/29/index.html#Figure3 \\
 +http://www.java2s.com/Tutorials/Javascript/Canvas_How_to/Image/Shear_image_with_scale_function.htm\\
 +
 +
 +
 +
  
  
  
projects/voyc/design_notes.1673511246.txt.gz · Last modified: 2023/01/12 03:14 by jhagstrand

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki