/var/spool/weblog | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Geek News del.icio.us bookmarks RSS |
Fri, May 19, 2006
Minimal Ray Tracer
I've updated the code to do the following:
ppmtojpeg ,
If you want to experiment with changing the scene defined in /var/spool/courses/csuf/2006/spring/cpsc465 # Sat, May 13, 2006
Assignment 10
/var/spool/courses/csuf/2006/spring/cpsc465 # Fri, May 12, 2006
Demos for tonight's lecture
/var/spool/courses/csuf/2006/spring/cpsc465 #
Pixar's On-line Library
/var/spool/courses/csuf/2006/spring/cpsc465 # Wed, May 10, 2006
Is this
I wonder which part of the illumination equation isn't being evaluated /var/spool/courses/csuf/2006/spring/cpsc465 #
Material Colors
void color(double r, double g, double b) { float color[4] = { r, g, b, 1.0 }; if (glIsEnabled(GL_LIGHTING)) { glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE, color); } else { glColor3f(r, g, b); } }Note that although the color can be set for GL_AMBIENT and GL_DIFFUSE separately, you'll usually want them to be the same.
Alternatively, you could try reading about /var/spool/courses/csuf/2006/spring/cpsc465 # Fri, May 05, 2006
Chapter mismatch between HTML and PDF versions of the Red Book
/var/spool/courses/csuf/2006/spring/cpsc465 # |
Topics
Archives
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||