MantisBT - Open CASCADE
View Issue Details
0032039Open CASCADE[OCCT] OCCT:Visualizationpublic2021-01-04 12:002021-01-12 14:43
kgv 
bugmaster 
normalfeature 
reviewedopen 
 
[OCCT] 7.6.0* 
0032039: Visualization, TKOpenGl - implement simple shadow mapping for a direct light source
It is proposed extending real-time renderer with basic shadow mapping capabilities - as a first step implementation could be limited to a single directional light source.
No tags attached.
child of 0031646new iko Visualization - shadow mapping within real-time renderer 
png buggy_raytrace.png (35,965) 2021-01-10 04:31
https://tracker.dev.opencascade.org/
png buggy_phong.png (34,057) 2021-01-10 04:32
https://tracker.dev.opencascade.org/
png buggy_pbr.png (34,372) 2021-01-10 04:32
https://tracker.dev.opencascade.org/
Issue History
2021-01-04 12:00kgvNew Issue
2021-01-04 12:00kgvAssigned To => kgv
2021-01-04 12:01kgvRelationship addedchild of 0031646
2021-01-09 23:38gitNote Added: 0098023
2021-01-10 02:32gitNote Added: 0098033
2021-01-10 04:27kgvNote Added: 0098037
2021-01-10 04:27kgvAssigned Tokgv => osa
2021-01-10 04:27kgvStatusnew => resolved
2021-01-10 04:31kgvFile Added: buggy_raytrace.png
2021-01-10 04:32kgvFile Added: buggy_phong.png
2021-01-10 04:32kgvFile Added: buggy_pbr.png
2021-01-12 14:37osaNote Added: 0098089
2021-01-12 14:37osaAssigned Toosa => bugmaster
2021-01-12 14:37osaStatusresolved => reviewed
2021-01-12 14:43kgvNote Added: 0098090

Notes
(0098023)
git   
2021-01-09 23:38   
Branch CR32039 has been created by kgv.

SHA-1: dcd21d48b4495214aff20161514a062f72eb1d95


Detailed log of new commits:

Author: kgv
Date: Mon Jan 4 12:17:44 2021 +0300

    0032039: Visualization, TKOpenGl - implement simple shadow mapping for a direct light source
    
    Graphic3d_CLight::ToCastShadows() - added new property defining if light should cast shadows (ignored by Ray-Tracing).
    
    OpenGl_ShaderManager::stdComputeLighting() now implements shadow mapping for directional lights.
    OpenGl_ShaderManager::prepareGeomMainSrc() now handles copying of arrays.
    OpenGl_Context::ShadowMapTexUnit() - added property defining an offset for shadow map texture units.
    OpenGl_ShadowMap - added new class storing shadow map FBO with parameters.
    OpenGl_View::prepareFrameBuffers() - added resizing of shadow map FBOs.
    OpenGl_View::Redraw() - added section redrawing scene into shadow map FBOs via OpenGl_View::renderShadowMap() method.
    
    vrenderparams - added new parameters -shadowMapResolution and -shadowMapBias.
(0098033)
git   
2021-01-10 02:32   
Branch CR32039 has been updated forcibly by kgv.

SHA-1: a2415614578d62eafa019fc12c2117bcc301dff2
(0098037)
kgv   
2021-01-10 04:27   
Patch is ready for review
- OCCT branch: CR32039.

http://jenkins-test-12.nnov.opencascade.com/view/CR32039-master-KGV/ [^]
(0098089)
osa   
2021-01-12 14:37   
The patch was reviewed
(0098090)
kgv   
2021-01-12 14:43   
Please use branch CR32039_1 for integration.