View Issue Details

IDProjectCategoryView StatusLast Update
0026081Open CASCADEOCCT:Visualizationpublic2016-12-23 21:26
ReporterdbpAssigned Tobugmaster  
PrioritynormalSeverityfeature 
Status closedResolutionfixed 
Product Version6.8.0 
Target Version6.9.0Fixed in Version6.9.0 
Summary0026081: Visualization, TKOpenGl - rebuild vertex attributes in order to not render large index arrays in OpenGL ES
DescriptionMost OpenGL ES 2.0 devices do not support index arrays larger than 64K elements.
This limitation has been withdrawn since OpenGL ES 3.0, but it would be better to provide fallback solution for old devices.

The most straight-forward solution would be dropping index buffers larger than supported threshold and duplicate vertex attributes. Although this would cause extra memory usage, it does not look reasonable to implement more complex solution for outdated devices which would be thrown away in the nearest future.
Steps To ReproduceN/A
TagsNo tags attached.
Test case numberNot needed

Relationships

related to 0028276 closedapn Open CASCADE Visualization, Graphic3d_ArrayOfPrimitives - fix usage of 16-bit indices 

Activities

git

2015-04-15 12:32

administrator   ~0039769

Branch CR26081 has been created by dbp.

SHA-1: a9d78f743f1da5a1861364823416b510db53fa88


Detailed log of new commits:

Author: dbp
Date: Wed Apr 15 12:32:00 2015 +0300

    Visualization - Rebuild vertex attributes in order to not render large index arrays in OpenGL ES

Author: dbp
Date: Mon Apr 13 17:48:35 2015 +0300

    0026070: Ray tracing with reflections is poor on rotated presentation

dbp

2015-04-15 12:33

developer   ~0039770

Dear kgv,

please review the patch in branch CR26081.

kgv

2015-04-15 17:32

developer   ~0039798

+    Graphic3d_Buffer* anAttribs = new Graphic3d_Buffer (new NCollection_AlignedAllocator (16));

please use handle.

