How can I set the color of a pixel belonging to a triangle ?

Hi, I’m trying to implement a BumpMapping algorithm to add more veridicity to my 3D Objects. The problem is that I only know how to handle polygons, bu tfor the bump mapping I will need to handle pixels.

How can I set the color of a pixel belonging to a triangle ?
If I can do that then I know how to implement BumpMapping , Phong Shading etc.

Thanx,
Clau

Have you checked out texture mapping? Its almost the same as working with pixels.