SlideShare ist ein Scribd-Unternehmen logo
1 von 39
Downloaden Sie, um offline zu lesen
3D In the Browser
                                   It’s go time.


                           Presented by Pascal Rettig
                           http://cykod.com @cykod


                        Liberally using Material From:
                        Mozilla MIT IAP WebGL Class
                           http://learningwebgl.com
Monday, July 11, 2011
When last I talked...



Monday, July 11, 2011
Where We are




          1977-84        1985-90   1991-94   1995-2000




Monday, July 11, 2011
Where we are




         Q1 2010        Q4 2010   Q2 2011   Q4 2011




Monday, July 11, 2011
I was wrong.




         Q1 2010        Q4 2010    Q2 2011




Monday, July 11, 2011
WebGL is enabled in:

                    • Chrome - Stable
                    • Firefox 4 Beta
                    • Webkit Nightly’s
                    • an Opera Preview Release
                    • IE ...Yeah, not anytime soon.

Monday, July 11, 2011
By the end of Q2
                        All major supported browsers should have WebGL
                                      turned on by default.




Monday, July 11, 2011
What can you do with
                             WebGL?
                        http://webglsamples.googlecode.com/hg/aquarium/
                                         aquarium.html

                        http://webglsamples.googlecode.com/hg/spacerocks/
                                         spacerocks.html




Monday, July 11, 2011
What is WebGL?
                        WebGL is a royalty-free, cross-platform API that
                        brings OpenGL ES 2.0 to the web as a 3D drawing
                        context within HTML, exposed as low-level
                        Document Object Model interfaces. It uses the
                        OpenGL shading language, GLSL ES, and can be
                        cleanly combined with other web content that is
                        layered on top or underneath the 3D content. It is
                        ideally suited for dynamic 3D web applications in the
                        JavaScript programming language, and will be fully
                        integrated in leading web browsers.

                                       http://www.khronos.org/




Monday, July 11, 2011
WebGL is:




Monday, July 11, 2011
WebGL is:
                    • A 1.0 Standard (as of 3/8/11) released by
                        the Khronos Group




Monday, July 11, 2011
WebGL is:
                    • A 1.0 Standard (as of 3/8/11) released by
                        the Khronos Group
                    • In-browser native (Look ma, no plugins!)




Monday, July 11, 2011
WebGL is:
                    • A 1.0 Standard (as of 3/8/11) released by
                        the Khronos Group
                    • In-browser native (Look ma, no plugins!)
                    • Implementation of OpenGL ES 2.0
                        (OpenGL for embedded systems)




Monday, July 11, 2011
WebGL is:
                    • A 1.0 Standard (as of 3/8/11) released by
                        the Khronos Group
                    • In-browser native (Look ma, no plugins!)
                    • Implementation of OpenGL ES 2.0
                        (OpenGL for embedded systems)
                    • A low level API (We’re not kidding around)

Monday, July 11, 2011
WebGL is:
                    • A 1.0 Standard (as of 3/8/11) released by
                        the Khronos Group
                    • In-browser native (Look ma, no plugins!)
                    • Implementation of OpenGL ES 2.0
                        (OpenGL for embedded systems)
                    • A low level API (We’re not kidding around)
                    • Well Integrated into the DOM - can layer,
                        use textures, etc.
Monday, July 11, 2011
OpenGL ES 2.0




Monday, July 11, 2011
OpenGL ES 2.0
                    • OpenGL for Embedded Systems




Monday, July 11, 2011
OpenGL ES 2.0
                    • OpenGL for Embedded Systems
                    • Well-defined subsets of desktop OpenGL




Monday, July 11, 2011
OpenGL ES 2.0
                    • OpenGL for Embedded Systems
                    • Well-defined subsets of desktop OpenGL
                    • What you’re using playing 3D games on
                        your iPhone 3G (Orig. iPhone, Android are
                        ES 1.0)




