View Issue Details

IDProjectCategoryView StatusLast Update
0032754Open CASCADEOCCT:Visualizationpublic2021-12-28 11:11
Reporterkgv Assigned ToCheskoArt  
PrioritynormalSeverityminor 
Status assignedResolutionopen 
Target Version7.7.0 
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

Relationships

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

Activities

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