MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Related Changesets ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0030640Open CASCADE[OCCT] OCCT:Visualizationpublic2019-04-08 19:312021-04-03 12:52
Reporterkgv 
Assigned Tobugmaster 
PrioritynormalSeverityfeature 
StatusverifiedResolutionfixed 
PlatformOSOS Version
Product Version 
Target Version[OCCT] 7.6.0*Fixed in Version 
Summary0030640: Visualization, Graphic3d_Camera - add option creating Projection matrix with [0,1] depth range
DescriptionCurrent Graphic3d_Camera implementation relies on conventional OpenGL NDC definition with depth range mapped to [-1,1] range (same as for other axes).

There are, however, another convention mapping depth into [0,1] range, adopted by Vulkan and Direct3D graphic APIs.
It is desired providing an option within Graphic3d_Camera computing suitable Projection matrix in this case.
TagsNo tags attached.
Test case numberv3d/shadows/dir3
Attached Files

- Relationships
parent of 0030631newkgv Visualization - Vulkan graphic driver prototype 
related to 0030638closedapn Visualization, TKOpenGl - load OpenGL 4.5 functions within OpenGl_Context 
Not all the children of this issue are yet resolved or closed.

-  Notes
(0083540)
git (administrator)
2019-04-08 19:53

Branch CR30640 has been created by kgv.

SHA-1: b31357a052c8f27a13bdbab71af70005e6eb378c


Detailed log of new commits:

Author: kgv
Date: Mon Apr 8 19:47:20 2019 +0300

    0030640: Visualization, Graphic3d_Camera - add option creating Projection matrix with [0,1] depth range
    
    Added new property Graphic3d_Camera::IsZeroToOneDepth() and OpenGl_Caps::useZeroToOneDepth
    for activating [0,1] depth range instead of [-1,1] range using glClipControl() within OpenGL 4.5+.
(0083543)
git (administrator)
2019-04-09 00:31

Branch CR30640 has been updated forcibly by kgv.

SHA-1: 2e8b47c9ff2154bbe7ad7d117ce5f21478d9688e
(0083544)
git (administrator)
2019-04-09 00:51

Branch CR30640 has been updated forcibly by kgv.

SHA-1: 1c78e0a59bf9886b36f1cafeca510c637216656f
(0083549)
git (administrator)
2019-04-09 10:14

Branch CR30640 has been updated forcibly by kgv.

SHA-1: 5b5f819f516cedbbfe31ae257fa656574c790cbb
(0099339)
git (administrator)
2021-03-03 15:53

Branch CR30640_1 has been created by kgv.

SHA-1: c1e1ba657125afe5566cc8371157bceb681bb155


Detailed log of new commits:

Author: kgv
Date: Wed Mar 3 14:58:46 2021 +0300

    0030640: Visualization, Graphic3d_Camera - add option creating Projection matrix with [0,1] depth range
    
    Added new property Graphic3d_Camera::IsZeroToOneDepth() and OpenGl_Caps::useZeroToOneDepth
    for activating [0,1] depth range instead of [-1,1] range using glClipControl() within OpenGL 4.5+.
(0099340)
git (administrator)
2021-03-03 16:40

Branch CR30640_1 has been updated forcibly by kgv.

SHA-1: d4c1b0ab723b747dd4af560b0c005923e32d1656
(0099345)
git (administrator)
2021-03-03 19:50

Branch CR30640_1 has been updated forcibly by kgv.

SHA-1: 09e0661c69f5ca4d4555067383caee92323b4101
(0099347)
git (administrator)
2021-03-03 20:34

Branch CR30640_1 has been updated forcibly by kgv.

SHA-1: ea59d0d5952c001fdac8e34b615cae0dcc912fdd
(0099348)
git (administrator)
2021-03-03 20:45

Branch CR30640_1 has been updated forcibly by kgv.

SHA-1: 7ecd3b5171cf28870c71cf6683868c7ac0746b27
(0099350)
git (administrator)
2021-03-03 21:14

Branch CR30640_1 has been updated forcibly by kgv.

SHA-1: a80ee4bf62cedbdab1d7c086ec5520a0a0c63d4c
(0099351)
git (administrator)
2021-03-03 21:26

Branch CR30640_1 has been updated forcibly by kgv.

SHA-1: 95f0e18f234ebb4790750be2ca4240929775dfee
(0099352)
git (administrator)
2021-03-03 21:26

Branch CR30640_1_test has been created by kgv.

SHA-1: 3df203f6b200a2fe9921e35aad531cada6d117ee


Detailed log of new commits:

Author: kgv
Date: Wed Mar 3 21:26:57 2021 +0300

    Test zero2one depth
(0099354)
kgv (developer)
2021-03-03 22:54

Patch is ready for review
- OCCT: branch CR30640_1;
- OCC Products: branch CR30640_1.

http://jenkins-test-12.nnov.opencascade.com:8080/view/CR30640_1-CR30640_1-KGV/view/ [^]
http://jenkins-test-12.nnov.opencascade.com:8080/view/CR30640_1-master-KGV-ZERO2ONE/view/ [^]
(0099414)
osa (developer)
2021-03-05 09:43

The patches were reviewed
(0099477)
bugmaster (administrator)
2021-03-06 12:16

Combination -
OCCT branch : IR-2021-03-05
master SHA - 58210e5983a7986bc4cd1bec9c0b5cb29828fda4
a87b7ddc8cb44606b91e3f37113847c3f5f50fdc
Products branch : IR-2021-03-05 SHA - b3d022cfefe721ee2ad6db68ca360345d656610b
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.

Number of compiler warnings:
No new/fixed warnings

Regressions/Differences/Improvements:
No regressions/differences