Monday, July 11, 2011
OpenGL ES 2.0
                    • OpenGL for Embedded Systems
                    • Well-defined subsets of desktop OpenGL
                    • What you’re using playing 3D games on
                        your iPhone 3G (Orig. iPhone, Android are
                        ES 1.0)
                    • OpenGL ES 1.X is for fixed function
                        hardware. 2.0 is fully programmable vertex
                        and fragement shaders.

Monday, July 11, 2011
WebGL uses shaders for
                       just about everything
                    • Little bits of run-time compiled code that
                        runs on the GPU
                    • GLSL (OpenGL Shading Language)
                    • “High Level” Shader language based on C
                    • Compiled at runtime
                    • Vertex shaders transform vertices
                    • Fragment shaders compute pixel colors
Monday, July 11, 2011
WebGL PipeLine
                             Vertex Operation
                                    ⇓
                               Rasterization
                                    ⇓
                            Fragment Operation
                                    ⇓
                               FrameBuffer




Monday, July 11, 2011
Simple(st) Shaders
     Vertex Shader
      attribute vec3 aVertexPosition;
      void main(void) {
         gl_Position = vec4(aVertexPosition, 1.0);
      }

     Fragment Shader
      void main(void) {
         gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);
      }


Monday, July 11, 2011
Which gets us...




Monday, July 11, 2011
Simplest Full Example
                             (From Mozilla IAP class)




Monday, July 11, 2011
More Tutorials at
                        LearningWebGl.com
                        • Based on the famous NeHe Open GL
                          Tutorials
                        • Textures: http://learningwebgl.com/
                          lessons/lesson05/index.html
                        • http://learningwebgl.com/blog/?
                          page_id=1217



Monday, July 11, 2011
Has anyone noticed a
                             problem?




Monday, July 11, 2011
Has anyone noticed a
                             problem?
             OpenGL isn’t exactly something you want to have to see on a
                  daily basis, especially as a Javascript Programmer




Monday, July 11, 2011
Abstraction Please...




Monday, July 11, 2011
PhiloGL
                        Relatively new framework from Sencha Labs
                            http://senchalabs.github.com/philogl/




Monday, July 11, 2011
PhiloGL
                    • “PhiloGL code is highly abbreviated
                        compared to WebGL.”
                    • Have transcribed the learningwebgl lessons
                        to PhiloGL
                    • http://senchalabs.github.com/philogl/
                        PhiloGL/examples/lessons/1/
                    • http://senchalabs.github.com/philogl/
                        PhiloGL/examples/lessons/5/
                    • Sort of neat, but kinda meh...
Monday, July 11, 2011
Mr. Doobs Three.js
                           https://github.com/mrdoob/three.js/
                   Generic 3D library that supports a WebGL rendering
                                  as one of the backends.




Monday, July 11, 2011
Three.js




Monday, July 11, 2011
Three.js
                  • Nice, standard OO Abstractions for 3D
                        programming.
                  • No documentation, but lots of examples in
                        the examples directory.
                  • Lots of Demos to look at on the Github
                        Page
                  • May be a little too abstract for performant
                        WebGL games, but they are reworking the
                        WebGL renderer, so who knows.
Monday, July 11, 2011
Copperlicht

                    • Bills itself as “Commercial grade WebGL
                        3D engine with editor”
                    • http://www.ambiera.com/copperlicht/
                    • Quake 3 Level http://bit.ly/fGKoOh


Monday, July 11, 2011
More Frameworks /
                             Engines
                          From the Chronos WebGL Wiki:
                         http://www.khronos.org/webgl/wiki/




Monday, July 11, 2011
glQuery




Monday, July 11, 2011
glQuery doesn’t exist...
                But it should - talk to me if you’re interested in working on
                                 something after the meetup.




Monday, July 11, 2011
Thanks!
                          Pascal Rettig
                        @cykod on Twitter




Monday, July 11, 2011

Weitere ähnliche Inhalte

