Plan for today

Documentation

How can you position your model in your scene? What is its bounding box? What is its reference point (origin)? How can you determine those?

Great Documentation that makes it easy for others to use the functions you defined. Think about how you might define your creative object. Documentation should probably include:

Geometry

Use some of the code in TW.py to do the math.

Unprojection Demos

The key thing to know is that projection maps points to Normalized Device Coordinates (NDC), which is [-1,+1] on X and Y and [0,1] on Z, with 0 being the near plane and 1 being the far plane.

The pytw/TW.py routines are twProject and twUnProject.

Next time, Material and Lighting

Written by Scott D. Anderson
scott.anderson@acm.org
Creative Commons License
This work is licensed under a Creative Commons License.

Valid HTML 4.01!