MantisBT - Open CASCADE
View Issue Details
0024687Open CASCADE[OCCT] OCCT:Visualizationpublic2014-03-05 10:262014-11-11 12:51
apl 
bugmaster 
highminor 
closedfixed 
[OCCT] 6.7.0 
[OCCT] 6.8.0[OCCT] 6.8.0 
v3d glsl(013) phong_views
0024687: TKOpenGl shader programs - same view state for different v3d views
The GLSL program for some reason shares shader view orientation (projection) state between different views, which have different orientation (projection) specified at level of TKV3d.

There are test cases in v3d glsl test grid, which dump multiple views and have incorrect resulting images after dumping. The appropriate case testing this particular problem should be added.
pload ALL
box b 1 2 3
vinit View1
vsetdispmode 1
vaxo
vdisplay b
vfit
vrotate 0.2 0.0 0.0
vinit View2
vfit
--> image1.png (OK)

vshaderprog b phong
vactivate View1
--> image2.png (BAD)
No tags attached.
related to 0024250closed bugmaster Open CASCADE TKOpenGl - per-pixel lighting using GLSL program (Phong shading) 
related to 0024688closed bugmaster Open CASCADE Draw Harness - vdump command makes snapshot only for the first view 
png image1.png (64,680) 2014-03-05 10:27
https://tracker.dev.opencascade.org/
png image2.png (67,509) 2014-03-05 10:27
https://tracker.dev.opencascade.org/
Issue History
2014-03-05 10:26aplNew Issue
2014-03-05 10:26aplAssigned To => san
2014-03-05 10:27aplFile Added: image1.png
2014-03-05 10:27aplFile Added: image2.png
2014-03-05 10:28aplRelationship addedrelated to 0024250
2014-03-05 10:36kgvRelationship addedrelated to 0024688
2014-03-11 14:43kgvRelationship addedrelated to 0024354
2014-03-12 09:44kgvPrioritynormal => high
2014-03-18 18:35duvAssigned Tosan => duv
2014-03-18 18:36duvNote Added: 0028331
2014-03-18 18:36duvAssigned Toduv => kgv
2014-03-18 18:36duvStatusnew => resolved
2014-03-18 19:17kgvNote Added: 0028334
2014-03-18 19:17kgvAssigned Tokgv => bugmaster
2014-03-18 19:17kgvStatusresolved => reviewed
2014-03-18 19:18kgvNote Edited: 0028334bug_revision_view_page.php?bugnote_id=28334#r6993
2014-03-18 21:19mkvAssigned Tobugmaster => mkv
2014-03-19 18:15mkvNote Added: 0028370
2014-03-19 18:16mkvTest case number => v3d glsl(013) phong_views
2014-03-19 18:16mkvAssigned Tomkv => bugmaster
2014-03-19 18:16mkvStatusreviewed => tested
2014-03-21 16:18bugmasterChangeset attached => occt master e6804ff7
2014-03-21 16:18bugmasterStatustested => verified
2014-03-21 16:18bugmasterResolutionopen => fixed
2014-04-04 11:54abvTarget Version6.7.1 => 6.8.0
2014-11-11 12:47aivFixed in Version => 6.8.0
2014-11-11 12:51aivStatusverified => closed

Notes
(0028331)
duv   
2014-03-18 18:36   
Dear kgv,
Please review patch.
(0028334)
kgv   
2014-03-18 19:17   
(edited on: 2014-03-18 19:18)
Please test the patch in branch CR24687.

(0028370)
mkv   
2014-03-19 18:15   
Dear BugMaster,

Branch CR24687 (and products from GIT master) was compiled on Linux and Windows platforms and tested.
SHA-1: 3f052e4df4488e566a893e513f3993f00c6c05ac

Number of compiler warnings:

occt component :
Linux: 30 (30 on master)
Windows: 0 (0 on master)

products component :
Linux: 12 (12 on master)
Windows: 2 (2 on master)

Regressions/Differences:
No regressions/differences

Testing cases:
http://occt-tests/CR24687-master-occt/Debian60-64/v3d/glsl/phong_views.html [^]
http://occt-tests/CR24687-master-occt/Windows-32-VC9/v3d/glsl/phong_views.html [^]
v3d glsl(013) phong_views - OK

Testing on Linux:
Total MEMORY difference: 385934496 / 386276008
Total CPU difference: 45094.63000000015 / 48827.5

Testing on Windows:
Total MEMORY difference: 430627692 / 430913404
Total CPU difference: 33223.984375 / 35761.53125

There are no differences in images found by testdiff.