GithubHelp home page GithubHelp logo

scotlandjs-2014's Introduction

scotlandjs-2014

"Getting started with three.js and WebGL" Three.js/WebGL presentation for ScotlandJS 2014

Image

About

The 20-minute talk about three.js and WebGL was based on a live-code-ish session with this slides as support http://slides.com/jaumesanchez/scotlandjs-2014/

The plan was to show how to get from an empty page to a working demo by typing all the code.

I decided to create a tool that would "play" the diff between different stages of the project, and explain what was going on. It wasn't perfect, but it wasn't terrible either. Another library might come out of this.

Here's the code player: http://www.clicktorelease.com/talks/scotlandjs-2014/ and here's the recording of the talk in video format: http://vimeo.com/96477742

It covers:

  • setting up
  • adding the WebGL renderer
  • adding a render loop
  • adding a scene and a camera
  • adding a mesh with a normal material
  • animating a mesh with JavaScript
  • replacing the default material with a shader
  • creating a custom shader

The final shader is a Spherical Environment Mapping shader, like used in the GLSL Spherical Normal Mapping and explained in "Creating a Spherical Reflection/Environment Mapping shader"

Use all the code you want, and let me know if you do!

Credits

Coded using three.js, jsdiff and highlight.js

License

MIT licensed

Copyright (C) 2014 Jaume Sanchez Elias http://twitter.com/thespite

http://www.clicktorelease.com

scotlandjs-2014's People

Contributors

mrdoob avatar spite avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.