Code Monkey home page Code Monkey logo

webgl-hello's Introduction

webgl-hello

Hello world exercises for WebGL

Scene 1

Create a scene with a single triangle.

  • The triangle should be centered in camera/clip space, with a side length of 0.6.
  • It should have one red corner, one blue corner, and one green corner, and interpolate color between them.
  • The scene must utilize an ortholinear projection matrix.
  • Try moving the triangle and the projection matrix together and separately.

Scene 2

Create a scene with a single triangle with perspective view.

  • Recreate scene 1 with a perspective projection matrix.

Scene 3

Create a scene with a rotating cube.

  • The scene must utilize a perspective projection matrix.
  • No lighting or shadows are required.
  • Each face of the cube must be a different color.

Scene 4

Create a scene with a rotating cube, a single light, and a plane.

  • This scene should demonstrate simple diffuse lighting.
  • This scene should not display shadows.
  • The cube should have the same material for all faces.

Scene 5

Create a scene with a rotating cube, a single light, and a plane.

  • This scene should demonstrate simple diffuse lighting.
  • The scene should demonstrate phong lighting (interpolated normals).
  • The plane should be texture mapped.
  • The scene should display accurate shadows via shadow mapping.

Scene 6

Create a scene with bunny.obj and a plane and a single light.

  • This scene should read the bunny model in from a file.
  • The scene should demonstrate phong lighting (interpolated normals).
  • The scene should have accurate shadows via shadow mapping.
  • The plane should be texture mapped.
  • Stretch goal: The scene should have 2 lights.

webgl-hello's People

Contributors

cbrenton avatar

Watchers

 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.