Results 1 to 2 of 2

Thread: Overriding Colour Information

  1. #1
    Guest

    Overriding Colour Information

    Is there a way of overriding the colour information specified during the list generation. When I insert a glcolor3f before the glcallist, it ignores this last golour command and takes the colour information when the list was created. Any suggestions?
    Many thanks

  2. #2
    Super Moderator OpenGL Guru imported_dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    3,966

    Re: Overriding Colour Information

    The best way would to be to avoid using colors in the list if you don't need them.

    You may also want to use materials, if you did this you could issue a glColorMaterial before the list and enable or disable GL_COLOR_MATERIAL to choose whether or not to let the colors in the list set material properties with the color.

    Using client arrays instead of display lists may be another suitable alternative to baking a fixed list.

Similar Threads

  1. My textures are overriding one another.
    By jt8146 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 04-20-2018, 07:07 AM
  2. OpenGL colour not able to render colour
    By mundrapiyush in forum OpenGL: Linux
    Replies: 3
    Last Post: 05-16-2010, 03:15 AM
  3. Overriding Rasterization and Pixel Perfect Zoom
    By glBomb in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 03-06-2007, 04:48 PM
  4. Overriding instance attributes
    By Phrogz in forum COLLADA
    Replies: 1
    Last Post: 09-21-2005, 04:41 PM
  5. Overriding Defailt Refresh rates
    By Masakari in forum OpenGL: User Software
    Replies: 0
    Last Post: 06-26-2002, 05:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean