Resize the viewer and choose a new mapping

This commit is contained in:
Brandon Dyck 2024-07-22 18:50:22 -06:00
parent bf1856c84c
commit 01d421d47b
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,6 @@
Try replacing UV mapping with shader sampling based on view direction
Make parallels denser at the poles where it makes a bigger difference
The south pole looks really good with very dense vertices.
The parallels should be the circles where the sphere would intersect with a series of concentric, evenly spaced cylinders.
Make the panning match the cursor
Enforce a minimum zoom that will keep the edges of the sphere from showing
This probably just needs simple math with the aspect and/or the viewport's diagonal length.

View File

@ -11,7 +11,7 @@
</head>
<body>
<h1>Panorama Viewer</h1>
<canvas id="viewer" width="800" height="300" style="border: 1px solid black;"></canvas>
<canvas id="viewer" width="800" height="800" style="border: 1px solid black;"></canvas>
<img id="image" height="400" width="800" src="Provo_River_Falls_360.JPG">
</body>
</html>