View Issue Details

IDProjectCategoryView StatusLast Update
0032754Open CASCADEOCCT:Visualizationpublic2024-04-08 18:14
Reporterkgv Assigned To 
Status assignedResolutionopen 
Target VersionUnscheduled 
Summary0032754: Visualization, TKOpenGl - Phong shading model ignores environment cubemap
DescriptionCurrently `Graphic3d_TypeOfShadingModel_Phong` implementation ignores environment cubemap set by `V3d_View::SetBackgroundCubeMap()`.
Although Phong shading wouldn't be able to implement a realistic environment as PBR renderer does, it could be still useful in some cases to map environment map as Ambient light source.

vec4 computeLighting (in vec3 theNormal,
                      in vec3 theView,
                      in vec4 thePoint)
  //Ambient  = occLightAmbient.rgb;
  Ambient  = occTextureCube (uTextureEnv, theNormal+ vec3 (1e-3, 2e-3, 3e-3)).rgb;

Note that Shader Manager already supports `Graphic3d_ShaderFlags_TextureEnv` but it's implementation relies on obsolete spherical panorama images, which are supposed to be removed by 0032753, and doesn't support color modulation - e.g. environment texture is just drawn solid on the object.
TagsNo tags attached.
Test case number


related to 0032753 new Visualization, TKOpenGl - bake 360 spherical panorama background into cubemap 


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2021-12-28 11:11 kgv New Issue
2021-12-28 11:11 kgv Assigned To => kgv
2021-12-28 11:11 kgv Relationship added related to 0032753
2021-12-28 11:11 kgv Assigned To kgv => CheskoArt
2021-12-28 11:11 kgv Status new => assigned
2022-08-17 11:55 kgv Target Version 7.7.0 => 7.8.0
2023-08-01 15:09 dpasukhi Target Version 7.8.0 => Unscheduled
2023-10-25 13:48 drochalo Assigned To CheskoArt => drochalo
2023-12-21 16:57 drochalo Assigned To drochalo =>
2024-03-13 14:09 ebelouso Assigned To => drochalo
2024-04-08 18:14 drochalo Assigned To drochalo =>