Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

WebGL

WebGL tuo 3D-grafiikan Webbin esittelemällä sovellusohjelmointirajapinnan (API), joka on läheisesti yhteensovpiva HTML5 canvas-elementissä käytetttävän OpenGL ES 2.0 -määrittelyn kanssa. Tuki WebGL:lle on nykyisin Firefox 4+ -selaimissa, Google Chrome 9+ -selaimissa, Opera 12+ -selaimissa ja Safari 5.1+ -selaimissa.

Kehitysaiheita

Kuinka aloittaa WebGL-asennus
Kuinka asettaa WebGL-ympäristö.
Lisätään 2D-sisältöä WebGL-ympäristöön
Kuinka renderoidaan yksinkertaisia litteitä muotoja WebGL:tä käyttäen.
Varjostimien käyttäminen värien toteuttamisessa WebGL:ssä
Esittelee, kuinka lisätä väri varjoja käyttäviin muotoihin.
Objektien animointi WebGL:ssä
Näyttää kuin kiertää ja muuntaa objekteja yksinkertaisten animaatioiden luomiseksi.
3D-objektien luominen käyttäen WebGL:ää
Näyttää, kuinka luoda ja animoida 3D-objekti (tässä tapauskessa kuutio).
Using textures in WebGL
Demonstrates how to map textures onto the faces of an object.
Lighting in WebGL
How to simulate lighting effects in your WebGL context.
Animating textures in WebGL
Shows how to animate textures; in this case, by mapping an Ogg video onto the faces of a rotating cube.
Parhaimmat WebGL-käytännöt
Vihjeitä ja suosituksia WebGL-sisällön luomiseksi.
Cross-domain textures
Information about loading textures from domains other than the one from which your content was loaded.
Using extensions
How to use extensions that are available in WebGL.
WebGL-spesifikaatio
WebGL-spesifikaatio.
Khronos WebGL site
The main web site for WebGL at the Khronos Group.
Learning WebGL
A site with tutorials on how to use WebGL.
The WebGL Cookbook
A web site with handy recipes for writing WebGL code.
Planet WebGL
A feed aggregator for people involved in the WebGL community.
ewgl-matrices
A blazing fast matrix library for WebGL
glMatrix
JavaScript Matrix and Vector library for High Performance WebGL apps
mjs
A JavaScript vector and matrix math library, optimized for WebGL usage.
Sylvester
An open source library for manipulating vectors and matrices. Not optimized for WebGL but extremely robust.
WebGL playground
An online tool for creating and sharing WebGL projects. Good for quick prototyping and experimenting.

Browser compatibility

Feature Firefox (Gecko) Chrome Internet Explorer Opera Safari
Basic support 4.0 (2.0) 9 Not supported 12 5.1
Context name experimental-webgl experimental-webgl n/a experimental-webgl experimental-webgl
OES_texture_float 6.0 (6.0) ? ? ? ?
OES_standard_derivatives 10.0 (10.0) ? ? ? ?
EXT_texture_filter_anisotropic 13.0 (13.0) ? ? ? ?
WEBGL_compressed_texture_s3tc 15.0 (15.0) ? ? ? ?
drawingBufferWidth and drawingBufferHeight attributes 9.0 (9.0) ? ? ? ?
Feature Firefox Mobile (Gecko) Android IE Mobile Opera Mobile Safari Mobile
Basic support ? ? ? ? ?
Context name ? ? ? ? ?
OES_texture_float 6.0 (6.0) ? ? ? ?
OES_standard_derivatives 10.0 (10.0) ? ? ? ?
EXT_texture_filter_anisotropic 13.0 (13.0) ? ? ? ?
WEBGL_compressed_texture_s3tc 15.0 (15.0) ? ? ? ?
drawingBufferWidth and drawingBufferHeight attributes 9.0 (9.0) ? ? ? ?

Gecko notes

WebGL debugging and testing

Starting with Gecko 10.0 (Firefox 10.0 / Thunderbird 10.0 / SeaMonkey 2.7), there are two preferences available which let you control the capabilities of WebGL for testing purposes:

webgl.min_capability_mode
A Boolean property that, when true, enables a minimum capability mode. When in this mode, WebGL is configured to only support the bare minimum feature set and capabilities required by the WebGL specification. This lets you ensure that your WebGL code will work on any device or browser, regardless of their capabilities. This is false by default.
webgl.disable_extensions
A Boolean property that, when true, disables all WebGL extensions. This is false by default.

Document Tags and Contributors

Tags: 
 Contributors to this page: fscholz, Karvjorm
 Last updated by: fscholz,