View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0032753||Open CASCADE||OCCT:Visualization||public||2021-12-28 11:01||2021-12-28 11:11|
|Summary||0032753: Visualization, TKOpenGl - bake 360 spherical panorama background into cubemap|
|Description||TKOpenGl provides an interface for setting 360 degrees image-based background in two ways:|
- As 360 spherical image `V3d_View::SetTextureEnv()` - legacy API supported by Ray-Tracing renderer (`Graphic3d_RenderingParams::UseEnvironmentMapBackground`) and by legacy OpenGL material model (unused in modern applications).
- As a cubemap image `V3d_View::SetBackgroundCubeMap()` - supported by Ray-Tracing renderer as well as a PBR rasterization renderer.
It is proposed to unify rendering logic and implement baking of 360-degrees spherical image into cubemap (as 0032606 does for a skybox), so that rendering logic supporting spherical images as alternative to cubemap could be dropped, and PBR renderer will be able to handle sphetrical panoramas.
As a further revision, `Graphic3d_CubeMap` might inherit base class `Graphic3d_TextureEnv`.
|Tags||No tags attached.|
|Test case number|