DiscussionsIssue archiveDraw Harness and Samples

Archived discussion

NbMsaaSamples in WebGL

Draw Harness and SamplesFri, 03/11/2022 - 08:263 replies

Browse this forum
QuestionAuthor

Dear All,

I'm searching the way to enable MSAA in WebGL.
And I found that NbMsaaSamples works on the OCCT 7.7 (dev) at this article : https://dev.opencascade.org/content/usage-problem-anti-aliasing-webassembly

So, I cloned the latest OCCT from Github (https://github.com/Open-Cascade-SAS/OCCT)
I assumed that the latest dev version should be 7.7

But the test result... NbMsaaSamples doesn't work.
Is the github latest 7.7 right?

Discussion

3 archived replies

Posts are displayed in their archived order.

01Commenter-1

How exactly you have checked MSAA? What do you display on the screen?

Note that MSAA support in WebGL is still limited - for instance, Immediate Layer will be rendered without MSAA as there is no way to blit one MSAA framebuffer into another MSAA framebuffer in WebGL.

02Author

Oh Sorry, I used the immediate rendering. Let me try with FBO and attach the result in this thread! Thank you!!

03Commenter-1

Author wrote:

Oh Sorry, I used the immediate rendering. Let me try with FBO and attach the result in this thread! Thank you!!

So, you are adding your own OpenGL code here? Interesting.