Monday, June 06, 2005

Colon Volume Overview




Fixed the bug finally for the display of colon volume overview on QglWidget.
Resulted in learning some more concepts in OpenGl.

Set the Ortho() values as glOrtho(0.0, 1.0, 0.0, 1.0, 0.0, -1.0)

Two doubts still remain:-

  • glOrtho(left, right, bottom, top, znear, zfar) is the standard format. That means znear=0.0 and zfar=-1.0 sets the respective z-limits. But z value in glVertex3f(x,y,z) while rendering does not seem to accept between 0.0 and -1.0 (only between 0.0 and 1.0).
  • The first few values read out from the data structure used for storing the mesh information seem to be zeros. How is that possible, and doesnt it affect the rendering?


The above result uses ambient, diffuse and specular lights. Two light sources are used - one on the top and one on the left side.

0 Comments:

Post a Comment

<< Home