Cubic to equirectangular projection algorithm

后端 未结 5 1961

I have a cube map texture which defines a surrounding, however I need to pass it to a program which only works with latitude/longitude maps. I am really at lost here on how to d

5条回答
  •  难免孤独
    2021-02-03 16:32

    Project changed name to libcube2cyl. Same goodness, better working examples both in C and C++.


    Now also available in C.


    I happened to solve the exact same problem as you described.

    I wrote this tiny C++ lib called "Cube2Cyl", you can find the detailed explanation of algorithm here: Cube2Cyl

    Please find the source code from github: Cube2Cyl

    It is released under MIT licence, use it for free!

提交回复
热议问题