Update: After some reddit discussions with other mates, we reached to the conclusion that: The error catch by gl.getError() is not produced by GL’s method createShader(). “GetError() just returns the last error, which doesn’t mean it was necessarily the error that occurred fromt he last GL call you made. The error could’ve been from a long time ago, with many…
FPS (frames per second or frame rate) is very important in computer graphics programming to determine the performance of your game or program. Usually the best FPS is around 60(monitor refrash rate is usually at 60 hz) but you can go down to 30 FPS without notice big changes in performance. Below 25-30 FPS things get worse…
WebGL errors.Here I will write about all tricky stuff that I find and lead to nasty errors in WebGL So first one is a exception and it doesn’t render anything if vertices are on position 0 in shader :…
Webgl performance test in most popular browsers: Test order: 1. Firefox 23 (run it twice, forgot about cache) 2. Google Chrome 29 3. Internet Explorer 11 For this test I used a real-time polygon triangulation algorithm(monotone partitioning via poly2tri). For each country I keep the result triangles in a buffer so triangulation will be executed…
A few days ago I ran into a problem with fonts transprency and alpha blending in WebGL. To see what I’m talking about let me show you a picture with my fonts problem: You can see that, letters have white pixels in margins, which ruins the font :(. My fonts are exported from FreeType and…