Was ist angesagt?

GT Logiciel Libre - Convention Systematic 2011
GT Logiciel Libre - Convention Systematic 2011GT Logiciel Libre - Convention Systematic 2011
GT Logiciel Libre - Convention Systematic 2011Stefane Fermigier
 
PyCon 2011 Scaling Disqus
PyCon 2011 Scaling DisqusPyCon 2011 Scaling Disqus
PyCon 2011 Scaling Disquszeeg
 
Plone IDE - the future of Plone development
Plone IDE - the future of Plone developmentPlone IDE - the future of Plone development
Plone IDE - the future of Plone developmentMikko Ohtamaa
 
Alternative Mapping on iOS
Alternative Mapping on iOSAlternative Mapping on iOS
Alternative Mapping on iOSDevelopment Seed
 
Introduction to jQuery Mobile
Introduction to jQuery MobileIntroduction to jQuery Mobile
Introduction to jQuery MobileTroy Miles
 
Chocolatey Goodness: From Fringe to Mainstream #dotnetfringe
Chocolatey Goodness: From Fringe to Mainstream #dotnetfringeChocolatey Goodness: From Fringe to Mainstream #dotnetfringe
Chocolatey Goodness: From Fringe to Mainstream #dotnetfringeRob Reynolds
 

Was ist angesagt? (9)

GT Logiciel Libre - Convention Systematic 2011
GT Logiciel Libre - Convention Systematic 2011GT Logiciel Libre - Convention Systematic 2011
GT Logiciel Libre - Convention Systematic 2011
 
PyCon 2011 Scaling Disqus
PyCon 2011 Scaling DisqusPyCon 2011 Scaling Disqus
PyCon 2011 Scaling Disqus
 
Plone IDE - the future of Plone development
Plone IDE - the future of Plone developmentPlone IDE - the future of Plone development
Plone IDE - the future of Plone development
 
Play
PlayPlay
Play
 
HTML5 and Sencha Touch
HTML5 and Sencha TouchHTML5 and Sencha Touch
HTML5 and Sencha Touch
 
Alternative Mapping on iOS
Alternative Mapping on iOSAlternative Mapping on iOS
Alternative Mapping on iOS
 
ISA11 - Bill Scott - Designing Mice Men
ISA11 - Bill Scott - Designing Mice MenISA11 - Bill Scott - Designing Mice Men
ISA11 - Bill Scott - Designing Mice Men
 
Introduction to jQuery Mobile
Introduction to jQuery MobileIntroduction to jQuery Mobile
Introduction to jQuery Mobile
 
Chocolatey Goodness: From Fringe to Mainstream #dotnetfringe
Chocolatey Goodness: From Fringe to Mainstream #dotnetfringeChocolatey Goodness: From Fringe to Mainstream #dotnetfringe
Chocolatey Goodness: From Fringe to Mainstream #dotnetfringe
 

Ähnlich wie 3D in the Browser via WebGL: It's Go Time

WebGL Fundamentals
WebGL FundamentalsWebGL Fundamentals
WebGL FundamentalsSencha
 
JavaSE - The road forward
JavaSE - The road forwardJavaSE - The road forward
JavaSE - The road forwardeug3n_cojocaru
 
Javascript Views, Client-side or Server-side with NodeJS
Javascript Views, Client-side or Server-side with NodeJSJavascript Views, Client-side or Server-side with NodeJS
Javascript Views, Client-side or Server-side with NodeJSSylvain Zimmer
 
Conquistando el Servidor con Node.JS
Conquistando el Servidor con Node.JSConquistando el Servidor con Node.JS
Conquistando el Servidor con Node.JSCaridy Patino
 
Designing and developing mobile web applications with Mockup, Sencha Touch an...
Designing and developing mobile web applications with Mockup, Sencha Touch an...Designing and developing mobile web applications with Mockup, Sencha Touch an...
Designing and developing mobile web applications with Mockup, Sencha Touch an...Matteo Collina
 
