Gregory Igehy

Dancing at hemisphere coordinate

Notes of BC1-BC7

Note of latitude-longitude mapping

  • dir = ( cos_phi * sin_theta, cos_theta, sin_phi * sin_theta )
  • uv = ( 0.5 + 0.5 * INV_PI * atan( dir.z / dir.x ), INV_PI * arccos( dir.y ) )