Code Archive Skip to content Google About Google Privacy Terms
å æ¥ãã¡ãã£ã¨ããæãã¤ã㧠WebKit ã® Nightly Build ãã¤ã³ã¹ãã¼ã«ãã WebGL ã試ãã¦ã¿ã¾ããã WebGL ã¨ããã®ã¯ç¾å¨çå®ä¸ã®æ°ããè¦æ ¼ã§ã JavaScript ã使ã£ã¦æ¬æ ¼ç㪠3DCG ãå®ç¾ãã API ã§ããåãç®çãæã¤ãã®ã¨ã㦠Google ã® O3D ãããã¾ããã WebGL 㯠OpenGL ES ã管çãã¦ãã Khronos ã°ã«ã¼ããä¸å¿ã« Google, Mozilla, Opera, NVIDIA, AMD ã¨ãã£ãä¼æ¥ãåç»ãã¦ãããæ¨æºåã¨ããé¢ã§ã¯ãªã¼ããã¦ãã¾ãã ã¾ã çå®ä¸ã®è¦æ ¼ãªã®ã§ä»å¾å¤åããããããã¾ãããï¼WebGL 1.0 ãæ£å¼ãªãªã¼ã¹ããã¾ããï¼ãå°ãªãã¨ãç¾ç¶ã® WebKit ã®å®è£ ã«ã¤ãã¦ã¯ä½¿ãæ¹ãããã£ãã®ã§ãæ¬æ¥ã¯ããããç´¹ä»ãã¾ãã WebGL 㯠Web ä¸ã®æãéè¦ãªã°ã©ãã£ãã¯ã¹ A
WebGL has been getting a fair amount of buzz lately - and rightfully so, because it is cool. For those that don't know, WebGL is the 3D extension of the Canvas element, based on OpenGL ES 2.0. Having a standardized low-level graphics API like that available in the browser is pretty exciting stuff if you ask me. 3D canvas graphics has been long underway and not until just recently did it get to an
WebGLã§ãã¯ã¹ãã£ã使ã - ã©ã·ã¦ã©ã®ç¶ãã§ãã çµè«ããè¨ãã¨ãcanvasåæ§ã«imgã§ãWebGLã®ãã¯ã¹ãã£ã«ä½¿ãã¾ããã座æ¨ç³»ã¯ãã¯ãç»åã®å·¦ä¸ã(0,0)ã§ããcanvas2dã§ãããã¨åæ§ã«æ±ããvideoã¿ã°ã§ãããããåæ§ã«ãã¯ã¹ãã£å©ç¨ãã§ãããã§ãã http://gist.github.com/216810 ä¸ä¸å転ããã«ã¯ãããããããããããã¾ãããããã¯vertex shaderã®ã³ã¼ã㧠texCoord = coord; ã texCoord = mat2(1.0, 0.0, 0.0, -1.0) * coord; ãªã©ã¨ãå¤æ´ããã®ãããã®ã§ã¯ãªãã§ããããã 1ãã¡ã¤ã«å®çµã«ãã ãã£ã¦ãããããã³ã¼ãä¸ã®imgã¿ã°ã«ã¯dataã¹ãã¼ã ã®URIã§ç»åãåãè¾¼ãã§ã¾ãããã¡ããhttpãªurlã§ããPNGã§ãªãã¦ãOKã§ãã ã¡ãªã¿ã«PNGãã¡ã¤ã«ã
WebGLã§æ¸ãã¦ã¿ãã - ã©ã·ã¦ã©ã®ã¤ã¥ãã§ãã WebGLã¯ã»ã¨ãã©OpenGLãã®ã¾ã¾ã®APIã§ããããã¯ã¹ãã£ã¯canvasè¦ç´ ã使ãããã«ãªã£ã¦ããããã§ããã®ãããã®ããæ¹ã¯ã¡ãã£ã¨ç¹æ®ã«ãªã£ã¦ããããã§ããæåãOpenGL風ã«RGBAé åãä½ã£ã¦å ¨ãæ©è½ãã大å¤ã§ããã(追è¨:imgãåæ§ã®æ¹æ³(texImage2D)ã§ãã¯ã¹ãã£ã«ä½¿ãã¾ã) (ãã¨ãããã³ã°ãããããã°ãããã¦ãã®ãã¨ã¯WebGLã§ã§ããããã«ãªãã¯ã) ä¾ http://gist.github.com/215896 ä¸ãWebGL表示ã§ãä¸ããã¯ã¹ãã£ã«ä½¿ãcanvasã§ãããã®ã³ã¼ãã§ã¯ããã¯ã¹ãã£åº§æ¨ããåè§å½¢ã®(-0.5, -0.5)ã(0,0), (0.5, 0.5)ã(1.0, 1.0)ã¨ãªãããã«æ¸ãã¦ã¾ããã©ããcanvasãã¯ã¹ãã£ã¯ãå·¦ä¸ã(0, 0)ã§ãå³ä¸ã(1.0, 1.0)ã«
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}