+  if (myIndices->NbElements > std::numeric_limits<GLushort>::max())
+  {

the check is improper - please check uint availability in runtime to avoid unnecessary actions:
    myHasGLuint = aCtx->IsGlGreaterEqual (3, 0)                || aCtx->CheckExtension ("GL_OES_element_index_uint");

git

2015-04-16 11:31

administrator   ~0039824

Branch CR26081 has been updated forcibly by dbp.

SHA-1: c994d028a76e5d66cf4f3dcc55e14a321a4c503c

dbp

2015-04-16 11:32

developer   ~0039825

The patch was fixed, see branch CR26081.

kgv

2015-04-16 11:47

developer   ~0039828

+  if (myIndices.IsNull() || theContext->IsGlGreaterEqual (3, 0) || theContext->CheckExtension ("GL_OES_element_index_uint"))

this flag should be cached in OpenGl_Context like field hasHighp and others (something like hasIndexUint).

git

2015-04-16 16:04

administrator   ~0039897

Branch CR26081_1 has been created by kgv.

SHA-1: ec3a9e2fb156f82ff50c9072e4e385d6b456281c


Detailed log of new commits:

Author: dbp
Date: Thu Apr 16 16:03:55 2015 +0300

    0026081: Visualization, TKOpenGl - rebuild vertex attributes in order to not render large index arrays in OpenGL ES

kgv

2015-04-16 19:13

developer   ~0039918

Please test the patch.

git

2015-04-17 17:10

administrator   ~0039978

Branch CR26081_1 has been updated forcibly by apv.

SHA-1: 98c0dbfd43082e6e4fc45581a447e30e01ee4392

apv

2015-04-17 17:11

tester   ~0039979

Branch CR26081_1 has been rebased on the current master

git

2015-04-24 16:52

administrator   ~0040221

Branch CR26081_1 has been updated forcibly by apv.

SHA-1: 707b0a9b5347bf30a58b4f67c8eb3b1d69633849

apv

2015-04-24 16:57

tester   ~0040222

Branch CR26081_1 has been rebased on the current master

apv

2015-04-27 18:31

tester   ~0040299

Dear BugMaster,

Branch CR26081_1 from occt git-repository (and master from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested.
SHA-1: 707b0a9b5347bf30a58b4f67c8eb3b1d69633849

Number of compiler warnings:
occt component:
   Linux: 18 (18 on master)
   Windows: 0 (0 on master)
products component:
   Linux: 4 (4 on master)
   Windows: 0 (0 on master)

Regressions/Differences:
Not detected

Testing cases:
Not needed

Testing on Linux:
Total MEMORY difference: 94788291 / 94581607 [+0.22%]
Total CPU difference: 55702.39999999911 / 51016.72999999946 [+9.18%]

Testing on Windows:
Total MEMORY difference: 57634491 / 57268183 [+0.64%]
Total CPU difference: 16314.89658199876 / 15811.13815279897 [+3.19%]

git

2015-05-14 16:36

administrator   ~0041093

Branch CR26081 has been deleted by inv.

SHA-1: c994d028a76e5d66cf4f3dcc55e14a321a4c503c

git

2015-05-14 16:36

administrator   ~0041094

Branch CR26081_1 has been deleted by inv.

SHA-1: 707b0a9b5347bf30a58b4f67c8eb3b1d69633849

Related Changesets

occt: master e99a2f7c

2015-04-16 13:03:55

dbp


Committer: bugmaster Details Diff
0026081: Visualization, TKOpenGl - rebuild vertex attributes in order to not render large index arrays in OpenGL ES Affected Issues
0026081
mod - src/OpenGl/OpenGl_Context.cxx Diff File
mod - src/OpenGl/OpenGl_Context.hxx Diff File
mod - src/OpenGl/OpenGl_PrimitiveArray.cxx Diff File
mod - src/OpenGl/OpenGl_PrimitiveArray.hxx Diff File

Issue History

Date Modified Username Field Change
2015-04-15 12:31 dbp New Issue
2015-04-15 12:31 dbp Assigned To => kgv
2015-04-15 12:31 dbp Assigned To kgv => dbp
2015-04-15 12:32 git Note Added: 0039769
2015-04-15 12:33 dbp Note Added: 0039770
2015-04-15 12:33 dbp Assigned To dbp => kgv
2015-04-15 12:33 dbp Status new => resolved
2015-04-15 12:33 dbp Steps to Reproduce Updated
2015-04-15 17:32 kgv Note Added: 0039798
2015-04-15 17:32 kgv Assigned To kgv => dbp
2015-04-15 17:32 kgv Status resolved => assigned
2015-04-16 11:31 git Note Added: 0039824
2015-04-16 11:32 dbp Note Added: 0039825
2015-04-16 11:32 dbp Assigned To dbp => kgv
2015-04-16 11:32 dbp Status assigned => resolved
2015-04-16 11:47 kgv Note Added: 0039828
2015-04-16 11:47 kgv Assigned To kgv => dbp
2015-04-16 11:47 kgv Status resolved => assigned
2015-04-16 11:48 kgv Product Version 6.9.0 => 6.8.0
2015-04-16 16:03 kgv Summary Visualization - Rebuild vertex attributes in order to not render large index arrays in OpenGL ES => Visualization, TKOpenGl - rebuild vertex attributes in order to not render large index arrays in OpenGL ES
2015-04-16 16:04 git Note Added: 0039897
2015-04-16 16:04 kgv Assigned To dbp => kgv
2015-04-16 16:04 kgv Status assigned => resolved
2015-04-16 19:13 kgv Note Added: 0039918
2015-04-16 19:13 kgv Assigned To kgv => bugmaster
2015-04-16 19:13 kgv Status resolved => reviewed
2015-04-17 15:41 apv Assigned To bugmaster => apv
2015-04-17 17:10 git Note Added: 0039978
2015-04-17 17:11 apv Note Added: 0039979
2015-04-24 16:52 git Note Added: 0040221
2015-04-24 16:57 apv Note Added: 0040222
2015-04-27 16:01 apv Test case number => Not needed
2015-04-27 16:28 kgv Description Updated
2015-04-27 18:31 apv Note Added: 0040299
2015-04-27 18:31 apv Assigned To apv => bugmaster
2015-04-27 18:31 apv Status reviewed => tested
2015-05-07 11:18 bugmaster Changeset attached => occt master e99a2f7c
2015-05-07 11:18 bugmaster Status tested => verified
2015-05-07 11:18 bugmaster Resolution open => fixed
2015-05-14 15:28 aiv Status verified => closed
2015-05-14 15:30 aiv Fixed in Version => 6.9.0
2015-05-14 16:36 git Note Added: 0041093
2015-05-14 16:36 git Note Added: 0041094
2016-12-23 21:26 kgv Relationship added related to 0028276