seflless / normalizer

Normal Map Generator/Renderer (Javascript)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

This is the start of a project to make it easy for anyone to generate and render normal maps all using Javascript.

Live Demos

Running demos locally

To run the demos locally, you must host the files in this project. Otherwise you'll get a security error because the demos require reading the pixels of loaded images which isn't allowed for HTML loaded on the file:/// protocol.

  1. We provide a simple Python based server for you to host files. Run the following from the command line while inside the root folder

    ./server

  2. Now open http://localhost:8080/ and select a demo.

TODO:

  1. Port over and cleanup real time rendering code from the live demos.
  2. Write up on how to us a camera to take photos that you can extract the normals of every day objects (As seen in these demos)
  3. Try doing the spherical harmonics version of this: - https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=spherical%20harmonics

About

Normal Map Generator/Renderer (Javascript)


Languages

Language:JavaScript 97.3%Language:Python 1.7%Language:HTML 0.9%Language:CSS 0.1%