MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0030126Open CASCADE[OCCT] OCCT:Visualizationpublic2018-09-11 14:122018-09-11 14:15
Reporterkgv 
Assigned Tokgv 
PrioritynormalSeverityfeature 
StatusnewResolutionopen 
PlatformOSOS Version
Product Version 
Target Version[OCCT] 7.4.0*Fixed in Version 
Summary0030126: Visualization, OpenGl_ShaderManager - define standard Lighting & Clipping within custom GLSL programs as template functions
DescriptionCurrently, defining a custom GLSL program requires redefining of all major blocks, including shading (lighting) and clipping.

This limits flexibility of custom programs at application level, since when lighting is required, significant code blocks have to be copied, complicating GLSL source code and its maintenance (considering that application requires a minor customization of shader code).

It is proposed redefining major portions of standard GLSL programs as reusable functions, which custom GLSL program can mark as blocks for template substitution at Shader Manager.

This conception is already used within some custom Shader Managers within OCC Products - the approach can be adapted and improved for OpenGl_ShaderManager, and ideally custom Shader Managers can be further replaced by standard one.

Another issue is optimization of custom GLSL programs depending on number of lights and clipping planes - currently, these optimizations (handful for low-end hardware) are applicable only to built-in GLSL programs, because custom GLSL has only one cached instance within current design.
TagsNo tags attached.
Test case number
Attached Files

- Relationships
child of 0024192closedabv Adding support for shaders to OCCT visualization toolkit 
child of 0025282closedbugmaster Visualization, OpenGl_PrimitiveArray - provide built-in GLSL programs as alternative to FFP 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2018-09-11 14:12 kgv New Issue
2018-09-11 14:12 kgv Assigned To => kgv
2018-09-11 14:13 kgv Relationship added child of 0024192
2018-09-11 14:14 kgv Description Updated View Revisions
2018-09-11 14:15 kgv Relationship added child of 0025282


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker