GitXplorerGitXplorer
t

soft3.ts

public
1 stars
0 forks
0 issues

Commits

List of commits on branch gh-pages.
Unverified
c59549cf5f7fcb2b3bc763b53e4a9dd4428809be

Update README.md

ttomtung committed 10 years ago
Unverified
a0eb820d845c9b81d82dce856600d1122ac156e4

Restructure the entire project into "soft3.ts"

ttomtung committed 10 years ago
Unverified
5c40f45b26e892d68ca3d31963ca44fc90101ae5

Implement anti-aliasing. Homework 6 is done.

ttomtung committed 10 years ago
Unverified
60040f2d747cac0331c66556265c4c3eb766efcc

Add antiAliasShift property to Renderer

ttomtung committed 10 years ago
Unverified
bcd9ceb63eb64cf3dc6ca7432bda01cea3a548f8

Minor refactoring: add renderTriangles()

ttomtung committed 10 years ago
Unverified
5c70fa9a91faf95a79e6d4c1f71bc4c01880629f

Texture rendering bug fix. Now HW5 is truly done.

ttomtung committed 10 years ago

README

The README file for this repository.

soft3.ts

soft3.ts is a small 3D software rendering engine implemented in Typescript, which compiles to Javascript and runs on any modern browswer.

Based on only the most basic operation of "setting the color of the pixel", the entire engine is built up with implementation of 3D transformations, (Gouraud & Phong) shading, texture mapping, and anti-aliasing. Note that, however, since almost everything is Javascript running on CPU, the engine can be too slow for realtime animation if the the object is larger or more complex, or if computationally intensive features (e.g. Phong shading, anti-aliasing) are enabled.

This was a homework project for course CSCI 580 - 3-D Graphics and Rendering.

Build

When *.ts files are modified, it is necessary to regenerate js/app.js:

tsc -d --out js/app.js --target ES5 ts/app.ts

Run

For an online demo, see demo. To run this HTML application locally, you need to start an HTTP server. For example, if you have Python installed, in the folder simply run

python -m SimpleHTTPServer

then visit localhost:8000 in your browser.