Coder Social home page Coder Social logo

jsz-threejs's Introduction

#JSZurich - Three.JS

This repository holds example code and explanation for the examples shown in the JSZurich talk on 18. December 2012 - Christmas T(h)ree.js.

As I did all of the examples in the afternoons before the talk, I refactored some of the code to clean it up and make it more understandable (and not to embarrass myself). The code examples are not focussed on performance or elegance in any kind and provided on an as-is basis.

##Examples

The examples are inside this repository, each in its own folder. For all the examples, please use Google Chrome - i did no compatibility-stuff to keep it simple.

I've added a readme to every example which explains some of the background shown in the example.

For some of the examples you have to activate getUserMedia, means Webcam-access and Microphone-access in your chrome flags (chrome://flags). If you cannot see the examples, watch the recording of the talk.

###Live Coding Example (live-coding-example/)

Live Coding Example

See live demo

This is the live coding example how it was made during the talk. Covered in this is the basic setup, render loops and creating objects. Also, animation!

Hint: Use your mouse to move the object (drag), click to trigger animation.

###Particle basics (particles/)

Particle Basics

See live demo

Introduction to particles, create them and render.

Hint: Use your mouse to move the object (drag).

###Dancing particles with audio file input (sound-in/)

Dancing particles

See live demo

Audio-API combined with particle movement.

Hint: Use mouse to move the object (drag).

###Dancing particles with microphone input (mic-in/)

Dancing particles 2

See live demo

Audio-API combined with particle movement and user media.

Hint: Use mouse to move the object (drag).

###Relief particles - webcam input (face/)

Relief particles

See live demo

Canvas/Video-API combined with particle coloring and movement, steered by the user's camera input.

Hint: Allow camera access and use mouse to move the object (drag).

###End scene: Moving Santa

End scene

See live demo

Ending scene of the talk. Used in this examples: text rendering, model loading, lightning, grounds, fog, particles, vehicle steering, ...

I did not do a explanatory readme for this as I don't want to write a huge book. I did also not refactor the code, but wrote it simple in the beginning. So you can still learn from this example by looking at the source code quite well.

Hint: Use mouse to look and keyboard (W, A, S, D, Q, E, R, F and the arrow keys) to move around.

You can steer the sleigh by opening the console and entering:

CAMERACONTROL = false;

Then, press enter.

##Running examples on your machine

Is perfectly possible. Make sure you have some kind of server running for that (do not open them directly from your file system). In most of the examples, AJAX requests have to be done which will fail. So put the files in your apache webroot, Express/node.js public folder, ... and load them from there.

##Links & Resources

Make sure to check out the examples in the examples folder of the Three.js-repository.

###Third-party examples (in order of appereance in the talk)

jsz-threejs's People

Contributors

streunerlein avatar

Stargazers

 avatar  avatar  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.