The Fast, The Slow and the Lazy
The Fast, The Slow and the LazyThe Fast, The Slow and the Lazy
The Fast, The Slow and the LazyMaurício Linhares
 
EFL (Tizen Native Display Layer – Architecture & Usage) - Carsten Haitzler
EFL (Tizen Native Display Layer – Architecture & Usage)  - Carsten HaitzlerEFL (Tizen Native Display Layer – Architecture & Usage)  - Carsten Haitzler
EFL (Tizen Native Display Layer – Architecture & Usage) - Carsten HaitzlerRyo Jin
 
Erlang: Bult for concurrent, distributed systems
Erlang: Bult for concurrent, distributed systemsErlang: Bult for concurrent, distributed systems
Erlang: Bult for concurrent, distributed systemsKen Pratt
 
Develop Gwt application in TDD
Develop Gwt application in TDDDevelop Gwt application in TDD
Develop Gwt application in TDDUberto Barbini
 
Community Code: Xero
Community Code: XeroCommunity Code: Xero
Community Code: XeroSencha
 
2011 JavaOne Fun with EJB 3.1 and OpenEJB
2011 JavaOne Fun with EJB 3.1 and OpenEJB2011 JavaOne Fun with EJB 3.1 and OpenEJB
2011 JavaOne Fun with EJB 3.1 and OpenEJBDavid Blevins
 
node.js for front-end developers
node.js for front-end developersnode.js for front-end developers
node.js for front-end developersGarann Means
 
MongoDB at Sailthru: Scaling and Schema Design
MongoDB at Sailthru: Scaling and Schema DesignMongoDB at Sailthru: Scaling and Schema Design
MongoDB at Sailthru: Scaling and Schema DesignDATAVERSITY
 
Flowdock's full-text search with MongoDB
Flowdock's full-text search with MongoDBFlowdock's full-text search with MongoDB
Flowdock's full-text search with MongoDBFlowdock
 
2011 The Year of Web apps
2011 The Year of Web apps2011 The Year of Web apps
2011 The Year of Web appsJungHyuk Kwon
 
Opera Mobile HTML5 CSS3 Standards
Opera Mobile HTML5 CSS3 StandardsOpera Mobile HTML5 CSS3 Standards
Opera Mobile HTML5 CSS3 StandardsZi Bin Cheah
 
Ruby gvl-improvement at ruby 1.9.3
Ruby gvl-improvement at ruby 1.9.3Ruby gvl-improvement at ruby 1.9.3
Ruby gvl-improvement at ruby 1.9.3Motohiro KOSAKI
 
Clouds against the Floods (RubyConfBR2011)
Clouds against the Floods (RubyConfBR2011) Clouds against the Floods (RubyConfBR2011)
Clouds against the Floods (RubyConfBR2011) Leonardo Borges
 

Ähnlich wie 3D in the Browser via WebGL: It's Go Time (20)

WebGL Fundamentals
WebGL FundamentalsWebGL Fundamentals
WebGL Fundamentals
 
JavaSE - The road forward
JavaSE - The road forwardJavaSE - The road forward
JavaSE - The road forward
 
Javascript Views, Client-side or Server-side with NodeJS
Javascript Views, Client-side or Server-side with NodeJSJavascript Views, Client-side or Server-side with NodeJS
Javascript Views, Client-side or Server-side with NodeJS
 
Groke
GrokeGroke
Groke
 
Caridy patino - node-js
Caridy patino - node-jsCaridy patino - node-js
Caridy patino - node-js
 
Conquistando el Servidor con Node.JS
Conquistando el Servidor con Node.JSConquistando el Servidor con Node.JS
Conquistando el Servidor con Node.JS
 
Designing and developing mobile web applications with Mockup, Sencha Touch an...
Designing and developing mobile web applications with Mockup, Sencha Touch an...Designing and developing mobile web applications with Mockup, Sencha Touch an...
Designing and developing mobile web applications with Mockup, Sencha Touch an...
 
