I have also seen problems with GL_POINTs and point size recently in some 
browsers, but the fixes should be live by now, you can check here, use the 
arrow left/right keys to increase/decrease point size:

http://floooh.github.io/oryol/asmjs/PrimitiveTypes.html

As Mark mentions below, you need to set gl_PointSize in the vertex shader 
in WebGL.

Cheers,
-Floh.

Am Donnerstag, 24. November 2016 03:59:02 UTC+8 schrieb Tero Pulkkinen:
>
> webgl with emscripten seems to do something odd with GL_POINTS in windows. 
> Linux/mac builds works ok, but windows browsers seem to give just black 
> screen where I expect some white points. normal opengl build in win32 works 
> ok, so it is something webgl related. The generated emscripten javascript 
> code is able to show the GL_POINTS; but only in linux/mac build. Every 
> browser in windows seem to have this problem, I've tried it with two 
> versions of chrome, edge and firefox, but they all seem to give just black 
> screen where GL_POINTS are expected. I've tried nvidia's gfx card, and 
> intel card, but both drivers are giving the same problem.
>
> I know shaders have some issues with number of uniform variables in webgl, 
> such that the limits are very small, like 15 uniform variables, before it 
> hits black screen kind of problems, but I don't think this piece of code 
> goes above that limit.
>
> Is there anyone who has got GL_POINTS working in windows webgl under 
> emscripten?
>
> // tp
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to