projects

Saturday, August 20, 2005


Scanline conversion now works..:) It is still in the initial stages.. i can only parse through triangles and render them in just one color. If you look closely.. there is a line going through from the leftmost edge to the other side. This is due some error involved when floating point numbers are converted to interger. A few tweek in finding the edge of the line should eliminate it.

Steps to follow:
  • Fix the line through the triangle as shown in the pic above
  • Test with more triangles... of different sizes and shape
  • Rendering at real time.. a box rotating along some axis..
  • Finally add color and light information.. this will be hard ;)

Two more classes have been added. The scanline and the buffer class. The buffer class is a singleton class and is therefor accessible to all classes..:) For now the buffer class only support rgb- 8 bits (1 byte) per pixel color.... unsigned char. It also wrote a few lines about the depth buffer. For now it is of type float.

0 Comments:

Post a Comment

<< Home