The Fast, The Slow and the Lazy
The Fast, The Slow and the LazyThe Fast, The Slow and the Lazy
The Fast, The Slow and the Lazy
 
EFL (Tizen Native Display Layer – Architecture & Usage) - Carsten Haitzler
EFL (Tizen Native Display Layer – Architecture & Usage)  - Carsten HaitzlerEFL (Tizen Native Display Layer – Architecture & Usage)  - Carsten Haitzler
EFL (Tizen Native Display Layer – Architecture & Usage) - Carsten Haitzler
 
Erlang: Bult for concurrent, distributed systems
Erlang: Bult for concurrent, distributed systemsErlang: Bult for concurrent, distributed systems
Erlang: Bult for concurrent, distributed systems
 
Develop Gwt application in TDD
Develop Gwt application in TDDDevelop Gwt application in TDD
Develop Gwt application in TDD
 
Community Code: Xero
Community Code: XeroCommunity Code: Xero
Community Code: Xero
 
2011 JavaOne Fun with EJB 3.1 and OpenEJB
2011 JavaOne Fun with EJB 3.1 and OpenEJB2011 JavaOne Fun with EJB 3.1 and OpenEJB
2011 JavaOne Fun with EJB 3.1 and OpenEJB
 
node.js for front-end developers
node.js for front-end developersnode.js for front-end developers
node.js for front-end developers
 
MongoDB at Sailthru: Scaling and Schema Design
MongoDB at Sailthru: Scaling and Schema DesignMongoDB at Sailthru: Scaling and Schema Design
MongoDB at Sailthru: Scaling and Schema Design
 
Flowdock's full-text search with MongoDB
Flowdock's full-text search with MongoDBFlowdock's full-text search with MongoDB
Flowdock's full-text search with MongoDB
 
2011 The Year of Web apps
2011 The Year of Web apps2011 The Year of Web apps
2011 The Year of Web apps
 
Opera Mobile HTML5 CSS3 Standards
Opera Mobile HTML5 CSS3 StandardsOpera Mobile HTML5 CSS3 Standards
Opera Mobile HTML5 CSS3 Standards
 
Ruby gvl-improvement at ruby 1.9.3
Ruby gvl-improvement at ruby 1.9.3Ruby gvl-improvement at ruby 1.9.3
Ruby gvl-improvement at ruby 1.9.3
 
Clouds against the Floods (RubyConfBR2011)
Clouds against the Floods (RubyConfBR2011) Clouds against the Floods (RubyConfBR2011)
Clouds against the Floods (RubyConfBR2011)
 

Mehr von Pascal Rettig

Web Typography for Front End Developers
Web Typography for Front End DevelopersWeb Typography for Front End Developers
Web Typography for Front End DevelopersPascal Rettig
 
Javascript Everywhere
Javascript EverywhereJavascript Everywhere
Javascript EverywherePascal Rettig
 
Vector Graphics on the Web: SVG, Canvas, CSS3
Vector Graphics on the Web: SVG, Canvas, CSS3Vector Graphics on the Web: SVG, Canvas, CSS3
Vector Graphics on the Web: SVG, Canvas, CSS3Pascal Rettig
 
Cracking the Customer Acquisition Nut
Cracking the Customer Acquisition NutCracking the Customer Acquisition Nut
Cracking the Customer Acquisition NutPascal Rettig
 
HTML5 Space Invaders
HTML5 Space InvadersHTML5 Space Invaders
HTML5 Space InvadersPascal Rettig
 

Mehr von Pascal Rettig (6)

Web Typography for Front End Developers
Web Typography for Front End DevelopersWeb Typography for Front End Developers
Web Typography for Front End Developers
 
Semantic chop
Semantic chopSemantic chop
Semantic chop
 
Javascript Everywhere
Javascript EverywhereJavascript Everywhere
Javascript Everywhere
 
