tag:blogger.com,1999:blog-3862349614860735414.post6200233419931518024..comments2023-12-01T18:08:38.825+00:00Comments on John Whigham's Blog: John Whighamhttp://www.blogger.com/profile/10862563515312224241noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-3862349614860735414.post-41108949506683390242011-12-09T08:45:37.838+00:002011-12-09T08:45:37.838+00:00The mapping from cube space to the sphere is simpl...The mapping from cube space to the sphere is simply a normalisation of the vector representing the point on the cube.<br /><br />So for example the point (x,y,z) on the surface of the cube can be mapped onto the sphere by dividing each of it's three co-ordinates by sqrt(x*x + y*y + z*z)<br /><br />Moving from tile to tile is accomplished by using 2D (u,v) co-ordinates for the position on the 'current' side of the cube then a lookup table is used to map (u,v) co-ordinates and direction of travel from one cube face to the next when crossing a side boundary.John Whighamhttps://www.blogger.com/profile/10862563515312224241noreply@blogger.comtag:blogger.com,1999:blog-3862349614860735414.post-29909270331617642822011-12-09T05:21:11.085+00:002011-12-09T05:21:11.085+00:00Do you just go around in spherical coordinates to ...Do you just go around in spherical coordinates to get each point, or is there some kind of transformation you can apply to each flat 32x32 patch to stretch it onto its section of the sphere?Schiavohttps://www.blogger.com/profile/13399653107815527457noreply@blogger.com