opengl - How to convert a fisheye image to 5 or 6 cubic image -


I want to open a 2D fisheye image in the 3D cube. So I thought the fisheye image must be unloaded in 6 cubic image and remap 6 cubic image to the 3D cube. And now I am confused about the first phase and can not implement certain papers and codes on the Internet, and hopefully someone can give me some ideas. Here's the result I can get:

cubic image cubic image

Fisheye image < / P>

It is not possible to open an arbitrary Fasci image on cubemap. However, if you were talking about the circular atmosphere map (SEM) but not a phishing image, then it can be done with some limitations.

Some time back, I write a software to convert a SEM map into Qyomep and vice versa. So I can prove that this is possible. You should be aware that you will get big distortions in the area near the edge of the SEM, which are mapped to the center of the face behind the Qumeppe. Read it, you will find all the necessary information to implement what you want.

There is a function, which maps page vector to page 9 # on the SV's UV coordinate, you will find similar functions on page # 21, but for Qumep, therefore, your strategy is a direction For each text of the veemer's curameup, we have to find the coordinates of vector SEM for this direction and sample a texle from the SEM map.

From the PS link, which you have added to your comments, I have noticed that you were talking about half the area environment map, all the logic would be similar, the mapping from a 3D direction vector Except SIM coordinates. To work with half the area, it is not difficult to change the equation from Page # 9. You should be aware that for a semi-region SEM, you will get half a cubume. I mean, without a back and with a cropped face.


Comments