Vector Graphics on the Web: SVG, Canvas, CSS3
Vector Graphics on the Web: SVG, Canvas, CSS3Vector Graphics on the Web: SVG, Canvas, CSS3
Vector Graphics on the Web: SVG, Canvas, CSS3
 
Cracking the Customer Acquisition Nut
Cracking the Customer Acquisition NutCracking the Customer Acquisition Nut
Cracking the Customer Acquisition Nut
 
HTML5 Space Invaders
HTML5 Space InvadersHTML5 Space Invaders
HTML5 Space Invaders
 

Kürzlich hochgeladen

Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 

Kürzlich hochgeladen (20)

Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 

3D in the Browser via WebGL: It's Go Time

  • 1. 3D In the Browser It’s go time. Presented by Pascal Rettig http://cykod.com @cykod Liberally using Material From: Mozilla MIT IAP WebGL Class http://learningwebgl.com Monday, July 11, 2011
  • 2. When last I talked... Monday, July 11, 2011
  • 3. Where We are 1977-84 1985-90 1991-94 1995-2000 Monday, July 11, 2011
  • 4. Where we are Q1 2010 Q4 2010 Q2 2011 Q4 2011 Monday, July 11, 2011
  • 5. I was wrong. Q1 2010 Q4 2010 Q2 2011 Monday, July 11, 2011
  • 6. WebGL is enabled in: • Chrome - Stable • Firefox 4 Beta • Webkit Nightly’s • an Opera Preview Release • IE ...Yeah, not anytime soon. Monday, July 11, 2011
  • 7. By the end of Q2 All major supported browsers should have WebGL turned on by default. Monday, July 11, 2011
  • 8. What can you do with WebGL? http://webglsamples.googlecode.com/hg/aquarium/ aquarium.html http://webglsamples.googlecode.com/hg/spacerocks/ spacerocks.html Monday, July 11, 2011
  • 9. What is WebGL? WebGL is a royalty-free, cross-platform API that brings OpenGL ES 2.0 to the web as a 3D drawing context within HTML, exposed as low-level Document Object Model interfaces. It uses the OpenGL shading language, GLSL ES, and can be cleanly combined with other web content that is layered on top or underneath the 3D content. It is ideally suited for dynamic 3D web applications in the JavaScript programming language, and will be fully integrated in leading web browsers. http://www.khronos.org/ Monday, July 11, 2011
  • 11. WebGL is: • A 1.0 Standard (as of 3/8/11) released by the Khronos Group Monday, July 11, 2011
  • 12. WebGL is: • A 1.0 Standard (as of 3/8/11) released by the Khronos Group • In-browser native (Look ma, no plugins!) Monday, July 11, 2011
  • 13. WebGL is: • A 1.0 Standard (as of 3/8/11) released by the Khronos Group • In-browser native (Look ma, no plugins!) • Implementation of OpenGL ES 2.0 (OpenGL for embedded systems) Monday, July 11, 2011
  • 14. WebGL is: • A 1.0 Standard (as of 3/8/11) released by the Khronos Group • In-browser native (Look ma, no plugins!) • Implementation of OpenGL ES 2.0 (OpenGL for embedded systems) • A low level API (We’re not kidding around) Monday, July 11, 2011
  • 15. WebGL is: • A 1.0 Standard (as of 3/8/11) released by the Khronos Group • In-browser native (Look ma, no plugins!) • Implementation of OpenGL ES 2.0 (OpenGL for embedded systems) • A low level API (We’re not kidding around) • Well Integrated into the DOM - can layer, use textures, etc. Monday, July 11, 2011
  • 16. OpenGL ES 2.0 Monday, July 11, 2011
  • 17. OpenGL ES 2.0 • OpenGL for Embedded Systems Monday, July 11, 2011
  • 18. OpenGL ES 2.0 • OpenGL for Embedded Systems • Well-defined subsets of desktop OpenGL Monday, July 11, 2011
  • 19. OpenGL ES 2.0 • OpenGL for Embedded Systems • Well-defined subsets of desktop OpenGL • What you’re using playing 3D games on your iPhone 3G (Orig. iPhone, Android are ES 1.0) Monday, July 11, 2011
  • 20. OpenGL ES 2.0 • OpenGL for Embedded Systems • Well-defined subsets of desktop OpenGL • What you’re using playing 3D games on your iPhone 3G (Orig. iPhone, Android are ES 1.0) • OpenGL ES 1.X is for fixed function hardware. 2.0 is fully programmable vertex and fragement shaders. Monday, July 11, 2011
  • 21. WebGL uses shaders for just about everything • Little bits of run-time compiled code that runs on the GPU • GLSL (OpenGL Shading Language) • “High Level” Shader language based on C • Compiled at runtime • Vertex shaders transform vertices • Fragment shaders compute pixel colors Monday, July 11, 2011
  • 22. WebGL PipeLine Vertex Operation ⇓ Rasterization ⇓ Fragment Operation ⇓ FrameBuffer Monday, July 11, 2011
  • 23. Simple(st) Shaders Vertex Shader attribute vec3 aVertexPosition; void main(void) { gl_Position = vec4(aVertexPosition, 1.0); } Fragment Shader void main(void) { gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0); } Monday, July 11, 2011
  • 24. Which gets us... Monday, July 11, 2011
  • 25. Simplest Full Example (From Mozilla IAP class) Monday, July 11, 2011
  • 26. More Tutorials at LearningWebGl.com • Based on the famous NeHe Open GL Tutorials • Textures: http://learningwebgl.com/ lessons/lesson05/index.html • http://learningwebgl.com/blog/? page_id=1217 Monday, July 11, 2011
  • 27. Has anyone noticed a problem? Monday, July 11, 2011
  • 28. Has anyone noticed a problem? OpenGL isn’t exactly something you want to have to see on a daily basis, especially as a Javascript Programmer Monday, July 11, 2011
  • 30. PhiloGL Relatively new framework from Sencha Labs http://senchalabs.github.com/philogl/ Monday, July 11, 2011
  • 31. PhiloGL • “PhiloGL code is highly abbreviated compared to WebGL.” • Have transcribed the learningwebgl lessons to PhiloGL • http://senchalabs.github.com/philogl/ PhiloGL/examples/lessons/1/ • http://senchalabs.github.com/philogl/ PhiloGL/examples/lessons/5/ • Sort of neat, but kinda meh... Monday, July 11, 2011
  • 32. Mr. Doobs Three.js https://github.com/mrdoob/three.js/ Generic 3D library that supports a WebGL rendering as one of the backends. Monday, July 11, 2011
  • 34. Three.js • Nice, standard OO Abstractions for 3D programming. • No documentation, but lots of examples in the examples directory. • Lots of Demos to look at on the Github Page • May be a little too abstract for performant WebGL games, but they are reworking the WebGL renderer, so who knows. Monday, July 11, 2011
  • 35. Copperlicht • Bills itself as “Commercial grade WebGL 3D engine with editor” • http://www.ambiera.com/copperlicht/ • Quake 3 Level http://bit.ly/fGKoOh Monday, July 11, 2011
  • 36. More Frameworks / Engines From the Chronos WebGL Wiki: http://www.khronos.org/webgl/wiki/ Monday, July 11, 2011
  • 38. glQuery doesn’t exist... But it should - talk to me if you’re interested in working on something after the meetup. Monday, July 11, 2011
  • 39. Thanks! Pascal Rettig @cykod on Twitter Monday, July 11, 2011

Hinweis der Redaktion

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n
  21. \n
  22. \n
  23. \n
  24. \n
  25. \n
  26. \n
  27. \n
  28. \n
  29. \n
  30. \n
  31. \n
  32. \n
  33. \n
  34. \n
  35. \n
  36. \n