PDA

View Full Version : How can I set the color of a pixel belonging to a triangle ?



barsanpipu
02-21-2002, 05:28 AM
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 http://www.opengl.org/discussion_boards/ubb/smile.gif

Furrage
02-21-2002, 09:16 AM
Have you checked out texture mapping? Its almost the same as working with pixels.