CPU differences:
Debian80-64:
OCCT
Total CPU difference: 17744.80000000016 / 17811.87000000015 [-0.38%]
Products
Total CPU difference: 11539.9800000001 / 11543.6500000001 [-0.03%]
Windows-64-VC14:
OCCT
Total CPU difference: 19321.640625 / 19344.390625 [-0.12%]
Products
Total CPU difference: 12868.796875 / 12900.578125 [-0.25%]


Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention
(0099490)
git (administrator)
2021-03-06 13:25

Branch CR30640_1_test has been deleted by inv.

SHA-1: 3df203f6b200a2fe9921e35aad531cada6d117ee
(0099491)
git (administrator)
2021-03-06 13:25

Branch CR30640_1 has been deleted by inv.

SHA-1: 95f0e18f234ebb4790750be2ca4240929775dfee
(0099506)
git (administrator)
2021-03-06 13:25

Branch CR30640 has been deleted by inv.

SHA-1: 5b5f819f516cedbbfe31ae257fa656574c790cbb

- Related Changesets
occt: master e70625d6
Timestamp: 2021-03-03 11:58:46
Author: kgv
Committer: bugmaster
Details ] Diff ]
0030640: Visualization, Graphic3d_Camera - add option creating Projection matrix with [0,1] depth range

Added new property Graphic3d_Camera::IsZeroToOneDepth() and OpenGl_Caps::useZeroToOneDepth
for activating [0,1] depth range instead of [-1,1] range using glClipControl() within OpenGL 4.5+.
mod - src/Graphic3d/Graphic3d_Camera.cxx Diff ] File ]
mod - src/Graphic3d/Graphic3d_Camera.hxx Diff ] File ]
mod - src/OpenGl/OpenGl_Caps.cxx Diff ] File ]
mod - src/OpenGl/OpenGl_Caps.hxx Diff ] File ]
mod - src/OpenGl/OpenGl_Context.cxx Diff ] File ]
mod - src/OpenGl/OpenGl_Context.hxx Diff ] File ]
mod - src/OpenGl/OpenGl_GlFunctions.cxx Diff ] File ]
mod - src/OpenGl/OpenGl_ShaderProgram.cxx Diff ] File ]
mod - src/OpenGl/OpenGl_ShadowMap.cxx Diff ] File ]
mod - src/OpenGl/OpenGl_View.hxx Diff ] File ]
mod - src/OpenGl/OpenGl_View_Raytrace.cxx Diff ] File ]
mod - src/OpenGl/OpenGl_Workspace.cxx Diff ] File ]
mod - src/SelectMgr/SelectMgr_BaseFrustum.cxx Diff ] File ]
mod - src/SelectMgr/SelectMgr_FrustumBuilder.cxx Diff ] File ]
mod - src/SelectMgr/SelectMgr_FrustumBuilder.hxx Diff ] File ]
mod - src/SelectMgr/SelectMgr_ViewerSelector.cxx Diff ] File ]
mod - src/Shaders/DirectionalLightShadow.glsl Diff ] File ]
mod - src/Shaders/PathtraceBase.fs Diff ] File ]
mod - src/Shaders/RaytraceBase.fs Diff ] File ]
mod - src/Shaders/Shaders_DirectionalLightShadow_glsl.pxx Diff ] File ]
mod - src/Shaders/Shaders_PathtraceBase_fs.pxx Diff ] File ]
mod - src/Shaders/Shaders_RaytraceBase_fs.pxx Diff ] File ]
mod - src/V3d/V3d_View.cxx Diff ] File ]
mod - src/ViewerTest/ViewerTest_ViewerCommands.cxx Diff ] File ]
add - tests/v3d/shadows/dir3 Diff ] File ]

- Issue History
Date Modified Username Field Change
2019-04-08 19:31 kgv New Issue
2019-04-08 19:31 kgv Assigned To => kgv
2019-04-08 19:31 kgv Relationship added related to 0030638
2019-04-08 19:31 kgv Relationship added parent of 0030631
2019-04-08 19:53 git Note Added: 0083540
2019-04-09 00:31 git Note Added: 0083543
2019-04-09 00:51 git Note Added: 0083544
2019-04-09 10:14 git Note Added: 0083549
2019-09-04 15:43 abv Target Version 7.4.0 => 7.5.0
2020-09-21 17:20 kgv Target Version 7.5.0 => 7.6.0*
2021-03-03 15:53 git Note Added: 0099339
2021-03-03 16:40 git Note Added: 0099340
2021-03-03 19:50 git Note Added: 0099345
2021-03-03 20:34 git Note Added: 0099347
2021-03-03 20:45 git Note Added: 0099348
2021-03-03 21:14 git Note Added: 0099350
2021-03-03 21:26 git Note Added: 0099351
2021-03-03 21:26 git Note Added: 0099352
2021-03-03 22:54 kgv Note Added: 0099354
2021-03-03 22:54 kgv Assigned To kgv => osa
2021-03-03 22:54 kgv Status new => resolved
2021-03-05 09:43 osa Note Added: 0099414
2021-03-05 09:43 osa Assigned To osa => bugmaster
2021-03-05 09:43 osa Status resolved => reviewed
2021-03-06 12:16 bugmaster Note Added: 0099477
2021-03-06 12:16 bugmaster Status reviewed => tested
2021-03-06 12:23 bugmaster Test case number => v3d/shadows/dir3
2021-03-06 12:34 bugmaster Changeset attached => occt master e70625d6
2021-03-06 12:34 bugmaster Status tested => verified
2021-03-06 12:34 bugmaster Resolution open => fixed
2021-03-06 13:25 git Note Added: 0099490
2021-03-06 13:25 git Note Added: 0099491
2021-03-06 13:25 git Note Added: 0099506


Copyright © 2000 - 2021 MantisBT Team
Powered by Mantis Bugtracker