Results 1 to 10 of 30

Thread: 3d scan of imperfect globe to a 2d Equirectangular Projection

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Administrator waldronate's Avatar
    Join Date
    Mar 2007
    Location
    The High Desert
    Posts
    3,576

    Default

    I am unfamiliar with an 2D Equilateral projection and I don't use Blender. I will guess that you meant "Equirectangular", where the vertical mapping linearly maps the latitude range -90 to +90 degrees to the pixel height of your image and maps the longitude range -180 to +180 degrees to pixel width according to the relation 1/cos(lat) (that is, progressively more stretched toward the poles). In this case, the UV (longitude,latitude) outputs have a simple relationship to things on the globe as described above.

    Your first image looks like it has a texture atlas stitched together onto a single image with some external mapping defining the texture-to-sphere coordinates. If you have access to this mapping, you should be able to transform it to points on the sphere and then split up your sphere into some uniform set of triangles and project the pixels from those triangles onto an equirectangular bitmap. In that case, more triangles would give better results, right up to the point where you have triangles that occupy a single pixel in the output image.

    Another option would be to take a few images in Blender using an Orthographic projection (view of the sphere from infinity) down each axis of the sphere and then feed them into program that will convert those images into an equirectangular bitmap (I'm partial to ReprojectImage from http://fracterra.com/ReprojectImage.zip mostly because I wrote it and am familiar with it). This sort of thing can be done with many of the common panorama stitchers.

    Blender should be able to render cube maps and that cube maps can generally be converted into equirectangular without too much effort. See your local search engine for more information. Your best bet in that case is to put the camera at the center of your sphere, because then the entirety of the generated cube map will be your sphere.

  2. #2

    Default

    Wow Waldronate, that's some serious help, tomorrow will be spent learning these key words and likely a PM or two your direction. Thank you very much!
    I've been so frustrated with this problem for just good starting material that I'm starting to look deep into search engines and find a better one than google.
    I've discovered a really handy cube map tool specifically for equirectangular projections from a sphere that everyone might like: https://www.youtube.com/watch?v=oklmDQx17HI&t=12s

    I've had this annoying habit where I've been substituting equirectangular with equilateral and my brain just can't kick the habit. I've updated the thread with the appropriate terms.

    The main issue I'm having at this moment is transposing my imperfect sphere onto a slightly smaller, perfect sphere, so that I can clean up the whole process and start applying algorithms.

    Again, Thank you Waldronate!
    Last edited by Vigilus; 11-05-2018 at 09:44 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •