- C++11 compiler
- Y-up
- Right-handed
- Center is -z
Assume cubemap image is given by 6 images(6 faces).
$ ./cube2longlat px.exr nx.exr py.exr ny.exr pz.exr nz.exr 512 longlat.exr (phi_offset)
Optional phi_offset
is used to add offset(by angle) to phi to rotate X and Z faces.
- RGBM(Filament's RGBM encoding. Multiplier is 16, and gamma corrected) Implemented but not tested.
- EXR
- RGBM(Filament's RGBM encoding. Multiplier is 16, and gamma corrected) Implemented but not tested.
- EXR
- RGBE
When you create cubemap using Filament's cmgen https://github.com/google/filament/tree/master/tools/cmgen , its generated cubemap images are mirrored by X direction.
Use --mirror
when invoking cmgen
if required.
- Single cubemap image(cross layout)
- Better antialiasing
- theta offset
- Mirroring.