NbMsaaSamples in WebGL

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?

Kirill Gavrilov's picture

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.

David Coverdale's picture

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

Kirill Gavrilov's picture

David 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.