SlideShare a Scribd company logo
WebGL Programming
MINH NGUYEN
@LINKNODE AUGUST, 2015
WebGL ?
Web Graphic Library:
Javascript API for rendering 3D graphics in web browser without the use of plug-ins
Cross-browser:
Supported in most modern browsers (desktop & mobile)
Depending on graphic card (GPU)
WebGL Frameworks
THREE.JS Framework
Open source project: http://threejs.org/
Scene
Mesh
Geometry Material
Camera
Renderer
Create mesh:
var geometry = new THREE.BoxGeometry( 200, 200, 200 );
var material = new THREE.MeshBasicMaterial({ color: 'red' });
var mesh = new THREE.Mesh(geometry, material);
var scene = new THREE.Scene();
scene.add(mesh);
Create scene:
Setup camera to render scene:
var camera = new THREE.PerspectiveCamera(70,
window.innerWidth / window.innerHeight, 1, 1000);
var renderer = new THREE.WebGLRenderer();
renderer.render(scene, camera);
<script src="http://threejs.org/build/three.min.js") %>"></script>
Examples
* Demo cube (cube.htm)
* Demo panorama view
Scene
Geometry Material
Camera
Portal Code Review
* Terrain Height Map
◦ How to by-pass OAuth?
◦ PlaneGeometry: from array to triangle mesh
* Texture
Camera
https://dev.ventusar.com/MapGL/ViewLayoutMapGL/1121
Future works
* Multiple tiled-based loading to make use of terrain and overlay cache
* Turbine model: height, colour
* Solar panel / Transmission model / … ?

More Related Content

PDF
WebGL: 3D Graphics for the Web
ODP
Introduction to threejs
PDF
Three.js basics
PDF
PDF
Introduction to three.js & Leap Motion
PDF
Processing.js vs. three.js
PDF
Mini-Training: JS Graphical Libraries
PPTX
Introduction to three.js
WebGL: 3D Graphics for the Web
Introduction to threejs
Three.js basics
Introduction to three.js & Leap Motion
Processing.js vs. three.js
Mini-Training: JS Graphical Libraries
Introduction to three.js

What's hot (17)

PDF
WebGL 3D player
PPTX
WebGL and three.js - Web 3D Graphics
PDF
The next frontier: WebGL and WebVR
PPTX
Interactive 3D graphics for web with three.js, Andrey Vedilin, DataArt
PDF
From Hello World to the Interactive Web with Three.js: Workshop at FutureJS 2014
PPTX
Developing Web Graphics with WebGL
PDF
WebGL and three.js
PDF
Creating Applications with WebGL and Three.js
PPTX
Using babylon js to create apps & games for all web gl devices
PPTX
Academy PRO: D3, part 3
PPTX
NGF2014 - Create a 3d game with webgl and babylon.js
PDF
Leaving Flatland: Getting Started with WebGL- SXSW 2012
PDF
ENEI16 - WebGL with Three.js
PDF
Finding the Balance between Pedagogy and Technology
PDF
Supercharge your next Vue app with Nuxt
PDF
OpenVisConf - WebGL for graphics and data visualization
PDF
Multi-mania 2013: HTML5 Games to native Windows apps - attach of the yeti
WebGL 3D player
WebGL and three.js - Web 3D Graphics
The next frontier: WebGL and WebVR
Interactive 3D graphics for web with three.js, Andrey Vedilin, DataArt
From Hello World to the Interactive Web with Three.js: Workshop at FutureJS 2014
Developing Web Graphics with WebGL
WebGL and three.js
Creating Applications with WebGL and Three.js
Using babylon js to create apps & games for all web gl devices
Academy PRO: D3, part 3
NGF2014 - Create a 3d game with webgl and babylon.js
Leaving Flatland: Getting Started with WebGL- SXSW 2012
ENEI16 - WebGL with Three.js
Finding the Balance between Pedagogy and Technology
Supercharge your next Vue app with Nuxt
OpenVisConf - WebGL for graphics and data visualization
Multi-mania 2013: HTML5 Games to native Windows apps - attach of the yeti
Ad

Similar to WebGL - 3D programming (20)

