fisheye on hemisphere texture mapping

Apr 22, 2012 at 10:16pm

fisheye on hemisphere texture mapping

Hi all,

I’m trying to map a fisheye image onto a hemisphere mesh. I’ve gotten close, but the texture mapping is not quite right. The edges near the equator are stretched and the pole is squished. Does anyone have suggestions?

I’ve pasted the patch below. Try this fisheye image:

http://paulbourke.net/exhibition/astc2007/sponge_b.jpg

In the example you will see how the lines of the image get wavy near the equator as a result of the incorrect texture map.

Thanks,
Charles

– Pasted Max Patch, click to expand. –
#63148
Apr 24, 2012 at 4:50am

Just off the top of my head, it seems that this problem could be caused by the fact that the image you are using is, in itself, a mapping of 3D data on a 2D screen. Using a texture on 3D geometry is the same thing; we see it in 2D so the GPU has to re-map it.
What you would need would be similar to a mercator projection. Perhaps someone here has made an automatic mercator converter.

#227867
Apr 29, 2012 at 1:36pm

The answer is that you have to make a custom texture map. Thank you Paul Bourke:

http://paulbourke.net/texture_colour/texturemap/#fisheye

#227868
Apr 30, 2012 at 7:52pm

Awesome link veasec! We’re doing some projecting in a planetarium and were looking for this exact material! Thanks so much!

#227869

You must be logged in to reply to this topic.