POV-Ray : Newsgroups : povray.general : Map Mollweide projection (elliptical) onto sphere : Map Mollweide projection (elliptical) onto sphere Server Time
29 Jul 2024 10:30:52 EDT (-0400)
  Map Mollweide projection (elliptical) onto sphere  
From: Adrian
Date: 7 Nov 2011 05:55:01
Message: <web.4eb7b7752242f00631dc6fa00@news.povray.org>
I have an image [1] of a spherical surface that I want to map onto a sphere, but
it is a Mollweide projection. I tried to convert it to a rectangular Mercator
projection (is that even the right one?) with Mathematica [2], but it doesn't
really work. I do get a rectangular image which kind of looks right, but when I
use the texture in Povray with

pigment { image_map { png "text.png" map_type 1 } }

the edges don't seem to match up and the texture looks distorted around the
poles. In the end, I want to create something similar to this [3]. What can I
do?

Adrian




[1] http://map.gsfc.nasa.gov/media/101080/101080_7yrFullSky_WMAP_1280B.png (I
cropped it properly, of course)

[2] invmerc[{x_, y_}] := {ArcTan[Sinh[y]], x};
theta2[phi_] := theta2[phi] =
   FindRoot[2 th + Sin[2 th] == Pi Sin[phi], {th, 0}][[1, 2]];
moll[{phi_, lambda_}] := {2 Sqrt[2] lambda Cos[theta2[phi]]/Pi,
   Sqrt[2] Sin[theta2[phi]]};
merc2moll[p_] := moll[invmerc[p]];
result = ImageTransformation[Import["text.png"], merc2moll,
   DataRange -> Sqrt[2] {{-2, 2}, {-1, 1}}];
Export["text-merc.png", result];

[3] http://particle.physics.ucdavis.edu/Graphics/rotate/wmap_movie.gif


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.