🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.0 KiB

  1. # Simple HDR cubemap to longlat(longitude latitude. or known as equirectangular) converter.
  2. ## Requirements
  3. * C++11 compiler
  4. ## Coordinate definition.
  5. * Y-up
  6. * Right-handed
  7. * Center is -z
  8. ## Usage
  9. Assume cubemap image is given by 6 images(6 faces).
  10. ```
  11. $ ./cube2longlat px.exr nx.exr py.exr ny.exr pz.exr nz.exr 512 longlat.exr (phi_offset)
  12. ```
  13. Optional `phi_offset` is used to add offset(by angle) to phi to rotate X and Z faces.
  14. ## Supported input image format
  15. * [ ] RGBM(Filament's RGBM encoding. Multiplier is 16, and gamma corrected) Implemented but not tested.
  16. * [x] EXR
  17. ## Supported output image format
  18. * [ ] RGBM(Filament's RGBM encoding. Multiplier is 16, and gamma corrected) Implemented but not tested.
  19. * [x] EXR
  20. * [x] RGBE
  21. ## Note
  22. 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.
  23. Use `--mirror` when invoking `cmgen` if required.
  24. ## TODO
  25. * Single cubemap image(cross layout)
  26. * Better antialiasing
  27. * theta offset
  28. * Mirroring.