Giter Site home page Giter Site logo

parabola's Introduction

Parabola

Parabola is a WebGL rewrite of the Neverball renderer in plain old Javascript. See the demo.

Neverball is a tilt-and-roll action game. Check it out.

Parabola is incomplete, but fun to play with.

Parabola uses instanced arrays and vertex array objects to speed up rendering. A scene graph is used to compute modelview matrices. Neverball-style lighting is partially implemented as a vertex shader.

Missing stuff

  • Ball shadow (blob shadow)
  • Mirrors (world mirror on XZ plane)
  • ...

Opportunities

Not in any specific order:

  • Non-moving level geometry (bodies that are not attached to a path) could be merged into a single static mesh. That might significantly reduce the number of modelview matrices that need to be computed and uploaded.
  • Texture atlas support. Wouldn't it be cool if loading a SOL would download just a single additional image instead of N images where N is the number of materials.
  • Sorting batches by distance to camera. A moving camera makes this complicated, but it doesn't have to be instant: a limited number of distance vallues could be computed per frame.

Background

"Parabola" started out as an April Fools joke on the Neverball forum where I "forked" Neverball. The name is a play on the very real Nuncabola, a reimplementation of Neverball in Java.

Perhaps most famously, Parabola was secretly used to create neverball-poop.gif which I also posted on the Neverball forum:

neverball-poop

Usage

npm install
npm start
# navigate to URL

parabola's People

Contributors

parasti avatar

Watchers

 avatar

Forkers

challengesy

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.