05206nam 2200745 a 450 991046242830332120200520144314.01-280-87294-297866137142511-84969-173-8(CKB)2670000000210703(EBL)948496(OCoLC)797917408(SSID)ssj0000694305(PQKBManifestationID)12340620(PQKBTitleCode)TC0000694305(PQKBWorkID)10666732(PQKB)11477275(OCoLC)812179996(MiAaPQ)EBC948496(CaSebORM)9781849691727(PPN)227999916(Au-PeEL)EBL948496(CaPaEBR)ebr10571194(CaONFJC)MIL371425(EXLCZ)99267000000021070320130507d2012 uy 0engur|n|---|||||txtccrWebGL beginner's guide[electronic resource] become a master of 3D web programming in WebGL and JavaScript /Diego Cantor, Brandon Jones1st editionBirmingham, England ;Mumbai, India Packt Publishingc20121 online resource (377 p.)Learn by doing : less theory, more resultsIncludes index.1-84969-172-X Cover; Copyright; Credits; About the Authors; Acknowledgement; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Started with WebGL; System requirements; What kind of rendering does WebGL offer?; Structure of a WebGL application; Creating an HTML5 canvas; Time for action - creating an HTML5 canvas; Defining a CSS style for the border; Understanding canvas attributes; What if the canvas is not supported?; Accessing a WebGL context; Time for action - accessing the WebGL context; WebGL is a state machine; Time for action - setting up WebGL context attributesUsing the context to access the WebGL APILoading a 3D scene; Virtual car showroom; Time for action - visualizing a finished scene; Summary; Chapter 2: Rendering Geometry; Vertices and Indices; Overview of WebGL's rendering pipeline; Vertex Buffer Objects (VBOs); Vertex shader; Fragment shader; Framebuffer; Attributes, uniforms, and varyings; Rendering geometry in WebGL; Defining a geometry using JavaScript arrays; Creating WebGL buffers; Operations to manipulate WebGL buffers; Associating attributes to VBOs; Binding a VBO; Pointing an attribute to the currently bound VBOEnabling the attributeRendering; The drawArrays and drawElements functions; Putting everything together; Time for action - rendering a square; Rendering modes; Time for action - rendering modes; WebGL as a state machine: buffer manipulation; Time for action - enquiring on the state of buffers; Advanced geometry loading techniques: JavaScript Object Notation (JSON) and AJAX; Introduction to JSON - JavaScript Object Notation; Defining JSON-based 3D models; JSON encoding and decoding; Time for action - JSON encoding and decoding; Asynchronous loading with AJAX; Setting up a web serverWorking around the web server requirementTime for action - loading a cone with AJAX + JSON; Summary; Chapter 3: Lights!; Lights, normals, and materials; Lights; Normals; Materials; Using lights, normals, and materials in the pipeline; Parallelism and the difference between attributes and uniforms; Shading methods and light reflection models; Shading/interpolation methods; Goraud interpolation; Phong interpolation; Light reflection models; Lambertian reflection model; Phong reflection model; ESSL-OpenGL ES Shading Language; Storage qualifier; Types; Vector components; Operators and functionsVertex attributesUniforms; Varyings; Vertex shader; Fragment shader; Writing ESSL programs; Goraud shading with Lambertian reflections; Time for action - updating uniforms in real time; Goraud shading with Phong reflections; Time for action - Goraud shading; Phong shading; Time for action - Phong shading with Phong lighting; Back to WebGL; Creating a program; Initializing attributes and uniforms; Bridging the gap between WebGL and ESSL; Time for action - working on the wall; More on lights: positional lights; Time for action - positional lights in action; Nissan GTS example; SummaryChapter 4: CameraBecome a master of 3D web programming in WebGL and JavaScriptComputer graphicsComputer programsHTML (Document markup language)Internet programmingJavaScript (Computer program language)Electronic books.Computer graphicsComputer programs.HTML (Document markup language)Internet programming.JavaScript (Computer program language)006.6869Cantor Diego942731Jones Brandon942732MiAaPQMiAaPQMiAaPQBOOK9910462428303321WebGL beginner's guide2127352UNINA