Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

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

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2001
    Posts
    29

    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
    Claudius

  2. #2
    Member Regular Contributor
    Join Date
    Jan 2002
    Location
    Kingston, Jamaica, W.I.
    Posts
    282

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

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •