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 3 of 3

Thread: show different colors on the 2 sides of a polygon

  1. #1
    Junior Member Regular Contributor
    Join Date
    Aug 2000
    Location
    Los Angeles, CA, USA
    Posts
    101

    show different colors on the 2 sides of a polygon

    Hi,

    Is it possible to show different colors on the 2 sides of a polygon, say one side red and the other blue? (I also wish the polygon to be translucent) Thanks for your help.

    Tony

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,982

    Re: show different colors on the 2 sides of a polygon

    Draw it two times with backface culling enabled, once to cull front faces and once to cull back faces.

  3. #3
    Senior Member OpenGL Guru Relic's Avatar
    Join Date
    Apr 2000
    Posts
    2,453

    Re: show different colors on the 2 sides of a polygon

    Or disable culling and use two-sided lighting with different materials for front and back faces.

Posting Permissions

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