webgl
Efficient VBO allocation in WebGL
I\'m writing a WebGL application that algorithmically generates geometry. The geometry will consist of between 4-150 objects, each consisting of somewhere between 16 and 2048 points, drawn as a TRIANG[详细]
2023-04-05 02:06 分类:问答Using HTML5 WebGL Shaders for Computation
It seems to me like one could theoretically use WebGL for computation--such as computing primes or π or something along those lines.However, from what little I\'ve seen, the shader itself isn\'t writ[详细]
2023-04-04 12:53 分类:问答How to load textures to different faces of a cube in GLGE? (or at least WebGL)
I have 6 textures I would like to load on 6 different faces of a cube. I\'m trying to make a new texture by using GLGE.TextureCube();. And then I load all six images to the faces the supposedly should[详细]
2023-04-04 11:13 分类:问答how to avoid cross-domain security issues to draw a Facebook profile picture in a WebGL canvas?
I am experimenting with writing a Facebook game in HTML5, and am running up against the recent security changes in Chrome which prohibit the drawing of any cross-domain images on a WebGL canvas. I am[详细]
2023-04-04 01:30 分类:问答How to get object in WebGL 3d space from a mouse click coordinate
I\'m building a boardgame in WebGL. The board can be rotated/zoomed. I need a way to translate a click on the canvas element (x,y) into the relevant point in 3D space (x, y, z). The ultimate result is[详细]
2023-04-04 00:20 分类:问答WebGL: glsl attributes issue, getProgramParameter returns wrong number of attributes
I\'m making a simple WebGL demo. I have a simple vertex shader that takes two attributes and some uniforms. Here is the code:[详细]
2023-04-02 17:07 分类:问答Switch canvas context
Assuming that I have a WebGL canvas (by calling getContext("experimental-webgl")). Is there any way to switch context later for using a "2d" one ?[详细]
2023-04-02 09:24 分类:问答WebGL verbose mode in Chrome / Chromium
I wish to start in the web development using WebGL technology, but I have a minor issue. Usually, I test my applications in Chrome. I love its console which is, as far I\'m concerned, better than Fire[详细]
2023-04-02 07:45 分类:问答How to load image, create texture, render, and save image asynchronously with WebGL?
I am attempting to write an application that uses very large textures. The idea is that you work on a scaled version of the texture in realtime modifying shaders and when finished the application woul[详细]
2023-04-01 21:23 分类:问答WebGL - render depth to fbo texture does not work
For a post processing shader, I need the color and the depth buffer of my framebuffer. Accessing the colorbuffer works fine but I have problems creating the depthbuffer. I always get an INVALID_ENUM e[详细]
2023-04-01 09:59 分类:问答