Questions tagged [webgl]

WebGL extends the capability of the HTML canvas element to allow it to render accelerated graphics in any compatible web browser. **DO NOT TAG QUESTIONS ABOUT 3D LIBRARIES (like THREE.js) WITH THIS TAG** unless the question is specifically about a WebGL API feature. **DO NOT TAG QUESTION ABOUT UNITY WEBGL WITH THIS TAG!!**

1,768 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
26
votes
2answers
2k views

phantomjs compile with webGL

I am trying to compile phantomjs to add webGL. Apparently it is possible because of: post on groups.google.com post on trac.webkit.org However, I have no idea how to do this. I have looked in all ...
13
votes
3answers
4k views

Draw to WebGL canvas directly from C++ application

I have been experimenting with Qt Webkit to render a video element in the browser. All of my frames are decoded by a C++ application (source video packets received over the network), and I can ...
11
votes
1answer
831 views

Android: how to exclude devices with webview that doesn't support webGL, i.e. are on the gpu_blacklist

I have an app containing a webview, that runs very poorly on devices where hardware acceleration doesn't work, e.g. some Samsung S4's running 5.0.1 I know from here: Supporting WebGL on Android 5&#...
11
votes
0answers
7k views

how can get 3D obj file from canvas in webgl?

Some question asked about how can use obj in webgl. But my question is how can get/save/export obj or ply file from content of canvas in webgl?! For example how can I get two objects in obj format ...
9
votes
1answer
2k views

Disable antialiasing in WebGL for specific geometry

I have written a tile-based engine - everything looks fine as long as antialiasing is disabled in WebGL. When antialiasing is enabled, sometimes pixels of the edge of tiles will get rendered which ...
8
votes
0answers
447 views

Visualising road segments as heatmap in Leaflet efficiently

I have data consisting of parts of road segments of a city, with different number of visits. I want to plot the data on a Map and visualise it in the form of a heatmap. I have two related questions: ...
8
votes
3answers
3k views

WebGL fragment shader not branching correctly on if statement

I'm working on a WebGL program which implements shadow mapping. After computing the depth values at each fragment, I have an if statement at the end which computes the lighting based on whether the ...
7
votes
0answers
1k views

Chrome WebGL performance wildly inconsistent?

function render(time, scene) { if (useFramebuffer) { gl.bindFramebuffer(gl.FRAMEBUFFER, scene.fb); } gl.viewport(0.0, 0.0, canvas.width, canvas.height); gl.clear(gl....
7
votes
1answer
5k views

THREE.js How to increase texture quality

What are the possible and good ways/best practices/etc to improve texture quality in THREE.js? I have a scene where I have planes(cards) with 512x512px textures. How it looks you can see on images ...
7
votes
0answers
549 views

Slow Shader compile time

I'm using three.js/r87. Chrome 60.0.3112.113. I build 2 meshes, each using a new ShaderMaterial, so that's 2 ShaderMaterials that are created. The vertex shader and fragment shader are the same in ...
7
votes
2answers
4k views

Re-enable WebGL without restarting Chrome

When Chrome stops WebGL and gives you the following error (in a yellow banner on top of the screen): "Rats! WebGL hit a snag...", and reloading does not work (WebGL is still not re-enabled), is it ...
7
votes
2answers
5k views

WebGL deleteBuffer leaking memory?

I've got a WebGL application that manages a lot of data. I've run into issues on IE11 in which it quickly runs out of memory (Chrome and FF do not exhibit this issue). However, when I created some ...
7
votes
1answer
3k views

What can cause requestAnimationFrame to drop frames in an efficient webgl loop?

I have been programming a javascript demo/test to learn WebGL. I have a fairly efficient game loop structure that (according to Chrome Dev Tools) only takes 1-2 milliseconds to run. I am using ...
7
votes
1answer
3k views

How to use "OculusRiftEffect.js" on the "webgl_interactive_cubes" examples

I was very excited when I first saw this example (webgl_geometry_minecraft_oculusrift) in mrdoob/three.js · GitHub website. Undoubtedly, it's pretty awesome! But I'm curious, how to apply this effect ...
6
votes
0answers
2k views

Security Error on webGL texImage2D function when using video from same domain as texture in ios 10.3?

I am having an issue in rendering 360 video to a canvas using webGL in ios 10.3 Similar symptoms of this issue point to the well known ios safari CORS issue that has yet to be fixed. The suggested ...

15 30 50 per page
1
2 3 4 5
118