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!!**

Filter by
Sorted by
Tagged with
26
votes
4answers
18k views

Javascript and WebGL, external scripts

Just curious; How do I place my webgl shaders, in an external file? Currently I'm having; <script id="shader-fs" type="x-shader/x-fragment"> #ifdef GL_ES precision ...
4
votes
1answer
870 views

Where can I find the latest status of WebGL support in browsers? [closed]

Where can I find a regularly updated table that shows which browsers support WebGL and when they will support them?
0
votes
4answers
208 views

What is the language behind this game?

I stumbled upon this GWT Quake 2 port for the browsers: http://www.youtube.com/watch?v=fyfu4OwjUEI Is it really made in Java? Or something else, like JavaScript perhaps, since it's using WebGL API?
3
votes
1answer
2k views

Freeing loaded texture on WebGL

The Textured Box demo on http://www.khronos.org/webgl/wiki/Demo_Repository has the following code snippets: function loadImageTexture(ctx, url) { var texture = ctx.createTexture(); // allocate ...
8
votes
1answer
17k views

Passing an array of vectors to a uniform

I am trying to implement multiple lights in my shader but I have trouble to fill the uniform with my light data. My vertex shader: attribute vec3 aVertex; attribute vec3 aNormal; attribute vec2 ...
5
votes
2answers
7k views

Accessing image/texture data (texels) on WebGL

I have the following code snippet on WebGL: var texture = gl.createTexture(); texture.image = new Image(); texture.image.onload = function() { .... // I want to read the pixels once the image ...
0
votes
3answers
527 views

Dispay 3D video on the web without plugins

Here is a possibly unanswerable question... How do I create a website capable of displaying 3D images on a 3D capable display/monitor without using plugins? Ignore the issues of bandwidth as they ...
7
votes
1answer
6k views

How to implement this rotating spiral in WebGL? [closed]

Could somebody try to implement given animation into WebGL shader example? It would be great for people learing WebGL like myself. Source: http://dvdp.tumblr.com/post/2664387637/110109
5
votes
3answers
2k views

WebGL Benchmark - What kind of tests should I create?

(I am not sure if this should be on https://softwareengineering.stackexchange.com/ or not, please comment if you think so) I am about to create a benchmark for WebGL implementations for my bachelor ...
0
votes
1answer
906 views

Normals per index?

I have a pyramid which has 5 vertex and 18 indices. As I want to add normals to each face I just found solution for normals for each vertex. That means I can't use indices to define my pyramid I need ...
2
votes
1answer
958 views

Computing half vector on WebGL

http://www.lighthouse3d.com/opengl/glsl/index.php?ogldir2 shows the following: H = Eye - L I did the following on my WebGL vertex shader to compute the half-vector: vec4 ecPosition = u_mvMatrix * ...
6
votes
1answer
2k views

Is there any example on the web how Collision Detection can be implemented with Shaders?

Is there any OpenGL, OpenGL ES or WebGL code example on the web how 3D Collision Detection can be implemented with Shaders (preferably GLSL)? Thank you.
2
votes
1answer
974 views

Manipulating gl_LightSource[gl_MaxLights]

The The OpenGL ® Shading Language Spec version 1.20 http://www.opengl.org/registry/doc/GLSLangSpec.Full.1.20.8.pdf shows the following: struct gl_LightSourceParameters { vec4 ambient; // ...
1
vote
1answer
521 views

What's happening with the Google O3D WebGL wrapper?

I am not seeing any updates for Google O3D WebGL wrapper for a very long time, and I am not seeing much in the form of posts regarding o3d webgl on this site or other content on the internet - what's ...
0
votes
1answer
3k views

WebGL Water Shader with Texture and Reflection in O3D .. anyone have an example?

WebGL Water Shader with Texture and Reflection in O3D .. anyone have an example? Thanks

15 30 50 per page
1
406 407
408
409 410
412