Convert 2:1 equirectangular panorama to cube map

前端 未结 11 1155
情深已故
情深已故 2020-11-30 17:30

I\'m currently working on a simple 3D panorama viewer for a website. For mobile performance reasons I\'m using the three.js CSS3 renderer. This requires a cube

11条回答
  •  粉色の甜心
    2020-11-30 18:09

    There are various representations of environment maps. Here is a nice overview.

    Overview - Panoramic Images

    If you use Photosphere (or any panorama app for that matter), you most likely already have the horizontal latitude / longitude representation. You can then simply draw a textured three.js SphereGeometry. Here is a tutorial on how to render earth.

    Tutorial - How to Make the Earth in WebGL?

    Best of luck :).

提交回复
热议问题