PDF
Begin three.js.key
PDF
140716 : 同業前端聚會分享 - webgl 與 three.js
PDF
Migrating your Web app to Virtual Reality
PDF
Augmented reality in web rtc browser
PPTX
WebGL - It's GO Time
PDF
Портируем существующее Web-приложение в виртуальную реальность / Денис Радин ...
PDF
Goodbye, Flatland! An introduction to WebVR and what it means for web developers
PPTX
Réaliser un jeu cross plateformes avec WebGL et babylon.js
PDF
3D Web Programming [Thanh Loc Vo , CTO Epsilon Mobile ]
PDF
[refreshaustin] Adaptive Images in Responsive Web Design
PPTX
WebGL Crash Course
PPTX
is three.js better for developing web-based 3d games?
PDF
HTML5 - Daha Flash bir web?
PDF
[cssdevconf] Adaptive Images in RWD
PDF
[html5tx] Adaptive Images in Responsive Web Design
PDF
[rwdsummit2012] Adaptive Images in Responsive Web Design
KEY
Getting Started with WebGL
PPTX
WebGL, HTML5 and How the Mobile Web Was Won
PDF
3D everywhere
PPTX
WebGL For Game Development Spring 2013
Begin three.js.key
140716 : 同業前端聚會分享 - webgl 與 three.js
Migrating your Web app to Virtual Reality
Augmented reality in web rtc browser
WebGL - It's GO Time
Портируем существующее Web-приложение в виртуальную реальность / Денис Радин ...
Goodbye, Flatland! An introduction to WebVR and what it means for web developers
Réaliser un jeu cross plateformes avec WebGL et babylon.js
3D Web Programming [Thanh Loc Vo , CTO Epsilon Mobile ]
[refreshaustin] Adaptive Images in Responsive Web Design
WebGL Crash Course
is three.js better for developing web-based 3d games?
HTML5 - Daha Flash bir web?
[cssdevconf] Adaptive Images in RWD
[html5tx] Adaptive Images in Responsive Web Design
[rwdsummit2012] Adaptive Images in Responsive Web Design
Getting Started with WebGL
WebGL, HTML5 and How the Mobile Web Was Won
3D everywhere
WebGL For Game Development Spring 2013
Ad

More from Minh Ng (6)

PPTX
3D Scanning & Reconstruction with Kinect
PPTX
SignalR tutorial & best practices
PPTX
Provider pattern practices
PPTX
Open Data practices
PPTX
Entity framework practices
PPTX
Monogame Content Pipeline practices
3D Scanning & Reconstruction with Kinect
SignalR tutorial & best practices
Provider pattern practices
Open Data practices
Entity framework practices
Monogame Content Pipeline practices

Recently uploaded (20)

PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPT
Teaching material agriculture food technology
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Electronic commerce courselecture one. Pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Machine Learning_overview_presentation.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
A Presentation on Artificial Intelligence
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Cloud computing and distributed systems.
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
NewMind AI Weekly Chronicles - August'25-Week II
Chapter 3 Spatial Domain Image Processing.pdf
Teaching material agriculture food technology
“AI and Expert System Decision Support & Business Intelligence Systems”
Electronic commerce courselecture one. Pdf
Building Integrated photovoltaic BIPV_UPV.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
Digital-Transformation-Roadmap-for-Companies.pptx
Programs and apps: productivity, graphics, security and other tools
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Unlocking AI with Model Context Protocol (MCP)
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Machine Learning_overview_presentation.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
sap open course for s4hana steps from ECC to s4
A Presentation on Artificial Intelligence
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Cloud computing and distributed systems.
Mobile App Security Testing_ A Comprehensive Guide.pdf

WebGL - 3D programming

  • 2. WebGL ? Web Graphic Library: Javascript API for rendering 3D graphics in web browser without the use of plug-ins Cross-browser: Supported in most modern browsers (desktop & mobile) Depending on graphic card (GPU)
  • 4. THREE.JS Framework Open source project: http://threejs.org/ Scene Mesh Geometry Material Camera Renderer Create mesh: var geometry = new THREE.BoxGeometry( 200, 200, 200 ); var material = new THREE.MeshBasicMaterial({ color: 'red' }); var mesh = new THREE.Mesh(geometry, material); var scene = new THREE.Scene(); scene.add(mesh); Create scene: Setup camera to render scene: var camera = new THREE.PerspectiveCamera(70, window.innerWidth / window.innerHeight, 1, 1000); var renderer = new THREE.WebGLRenderer(); renderer.render(scene, camera); <script src="http://threejs.org/build/three.min.js") %>"></script>
  • 5. Examples * Demo cube (cube.htm) * Demo panorama view Scene Geometry Material Camera
  • 6. Portal Code Review * Terrain Height Map ◦ How to by-pass OAuth? ◦ PlaneGeometry: from array to triangle mesh * Texture Camera https://dev.ventusar.com/MapGL/ViewLayoutMapGL/1121
  • 7. Future works * Multiple tiled-based loading to make use of terrain and overlay cache * Turbine model: height, colour * Solar panel / Transmission model / … ?

Editor's Notes

  • #7: Ex: Dev  Projects  Abergoki  minh test Live  Projects  Cuthill Towers  CMM4