Giter Club home page Giter Club logo

noize's Introduction

mixed 2d/3d "hand-drawn" rendering engine

======

requirements

  • node.js
  • coffeescript
  • some js libraries
    • from root directory, mkdir third_party
    • need three scripts in this directory. find the versions I'm using here

compiling

from root directory, coffee -m --compile --output lib/ src/

to watch for changes in source files, and compile automatically, coffee --watch -m --compile --output lib/ src/

testing

a demo animation is located in test.html

unless you want to disable your browser's same-origin policy, then use the development web server in the server/ directory

from server/...

  • npm install (this installs dependencies from package.json)
  • node server.js (this starts the server on port 8888)

now you can view the animation at localhost:8888/test.html

basic code documentation

everything is located in src/ directory

main renderer classes are in src/util.coffee. important classes are UTIL.geometry (3d geometry), UTIL.geometry_2d, and UTIL.renderer. you can see how these classes are used in UTIL/test.coffee.

class PERSON.person, from src/person.coffee is just an implementation of a 2d geometry, with predetermined vertices, and some built in methods for animating.

I'm using a js library called pixi.js to make it easier to create sprites and interface with webgl.

to see how everything is put together, check out src/test.coffee, which is an example of a full application built with this renderer.

noize's People

Contributors

2emoore4 avatar mlsteele avatar

Watchers

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